diff options
author | Uros Bizjak <[email protected]> | 2024-08-19 09:41:15 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2024-10-25 10:01:50 +0200 |
commit | f730fd535fc51573f982fad629f2fc6b4a0cde2f (patch) | |
tree | 08b041bd0c250ac66b7d0d5299f0ad1398db2143 /tools/perf/scripts/python/syscall-counts.py | |
parent | d12b802f183667d4c28589314c99c380a458d57e (diff) |
cleanup: Remove address space of returned pointer
Guard functions in local_lock.h are defined using DEFINE_GUARD() and
DEFINE_LOCK_GUARD_1() macros having lock type defined as pointer in
the percpu address space. The functions, defined by these macros
return value in generic address space, causing:
cleanup.h:157:18: error: return from pointer to non-enclosed address space
and
cleanup.h:214:18: error: return from pointer to non-enclosed address space
when strict percpu checks are enabled.
Add explicit casts to remove address space of the returned pointer.
Found by GCC's named address space checks.
Fixes: e4ab322fbaaa ("cleanup: Add conditional guard support")
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions