From: kernel test robot <lkp@intel.com>
To: Ben Widawsky <bwidawsk@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Alison Schofield <alison.schofield@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
Ben Widawsky <ben.widawsky@intel.com>,
Dan Williams <dan.j.williams@intel.com>,
linux-kernel@vger.kernel.org
Subject: [cxl:preview 38/49] include/linux/memregion.h:19:6: warning: no previous prototype for function 'memregion_free'
Date: Thu, 23 Jun 2022 15:59:49 +0800 [thread overview]
Message-ID: <202206231541.NNhh1JGy-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: b2d4fd5c97b59f622e6c45ac51020cdcd66bb022
commit: e4b2a6ac46c3288f73b88e0aa69afd2a815930d7 [38/49] cxl/region: Add region creation support
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220623/202206231541.NNhh1JGy-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 46be5faaf03466c3751f8a2882bef5a217e15926)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=e4b2a6ac46c3288f73b88e0aa69afd2a815930d7
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout e4b2a6ac46c3288f73b88e0aa69afd2a815930d7
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/cxl/core/port.c:4:
>> include/linux/memregion.h:19:6: warning: no previous prototype for function 'memregion_free' [-Wmissing-prototypes]
void memregion_free(int id)
^
include/linux/memregion.h:19:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void memregion_free(int id)
^
static
1 warning generated.
vim +/memregion_free +19 include/linux/memregion.h
a6c7f4c6aea5f4 Dan Williams 2019-11-06 10
33dd70752cd76f Dan Williams 2019-11-06 11 #ifdef CONFIG_MEMREGION
33dd70752cd76f Dan Williams 2019-11-06 12 int memregion_alloc(gfp_t gfp);
33dd70752cd76f Dan Williams 2019-11-06 13 void memregion_free(int id);
33dd70752cd76f Dan Williams 2019-11-06 14 #else
33dd70752cd76f Dan Williams 2019-11-06 15 static inline int memregion_alloc(gfp_t gfp)
33dd70752cd76f Dan Williams 2019-11-06 16 {
33dd70752cd76f Dan Williams 2019-11-06 17 return -ENOMEM;
33dd70752cd76f Dan Williams 2019-11-06 18 }
33dd70752cd76f Dan Williams 2019-11-06 @19 void memregion_free(int id)
:::::: The code at line 19 was first introduced by commit
:::::: 33dd70752cd76f4d883a165a674f13121a4155ed lib: Uplevel the pmem "region" ida to a global allocator
:::::: TO: Dan Williams <dan.j.williams@intel.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-06-23 8:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202206231541.NNhh1JGy-lkp@intel.com \
--to=lkp@intel.com \
--cc=alison.schofield@intel.com \
--cc=ben.widawsky@intel.com \
--cc=bwidawsk@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=ira.weiny@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=vishal.l.verma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®