Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1510027ybe; Fri, 6 Sep 2019 20:09:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqymm8orbUXLZVTPZCG6IKnNiiJ95qCiTaOijGz477Cm6nqjo6AnpdYZi2fE3tyHeLuM2UfT X-Received: by 2002:a17:90a:c715:: with SMTP id o21mr12435328pjt.55.1567825775043; Fri, 06 Sep 2019 20:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567825775; cv=none; d=google.com; s=arc-20160816; b=uvGwLBveBfLb1sD6dD1gpb0WxqVOsEwlSYM7x3teG6Bd0liTNnyQ+8urOdwbAwY5P3 Kk7VdcRSbw3O3pOmHqYtPiQFxZVgt9bsyjptHaPXsVQpNTVU2Hrjl/EZ73HSJ4t6XrOY 8vQ+LrAdIDklxnvtZ9IgZ3SMoHcCTJtqwP2TF9/p1NZ+oZBWrSCEGBYpjA5ox8Hn3YFT nApN2KKsSmypvHSABlUGybcDjY0/H1tkPLb3PQvSHnGTYdw6b+SA2o7DtL28ohGq83zO x2+k7+FXeFjOARk9GFrqFS3MCFP1i+zDJgwdsMDW3fu5la+K/9eFwuYhEMIDrDJWcpFi /k8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+svkMhSc+LbPjyxmvPhBRrrMjoyuBYcNqViNYczpEKU=; b=E0OdSY/BIED9MQs8h8mQbl14b5s7IjZNdb/bH9Kq/GmbAd7/29YzJAsUgGesmzhmTL FbKJKKIgK6Cf/GYfLsTca0jGpIGy/z+JJ37pVJUCeFmaN9U2/qYiYt9eOIhhKqU9wycX iMWhh8UCDRJZ0Mn0XtuVYZB3ZTHqX2ZwAprxONs+rqKZrHgaPqQPBn7YSeAJY+eN/t0Q UPKE4njVmNbstT+qe6H67Ox4hzMS0lvHkReXOlgWo72JCsaQg84w48vPXCvyo6vj3ey/ HQNwKiTwPnKjHwMrkWk7UyhRC5Ag3Sdrhj1gUd+k9aLLLN1QXOywNzIdlVWkH9nX5iQi BVxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si5846600pgb.352.2019.09.06.20.08.44; Fri, 06 Sep 2019 20:09:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387398AbfIFPLZ (ORCPT + 99 others); Fri, 6 Sep 2019 11:11:25 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:33425 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfIFPLZ (ORCPT ); Fri, 6 Sep 2019 11:11:25 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MV2Sk-1hgIWR2ZKI-00S57m; Fri, 06 Sep 2019 17:11:01 +0200 From: Arnd Bergmann To: Masahiro Yamada , Michal Marek Cc: Arnd Bergmann , Emil Velikov , Denis Efremov , Paul Walmsley , Sam Ravnborg , WANG Chao , Sami Tolvanen , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mostpost: don't warn about symbols from another file Date: Fri, 6 Sep 2019 17:10:48 +0200 Message-Id: <20190906151059.1077708-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content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8/U19RyokcegBgwFccbc9qkshuvbS5fWqozc5bhMuWZPtPEc sAOqHEpf3V0xguUpX9MgRl1zWeeGg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On architectures such as ARM that have a list of symbols exported from assembler in a separate C file, we get a lot of new warnings: WARNING: "__ashrdi3" [vmlinux] is a static (unknown) WARNING: "__lshrdi3" [vmlinux] is a static (unknown) WARNING: "__aeabi_llsr" [vmlinux] is a static (unknown) WARNING: "__aeabi_lasr" [vmlinux] is a static (unknown) WARNING: "__aeabi_uidivmod" [vmlinux] is a static (unknown) WARNING: "__udivsi3" [vmlinux] is a static (unknown) WARNING: "_change_bit" [vmlinux] is a static (unknown) WARNING: "__aeabi_idiv" [vmlinux] is a static (unknown) WARNING: "__umodsi3" [vmlinux] is a static (unknown) WARNING: "__aeabi_uidiv" [vmlinux] is a static (unknown) WARNING: "__aeabi_idivmod" [vmlinux] is a static (unknown) WARNING: "__muldi3" [vmlinux] is a static (unknown) WARNING: "__aeabi_ulcmp" [vmlinux] is a static (unknown) WARNING: "__raw_writesb" [vmlinux] is a static (unknown) WARNING: "__raw_readsb" [vmlinux] is a static (unknown) ... This is not helpful, as these are clearly not static symbols at all. Suppress the warning in a case like this. Fixes: 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions") Signed-off-by: Arnd Bergmann --- scripts/mod/modpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 76c221dd9b2b..4265dd924933 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -2543,7 +2543,7 @@ int main(int argc, char **argv) struct symbol *s = symbolhash[n]; while (s) { - if (s->is_static) + if (s->is_static && s->export != export_unknown) warn("\"%s\" [%s] is a static %s\n", s->name, s->module->name, export_str(s->export)); -- 2.20.0