Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information