From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 204D0C11F67 for ; Tue, 13 Jul 2021 12:20:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1A93611CB for ; Tue, 13 Jul 2021 12:20:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236178AbhGMMXF (ORCPT ); Tue, 13 Jul 2021 08:23:05 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:51340 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235968AbhGMMXD (ORCPT ); Tue, 13 Jul 2021 08:23:03 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1m3HOM-00054s-Lp; Tue, 13 Jul 2021 20:20:02 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1m3HO5-0006IH-0H; Tue, 13 Jul 2021 20:19:45 +0800 Date: Tue, 13 Jul 2021 20:19:45 +0800 From: Herbert Xu To: Greg Kroah-Hartman Cc: Andy Shevchenko , Brendan Higgins , Peter Zijlstra , Alexey Dobriyan , Miguel Ojeda , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-media@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, "Rafael J. Wysocki" , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Steven Rostedt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Thomas Graf , Andrew Morton , jic23@kernel.org, linux@rasmusvillemoes.dk Subject: Re: [PATCH v1 3/3] kernel.h: Split out container_of() and typeof_memeber() macros Message-ID: <20210713121944.GA24157@gondor.apana.org.au> References: <20210713084541.7958-1-andriy.shevchenko@linux.intel.com> <20210713084541.7958-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 01:23:01PM +0200, Greg Kroah-Hartman wrote: > > Life is messy and can not easily be partitioned into tiny pieces. That > way usually ends up being even messier in the end... One advantage is less chance of header loops which very often involve kernel.h and one of the most common reasons for other header files to include kernel.h is to access container_of. However, I don't see much point in touching *.c files that include kernel.h. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt