Skip to contentSkip to conversation

fs/notify/notification.c: make subsys_initcall static

PATCH Applied H Hartley Sweeten 2 participants 2 messages Jan 18, 2011 – Jan 19, 2011 Fsnotify: filesystem notification infrastructure

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/notify/notification.c: make subsys_initcall static

The symbol fsnotify_notification_init is a subsys_initcall and can be declared static.

Cc Eric Paris <[email protected]>
Cc Andreas Gruenbacher <[email protected]>

---

fs/notify/notification.c +1 -1
index f39260f..85ae08f 100644
@@ -447,7 +447,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);