On Thu, 22 Apr 2021 05:33:54 +0800 kernel test robot <lkp@xxxxxxxxx> wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: b74523885a715463203d4ccc3cf8c85952d3701a > commit: edede6a2ecfe8553e8232eb863a7a13ef40da3a2 [14157/14231] kernel/resource: allow region_intersects users to hold resource_lock > config: mips-randconfig-r016-20210421 (attached as .config) > compiler: mips64el-linux-gcc (GCC) 9.3.0 > 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/next/linux-next.git/commit/?id=edede6a2ecfe8553e8232eb863a7a13ef40da3a2 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout edede6a2ecfe8553e8232eb863a7a13ef40da3a2 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@xxxxxxxxx> > > All warnings (new ones prefixed by >>): > > >> kernel/resource.c:505:5: warning: no previous prototype for '__region_intersects' [-Wmissing-prototypes] > 505 | int __region_intersects(resource_size_t start, size_t size, unsigned long flags, > | ^~~~~~~~~~~~~~~~~~~ > Thanks, I made __region_intersects() static. --- a/kernel/resource.c~kernel-resource-allow-region_intersects-users-to-hold-resource_lock-fix +++ a/kernel/resource.c @@ -502,8 +502,8 @@ int __weak page_is_ram(unsigned long pfn } EXPORT_SYMBOL_GPL(page_is_ram); -int __region_intersects(resource_size_t start, size_t size, unsigned long flags, - unsigned long desc) +static int __region_intersects(resource_size_t start, size_t size, + unsigned long flags, unsigned long desc) { struct resource res; int type = 0; int other = 0; _