This patch makes needlessly global code static.

Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>

--- linux-2.6.11-rc2-mm2-full/drivers/char/inotify.c.old        2005-01-31 
13:14:31.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/char/inotify.c    2005-01-31 
13:15:59.000000000 +0100
@@ -201,8 +201,8 @@
        return error;
 }
 
-struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie,
-                                          const char *filename)
+static struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie,
+                                                 const char *filename)
 {
        struct inotify_kernel_event *kevent;
 
@@ -1032,7 +1032,7 @@
        .ioctl          = inotify_ioctl,
 };
 
-struct miscdevice inotify_device = {
+static struct miscdevice inotify_device = {
        .minor  = MISC_DYNAMIC_MINOR,
        .name   = "inotify",
        .fops   = &inotify_fops,

-
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/

Reply via email to