* [PATCH] arm64: Mark call_smc_arch_workaround_1 as __maybe_unused
@ 2020-03-10 23:25 Nathan Chancellor
2020-03-11 12:02 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Chancellor @ 2020-03-10 23:25 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon
Cc: linux-arm-kernel, linux-kernel, clang-built-linux, Nathan Chancellor
When building allnoconfig:
arch/arm64/kernel/cpu_errata.c:174:13: warning: unused function
'call_smc_arch_workaround_1' [-Wunused-function]
static void call_smc_arch_workaround_1(void)
^
1 warning generated.
Follow arch/arm and mark this function as __maybe_unused.
Fixes: 4db61fef16a1 ("arm64: kvm: Modernize __smccc_workaround_1_smc_start annotations")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
---
arch/arm64/kernel/cpu_errata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 6a2ca339741c..df56d2295d16 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -171,7 +171,7 @@ static void install_bp_hardening_cb(bp_hardening_cb_t fn,
#include <linux/arm-smccc.h>
-static void call_smc_arch_workaround_1(void)
+static void __maybe_unused call_smc_arch_workaround_1(void)
{
arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
}
--
2.26.0.rc1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] arm64: Mark call_smc_arch_workaround_1 as __maybe_unused
2020-03-10 23:25 [PATCH] arm64: Mark call_smc_arch_workaround_1 as __maybe_unused Nathan Chancellor
@ 2020-03-11 12:02 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2020-03-11 12:02 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Will Deacon, linux-arm-kernel, linux-kernel, clang-built-linux
On Tue, Mar 10, 2020 at 04:25:44PM -0700, Nathan Chancellor wrote:
> When building allnoconfig:
>
> arch/arm64/kernel/cpu_errata.c:174:13: warning: unused function
> 'call_smc_arch_workaround_1' [-Wunused-function]
> static void call_smc_arch_workaround_1(void)
> ^
> 1 warning generated.
>
> Follow arch/arm and mark this function as __maybe_unused.
>
> Fixes: 4db61fef16a1 ("arm64: kvm: Modernize __smccc_workaround_1_smc_start annotations")
> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Applied. Thanks.
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-11 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 23:25 [PATCH] arm64: Mark call_smc_arch_workaround_1 as __maybe_unused Nathan Chancellor
2020-03-11 12:02 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®