* [rppt:memory-models/rm-discontig/v1 8/9] arch/sparc/include/asm/page_32.h:134:86: error: 'max_mapnr' undeclared; did you mean 'set_max_mapnr'?
@ 2021-05-26 21:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 21:02 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 8661 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memory-models/rm-discontig/v1
head: 828beb6f6f782ea80e1dbb3dd59cd38281821abb
commit: c0ee646677c86d6a9b19669046941aa9417d2072 [8/9] mm: replace CONFIG_NEED_MULTIPLE_NODES with CONFIG_NUMA
config: sparc-randconfig-r023-20210526 (attached as .config)
compiler: sparc-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/rppt/linux.git/commit/?id=c0ee646677c86d6a9b19669046941aa9417d2072
git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
git fetch --no-tags rppt memory-models/rm-discontig/v1
git checkout c0ee646677c86d6a9b19669046941aa9417d2072
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from arch/sparc/mm/init_32.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> arch/sparc/include/asm/page_32.h:134:86: error: 'max_mapnr' undeclared (first use in this function); did you mean 'set_max_mapnr'?
134 | #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
| ^~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
arch/sparc/include/asm/page_32.h:134:86: note: each undeclared identifier is reported only once for each function it appears in
134 | #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
| ^~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
arch/sparc/mm/init_32.c: In function 'mem_init':
>> arch/sparc/mm/init_32.c:279:2: error: 'max_mapnr' undeclared (first use in this function)
279 | max_mapnr = last_valid_pfn - pfn_base;
| ^~~~~~~~~
--
In file included from include/linux/kernel.h:11,
from arch/sparc/mm/iommu.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> arch/sparc/include/asm/page_32.h:134:86: error: 'max_mapnr' undeclared (first use in this function); did you mean 'set_max_mapnr'?
134 | #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
| ^~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
arch/sparc/include/asm/page_32.h:134:86: note: each undeclared identifier is reported only once for each function it appears in
134 | #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
| ^~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from drivers/usb/core/devio.c:24:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> arch/sparc/include/asm/page_32.h:134:86: error: 'max_mapnr' undeclared (first use in this function); did you mean 'set_max_mapnr'?
134 | #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
| ^~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
arch/sparc/include/asm/page_32.h:134:86: note: each undeclared identifier is reported only once for each function it appears in
134 | #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
| ^~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/usb/core/devio.c: At top level:
drivers/usb/core/devio.c:730:6: warning: no previous prototype for 'usbfs_notify_suspend' [-Wmissing-prototypes]
730 | void usbfs_notify_suspend(struct usb_device *udev)
| ^~~~~~~~~~~~~~~~~~~~
drivers/usb/core/devio.c:735:6: warning: no previous prototype for 'usbfs_notify_resume' [-Wmissing-prototypes]
735 | void usbfs_notify_resume(struct usb_device *udev)
| ^~~~~~~~~~~~~~~~~~~
vim +134 arch/sparc/include/asm/page_32.h
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17 132
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17 133 #define pfn_valid(pfn) (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17 @134 #define virt_addr_valid(kaddr) ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
f5e706ad886b6a include/asm-sparc/page_32.h Sam Ravnborg 2008-07-17 135
:::::: The code@line 134 was first introduced by commit
:::::: f5e706ad886b6a5eb59637830110b09ccebf01c5 sparc: join the remaining header files
:::::: TO: Sam Ravnborg <sam@ravnborg.org>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30903 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-26 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 21:02 [rppt:memory-models/rm-discontig/v1 8/9] arch/sparc/include/asm/page_32.h:134:86: error: 'max_mapnr' undeclared; did you mean 'set_max_mapnr'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.