[openeuler:openEuler-1.0-LTS 1341/1341] mm/sparse.o: warning: objtool: missing symbol for section .init.text
From: kernel test robot
Date: Fri Dec 20 2024 - 16:38:33 EST
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 02951ceaa6d546dfa0f741f52f6d47e0fb0ac7b4
commit: 2a3cb8baef71e4dad4a6ec17f5f0db9e05f46a01 [1341/1341] mm/sparse: delete old sparse_init and enable new one
config: x86_64-buildonly-randconfig-006-20241220 (https://download.01.org/0day-ci/archive/20241221/202412210532.I31r9MaS-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241221/202412210532.I31r9MaS-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412210532.I31r9MaS-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
mm/sparse.c: In function 'sparse_init_nid':
mm/sparse.c:199:27: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
199 | ((section_nr >= 0) && \
| ^~
mm/sparse.c:461:9: note: in expansion of macro 'for_each_present_section_nr'
461 | for_each_present_section_nr(pnum_begin, pnum) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/sparse.c:199:27: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
199 | ((section_nr >= 0) && \
| ^~
mm/sparse.c:480:9: note: in expansion of macro 'for_each_present_section_nr'
480 | for_each_present_section_nr(pnum_begin, pnum) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/sparse.c: In function 'sparse_init':
mm/sparse.c:199:27: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
199 | ((section_nr >= 0) && \
| ^~
mm/sparse.c:503:9: note: in expansion of macro 'for_each_present_section_nr'
503 | for_each_present_section_nr(pnum_begin + 1, pnum_end) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/sparse.o: warning: objtool: missing symbol for section .init.text
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki