Skip to contentSkip to conversation

powerpc/mce: Make symbol 'mce_ue_event_work' static

PATCH Applied Li Huafei 2 participants 2 messages Apr 8, 2021 – Apr 19, 2021 PowerPC

lore
Share & tools
lore

Li Huafei

author
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/kernel/mce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/mce.c +1 -1
index 11f0cae086ed..6aa6b1cda1ed 100644
@@ -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);
 
Signature · 1 line
2.17.1