Re: [GIT PULL] string fixes for v6.15-rc1
From: Linus Torvalds
Date: Mon Apr 07 2025 - 15:29:52 EST
On Mon, 7 Apr 2025 at 10:37, Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> So would the following change be acceptable? I can draft up a commit
> message and send it along today if so.
Absoluterly. That's the right thing to do.
> +# Ensure clang does not transform certain loops into calls to wcslen() after
> +# https://github.com/llvm/llvm-project/commit/9694844d7e36fd5e01011ab56b64f27b867aa72d
> +KBUILD_CFLAGS-$(call clang-min-version, 210000) += -fno-builtin-wcslen
I think you could just use
KBUILD_CFLAGS += $(call cc-option, -fno-builtin-wcslen)
instead, and not use some version check?
Linus