Commit cf8ab8cf authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman

Staging: rtl8192e: Fix Sparse Warning for Static Declarations in rtllib_module.c

This patch fixes the following sparse warning in rtllib_module.c-

drivers/staging/rtl8192e/rtllib_module.c:240:12: warning: symbol 'rtllib_init' was not declared. Should it be static?
drivers/staging/rtl8192e/rtllib_module.c:260:13: warning: symbol 'rtllib_exit' was not declared. Should it be static?
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e0b1ca60
...@@ -237,7 +237,7 @@ static const struct file_operations fops = { ...@@ -237,7 +237,7 @@ static const struct file_operations fops = {
.release = single_release, .release = single_release,
}; };
int __init rtllib_init(void) static int __init rtllib_init(void)
{ {
struct proc_dir_entry *e; struct proc_dir_entry *e;
...@@ -257,7 +257,7 @@ int __init rtllib_init(void) ...@@ -257,7 +257,7 @@ int __init rtllib_init(void)
return 0; return 0;
} }
void __exit rtllib_exit(void) static void __exit rtllib_exit(void)
{ {
if (rtllib_proc) { if (rtllib_proc) {
remove_proc_entry("debug_level", rtllib_proc); remove_proc_entry("debug_level", rtllib_proc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment