[linux-next:master 3152/3348] kernel/resource.c:1246:undefined reference to `devmem_is_allowed'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   1e391b34f6aa043c7afa40a2103163a0ef06d179
commit: b2d1f5c72c630f7ded52898f5b655f1abcb57aa5 [3152/3348] lib: Move KUnit tests into tests/ subdirectory
config: riscv-randconfig-001-20240806 (https://download.01.org/0day-ci/archive/20240807/202408070357.fsOhv7Od-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240807/202408070357.fsOhv7Od-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408070357.fsOhv7Od-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD 1e391b34f6aa043c7afa40a2103163a0ef06d179 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   riscv64-linux-ld: kernel/resource.o: in function `__request_region_locked':
>> kernel/resource.c:1246:(.text+0xe54): undefined reference to `devmem_is_allowed'
>> riscv64-linux-ld: kernel/resource.c:1247:(.text+0xe62): undefined reference to `devmem_is_allowed'
   riscv64-linux-ld: drivers/char/mem.o: in function `page_is_allowed':
>> drivers/char/mem.c:62:(.text+0x442): undefined reference to `devmem_is_allowed'
>> riscv64-linux-ld: drivers/char/mem.c:62:(.text+0x7e4): undefined reference to `devmem_is_allowed'
   riscv64-linux-ld: drivers/char/mem.o: in function `range_is_allowed':
   drivers/char/mem.c:71:(.text+0xb28): undefined reference to `devmem_is_allowed'


vim +1246 kernel/resource.c

71a1d8ed900f8c Daniel Vetter      2020-11-27  1206  
63cdafe0af982e Alistair Popple    2021-05-06  1207  static int __request_region_locked(struct resource *res, struct resource *parent,
d75fc8bbccf7c0 Greg Kroah-Hartman 2006-06-12  1208  				   resource_size_t start, resource_size_t n,
e8de1481fd7126 Arjan van de Ven   2008-10-22  1209  				   const char *name, int flags)
^1da177e4c3f41 Linus Torvalds     2005-04-16  1210  {
8b6d043b7ee2d1 Alan Cox           2010-03-29  1211  	DECLARE_WAITQUEUE(wait, current);
c26ec88ea86ad5 Bjorn Helgaas      2008-10-15  1212  
^1da177e4c3f41 Linus Torvalds     2005-04-16  1213  	res->name = name;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1214  	res->start = start;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1215  	res->end = start + n - 1;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1216  
^1da177e4c3f41 Linus Torvalds     2005-04-16  1217  	for (;;) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  1218  		struct resource *conflict;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1219  
4e0d8f7eff3fbf Toshi Kani         2016-03-09  1220  		res->flags = resource_type(parent) | resource_ext_type(parent);
4e0d8f7eff3fbf Toshi Kani         2016-03-09  1221  		res->flags |= IORESOURCE_BUSY | flags;
4e0d8f7eff3fbf Toshi Kani         2016-03-09  1222  		res->desc = parent->desc;
4e0d8f7eff3fbf Toshi Kani         2016-03-09  1223  
^1da177e4c3f41 Linus Torvalds     2005-04-16  1224  		conflict = __request_resource(parent, res);
^1da177e4c3f41 Linus Torvalds     2005-04-16  1225  		if (!conflict)
^1da177e4c3f41 Linus Torvalds     2005-04-16  1226  			break;
b926b7f3baecb2 Dave Hansen        2019-02-25  1227  		/*
b926b7f3baecb2 Dave Hansen        2019-02-25  1228  		 * mm/hmm.c reserves physical addresses which then
b926b7f3baecb2 Dave Hansen        2019-02-25  1229  		 * become unavailable to other users.  Conflicts are
b926b7f3baecb2 Dave Hansen        2019-02-25  1230  		 * not expected.  Warn to aid debugging if encountered.
b926b7f3baecb2 Dave Hansen        2019-02-25  1231  		 */
b926b7f3baecb2 Dave Hansen        2019-02-25  1232  		if (conflict->desc == IORES_DESC_DEVICE_PRIVATE_MEMORY) {
b926b7f3baecb2 Dave Hansen        2019-02-25  1233  			pr_warn("Unaddressable device %s %pR conflicts with %pR",
b926b7f3baecb2 Dave Hansen        2019-02-25  1234  				conflict->name, conflict, res);
b926b7f3baecb2 Dave Hansen        2019-02-25  1235  		}
^1da177e4c3f41 Linus Torvalds     2005-04-16  1236  		if (conflict != parent) {
59ceeaaf355fa0 Simon Guinot       2015-09-10  1237  			if (!(conflict->flags & IORESOURCE_BUSY)) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  1238  				parent = conflict;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1239  				continue;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1240  			}
59ceeaaf355fa0 Simon Guinot       2015-09-10  1241  		}
8b6d043b7ee2d1 Alan Cox           2010-03-29  1242  		if (conflict->flags & flags & IORESOURCE_MUXED) {
8b6d043b7ee2d1 Alan Cox           2010-03-29  1243  			add_wait_queue(&muxed_resource_wait, &wait);
8b6d043b7ee2d1 Alan Cox           2010-03-29  1244  			write_unlock(&resource_lock);
8b6d043b7ee2d1 Alan Cox           2010-03-29  1245  			set_current_state(TASK_UNINTERRUPTIBLE);
8b6d043b7ee2d1 Alan Cox           2010-03-29 @1246  			schedule();
8b6d043b7ee2d1 Alan Cox           2010-03-29 @1247  			remove_wait_queue(&muxed_resource_wait, &wait);
8b6d043b7ee2d1 Alan Cox           2010-03-29  1248  			write_lock(&resource_lock);
8b6d043b7ee2d1 Alan Cox           2010-03-29  1249  			continue;
8b6d043b7ee2d1 Alan Cox           2010-03-29  1250  		}
^1da177e4c3f41 Linus Torvalds     2005-04-16  1251  		/* Uhhuh, that didn't work out.. */
63cdafe0af982e Alistair Popple    2021-05-06  1252  		return -EBUSY;
^1da177e4c3f41 Linus Torvalds     2005-04-16  1253  	}
63cdafe0af982e Alistair Popple    2021-05-06  1254  
63cdafe0af982e Alistair Popple    2021-05-06  1255  	return 0;
63cdafe0af982e Alistair Popple    2021-05-06  1256  }
63cdafe0af982e Alistair Popple    2021-05-06  1257  

:::::: The code at line 1246 was first introduced by commit
:::::: 8b6d043b7ee2d1b819dc833d677ea2aead71a0c0 resource: shared I/O region support

:::::: TO: Alan Cox <alan@xxxxxxxxxxxxxxx>
:::::: CC: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux