Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1375639pxy; Fri, 23 Apr 2021 06:47:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgtdoY82HMqAEZh5vNdGeMfYD+8sGdEWlnDMkGuMuID2wl9EBqnkZgCFgfm4egjUeZ8KJI X-Received: by 2002:a17:903:304b:b029:eb:4cf:8321 with SMTP id u11-20020a170903304bb02900eb04cf8321mr3866338pla.40.1619185630075; Fri, 23 Apr 2021 06:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619185630; cv=none; d=google.com; s=arc-20160816; b=XOK6cGyPVTG7JfuPlD4vRTXcGR1l28b0soyp2SVwImpCNgUy9245TwCyKz5Qaxtr4W UfhOQj7m+AcZloQSUZdl9aom843zxf8O2SzOeGUQRCrMFvW9OEVS/oq5koZYupHWPQtE FgMHVIV0mNNPhZQ+jxhGWwQWwoqcuHVbHKBvuuepaHIgex04HPA6H7T1aEFHQkbNquQL EtGskF2prEai6SRPgIeh60SgfsjUFrcicemfmW7Ebv3EaPpTgDKUB1BMGqnhXOLWPahi K8DUcjcJOONc6jMc4qeEA4UKGyg4lqefQoHLny50Tinf7vsJXJ9SuAstsz4ETTBjeEvy LUJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=n5Uhq6jNvjbLhhBE8wTMbQRhY41737IGH9rJTPdv1/s=; b=p2/S8KV8SFBhqY2X3vApylSsGf50s3veP1xwb6ZOkhEX0xIuhz0viJk25Mt/Y+gPDR Lej3l3uvzsxfqJNhLeARzt1s7SjKeQWumm0Cg0asHWid4OsQ3BF7CXhPr29RkjDuc1gd Z08L0kO7SCl7x/l4EGl519nRl+iDHyo+sWuy0ExqIOEjuudLfWKnmtCZ5gYpFaIYIFPm tVehF3QvAgcjkxW76eO+h/funcllEh8q58XRkTF4BUKOSbT5DVq3ueMlz0gpxeoLsjM7 U84AjanQ6ociBaazmAMnsyUf3YSvlz1e4ZYYjpeJIDBbLQrGngtQ9DuYookj2GPtweLd mqvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WrUskFpZ; 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 y14si7010426plh.112.2021.04.23.06.46.56; Fri, 23 Apr 2021 06:47:10 -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=@rasmusvillemoes.dk header.s=google header.b=WrUskFpZ; 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 S231812AbhDWNqk (ORCPT + 99 others); Fri, 23 Apr 2021 09:46:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbhDWNqh (ORCPT ); Fri, 23 Apr 2021 09:46:37 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F101C061756 for ; Fri, 23 Apr 2021 06:45:59 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id cq11so13907427edb.0 for ; Fri, 23 Apr 2021 06:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=n5Uhq6jNvjbLhhBE8wTMbQRhY41737IGH9rJTPdv1/s=; b=WrUskFpZ/jAkCPqD/Zwfl16X0sAViH9r3hpOIEfZql8ABaNipRa1giywFJBoXADikq Kd5wECOip7A0Kbr5iQdNhflL0j5WHIZal7JWtftRvku56+jey4UX+vywjmiOorkSLQy9 go4eEu/gmFWeyemzpFwLScryfH+2DWy0P8c+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=n5Uhq6jNvjbLhhBE8wTMbQRhY41737IGH9rJTPdv1/s=; b=ikPWVCC4g3GTgixGFOwGwQ70Y2JZ7LpyutyMnngII+N6Wi4LLfUKinNyda3GyiHBoA j/5culfcZ4VdXE2fbmWkrYVCeEbpCIKOcyLw9nnvLgbqcNs9G9t8YkRqyEIqfbLCC50q QuH/QhfxmAiO21HC3F+cHPqsKr0cWMb4a7JV++orrbTngmeq4xvJS12cS3U6zb5oHF8b lwQ0yApdkb1WPlhv6v+eaqnSJvfXVcFE+VRpc4d+7H1qknTMSZVf9X+mvf7pZ/122XzU AnQsrYLTR1ENVW/Z7XmX1EXH0he2ZlIADBSHjCwD1ICDeUKZDqsN8/B/P7jj5JcIfwXt qYfw== X-Gm-Message-State: AOAM5314CHE066nVsYUDs5TA+rVvSmWNJpam8Amht322xNIRJ8Q4SwKM elKDzJK7/ThtGCo5BH5QGuvaxg== X-Received: by 2002:a05:6402:1741:: with SMTP id v1mr4608739edx.127.1619185557798; Fri, 23 Apr 2021 06:45:57 -0700 (PDT) Received: from [192.168.1.149] ([80.208.71.248]) by smtp.gmail.com with ESMTPSA id e22sm4959971edy.63.2021.04.23.06.45.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 06:45:57 -0700 (PDT) Subject: Re: [PATCH v5 05/13] module: Add printk formats to add module build ID to stacktraces To: Andy Shevchenko , Stephen Boyd Cc: 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 References: <20210420215003.3510247-1-swboyd@chromium.org> <20210420215003.3510247-6-swboyd@chromium.org> <161913520061.46595.8469966711677906076@swboyd.mtv.corp.google.com> From: Rasmus Villemoes Message-ID: Date: Fri, 23 Apr 2021 15:45:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.