* [palmer:for-next 2/8] include/linux/pgtable.h:302:21: error: 'pgdp_get' declared as function returning an array
@ 2023-12-06 21:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-06 21:19 UTC (permalink / raw)
To: Alexandre Ghiti; +Cc: oe-kbuild-all, Palmer Dabbelt
tree: https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git for-next
head: f95bc0e118cb852a3419f92be510be7356688632
commit: b9f2de9b90f016ce08fdaa3cba88a806dcbfd604 [2/8] mm: Introduce pudp/p4dp/pgdp_get() functions
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20231207/202312070508.3uchfcp2-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231207/202312070508.3uchfcp2-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312070508.3uchfcp2-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/mm.h:29,
from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/pgtable.h:302:21: error: 'pgdp_get' declared as function returning an array
302 | static inline pgd_t pgdp_get(pgd_t *pgdp)
| ^~~~~~~~
In file included from ./arch/arm/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from arch/arm/kernel/asm-offsets.c:10:
include/linux/pgtable.h: In function 'pgdp_get':
>> include/asm-generic/rwonce.h:48:2: warning: returning 'const volatile pmdval_t *' {aka 'const volatile unsigned int *'} from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
48 | ({ \
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49 | compiletime_assert_rwonce_type(x); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50 | __READ_ONCE(x); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51 | })
| ~~
include/linux/pgtable.h:304:16: note: in expansion of macro 'READ_ONCE'
304 | return READ_ONCE(*pgdp);
| ^~~~~~~~~
make[3]: *** [scripts/Makefile.build:116: arch/arm/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1202: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:234: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/pgdp_get +302 include/linux/pgtable.h
300
301 #ifndef pgdp_get
> 302 static inline pgd_t pgdp_get(pgd_t *pgdp)
303 {
304 return READ_ONCE(*pgdp);
305 }
306 #endif
307
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-06 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 21:19 [palmer:for-next 2/8] include/linux/pgtable.h:302:21: error: 'pgdp_get' declared as function returning an array 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.