Re: [PATCH v1] driver core: Silence 'unused-but-set variable' warning

From: Ammar Faizi
Date: Fri Dec 23 2022 - 10:32:10 EST


On 12/23/22 10:02 PM, Greg Kroah-Hartman wrote:
Ick, no, that's horrid and is NOT ok for kernel code, sorry.

Please fix the compiler, this is not a "fix" in any sense of the word
and is not going to work at all for kernel code.

Agree.

Sorry for the noise. It turned out I messed up my clang compiler flags.
I forgot to do a "git reset --hard" before recompiling.

This has nothing todo with the upstream kernel.

--
Ammar Faizi