Re: [PATCH v8 14/15] mm/kasan: Introduce helpers for lazy MMU mode sanitizer

From: kernel test robot

Date: Wed Oct 07 2026 - 21:12:25 EST


Hi Alexander,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v7.3-rc6]
[cannot apply to akpm-mm/mm-everything s390/features kvms390/next next-20261006]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Alexander-Gordeev/mm-introduce-hw_pte_t-for-PTE-table-storage/20261007-134144
base: linus/master
patch link: https://lore.kernel.org/r/e42d9f02ec1f8478a50fce424b95d0e7ff6a359f.1791365932.git.agordeev%40linux.ibm.com
patch subject: [PATCH v8 14/15] mm/kasan: Introduce helpers for lazy MMU mode sanitizer
config: mips-maltaup_xpa_defconfig (https://download.01.org/0day-ci/archive/20261008/202610080827.zfszZlVj-lkp@xxxxxxxxx/config)
compiler: mips-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261008/202610080827.zfszZlVj-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/202610080827.zfszZlVj-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from include/asm-generic/hardirq.h:17,
from arch/mips/include/asm/hardirq.h:16,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from arch/mips/include/asm/highmem.h:24,
from arch/mips/include/asm/pgtable-32.h:22,
from arch/mips/include/asm/pgtable.h:14,
from include/linux/pgtable.h:6,
from include/linux/kasan.h:9,
from include/linux/slab.h:276,
from include/linux/fs.h:45,
from include/linux/compat.h:17,
from arch/mips/kernel/asm-offsets.c:14:
include/linux/irq.h: In function 'irq_free_generic_chip':
include/linux/irq.h:1211:9: error: implicit declaration of function 'kfree' [-Wimplicit-function-declaration]
1211 | kfree(gc);
| ^~~~~
include/linux/slab.h: At top level:
>> include/linux/slab.h:595:6: warning: conflicting types for 'kfree'; have 'void(const void *)'
595 | void kfree(const void *objp);
| ^~~~~
include/linux/irq.h:1211:9: note: previous implicit declaration of 'kfree' with type 'void(const void *)'
1211 | kfree(gc);
| ^~~~~
make[3]: *** [scripts/Makefile.build:185: arch/mips/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1425: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +595 include/linux/slab.h

7bd230a26648ac Suren Baghdasaryan 2024-03-21 594
72d67229f522e3 Kees Cook 2021-11-05 @595 void kfree(const void *objp);
af92793e52c3a9 Alexei Starovoitov 2025-09-08 596 void kfree_nolock(const void *objp);
72d67229f522e3 Kees Cook 2021-11-05 597 void kfree_sensitive(const void *objp);
05a940656e1eb2 Kees Cook 2022-09-23 598

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki