Re: mm/slub.c:1163:17: error: implicit declaration of function '__memset'; did you mean '__memset64'? [-Werror=implicit-function-declaration]

From: Andrew Morton
Date: Tue Jun 18 2024 - 14:43:04 EST


On Tue, 18 Jun 2024 16:09:38 +0530 Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> wrote:

> The Following build failures have been noticed on Powerpc, mips and arc on the
> Linux next-20240617 tag.
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>
> Regressions found on mips:
> - gcc-12-bcm47xx_defconfig
> - gcc-12-cavium_octeon_defconfig
> - gcc-8-malta_defconfig
> - gcc-12-malta_defconfig
> - gcc-12-allnoconfig
> - gcc-8-bcm47xx_defconfig
> - gcc-8-allnoconfig
> - gcc-8-cavium_octeon_defconfig
> - clang-18-allnoconfig
> - clang-nightly-allnoconfig
>
>
> Regressions found on arc:
> - gcc-9-allnoconfig
> - gcc-9-defconfig
>
> Regressions found on powerpc:
> - clang-18-maple_defconfig
> - gcc-13-ppc6xx_defconfig
> - clang-18-allnoconfig
> - clang-18-defconfig
> - clang-18-ppc64e_defconfig
> - gcc-13-defconfig
>
> Build log:
> --------
> mm/slub.c: In function 'init_object':
> mm/slub.c:1163:17: error: implicit declaration of function '__memset';
> did you mean '__memset64'? [-Werror=implicit-function-declaration]
> 1163 | __memset(p - s->red_left_pad, val, s->red_left_pad);
> | ^~~~~~~~
> | __memset64
>
> The commit id:
> ad5dde7da5f9 kmsan: support SLAB_POISON

Thanks. I was hoping for at least a temporary workaround for this, but
nothing is happening. I'll disable that patch for now.