sound_kunit.c: error: address of array 'card->id' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
From: Naresh Kamboju
Date: Tue Apr 08 2025 - 08:51:45 EST
Regressions on x86_64 build allyesconfig with clang-20 failed on the
Linux next-20250408 tag.
First seen on the next-20250408.
Bad: next-20250408
Good: next-20250407
* x86, build
- build/clang-20-allyesconfig
Regression Analysis:
- New regression? Yes
- Reproducibility? Yes
Boot regression: x86_64 allyesconfig address of array 'card->id' will
always evaluate to 'true'
Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
## Boot log
sound/core/sound_kunit.c:271:31: error: address of array 'card->id'
will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
271 | kunit_info(test, "%s", card->id ? card->id : "(null)");
| ~~~~~~^~ ~
## Source
* Kernel version: 6.15.0-rc1
* Git tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
* Git sha: 7702d0130dc002bab2c3571ddb6ff68f82d99aea
* Git describe: next-20250408
* Project details:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250408/
## Test
* Test log: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250408/testrun/27937063/suite/build/test/clang-20-allyesconfig/log
* Test details:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250408/testrun/27937063/suite/build/test/clang-20-allyesconfig/details/
* Test history:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250408/testrun/27937063/suite/build/test/clang-20-allyesconfig/history/
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/2vQpM7f8SQvntzGG0Tdgxj2amGb/
* Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2vQpM7f8SQvntzGG0Tdgxj2amGb/config
* compiler: clang Debian clang version 20.1.2
(++20250330123306+5ba194972878-1~exp1~20250330003423.94)
## Steps to reproduce
- tuxmake --runtime podman --target-arch x86_64 --toolchain clang-20
--kconfig allyesconfig LLVM=1 LLVM_IAS=1
--
Linaro LKFT
https://lkft.linaro.org