x86: i8259: make default_legacy_pic static
PATCH 1/1 x86: i8259: make default_legacy_pic static
Fix the following sparse warning:
arch/x86/kernel/i8259.c:410:19: warning: symbol 'default_legacy_pic' was not declared. Should it be static?
Reported-by Hulk Robot <[email protected]>
Signed-off-by Jason Yan <[email protected]>
--- arch/x86/kernel/i8259.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/i8259.c +1 -1
@@ -407,7 +407,7 @@ struct legacy_pic null_legacy_pic = { .make_irq = legacy_pic_uint_noop, }; -struct legacy_pic default_legacy_pic = { +static struct legacy_pic default_legacy_pic = { .nr_legacy_irqs =NR_IRQS_LEGACY , .chip = &i8259A_chip, .mask = mask_8259A_irq,
Signature · 1 line
2.17.2