* [akpm-mm:mm-new 160/175] mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' @ 2025-07-18 21:28 kernel test robot 2025-07-20 0:04 ` Andrew Morton 0 siblings, 1 reply; 3+ messages in thread From: kernel test robot @ 2025-07-18 21:28 UTC (permalink / raw) To: Sabyrzhan Tasbolatov Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new head: b0e07b9befa0558a80b281b7efcdb3717881c969 commit: 3d3c26eaf9f6e00779d27dd54d763c9bdc5dda3c [160/175] kasan: add shadow checks to wrappers and rename kasan_arch_is_ready config: arm64-randconfig-001-20250719 (https://download.01.org/0day-ci/archive/20250719/202507190528.W6ndwfyg-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190528.W6ndwfyg-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/202507190528.W6ndwfyg-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' 145 | void kasan_save_free_info(struct kmem_cache *cache, void *object) | ^ mm/kasan/kasan.h:403:20: note: previous definition is here 403 | static inline void kasan_save_free_info(struct kmem_cache *cache, void *object) | ^ 1 error generated. -- >> mm/kasan/sw_tags.c:125:6: error: redefinition of 'kasan_byte_accessible' 125 | bool kasan_byte_accessible(const void *addr) | ^ mm/kasan/kasan.h:536:20: note: previous definition is here 536 | static inline bool kasan_byte_accessible(const void *addr) | ^ 1 error generated. vim +/kasan_save_free_info +145 mm/kasan/tags.c ccf643e6dacf33 Andrey Konovalov 2022-09-05 144 6b07434980a192 Andrey Konovalov 2022-09-05 @145 void kasan_save_free_info(struct kmem_cache *cache, void *object) :::::: The code at line 145 was first introduced by commit :::::: 6b07434980a1926780cb5c5644fb198fb9c3997b kasan: pass tagged pointers to kasan_save_alloc/free_info :::::: TO: Andrey Konovalov <andreyknvl@google.com> :::::: CC: Andrew Morton <akpm@linux-foundation.org> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [akpm-mm:mm-new 160/175] mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' 2025-07-18 21:28 [akpm-mm:mm-new 160/175] mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' kernel test robot @ 2025-07-20 0:04 ` Andrew Morton 2025-07-20 7:45 ` Sabyrzhan Tasbolatov 0 siblings, 1 reply; 3+ messages in thread From: Andrew Morton @ 2025-07-20 0:04 UTC (permalink / raw) To: kernel test robot Cc: Sabyrzhan Tasbolatov, llvm, oe-kbuild-all, Linux Memory Management List On Sat, 19 Jul 2025 05:28:51 +0800 kernel test robot <lkp@intel.com> wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new > head: b0e07b9befa0558a80b281b7efcdb3717881c969 > commit: 3d3c26eaf9f6e00779d27dd54d763c9bdc5dda3c [160/175] kasan: add shadow checks to wrappers and rename kasan_arch_is_ready > config: arm64-randconfig-001-20250719 (https://download.01.org/0day-ci/archive/20250719/202507190528.W6ndwfyg-lkp@intel.com/config) > compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190528.W6ndwfyg-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/202507190528.W6ndwfyg-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' > 145 | void kasan_save_free_info(struct kmem_cache *cache, void *object) > | ^ > mm/kasan/kasan.h:403:20: note: previous definition is here > 403 | static inline void kasan_save_free_info(struct kmem_cache *cache, void *object) > | ^ > 1 error generated. I'll add this. It should repair the build, at least? --- a/mm/kasan/tags.c~kasan-add-shadow-checks-to-wrappers-and-rename-kasan_arch_is_ready-fix +++ a/mm/kasan/tags.c @@ -142,7 +142,7 @@ void kasan_save_alloc_info(struct kmem_c save_stack_info(cache, object, flags, false); } -void kasan_save_free_info(struct kmem_cache *cache, void *object) +void __kasan_save_free_info(struct kmem_cache *cache, void *object) { save_stack_info(cache, object, 0, true); } _ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [akpm-mm:mm-new 160/175] mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' 2025-07-20 0:04 ` Andrew Morton @ 2025-07-20 7:45 ` Sabyrzhan Tasbolatov 0 siblings, 0 replies; 3+ messages in thread From: Sabyrzhan Tasbolatov @ 2025-07-20 7:45 UTC (permalink / raw) To: Andrew Morton Cc: kernel test robot, llvm, oe-kbuild-all, Linux Memory Management List On Sun, Jul 20, 2025 at 5:04 AM Andrew Morton <akpm@linux-foundation.org> wrote: > > On Sat, 19 Jul 2025 05:28:51 +0800 kernel test robot <lkp@intel.com> wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new > > head: b0e07b9befa0558a80b281b7efcdb3717881c969 > > commit: 3d3c26eaf9f6e00779d27dd54d763c9bdc5dda3c [160/175] kasan: add shadow checks to wrappers and rename kasan_arch_is_ready > > config: arm64-randconfig-001-20250719 (https://download.01.org/0day-ci/archive/20250719/202507190528.W6ndwfyg-lkp@intel.com/config) > > compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190528.W6ndwfyg-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/202507190528.W6ndwfyg-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > >> mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' > > 145 | void kasan_save_free_info(struct kmem_cache *cache, void *object) > > | ^ > > mm/kasan/kasan.h:403:20: note: previous definition is here > > 403 | static inline void kasan_save_free_info(struct kmem_cache *cache, void *object) > > | ^ > > 1 error generated. > > I'll add this. It should repair the build, at least? Yes, thanks, it should. Sorry, I've missed that. > > --- a/mm/kasan/tags.c~kasan-add-shadow-checks-to-wrappers-and-rename-kasan_arch_is_ready-fix > +++ a/mm/kasan/tags.c > @@ -142,7 +142,7 @@ void kasan_save_alloc_info(struct kmem_c > save_stack_info(cache, object, flags, false); > } > > -void kasan_save_free_info(struct kmem_cache *cache, void *object) > +void __kasan_save_free_info(struct kmem_cache *cache, void *object) > { > save_stack_info(cache, object, 0, true); > } > _ > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-20 7:45 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-07-18 21:28 [akpm-mm:mm-new 160/175] mm/kasan/tags.c:145:6: error: redefinition of 'kasan_save_free_info' kernel test robot 2025-07-20 0:04 ` Andrew Morton 2025-07-20 7:45 ` Sabyrzhan Tasbolatov
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).