Hi John,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on asm-generic/master soc/for-next linus/master v5.11-rc3
next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/John-Garry/Fix-arm64-crash-for-a...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm-randconfig-r014-20210115 (attached as .config)
compiler: arm-linux-gnueabi-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://github.com/0day-ci/linux/commit/a75a79165fd5529fe38a5f05268cce3c1...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
John-Garry/Fix-arm64-crash-for-accessing-unmapped-IO-port-regions-reboot/20210116-010800
git checkout a75a79165fd5529fe38a5f05268cce3c1ee89b5e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:10,
from arch/arm/kernel/asm-offsets.c:13:
> arch/arm/include/asm/io.h:221:26: warning:
"resource_size_t" is not defined, evaluates to 0 [-Wundef]
221 |
#define IO_SPACE_LIMIT ((resource_size_t)0xffff)
| ^~~~~~~~~~~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro
'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
> arch/arm/include/asm/io.h:221:42: error: missing binary operator
before token "0xffff"
221 | #define IO_SPACE_LIMIT
((resource_size_t)0xffff)
| ^~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro
'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
--
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:10,
from arch/arm/kernel/asm-offsets.c:13:
> arch/arm/include/asm/io.h:221:26: warning:
"resource_size_t" is not defined, evaluates to 0 [-Wundef]
221 |
#define IO_SPACE_LIMIT ((resource_size_t)0xffff)
| ^~~~~~~~~~~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro
'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
> arch/arm/include/asm/io.h:221:42: error: missing binary operator
before token "0xffff"
221 | #define IO_SPACE_LIMIT
((resource_size_t)0xffff)
| ^~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro
'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/resource_size_t +221 arch/arm/include/asm/io.h
^1da177e4c3f4152 include/asm-arm/io.h Linus Torvalds 2005-04-16 205
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 206 /*
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 207 * This is the
limit of PC card/PCI/ISA IO space, which is by default
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 208 * 64K if we
have PC card, PCI or ISA support. Otherwise, default to
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 209 * zero to
prevent ISA/PCI drivers claiming IO space (and potentially
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 210 * oopsing.)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 211 *
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 212 * Only set
this larger if you really need inb() et.al. to operate over
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 213 * a larger
address space. Note that SOC_COMMON ioremaps each sockets
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 214 * IO space
area, and so inb() et.al. must be defined to operate as per
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 215 * readb()
et.al. on such platforms.
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 216 */
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 217 #ifndef
IO_SPACE_LIMIT
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 218 #if
defined(CONFIG_PCMCIA_SOC_COMMON) || defined(CONFIG_PCMCIA_SOC_COMMON_MODULE)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 219 #define
IO_SPACE_LIMIT ((resource_size_t)0xffffffff)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 220 #elif
defined(CONFIG_PCI) || defined(CONFIG_ISA) || defined(CONFIG_PCCARD)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 @221 #define
IO_SPACE_LIMIT ((resource_size_t)0xffff)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 222 #else
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 223 #define
IO_SPACE_LIMIT ((resource_size_t)0)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 224 #endif
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 225 #endif
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 226
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org