]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf: Fix function pointer case
authorPeter Zijlstra <peterz@infradead.org>
Wed, 16 Nov 2022 21:40:17 +0000 (22:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 09:33:54 +0000 (11:33 +0200)
commit8fbd90ad0b1e70bce5e970fe757afc470cccd726
tree7bc979f2107652b8b4d025f2cb267656a0fd0640
parenta7f178f8439e939efdd12d190783eb0fabf5990d
perf: Fix function pointer case

commit 1af6239d1d3e61d33fd2f0ba53d3d1a67cc50574 upstream.

With the advent of CFI it is no longer acceptible to cast function
pointers.

The robot complains thusly:

  kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Cixi Geng <cixi.geng1@unisoc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/events/core.c