efi: make unexported efi_rci2_sysfs_init static
PATCH 1/1 efi: make unexported efi_rci2_sysfs_init static
The efi_rci2_sysfs_init() is not used outside of rci2-table.c so make it static to silence the following sparse warning:
drivers/firmware/efi/rci2-table.c:79:12: warning: symbol 'efi_rci2_sysfs_init' was not declared. Should it be static?
Signed-off-by Ben Dooks <[email protected]>
--- drivers/firmware/efi/rci2-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/efi/rci2-table.c +1 -1
@@ -76,7 +76,7 @@ static u16 checksum(void)return chksum; } -int __init efi_rci2_sysfs_init (void ) +static int __init efi_rci2_sysfs_init (void ) {struct kobject *tables_kobj;int ret = -ENOMEM ;
Signature · 1 line
2.23.0
Quoted 25 lines · Ben Dooks
The
efi_rci2_sysfs_init()is not used outside ofrci2-table.cso make it static to silence the following sparse warning:
drivers/firmware/efi/rci2-table.c:79:12: warning: symbol 'efi_rci2_sysfs_init' was not declared. Should it be static?Signed-off-by Ben Dooks <[email protected]>--- drivers/firmware/efi/rci2-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/efi/rci2-table.c +1
-2@@ -76,7 +76,7 @@ static u16 checksum(void)return chksum; } -int __init efi_rci2_sysfs_init (void ) +static int __init efi_rci2_sysfs_init (void ) {struct kobject *tables_kobj;int ret = -ENOMEM ; --
Quoted 2 lines
2.23.0
Thanks Ben.
Queued in efi/urgent