Re: [PATCH] perf/x86/uncore: clean up const mismatch
From: Peter Zijlstra
Date: Thu Dec 18 2025 - 03:56:15 EST
On Wed, Dec 17, 2025 at 01:42:41PM +0100, Greg Kroah-Hartman wrote:
> In some cmp functions, a const pointer is cast out to a non-const
> pointer by using container_of() which is not correct. Fix this up by
> properly marking the pointers as const, which preserves the correct
> type of the pointer passed into the functions.
How did you find this? My builds do not complain and all that.