You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple tools show the following warning when used with clang 19:
In file included from /virtual/main.c:14:
In file included from include/uapi/linux/ptrace.h:183:
In file included from arch/x86/include/asm/ptrace.h:175:
In file included from arch/x86/include/asm/paravirt_types.h:12:
In file included from arch/x86/include/asm/nospec-branch.h:15:
arch/x86/include/asm/current.h:47:10: warning: multiple identical address spaces specified for type [-Wduplicate-decl-specifier]
47 | return this_cpu_read_const(const_pcpu_hot.current_task);
| ^
arch/x86/include/asm/percpu.h:577:36: note: expanded from macro 'this_cpu_read_const'
577 | #define this_cpu_read_const(pcp) __raw_cpu_read_const(pcp)
| ^
arch/x86/include/asm/percpu.h:163:35: note: expanded from macro '__raw_cpu_read_const'
163 | #define __raw_cpu_read_const(pcp) __raw_cpu_read(, , pcp)
| ^
arch/x86/include/asm/percpu.h:155:30: note: expanded from macro '__raw_cpu_read'
155 | *(qual __my_cpu_type(pcp) *)__my_cpu_ptr(&(pcp)); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
arch/x86/include/asm/percpu.h:94:40: note: expanded from macro '__my_cpu_type'
94 | #define __my_cpu_type(var) typeof(var) __percpu_seg_override
| ^
arch/x86/include/asm/percpu.h:45:32: note: expanded from macro '__percpu_seg_override'
45 | # define __percpu_seg_override __seg_gs
| ^
<built-in>:362:33: note: expanded from macro '__seg_gs'
362 | #define __seg_gs __attribute__((address_space(256)))
| ^
Multiple tools show the following warning when used with clang 19:
The tools otherwise still work as expected. AFAICT, the issue lies in the kernel headers. A patch was posted upstream but haven't been taken yet:
https://lore.kernel.org/all/20240526175655.227798-1-ubizjak@gmail.com/
Applying this patch does indeed get rid of the warning.
The text was updated successfully, but these errors were encountered: