aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2025-09-20 16:17:50 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-22 08:03:32 +0200
commit98718e80af0bb1cd80f4bfe565dd60c57debad51 (patch)
treefe7986615e5ce822188d4b24a2c76476916b687f /tools/perf/util/trace-event-scripting.c
parentmisc: fastrpc: Fix dma_buf object leak in fastrpc_map_lookup (diff)
downloadlinux-98718e80af0bb1cd80f4bfe565dd60c57debad51.tar.gz
linux-98718e80af0bb1cd80f4bfe565dd60c57debad51.zip
mei: late_bind: Fix -Wincompatible-function-pointer-types-strict
When building with -Wincompatible-function-pointer-types-strict, a warning designed to catch kernel control flow integrity (kCFI) issues at build time, there is an instance in the new mei late binding code originating from the type parameter of mei_lb_push_payload(): drivers/misc/mei/mei_lb.c:211:18: error: incompatible function pointer types initializing 'int (*)(struct device *, u32, u32, const void *, size_t)' (aka 'int (*)(struct device *, unsigned int, unsigned int, const void *, unsigned long)') with an expression of type 'int (struct device *, enum intel_lb_type, u32, const void *, size_t)' (aka 'int (struct device *, enum intel_lb_type, unsigned int, const void *, unsigned long)') [-Werror,-Wincompatible-function-pointer-types-strict] 211 | .push_payload = mei_lb_push_payload, | ^~~~~~~~~~~~~~~~~~~ While 'unsigned int' and 'enum intel_lb_type' are ABI compatible, hence no regular warning from -Wincompatible-function-pointer-types, the mismatch will trigger a kCFI violation when mei_lb_push_payload() is called indirectly. Update the type parameter of mei_lb_push_payload() to be 'u32' to match the prototype in 'struct intel_lb_component_ops', clearing up the warning and kCFI violation. Fixes: 741eeabb7c78 ("mei: late_bind: add late binding component driver") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20250920-drm-xe-fix-wifpts-v1-1-c89b5357c7ba@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
rt "rebase: fix run_specific_rebase's use of "return" on FreeBSD"Kyle J. McKay1-10/+1 2014-04-17rebase: avoid non-function use of "return" on FreeBSDKyle J. McKay3-0/+45 2014-04-11test: fix t5560 on FreeBSDKyle J. McKay1-2/+2 2014-04-11test: fix t7001 cp to use POSIX optionsKyle J. McKay1-2/+2 2014-04-09Git 1.9.2v1.9.2Junio C Hamano3-2/+23 2014-04-09doc/http-backend: missing accent grave in literal mark-upThomas Ackermann1-1/+1 2014-04-09utf8.c: partially update to version 6.3Torsten Bögershausen1-5/+4 2014-04-08Update draft release notes to 1.9.2Junio C Hamano1-0/+9 2014-04-03Start preparing for 1.9.1Junio C Hamano2-1/+39 2014-04-02update-ref: fail create operation over stdin if ref already existsAman Gupta2-0/+12 2014-04-01t4212: loosen far-in-future test for AIXJeff King1-4/+2 2014-04-01date: recognize bogus FreeBSD gmtime outputJeff King4-0/+45 2014-03-31code and test: fix misuses of "nor"Justin Lebar12-16/+16 2014-03-31comments: fix misuses of "nor"Justin Lebar20-27/+26 2014-03-31contrib: fix misuses of "nor"Justin Lebar2-3/+3 2014-03-31Documentation: fix misuses of "nor"Justin Lebar25-44/+43 2014-03-31diff-no-index: correctly diagnose error return from diff_opt_parse()Junio C Hamano1-1/+1 2014-03-26fetch: handle overlaping refspecs on --pruneCarlos Martín Nieto2-7/+45 2014-03-26status: disable translation when --porcelain is usedMatthieu Moy2-5/+9 2014-03-18Git 1.9.1v1.9.1Junio C Hamano4-3/+63 2014-03-18test-lib.sh: do not "echo" caller-supplied stringsUwe Storbeck1-2/+2 2014-03-18run-command: mark run_hook_with_custom_index as deprecatedBenoit Pierre1-0/+1 2014-03-18merge hook tests: fix and update testsBenoit Pierre1-6/+21 2014-03-18merge: fix GIT_EDITOR override for commit hookBenoit Pierre1-1/+1 2014-03-18commit: fix patch hunk editing with "commit -p -m"Benoit Pierre9-32/+80