* [alexshi:mmunstable 42/42] include/linux/mm.h:3025:21: error: call to undeclared function 'pmd_page'; ISO C99 and later do not support implicit function declarations
@ 2024-07-22 6:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-22 6:23 UTC (permalink / raw)
To: Alex Shi (Tencent); +Cc: llvm, oe-kbuild-all
tree: https://github.com/alexshi/linux.git mmunstable
head: 0dc6582fabc5dcd9239957e6e6501344fd99714a
commit: 0dc6582fabc5dcd9239957e6e6501344fd99714a [42/42] mm/pgtable: prepare for pte_free_defer and its caller callee
config: arm-randconfig-002-20240722 (https://download.01.org/0day-ci/archive/20240722/202407221405.tQX5kQ8V-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad154281230d83ee551e12d5be48bb956ef47ed3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240722/202407221405.tQX5kQ8V-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/202407221405.tQX5kQ8V-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm/kernel/asm-offsets.c:12:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from arch/arm/kernel/asm-offsets.c:12:
include/linux/mm.h:3019:25: error: use of undeclared identifier 'PTRS_PER_PMD'
3019 | unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
| ^
>> include/linux/mm.h:3025:21: error: call to undeclared function 'pmd_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3025 | return page_ptdesc(pmd_page(*pmd));
| ^
include/linux/mm.h:3025:21: note: did you mean 'put_page'?
include/linux/mm.h:1541:20: note: 'put_page' declared here
1541 | static inline void put_page(struct page *page)
| ^
>> include/linux/mm.h:3025:21: error: controlling expression type 'int' not compatible with any generic association type
3025 | return page_ptdesc(pmd_page(*pmd));
| ^~~~~~~~~~~~~~
include/linux/mm_types.h:510:37: note: expanded from macro 'page_ptdesc'
510 | #define page_ptdesc(p) (_Generic((p), \
| ^
1 warning and 3 errors generated.
make[3]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1 shuffle=979059129
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1208: prepare0] Error 2 shuffle=979059129
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:240: __sub-make] Error 2 shuffle=979059129
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:240: __sub-make] Error 2 shuffle=979059129
make: Target 'prepare' not remade because of errors.
vim +/pmd_page +3025 include/linux/mm.h
3022
3023 static inline struct ptdesc *pmd_ptdesc(pmd_t *pmd)
3024 {
> 3025 return page_ptdesc(pmd_page(*pmd));
3026 }
3027
--
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:[~2024-07-22 6:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22 6:23 [alexshi:mmunstable 42/42] include/linux/mm.h:3025:21: error: call to undeclared function 'pmd_page'; ISO C99 and later do not support implicit function declarations 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