[-mm patch] inotify.c: make code static

From: Adrian Bunk
Date: Mon Jan 31 2005 - 07:45:08 EST


This patch makes needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/