Skip to contentSkip to conversation

cfq-iosched.c: make some code static

PATCH New Adrian Bunk 1 participant 1 message Jan 29, 2005 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfq-iosched.c: make some code static

This patch makes some needlessly global code static.

drivers/block/cfq-iosched.c renamed from drivers/block/cfq-iosched.c.old +2 -2
@@ -1790,7 +1790,7 @@
 	.store	= cfq_attr_store,
 };
 
-struct kobj_type cfq_ktype = {
+static struct kobj_type cfq_ktype = {
 	.sysfs_ops	= &cfq_sysfs_ops,
 	.default_attrs	= default_attrs,
 };
@@ -1819,7 +1819,7 @@
 	.elevator_owner =	THIS_MODULE,
 };
 
-int cfq_init(void)
+static int cfq_init(void)
 {
 	int ret;