Skip to contentSkip to conversation

fs/notify/notification.c: make subsys_initcall static

PATCH New H Hartley Sweeten 1 participant 1 message Jan 15, 2010 Fsnotify: filesystem notification infrastructure

lore
Share & tools
lore
#0 lore raw

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

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.

---

fs/notify/notification.c +1 -1
index b8bf53b..7f9a085 100644
@@ -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);