Re: [tip:x86/urgent 1/1] arch/x86/coco/sev/core.c:2170:30: warning: variable 'dummy' set but not used

From: Borislav Petkov
Date: Tue Jul 01 2025 - 11:31:26 EST


On Tue, Jul 01, 2025 at 08:06:44AM -0700, Nathan Chancellor wrote:
> Citation needed. This reproduces with Clang 15 (earliest supported on
> x86 now), Clang 19, and GCC 15 for me. Were you missing W=1?

Nope.

$ git checkout -b test 4a35d2b5254af89595fd90dae9ee0c8f990a148d
Switched to a new branch 'test'
$ make CC=clang-19 HOSTCC=clang-19 W=1 arch/x86/coco/sev/core.o
...
LINK /mnt/kernel/kernel/linux/tools/objtool/objtool
CC arch/x86/coco/sev/core.o
$ clang-19 --version
Debian clang version 19.1.7 (1+b1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette