Skip to contentSkip to conversation

inotify.c: make code static

PATCH In review Adrian Bunk 2 participants 2 messages Jan 31, 2005 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 inotify.c: make code static

This patch makes needlessly global code static.

drivers/char/inotify.c renamed from drivers/char/inotify.c.old +3 -3
@@ -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,