diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-12 15:20:16 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-11-12 15:18:01 +0000 |
commit | 3d6d103538e73a5710ea66d95fa2b652bf6eab77 (patch) | |
tree | d5b694dc403891f981b70767ebea846b4153b77f /arch/arm64/kernel | |
parent | 2f34f173816c4d35b7bb225fed410585e55147fe (diff) | |
download | linux-3d6d103538e73a5710ea66d95fa2b652bf6eab77.tar.gz linux-3d6d103538e73a5710ea66d95fa2b652bf6eab77.tar.bz2 linux-3d6d103538e73a5710ea66d95fa2b652bf6eab77.zip |
arm64: mark cpus_have_hwcap as __maybe_unused
cpus_have_hwcap() is defined as a 'static' function an only used in
one place that is inside of an #ifdef, so we get a warning when
the only user is disabled:
arch/arm64/kernel/cpufeature.c:699:13: warning: 'cpus_have_hwcap' defined but not used [-Wunused-function]
This marks the function as __maybe_unused, so the compiler knows that
it can drop the function definition without warning about it.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 37b01d53ceef ("arm64/HWCAP: Use system wide safe values")
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/cpufeature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 504526fa8129..6ecb82481790 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -679,7 +679,7 @@ static void cap_set_hwcap(const struct arm64_cpu_capabilities *cap) } /* Check if we have a particular HWCAP enabled */ -static bool cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) +static bool __maybe_unused cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) { bool rc; |