From patchwork Fri Sep 6 15:10:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173250 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp847188ilq; Fri, 6 Sep 2019 08:11:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBdHfG4KB7+PVfaristfbPRBgTwRO7u+H5SGCBig23vcugmmx+ozLVwa/YBp6UdGFOiVnM X-Received: by 2002:a17:902:7615:: with SMTP id k21mr9415820pll.116.1567782686997; Fri, 06 Sep 2019 08:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567782686; cv=none; d=google.com; s=arc-20160816; b=pGCHdM23mHs98cNXuu9/ezQzIS22X4seKhbTBnjYQnnY+FOTWPSMgWkTUkDbr9/nYV ycmQPGxm3ZnGVGza/XQ//jADccUU8n8nDdnRYv91LKQock7Shu+6n+vcGo4bGieVwbLj dWQe5sA5va7d/uZ70kqOXXqJEs2uMw64VfNhKCnVyRiDTaEI8GyPlKx2GMC0rVajP2fC 8Q74MdHmYh+P9F4mR9mWlJkmNlparF8Gg6akvzVj74shmYCV2fKfeCEvm7TJ/QpF2W1M JeDWH0YyRKJ6WWpJ7XHgENvCB1TIXz/zS+pcfZB95PLV8Yj/6l9A2TiAma9iXJkAaWpH Beiw== 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 16si1842004pfn.239.2019.09.06.08.11.26; Fri, 06 Sep 2019 08:11:26 -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 S2387522AbfIFPL0 (ORCPT + 28 others); Fri, 6 Sep 2019 11:11:26 -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 X-Provags-ID: V03:K1:MYSsX62M3kMVOdBJmO0fvdsGZ8LVBevwQAuhV3ZGapv8NxCoKjk ewBSHOJ+U+W4Bx40YN/DKiYCMc86z16Ni9hwgNX31KTZIAQYIAvTD4YPKc19zHK2HJ7KxZM 34zimubqZDjIL66j4kVkFU7LPxsU3RM9eaT4qGUqavdgjJa2/3/5bWTiBhHSmqT+lHTR+FE 1IJMRDtXw4khhHR8Tekyg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:jPkOfdxtGfs=:MMY/6CGqG/UaoJb6vlh/AH U2S63vjc7H4TGNfEYOqhGsvpyk6EgV+g15g+sMayiSRR2f+MT5IdUdb9rZbHaLCr1GotwD6pT frLmDSswIbANiqQSInn3yIX8G+ziGOO1Vf8V+QB7qpyhit/8ieCC9j1bUYMkjNqIa9MW9hQRU 0wDsEX+hDy3qwUhpRGa5jGdsgIyiwXrqC7dAamrIzlrtHEIXYOwFm57GshwlU1WJsJTv1E4Wb xsUowHX2NJGL9RhYj6GDxJTEpJSjQ57naMl2kC4yOS+g1vrghWwECPYRqyWAkU0B53jE2KYjA 9IeJbdtviemSV3LsUtpKGAYOs8dP3JyKnqwEc86GmeYVf8vq48AVfft6Fz7RBCqzxoNAmN/p/ YXcn/DnAtGdcEOLAsYjgKfMOdHQQ+QaCZhPPlO57z1uJlMOS2rYP63phI8tKm9B/Op1IKdLjv jidOQNVMWyVc3yCdnIOwBi/tpIsQw98d2VCKlQ8ubtacaqaZYNLeER6RhMT7XloK403DppwZH rrqtyQcwavMJMWQHm5RieV9NqUJ9+Hl2NrPRneE99v6dqcFZpj0L14cUuPF5zsuG5pmVzHokf VHIi1FgSaP3HccwZyt5aUm1TzelqEujdKzlU2LW0gWyrCA6oWslARprr7xAC9FtdH4p4IEwag XmIzaJIggQbqgbEp6I8u7zm9W/9lX7C3XdPYzmFLfsI6Efy72BQg9wlFSXnrgago5Pc4yXeuO l053iPLVHskj4J3ftQDlLripZ8/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(-) -- 2.20.0 Tested-by: Denis Efremov 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));