Skip to content

Commit f6f1f48

Browse files
Li Huafeimpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7f262b4 commit f6f1f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/mce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static struct irq_work mce_ue_event_irq_work = {
4040
.func = machine_check_ue_irq_work,
4141
};
4242

43-
DECLARE_WORK(mce_ue_event_work, machine_process_ue_event);
43+
static DECLARE_WORK(mce_ue_event_work, machine_process_ue_event);
4444

4545
static BLOCKING_NOTIFIER_HEAD(mce_notifier_list);
4646

0 commit comments

Comments
 (0)