diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-11-14 13:35:05 +1100 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-11-14 16:10:19 +1100 |
commit | 2899bda5e7fcf77b69727b03d0ab8acd9d25a29f (patch) | |
tree | 443ca775f7edcdaacb5e5267b4d90941d749c8d5 /include | |
parent | 0b8f5ea3aa4fd10aa0bacdef4863fb344246e585 (diff) | |
download | skiboot-2899bda5e7fcf77b69727b03d0ab8acd9d25a29f.zip skiboot-2899bda5e7fcf77b69727b03d0ab8acd9d25a29f.tar.gz skiboot-2899bda5e7fcf77b69727b03d0ab8acd9d25a29f.tar.bz2 |
include/cpu: Move __nomcount attribute
When compiling under clang we get the following warning:
include/cpu.h:156:15: warning: 'no_instrument_function' attribute only applies to functions [-Wignored-attributes]
extern struct __nomcount cpu_thread *find_cpu_by_pir_nomcount(u32 pir);
^
include/compiler.h:27:36: note: expanded from macro '__nomcount'
^
This seems to be due to the attribute being applied to the function's
return type rather than to the function itself, so move __nomcount to
along the line so it's not part of the return type.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cpu.h b/include/cpu.h index cda7864..5fdcc98 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -153,7 +153,7 @@ extern struct cpu_thread *find_cpu_by_server(u32 server_no); extern struct cpu_thread *find_cpu_by_pir(u32 pir); /* Used for lock internals to avoid re-entrancy */ -extern struct __nomcount cpu_thread *find_cpu_by_pir_nomcount(u32 pir); +extern struct cpu_thread __nomcount *find_cpu_by_pir_nomcount(u32 pir); extern struct dt_node *get_cpu_node(u32 pir); |