提交 9871728b 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] kernel/params.c: make param_array() static

param_array() in kernel/params.c can now become static.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 8d3b33f6
...@@ -162,13 +162,6 @@ extern int param_array_get(char *buffer, struct kernel_param *kp); ...@@ -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_set_copystring(const char *val, struct kernel_param *kp);
extern int param_get_string(char *buffer, 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 */ /* for exporting parameters in /sys/parameters */
struct module; struct module;
......
...@@ -265,12 +265,12 @@ int param_get_invbool(char *buffer, struct kernel_param *kp) ...@@ -265,12 +265,12 @@ int param_get_invbool(char *buffer, struct kernel_param *kp)
} }
/* We cheat here and temporarily mangle the string. */ /* We cheat here and temporarily mangle the string. */
int param_array(const char *name, static int param_array(const char *name,
const char *val, const char *val,
unsigned int min, unsigned int max, unsigned int min, unsigned int max,
void *elem, int elemsize, void *elem, int elemsize,
int (*set)(const char *, struct kernel_param *kp), int (*set)(const char *, struct kernel_param *kp),
int *num) int *num)
{ {
int ret; int ret;
struct kernel_param kp; struct kernel_param kp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册