summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndreas Haufler <andreas@haufler.info>2026-07-21 10:32:13 +0200
committerDaniel Lezcano <daniel.lezcano@kernel.org>2026-08-07 17:18:51 +0200
commitcb0ec27efac2aaf92393ad563a35fb6f00d0a6cd (patch)
treec0f4b312e3b537be31685000c6f8479076d92004 /tools/perf/scripts/python
parentfcbf9964b67a6d6704c50ed28daa24c3b164f01c (diff)
downloadlinux-cb0ec27efac2aaf92393ad563a35fb6f00d0a6cd.tar.gz
linux-cb0ec27efac2aaf92393ad563a35fb6f00d0a6cd.zip
tools/lib/thermal: Fix misplaced extern "C" closing brace
The public libthermal header opens the C++ 'extern "C" {' block inside the __LIBTHERMAL_H include guard, but places the closing brace after the guard has already ended: #endif /* __LIBTHERMAL_H */ #ifdef __cplusplus } #endif On a single inclusion the braces still balance, so the problem is invisible. On the second inclusion of the header in the same C++ translation unit the include guard skips the opening 'extern "C" {', while the closing '}' lives outside the guard and is emitted anyway. This leaves a stray '}' and breaks compilation for any C++ consumer that includes the header more than once. Move the closing block inside the include guard so both halves of the 'extern "C"' declaration are guarded consistently. Signed-off-by: Andreas Haufler <andreas@haufler.info> Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org> Link: https://patch.msgid.link/20260721083230.91246-1-andreas@haufler.info
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions