inotify.c: make code static
PATCH 1/1 inotify.c: make code static
This patch makes needlessly global code static.
Signed-off-by Adrian Bunk <[email protected]>
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,
Quoted 3 lines · Adrian Bunk
This patch makes needlessly global code static.
Signed-off-by Adrian Bunk <[email protected]>
Thanks. I applied this to my inotify tree.
Robert Love