[-mm patch] kernel/params.c: make param_array() static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 24, 2006 at 03:10:02AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.16-rc4-mm1:
>...
> +remove-module_parm.patch
>...
>  Current 2.6.16 queue.  Some of these are a bit questionable at this stage.
>...


param_array() in kernel/params.c can now become static.


Signed-off-by: Adrian Bunk <[email protected]>

---

 include/linux/moduleparam.h |    7 -------
 kernel/params.c             |   12 ++++++------
 2 files changed, 6 insertions(+), 13 deletions(-)

--- linux-2.6.16-rc4-mm2-full/include/linux/moduleparam.h.old	2006-02-25 04:39:11.000000000 +0100
+++ linux-2.6.16-rc4-mm2-full/include/linux/moduleparam.h	2006-02-25 04:40:01.000000000 +0100
@@ -162,13 +162,6 @@
 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;
--- linux-2.6.16-rc4-mm2-full/kernel/params.c.old	2006-02-25 04:40:07.000000000 +0100
+++ linux-2.6.16-rc4-mm2-full/kernel/params.c	2006-02-25 04:42:55.000000000 +0100
@@ -265,12 +265,12 @@
 }
 
 /* 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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux