[-mm patch] make kernel/kmod.c:kmod_mk static

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

 



On Thu, Feb 15, 2007 at 05:14:08AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.20-rc6-mm3:
>...
> +gregkh-driver-driver-core-let-request_module-send-a-sys-modules-kmod-uevent.patch
>...
>  driver tree updates
>...


This patch makes the needlessly global struct kmod_mk static.

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

---
--- linux-2.6.20-mm2/kernel/kmod.c.old	2007-02-18 23:06:28.000000000 +0100
+++ linux-2.6.20-mm2/kernel/kmod.c	2007-02-18 23:06:35.000000000 +0100
@@ -48,7 +48,7 @@
 	modprobe_path is set via /proc/sys.
 */
 char modprobe_path[KMOD_PATH_LEN] = "/sbin/modprobe";
-struct module_kobject kmod_mk;
+static struct module_kobject kmod_mk;
 
 /**
  * request_module - try to load a kernel module

-
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