Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 133BCC433EF for ; Fri, 19 Nov 2021 16:09:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DFB9B61A8C for ; Fri, 19 Nov 2021 16:09:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236239AbhKSQMd (ORCPT ); Fri, 19 Nov 2021 11:12:33 -0500 Received: from mga14.intel.com ([192.55.52.115]:31519 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbhKSQMc (ORCPT ); Fri, 19 Nov 2021 11:12:32 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10172"; a="234674970" X-IronPort-AV: E=Sophos;i="5.87,248,1631602800"; d="scan'208";a="234674970" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2021 08:07:40 -0800 X-IronPort-AV: E=Sophos;i="5.87,248,1631602800"; d="scan'208";a="495920662" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2021 08:07:39 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mo6QH-008aVI-6l; Fri, 19 Nov 2021 18:07:33 +0200 Date: Fri, 19 Nov 2021 18:07:32 +0200 From: Andy Shevchenko To: "Alejandro Colomar (man-pages)" Cc: "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 00/17] Add memberof(), split some headers, and slightly simplify code Message-ID: References: <20211119113644.1600-1-alx.manpages@gmail.com> <434296d3-8fe1-f1d2-ee9d-ea25d6c4e43e@gmail.com> <4a39bc52-53ff-ca79-8d34-4310b2894f43@gmail.com> <04bd3abf-44e3-ab2d-7226-b12ff951cd26@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <04bd3abf-44e3-ab2d-7226-b12ff951cd26@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 19, 2021 at 04:52:22PM +0100, Alejandro Colomar (man-pages) wrote: > On 11/19/21 16:49, Andy Shevchenko wrote: > >> > >> I think the problem was in > >> requiring NULL from > >> requiring memberof() from > >> or something like that. > > > > There is no memberof.h in the kernel.?Something is done wrongly on your series. > > memberof.h was my first addition in this patch series. > > Since I replaced (((T *)0)->m) by memberof(), > and that construction is used in > for example for sizeof_field(), > I included from . Then why you need that header to be separated? What circular dependency it resolves? In case you are wondering about my activity in the area, the problematic piece is that headers including headers which includes the first headers again. Try to inline bitmap_alloc() and you will get what I'm struggling with. The biggest (as far as I see now) part of it is the mess called "kernel.h" that is included by other headers. And my idea to get rid of that. Btw, Arnd gave actually a good suggestion what to look at. -- With Best Regards, Andy Shevchenko