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