* [powerpc:next-test 84/129] arch/powerpc/mm/init_64.c:477:45: error: 'SECTION_SIZE_BITS' undeclared
@ 2023-08-27 15:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-27 15:04 UTC (permalink / raw)
To: Aneesh Kumar K.V; +Cc: Reza Arbab, linuxppc-dev, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test
head: c37b6908f7b2bd24dcaaf14a180e28c9132b9c58
commit: 4d15721177d539d743fcf31d7bb376fb3b81aeb6 [84/129] powerpc/mm: Cleanup memory block size probing
config: powerpc64-randconfig-r021-20230827 (https://download.01.org/0day-ci/archive/20230827/202308272310.O7VMTwkZ-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230827/202308272310.O7VMTwkZ-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/202308272310.O7VMTwkZ-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/powerpc/mm/init_64.c: In function 'update_memory_block_size':
>> arch/powerpc/mm/init_64.c:477:45: error: 'SECTION_SIZE_BITS' undeclared (first use in this function)
477 | unsigned long section_size = 1UL << SECTION_SIZE_BITS;
| ^~~~~~~~~~~~~~~~~
arch/powerpc/mm/init_64.c:477:45: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/powerpc/mm/init_64.c:43:
arch/powerpc/mm/init_64.c: In function 'probe_memory_block_size':
>> include/linux/memory.h:23:43: error: 'SECTION_SIZE_BITS' undeclared (first use in this function)
23 | #define MIN_MEMORY_BLOCK_SIZE (1UL << SECTION_SIZE_BITS)
| ^~~~~~~~~~~~~~~~~
arch/powerpc/mm/init_64.c:510:39: note: in expansion of macro 'MIN_MEMORY_BLOCK_SIZE'
510 | *block_size = MIN_MEMORY_BLOCK_SIZE;
| ^~~~~~~~~~~~~~~~~~~~~
vim +/SECTION_SIZE_BITS +477 arch/powerpc/mm/init_64.c
474
475 static void update_memory_block_size(unsigned long *block_size, unsigned long mem_size)
476 {
> 477 unsigned long section_size = 1UL << SECTION_SIZE_BITS;
478
479 for (; *block_size > section_size; *block_size >>= 2) {
480
481 if ((mem_size & *block_size) == 0)
482 break;
483 }
484 }
485
--
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-08-27 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-27 15:04 [powerpc:next-test 84/129] arch/powerpc/mm/init_64.c:477:45: error: 'SECTION_SIZE_BITS' undeclared kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).