aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDaniel Sneddon <[email protected]>2024-04-09 16:08:05 -0700
committerIngo Molnar <[email protected]>2024-04-10 07:05:04 +0200
commit04f4230e2f86a4e961ea5466eda3db8c1762004d (patch)
tree5aed553b5e224a9321ae5725ef5e9dc21041c150 /tools/perf/util/trace-event-scripting.c
parenta40d2525eaa6ba40ebd39ea2ed9598e13092a7dc (diff)
x86/bugs: Fix return type of spectre_bhi_state()
The definition of spectre_bhi_state() incorrectly returns a const char * const. This causes the a compiler warning when building with W=1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 2812 | static const char * const spectre_bhi_state(void) Remove the const qualifier from the pointer. Fixes: ec9404e40e8f ("x86/bhi: Add BHI mitigation knob") Reported-by: Sean Christopherson <[email protected]> Signed-off-by: Daniel Sneddon <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions