Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp622200pxa; Thu, 27 Aug 2020 11:06:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz94qRUG0JZ/YOkjQ1EKg4dEPTAhdSEHZWRl1ek5wCem0NGx5bBz5gwHsiyuknb0SC5e6sH X-Received: by 2002:a17:906:3acb:: with SMTP id z11mr21107355ejd.530.1598551607398; Thu, 27 Aug 2020 11:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598551607; cv=none; d=google.com; s=arc-20160816; b=izw4rBQtnxWzmGituHAs/xHPwQbGoQMyTnVNcvf3fwpO535yw/wPjo2F4pFx+js2/n QWE/BPBfRR/1iCG4WQgaVpvjkpNgnF/3a0+814vomDMtZ0uz23vdCTXsfkoQjo5iP0GF vxf6YrrH9oyFB+nxNKfBj3KLueIFWE+F7IS4JFLOIS6G7Yho+PhkXazSZW8fmGgnWEXE ANkmYHeVcLOHcVI1/c9wjueIYgy7NgHFKt7ISdNq26r6L8jwiEAsT8+cdEG3Aot1SCTr rQOahwrtzCwRocyy1nMS9+eF7TFvqBphVPSiVkN4N7gpc9axJXVKh444amHbfZe28EA9 KItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=e6VpwKDADBkr6enfQK73cCa1pyz6xYYmjIF7scakO/Q=; b=drhEwQSAWkPUXsBeYQRk9c6nRsdNc6XtImSmskLG/o5YQ6IAk49KGYbTXac0sV6hyx xY7pfn6iYGib7bZntDsqxcNpNCx1sf9J7mgCuELwx6EoXRRs1GCjNrjAYFeFZO+hLSDQ Jm7/ffMnyFci+YYIgi/llzDGFwQMXVZoQidl9VVrDp+jGi/vZIVIppxLB+MPJaKcHVQA 4alAUsFods+KbY0+qGKl3XLxUOxN12e07K37BH9+BC1SdZ8UwE4/zucrzBJM2dJKLhYS 9eFkorb0krluYyjjuKFVI5MHKcmm15Qu2UjtIBsT2ieYdtFcs9zZQc0v1u2fvVCef0dG mXMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=agNOO2KP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j89si2030973edc.457.2020.08.27.11.06.23; Thu, 27 Aug 2020 11:06:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=agNOO2KP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbgH0SEo (ORCPT + 99 others); Thu, 27 Aug 2020 14:04:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726153AbgH0SEo (ORCPT ); Thu, 27 Aug 2020 14:04:44 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29126C061264 for ; Thu, 27 Aug 2020 11:04:44 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id u25so3401538lfm.10 for ; Thu, 27 Aug 2020 11:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e6VpwKDADBkr6enfQK73cCa1pyz6xYYmjIF7scakO/Q=; b=agNOO2KP0rSqZiiajY5DxBRyVyPiIArYuDzAzQ+F2BCqG2ckvP4zo+PO7smc2ZbLz8 rezCjjt3WxG24Ayo1Sw9vwhv7vojAb1JI0V4b7LszKlVWTDwzF8OUnjqlTlL5brjoaf+ cMn0UUEqHFR+fGJIuruY6iMDSpEOJfjZqPZp8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e6VpwKDADBkr6enfQK73cCa1pyz6xYYmjIF7scakO/Q=; b=LfgKPTE8/sZKPjInvme1m3BnU5fxnulkRd0fALVRQxeRnKAxUmHXuRJuQ7R+NlESaV g3J2KCsuDMM5RRIwgP7WMErhu2+lbikpupWYGJZg9SNoL4QsoUVc8oJqfLRuxZl91SVA 3xSeAYtfsDSXotKFknzWWi9NRiiClkISBzjjbpCEp7Kk7FTVzJWQ63Xj1ntMMOKlnm74 yrxiMuSE5IBMwThvGL979iEnWm93vJfVPdPuns9X3FL6Nbsc7MBvkvW1eB3ec8E65gAT kRvfH7x8uksWeLuPfV//aZqw7Zxk4FyuucqbYBW3o1QnnQ/fhJFc4F8EULjer4IYHZ5E kUQQ== X-Gm-Message-State: AOAM5323d+lOsSCJKNHyZ1MH9LLRlu0fYoEBnMeyu0eeVWRwtvFQZf2a TMDWJdp7Imh8I/+MqwixpBdmTFSxUR5Gzg== X-Received: by 2002:a19:c6d8:: with SMTP id w207mr4455428lff.102.1598551482118; Thu, 27 Aug 2020 11:04:42 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id 10sm616966ljn.22.2020.08.27.11.04.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Aug 2020 11:04:41 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id h19so7444334ljg.13 for ; Thu, 27 Aug 2020 11:04:41 -0700 (PDT) X-Received: by 2002:a2e:9a11:: with SMTP id o17mr9832479lji.314.1598551480902; Thu, 27 Aug 2020 11:04:40 -0700 (PDT) MIME-Version: 1.0 References: <20200827013636.149307-1-allen.lkml@gmail.com> In-Reply-To: <20200827013636.149307-1-allen.lkml@gmail.com> From: Linus Torvalds Date: Thu, 27 Aug 2020 11:04:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] linux/kernel.h: add container_from() To: Allen Pais Cc: Andrew Morton , Kees Cook , Thomas Gleixner , Linux Kernel Mailing List , "James E . J . Bottomley" , Greg Kroah-Hartman , Jens Axboe Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 6:36 PM Allen Pais wrote: > > Introduce container_from() as a generic helper instead of > sub-systems defining a private from_ NAK. This seems completely broken. The documentation comment doesn't even match the macro, and claims that "container" is a type. Which it isn't. That's what container_of()" already takes. And if the argument is that a broken commit introduced a broken macro, then that's not a great argument. Yes, we have that broken "from_tasklet()" macro, but it's not even *USED* anywhere. So instead of adding a broken new concept that adds absolutely no value, let's just remove the broken macro that isn't even used. Linus