diff options
author | Andrey Skvortsov <andrej.skvortzov@gmail.com> | 2014-07-24 11:52:43 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-24 15:03:34 -0700 |
commit | 71b1fd9ceadbc17dc1e5a1587959d158c0580773 (patch) | |
tree | 4a1e0423e6d5273b59f1ab6c91a040ad5dd368b1 /drivers/staging/lustre | |
parent | 31adc05f747d1b0669a1a3f7b6db89d592e9e653 (diff) | |
download | talos-obmc-linux-71b1fd9ceadbc17dc1e5a1587959d158c0580773.tar.gz talos-obmc-linux-71b1fd9ceadbc17dc1e5a1587959d158c0580773.zip |
staging: lustre: obdclass: fix sparse warnings about static declaration
Signed-off-by: Andrey Skvortsov <Andrej.Skvortzov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c index a4cd46b182d9..38a9b319355e 100644 --- a/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c +++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c @@ -52,7 +52,7 @@ #include "../../include/lprocfs_status.h" #ifdef CONFIG_SYSCTL -struct ctl_table_header *obd_table_header = NULL; +static struct ctl_table_header *obd_table_header; #endif @@ -79,8 +79,8 @@ enum { }; -int proc_set_timeout(struct ctl_table *table, int write, void __user *buffer, - size_t *lenp, loff_t *ppos) +static int proc_set_timeout(struct ctl_table *table, int write, + void __user *buffer, size_t *lenp, loff_t *ppos) { int rc; @@ -90,8 +90,8 @@ int proc_set_timeout(struct ctl_table *table, int write, void __user *buffer, return rc; } -int proc_memory_alloc(struct ctl_table *table, int write, void __user *buffer, - size_t *lenp, loff_t *ppos) +static int proc_memory_alloc(struct ctl_table *table, int write, + void __user *buffer, size_t *lenp, loff_t *ppos) { char buf[22]; int len; @@ -114,8 +114,8 @@ int proc_memory_alloc(struct ctl_table *table, int write, void __user *buffer, return 0; } -int proc_pages_alloc(struct ctl_table *table, int write, void __user *buffer, - size_t *lenp, loff_t *ppos) +static int proc_pages_alloc(struct ctl_table *table, int write, + void __user *buffer, size_t *lenp, loff_t *ppos) { char buf[22]; int len; @@ -138,7 +138,7 @@ int proc_pages_alloc(struct ctl_table *table, int write, void __user *buffer, return 0; } -int proc_mem_max(struct ctl_table *table, int write, void __user *buffer, +static int proc_mem_max(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { char buf[22]; @@ -162,8 +162,8 @@ int proc_mem_max(struct ctl_table *table, int write, void __user *buffer, return 0; } -int proc_pages_max(struct ctl_table *table, int write, void __user *buffer, - size_t *lenp, loff_t *ppos) +static int proc_pages_max(struct ctl_table *table, int write, + void __user *buffer, size_t *lenp, loff_t *ppos) { char buf[22]; int len; @@ -186,7 +186,7 @@ int proc_pages_max(struct ctl_table *table, int write, void __user *buffer, return 0; } -int proc_max_dirty_pages_in_mb(struct ctl_table *table, int write, +static int proc_max_dirty_pages_in_mb(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int rc = 0; @@ -228,7 +228,7 @@ int proc_max_dirty_pages_in_mb(struct ctl_table *table, int write, return rc; } -int proc_alloc_fail_rate(struct ctl_table *table, int write, +static int proc_alloc_fail_rate(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int rc = 0; |