arch/x86/boot/compressed/ident_map_64.c:95:15: sparse: sparse: symbol 'kernel_add_identity_map_' was not declared. Should it be static?
kernel test robot
build bottree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git efi-x86-nx head: 8171142f3e4c96f6be75a6195de59d1607f1bd4b commit: 72df0ae166b896e7584f288dcdcc9fa63b360030 [12/24] x86/boot: Make kernel_add_identity_map() a pointer config: x86_64-randconfig-s022 (https://download.01.org/0day-ci/archive/20230309/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=72df0ae166b896e7584f288dcdcc9fa63b360030 git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git git fetch --no-tags ardb efi-x86-nx git checkout 72df0ae166b896e7584f288dcdcc9fa63b360030 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
arch/x86/boot/compressed/ident_map_64.c: note: in included file:
arch/x86/boot/compressed/../../mm/ident_map.c:102:7: sparse: sparse: symbol 'ident_split_large_pud' was not declared. Should it be static?
>> arch/x86/boot/compressed/ident_map_64.c:95:15: sparse: sparse: symbol 'kernel_add_identity_map_' was not declared. Should it be static?
arch/x86/boot/compressed/ident_map_64.c:179:23: sparse: sparse: memset with byte count of 237568 arch/x86/boot/compressed/ident_map_64.c:183:23: sparse: sparse: memset with byte count of 262144
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests