mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
[PATCH] kernel/params.c: make param_array() static
param_array() in kernel/params.c can now become static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
8d3b33f67f
commit
9871728b75
2 changed files with 6 additions and 13 deletions
|
@ -162,13 +162,6 @@ extern int param_array_get(char *buffer, struct kernel_param *kp);
|
|||
extern int param_set_copystring(const char *val, struct kernel_param *kp);
|
||||
extern int param_get_string(char *buffer, struct kernel_param *kp);
|
||||
|
||||
int param_array(const char *name,
|
||||
const char *val,
|
||||
unsigned int min, unsigned int max,
|
||||
void *elem, int elemsize,
|
||||
int (*set)(const char *, struct kernel_param *kp),
|
||||
int *num);
|
||||
|
||||
/* for exporting parameters in /sys/parameters */
|
||||
|
||||
struct module;
|
||||
|
|
|
@ -265,12 +265,12 @@ int param_get_invbool(char *buffer, struct kernel_param *kp)
|
|||
}
|
||||
|
||||
/* We cheat here and temporarily mangle the string. */
|
||||
int param_array(const char *name,
|
||||
const char *val,
|
||||
unsigned int min, unsigned int max,
|
||||
void *elem, int elemsize,
|
||||
int (*set)(const char *, struct kernel_param *kp),
|
||||
int *num)
|
||||
static int param_array(const char *name,
|
||||
const char *val,
|
||||
unsigned int min, unsigned int max,
|
||||
void *elem, int elemsize,
|
||||
int (*set)(const char *, struct kernel_param *kp),
|
||||
int *num)
|
||||
{
|
||||
int ret;
|
||||
struct kernel_param kp;
|
||||
|
|
Loading…
Reference in a new issue