From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 258C92CA0 for ; Tue, 7 Dec 2021 15:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2G4sRuPvASvykdf+RGVh/2mIPuDGyjKFYNtqvJW5YbM=; b=TJMN7qGXhOyJAf6ImL+1cj1WMU iCqFS+lv8r1i9byGRIhDXENs7YBeBrRiCPVMdeQQnQb6GtYRIF//czqEfQY6ZpbJdd7nLeTyARYZ7 Je9FQd89oAqelj1J8R0ypJ15ydaneWyPMob5Sin/bkD7xmrPGNw5RnXvaHoy5zAbPciNm86MZpEtG w6HtpoJMFwgYjwGx/JubZ5/jmXB1NgnkfBUNvEllFM/aMSPj15CEntTE5ppQHa3b58p/tqS68WuNp GHd53UnvVhfLURRf0XVTCJci4SSCrsAmzsCPrdHK3PKyq52TIxSsM/T+zdYOM06X2zv6cZijeIr5V v9Hpl1YQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mucHU-007Th6-3V; Tue, 07 Dec 2021 15:21:24 +0000 Date: Tue, 7 Dec 2021 15:21:24 +0000 From: Matthew Wilcox To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Al Viro , Andrew Morton , Guenter Roeck , Kees Cook , Linus Torvalds , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Stephen Rothwell , kernel test robot , Ingo Molnar , Peter Zijlstra , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , Tejun Heo , kernelci@groups.io, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [RFC 1/3] headers: add more types to linux/types.h Message-ID: References: <20211207150927.3042197-1-arnd@kernel.org> <20211207150927.3042197-2-arnd@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211207150927.3042197-2-arnd@kernel.org> On Tue, Dec 07, 2021 at 04:09:25PM +0100, Arnd Bergmann wrote: > +struct list_lru { > + struct list_lru_node *node; > +#ifdef CONFIG_MEMCG_KMEM > + struct list_head list; > + int shrinker_id; > + bool memcg_aware; > +#endif > +}; This is the only one that gives me qualms. While there are other CONFIG options mentioned in types.h they're properties of the platform, eg CONFIG_HAVE_UID16, CONFIG_64BIT, CONFIG_ARCH_DMA_ADDR_T_64BIT, etc. I dislike it that changing this CONFIG option is going to result in rebuilding the _entire_ kernel. CONFIG_MEMCG_KMEM just isn't that central to how everything works.