From patchwork Fri Apr 29 22:33:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 12832982 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A328C433F5 for ; Fri, 29 Apr 2022 22:33:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C05E46B0071; Fri, 29 Apr 2022 18:33:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BB5A46B0072; Fri, 29 Apr 2022 18:33:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A7E036B0073; Fri, 29 Apr 2022 18:33:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 957726B0071 for ; Fri, 29 Apr 2022 18:33:29 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 66A0020AA9 for ; Fri, 29 Apr 2022 22:33:29 +0000 (UTC) X-FDA: 79411369338.30.53BA21D Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf25.hostedemail.com (Postfix) with ESMTP id DBC68A0071 for ; Fri, 29 Apr 2022 22:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651271608; x=1682807608; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=A/N5qHDYE8Exw7zJH1sKYTNP5QPCkXQNf3u7DyoyKdg=; b=J/bHdZ4AB60VYy78Np0ToJ02OCAk/+NUZBPHb/k0wD/J45pj0RpqgBNp vbRWY9ddhghxeH2Al6ivuYgJqCBloIjydzX8GSJB9AyBGxId78AZ3ZNm9 xLDTmqPzD46ZqboZS3gvz77lr6Ku0tQKei50Rh599Y5ekkrUnClxX79yZ CKXo1D93a8SePuU0nGxtyPr2VWEIZ0ndz86vfwueJ6+ytHh683jYDrE3Y lbnr8ms3M6lwiI0JjPplAwNhDk2DeLkyP/viiJj7jXKxWYyJEJCQvXApr qnx66wvqlJeuaQTK3wXVIzhkD9rqailqECgfitxZiN1n+uhvRNboAgHTE w==; X-IronPort-AV: E=McAfee;i="6400,9594,10332"; a="327288201" X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="327288201" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 15:33:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="597556373" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 29 Apr 2022 15:33:24 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nkZAx-0006eB-BH; Fri, 29 Apr 2022 22:33:23 +0000 Date: Sat, 30 Apr 2022 06:33:03 +0800 From: kernel test robot To: Kumar Kartikeya Dwivedi Cc: kbuild-all@lists.01.org, Linux Memory Management List , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH linux-next] bpf: bpf_kptr_xchg_proto can be static Message-ID: References: <202204300646.B29EmUql-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202204300646.B29EmUql-lkp@intel.com> X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: DBC68A0071 Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="J/bHdZ4A"; spf=none (imf25.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Stat-Signature: uhmcjzea6dutt3keh13uq6bnxy8i8if1 X-HE-Tag: 1651271598-81828 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: kernel/bpf/helpers.c:1389:29: warning: symbol 'bpf_kptr_xchg_proto' was not declared. Should it be static? Fixes: c0a5a21c25f3 ("bpf: Allow storing referenced kptr in map") Reported-by: kernel test robot Signed-off-by: kernel test robot --- kernel/bpf/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 3e709fed530612..62864d2c44e4a3 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -1386,7 +1386,7 @@ BPF_CALL_2(bpf_kptr_xchg, void *, map_value, void *, ptr) */ #define BPF_PTR_POISON ((void *)((0xeB9FUL << 2) + POISON_POINTER_DELTA)) -const struct bpf_func_proto bpf_kptr_xchg_proto = { +static const struct bpf_func_proto bpf_kptr_xchg_proto = { .func = bpf_kptr_xchg, .gpl_only = false, .ret_type = RET_PTR_TO_BTF_ID_OR_NULL,