Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1394958pxy; Fri, 23 Apr 2021 07:10:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJApDWjt8XAx50czo5zmJIQ1lq7Topc60jjNtzSs11chO2P7MpBrqgZSBI6h2iWqC70xpm X-Received: by 2002:a63:ea0b:: with SMTP id c11mr3938622pgi.120.1619187014543; Fri, 23 Apr 2021 07:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619187014; cv=none; d=google.com; s=arc-20160816; b=H6+pUEqEgfsB/+KXFqX0QLl7nxPMfYn3QZ0cerYc4JNxhud+4PZO4P/gJt3LSgcgrA 45mlwKUcL5OrtTOdv18RjphOtWv36V7UPUMkjsUpoet67+UZ7qRxiWrNt6MaAiWeSifn hFWPt4ayWk/h2gO5aH3N4sQ5a4ywPc7/foyPBIBNFjpEtiEHzbg4sgY2jZDL4SAD6wWz f8z0NrTtR/5TRlAMd2fmi8tRalmZP/xgmpT/2HJ6rJzr85Qf9kBQ4po2X1Ydc3sx7nsZ KDIN5fvYkkbjEIfOv1nBRaqEiiLYRDC2nZI36JXrHKYzOhon7BldvTlB6/DBFIil/jZN KIkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=EJSkvHrXZgHygSsQf+P8T8v4TI0D1riM2qt57OaW0AY=; b=Cc2K6aX4zUq64SDsUBx10NYFzZw3WPZLK9EUFdgIlKwiOU/p4zBP90xD3ku/h81F0x oTPftJPwBeQndtvvl7RTew+gCRY3P3RTNwRoNiTMu0m2IMNGBAyRq/xHcSlC/fcJOPab 89QDJBtXwZrthNDFtoidsNM4t5CwWYdpYNgSPR1OjKhskxY47qgeukR1IXygTD2f4PKK /KvkE8nUCEGt/FWk4a7/LPij1de4uqasKx89xmW6vVMDZOt8wU6vf36lEpAxlGrMgQ1n Tu2mpFzynZH4YX+jL4iuQKuH8AT6rhc3vF9vSYSPfaxIQRwi/FJwRqlq/YswToeh2h2T ikbA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si6687807pjk.139.2021.04.23.07.10.02; Fri, 23 Apr 2021 07:10:14 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236660AbhDWOJ2 (ORCPT + 99 others); Fri, 23 Apr 2021 10:09:28 -0400 Received: from mga14.intel.com ([192.55.52.115]:7602 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbhDWOJ1 (ORCPT ); Fri, 23 Apr 2021 10:09:27 -0400 IronPort-SDR: j/pXUwxbWynoWTmvpKD/BybvFTGtuijWRnNxTscS3fq5XkZMsziwJFxo4RBFSCDwpe5AoKUxXw C7e1weNSI8ug== X-IronPort-AV: E=McAfee;i="6200,9189,9963"; a="195629273" X-IronPort-AV: E=Sophos;i="5.82,245,1613462400"; d="scan'208";a="195629273" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 07:08:49 -0700 IronPort-SDR: WCFB/a5kjM960RwDycgkcNCtazkoWMOJGJwMuHe/qYLdJi+DPDmWkHKGz1RSl9v2M9r8+PmBBu yuOA1OH0Ue5A== X-IronPort-AV: E=Sophos;i="5.82,245,1613462400"; d="scan'208";a="385102517" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 07:08:44 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lZwU5-006Zub-9V; Fri, 23 Apr 2021 17:08:41 +0300 Date: Fri, 23 Apr 2021 17:08:41 +0300 From: Andy Shevchenko To: Rasmus Villemoes Cc: Stephen Boyd , Andrew Morton , linux-kernel@vger.kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , linux-doc@vger.kernel.org, Matthew Wilcox Subject: Re: [PATCH v5 05/13] module: Add printk formats to add module build ID to stacktraces Message-ID: References: <20210420215003.3510247-1-swboyd@chromium.org> <20210420215003.3510247-6-swboyd@chromium.org> <161913520061.46595.8469966711677906076@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Apr 23, 2021 at 03:45:56PM +0200, Rasmus Villemoes wrote: > On 23/04/2021 15.24, Andy Shevchenko wrote: > > On Thu, Apr 22, 2021 at 04:46:40PM -0700, Stephen Boyd wrote: > > >>>> +#include > >>> > >>> What do you need this header for? > >>> > >> > >> For typeof_member(). > > > > Argh... We really need to split this and container_of to something else. Having > > entire kernel.h for that is an overkill. > > > > Yeah, we should have a type-macros.h (or type-helpers or whatever) that > doesn't include any other kernel headers, just stddef.h (which is > compiler-provided) for offsetof(), providing > > typeof_member > sizeof_member > container_of > same_type > type_min > type_max > is_signed_type > __choose_type > > or whatever their names are currently. Put in my TODO list. Not sure when it will go, though. -- With Best Regards, Andy Shevchenko