[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206021932.SvXQtG2F-lkp@intel.com>
Date: Thu, 2 Jun 2022 20:02:23 +0800
From: kernel test robot <lkp@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.18-rc1 20/31]
arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier
'PAGE_OFFSET'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.18-rc1
head: 9083f89a58302e92fad7f144986e307db2350aad
commit: 591e0e614af53ee26dec3179fb3e6e028cecd386 [20/31] Hexagon: Make virt_to_pfn() a static inline
config: hexagon-randconfig-r041-20220531 (https://download.01.org/0day-ci/archive/20220602/202206021932.SvXQtG2F-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b364c76683f8ef241025a9556300778c07b590c2)
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/linusw/linux-integrator.git/commit/?id=591e0e614af53ee26dec3179fb3e6e028cecd386
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.18-rc1
git checkout 591e0e614af53ee26dec3179fb3e6e028cecd386
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/power/supply/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from drivers/power/supply/ds2760_battery.c:22:
In file included from include/linux/module.h:14:
In file included from include/linux/buildid.h:5:
In file included from include/linux/mm_types.h:5:
In file included from include/linux/mm_types_task.h:16:
>> arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier 'PAGE_OFFSET'
return __pa(kaddr) >> PAGE_SHIFT;
^
arch/hexagon/include/asm/page.h:86:39: note: expanded from macro '__pa'
#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
^
>> arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier 'PHYS_OFFSET'
arch/hexagon/include/asm/page.h:86:53: note: expanded from macro '__pa'
#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:97:25: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:113:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:113:27: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:5: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
(set1->sig[2] == set2->sig[2]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:21: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
(set1->sig[2] == set2->sig[2]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/ds2760_battery.c:30:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
--
In file included from drivers/power/supply/ds2780_battery.c:12:
In file included from include/linux/module.h:14:
In file included from include/linux/buildid.h:5:
In file included from include/linux/mm_types.h:5:
In file included from include/linux/mm_types_task.h:16:
>> arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier 'PAGE_OFFSET'
return __pa(kaddr) >> PAGE_SHIFT;
^
arch/hexagon/include/asm/page.h:86:39: note: expanded from macro '__pa'
#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
^
>> arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier 'PHYS_OFFSET'
arch/hexagon/include/asm/page.h:86:53: note: expanded from macro '__pa'
#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
^
2 errors generated.
--
In file included from drivers/power/supply/twl4030_charger.c:12:
In file included from include/linux/module.h:14:
In file included from include/linux/buildid.h:5:
In file included from include/linux/mm_types.h:5:
In file included from include/linux/mm_types_task.h:16:
>> arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier 'PAGE_OFFSET'
return __pa(kaddr) >> PAGE_SHIFT;
^
arch/hexagon/include/asm/page.h:86:39: note: expanded from macro '__pa'
#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
^
>> arch/hexagon/include/asm/page.h:131:9: error: use of undeclared identifier 'PHYS_OFFSET'
arch/hexagon/include/asm/page.h:86:53: note: expanded from macro '__pa'
#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:97:25: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:113:11: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:113:27: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:5: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
(set1->sig[2] == set2->sig[2]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:21: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
(set1->sig[2] == set2->sig[2]) &&
^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/power/supply/twl4030_charger.c:17:
In file included from include/linux/mfd/twl.h:15:
In file included from include/linux/input/matrix_keypad.h:6:
In file included from include/linux/input.h:20:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:156:1: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds]
_SIG_SET_BINOP(sigorsets, _sig_or)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:137:8: note: expanded from macro '_SIG_SET_BINOP'
a3 = a->sig[3]; a2 = a->sig[2]; \
vim +/PAGE_OFFSET +131 arch/hexagon/include/asm/page.h
128
129 static inline unsigned long virt_to_pfn(const void *kaddr)
130 {
> 131 return __pa(kaddr) >> PAGE_SHIFT;
132 }
133
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists