[PATCH 6.1.y] KVM: arm64: silence -Wuninitialized-const-pointer warning

Greg KH gregkh at linuxfoundation.org
Fri Jul 25 01:58:05 PDT 2025


On Thu, Jul 24, 2025 at 06:15:28PM -0700, Justin Stitt wrote:
> A new warning in Clang 22 [1] complains that @clidr passed to
> get_clidr_el1() is an uninitialized const pointer. get_clidr_el1()
> doesn't really care since it casts away the const-ness anyways.

Is clang-22 somehow now a supported kernel for the 6.1.y tree?  Last I
looked, Linus's tree doesn't even build properly for it, so why worry
about this one just yet?

> Silence the warning by initializing the struct.

Why not fix the compiler not to do this instead?  We hate doing foolish
work-arounds for broken compilers.

thanks,

greg k-h



More information about the linux-arm-kernel mailing list