summaryrefslogtreecommitdiff
path: root/include/asm-generic/barrier.h
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2020-12-03 15:24:03 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2020-12-03 16:54:57 +0000
commit701f49065e68741a26752e6ae235c02bcafa2424 (patch)
treeae06d465f1c4e8e05e54f85538912d471cba6171 /include/asm-generic/barrier.h
parent1517c4facf2e66401394998dba1ee236fd261310 (diff)
arm64: mark __system_matches_cap as __maybe_unused
Now that the PAN toggling has been removed, the only user of __system_matches_cap() is has_generic_auth(), which is only built when CONFIG_ARM64_PTR_AUTH is selected, and Qian reports that this results in a build-time warning when CONFIG_ARM64_PTR_AUTH is not selected: | arch/arm64/kernel/cpufeature.c:2649:13: warning: '__system_matches_cap' defined but not used [-Wunused-function] | static bool __system_matches_cap(unsigned int n) | ^~~~~~~~~~~~~~~~~~~~ It's tricky to restructure things to prevent this, so let's mark __system_matches_cap() as __maybe_unused, as we used to do for the other user of __system_matches_cap() which we just removed. Reported-by: Qian Cai <qcai@redhat.com> Suggested-by: Qian Cai <qcai@redhat.com> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20201203152403.26100-1-mark.rutland@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/asm-generic/barrier.h')
0 files changed, 0 insertions, 0 deletions