From: Arnd Bergmann Date: Thu, 12 Nov 2015 14:20:16 +0000 (+0100) Subject: arm64: mark cpus_have_hwcap as __maybe_unused X-Git-Tag: v4.4-rc1~26^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d6d103538e73a5710ea66d95fa2b652bf6eab77;p=profile%2Fwearable%2Fplatform%2Fkernel%2Flinux-4.9-exynos9110.git 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 Fixes: 37b01d53ceef ("arm64/HWCAP: Use system wide safe values") Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 504526f..6ecb824 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;