lkml.org 
[lkml]   [2010]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromH Hartley Sweeten <>
Subject[PATCH] fs/notify/notification.c: make subsys_initcall static
DateThu, 14 Jan 2010 19:56:35 -0700
fs/notify/notification.c: make subsys_initcall static

The function fsnotify_notification_init is a subsys_initcall
and does not need to be exported. Make the function
static.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---
diff --git a/fs/notify/notification.c b/fs/notify/notification.c
index b8bf53b..7f9a085 100644
--- a/fs/notify/notification.c
+++ b/fs/notify/notification.c
@@ -407,7 +407,7 @@ struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask,
return event;
}

-__init int fsnotify_notification_init(void)
+static __init int fsnotify_notification_init(void)
{
fsnotify_event_cachep = KMEM_CACHE(fsnotify_event, SLAB_PANIC);
fsnotify_event_holder_cachep = KMEM_CACHE(fsnotify_event_holder, SLAB_PANIC);

\
 
 \ /
  Last update: 2010-01-15 03:59    [from the cache]
©2003-2010