]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/x86/uncore: clean up const mismatch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 12:42:41 +0000 (13:42 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 6 Jan 2026 15:34:23 +0000 (16:34 +0100)
commit632d89b030f1dac8d91875cd56a08adededba349
tree0185d911b68202c6b9724b43eb0ba758acf5b449
parent01122b89361e565b3c88b9fbebe92dc5c7420cb7
perf/x86/uncore: clean up const mismatch

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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/2025121741-headstand-stratus-f5eb@gregkh
arch/x86/events/intel/uncore_discovery.c