summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLi Huafei <lihuafei1@huawei.com>2021-04-08 06:58:02 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-04-14 16:04:13 +0300
commitf6f1f48e8b3b242dfa684d6e1b930d239d87533a (patch)
tree7b43487ef968df445ca018934e6631a68aa76d51 /arch
parent7f262b4dcf7edf75097c3946e676d6c6d77fc599 (diff)
downloadlinux-f6f1f48e8b3b242dfa684d6e1b930d239d87533a.tar.xz
powerpc/mce: Make symbol 'mce_ue_event_work' static
The sparse tool complains as follows: arch/powerpc/kernel/mce.c:43:1: warning: symbol 'mce_ue_event_work' was not declared. Should it be static? This symbol is not used outside of mce.c, so this commit marks it static. Signed-off-by: Li Huafei <lihuafei1@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210408035802.31853-1-lihuafei1@huawei.com
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/mce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/mce.c b/arch/powerpc/kernel/mce.c
index 11f0cae086ed..6aa6b1cda1ed 100644
--- a/arch/powerpc/kernel/mce.c
+++ b/arch/powerpc/kernel/mce.c
@@ -40,7 +40,7 @@ static struct irq_work mce_ue_event_irq_work = {
.func = machine_check_ue_irq_work,
};
-DECLARE_WORK(mce_ue_event_work, machine_process_ue_event);
+static DECLARE_WORK(mce_ue_event_work, machine_process_ue_event);
static BLOCKING_NOTIFIER_HEAD(mce_notifier_list);