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, | ^~~~~~~~~~~~~~~~~~~ vim +/__region_intersects +505 kernel/resource.c 504 > 505 int __region_intersects(resource_size_t start, size_t size, unsigned long flags, 506 unsigned long desc) 507 { 508 struct resource res; 509 int type = 0; int other = 0; 510 struct resource *p; 511 512 res.start = start; 513 res.end = start + size - 1; 514 515 for (p = iomem_resource.child; p ; p = p->sibling) { 516 bool is_type = (((p->flags & flags) == flags) && 517 ((desc == IORES_DESC_NONE) || 518 (desc == p->desc))); 519 520 if (resource_overlaps(p, &res)) 521 is_type ? type++ : other++; 522 } 523 524 if (type == 0) 525 return REGION_DISJOINT; 526 527 if (other == 0) 528 return REGION_INTERSECTS; 529 530 return REGION_MIXED; 531 } 532 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip