Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp194674pxb; Wed, 24 Feb 2021 23:16:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwAKsJCiutcjYHEXRWtzNvLvknBXedgh091bwG55U9GckqxQHvk/tIWBEfw+301H39orNE X-Received: by 2002:a17:907:1187:: with SMTP id uz7mr1434313ejb.266.1614237359847; Wed, 24 Feb 2021 23:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614237359; cv=none; d=google.com; s=arc-20160816; b=Q9oECNrdahow8Etn1YPdRBUtdhevJenGZJuovET0hWCh2xMB/gbecB/GdQPuc7MeQ3 4vs2V/a35pmCRuTuEeWlTm+Wzf3cLXc5kzWll74bc4LWT8M5yC+z9TbnO7KE0uVRazKi nWJslBWP9WsPP521n9WZQyxmksh4I9mwUmuC1jIi5R3Lh2PxwZdGb7ZwTQLjbOZNGLEr M+FO8EQ/Tg65EyL5jljo4Q70ODUKkO/PMuK9SR2LHOH2ieM36PwiAgaFAX11ymXNFkOO PEMFc+BnmI9IbVQjqaz/Sc4Ly4AehZkY4KR/QkwnyOTe98aXjUyrSt8rHv0H/vn1D5sG ZEPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=oaQSxn3+w5ITJH+ZcCRhHqRG8KnhXhXrDW7nDvHEQGU=; b=ltLmgP2rFtmZ5FDgPegIYC61axDzyjR8yNocQ8kMCZAsScDhhA4f5aAGQCTiDwwJ4r S0id8m+/o5EfkCm7DmIzor+rKtFYMf0MhXH9UEhDkT5iGnoa9wzI5EUtpNXEsYt3g+71 3hRIa4rHlTTgArOBXcMI/S7mDohHkkqkQ5Plz9hDpQ4XA3eF0yPeRK63YCEDgIh4hs8I U90plyIAgCUxyWZMH522SkyImk+0EzMtmyGNh8FeavoAhaWdq0l74mLTOy7N6E/PIQr1 fnpq6LKlOpbFVuIFzapczB97NbruNOS9VDyoWNmvpsKgV6Jsf2AxUSIIZifmlmc465uX Zheg== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp13si2586501ejc.24.2021.02.24.23.15.37; Wed, 24 Feb 2021 23:15:59 -0800 (PST) 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233491AbhBYHMY (ORCPT + 99 others); Thu, 25 Feb 2021 02:12:24 -0500 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:55724 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233159AbhBYHJd (ORCPT ); Thu, 25 Feb 2021 02:09:33 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0UPWUmt0_1614236919; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPWUmt0_1614236919) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Feb 2021 15:08:47 +0800 From: Jiapeng Chong To: ast@kernel.org Cc: daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Jiapeng Chong Subject: [PATCH] kallsyms: make arch_get_kallsym static Date: Thu, 25 Feb 2021 15:08:37 +0800 Message-Id: <1614236917-80472-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: kernel/kallsyms.c:457:12: warning: symbol 'arch_get_kallsym' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 8043a90..a26f98e 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -454,7 +454,7 @@ struct kallsym_iter { int show_value; }; -int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, +static int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, char *type, char *name) { return -EINVAL; -- 1.8.3.1