Content-Type: multipart/mixed; boundary="===============1387887598367207841==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] percpu: __alloc_reserved_percpu_cb() can be static Date: Wed, 02 Jun 2021 07:48:29 +0800 Message-ID: <20210601234829.GA37138@a20a3f4aa7ac> In-Reply-To: <20210601065147.53735-2-bharata@linux.ibm.com> List-Id: --===============1387887598367207841== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable mm/percpu.c:2124:15: warning: symbol '__alloc_reserved_percpu_cb' was not d= eclared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- percpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index ca8ca541bede86..1af5c1e9f5707e 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -2121,8 +2121,8 @@ void __percpu *__alloc_percpu_cb(size_t size, size_t = align, pcpu_cpuhp_fn_t cb, } EXPORT_SYMBOL_GPL(__alloc_percpu_cb); = -void __percpu *__alloc_reserved_percpu_cb(size_t size, size_t align, - pcpu_cpuhp_fn_t cb, void *data) +static void __percpu *__alloc_reserved_percpu_cb(size_t size, size_t align, + pcpu_cpuhp_fn_t cb, void *data) { return pcpu_alloc(size, align, true, GFP_KERNEL, cb, data); } --===============1387887598367207841==--