Skip to content

Commit

Permalink
staging: lustre: obdclass: fix sparse warnings about static declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Skvortsov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
AndreySV authored and gregkh committed Jul 24, 2014
1 parent 31adc05 commit 71b1fd9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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;

Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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];
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 71b1fd9

Please sign in to comment.