OSDN Git Service

powerpc/mce: Make symbol 'mce_ue_event_work' static
authorLi Huafei <lihuafei1@huawei.com>
Thu, 8 Apr 2021 03:58:02 +0000 (11:58 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Apr 2021 13:04:13 +0000 (23:04 +1000)
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
arch/powerpc/kernel/mce.c

index 11f0cae..6aa6b1c 100644 (file)
@@ -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);