On Mon, Apr 07, 2025 at 08:49:41PM +0200, Rafael J. Wysocki wrote: > On Mon, Apr 7, 2025 at 8:47 PM Andy Shevchenko > <andriy.shevchenko@xxxxxxxxx> wrote: > > > > v6.15-rc1 (but seems older should also be problematic) fails to compile by > > Clang 19 with `make W=1`. > > > > CC drivers/acpi/acpica/nsaccess.o > > drivers/acpi/acpica/nsaccess.c:295:6: error: variable 'num_carats' set but not used [-Werror,-Wunused-but-set-variable] > > 295 | u32 num_carats; > > | ^ > > 1 error generated. > > > > I looked briefly in the code and I have no idea how to fix this, as probably > > __maybe_unused not an option for ACPICA. Hence this report. > > > > Note, the in-tree defconfig is in use: > > > > git checkout v6.15-rc1 > > make x86_64_defconfig > > make W=1 Since it's a clang, this should have also something like LLVM=1. > > should trigger it. -- With Best Regards, Andy Shevchenko