Skip to contentSkip to conversation

spufs: fix section conflicts

PATCH New Christoph Hellwig 1 participant 1 message Apr 6, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spufs: fix section conflicts

spufs_init/spufs_exit call various __init/__exit functions so they need to be marked __init/__exit aswell to not get section conflicts. Also move the module_init call to where it belongs.

arch/powerpc/platforms/cell/spufs/inode.c +4 -3
Index: linux-2.6/arch/powerpc/platforms/cell/spufs/inode.c
===================================================================
@@ -442,7 +442,7 @@
 	.kill_sb = kill_litter_super,
 };
 
-static int spufs_init(void)
+static int __init spufs_init(void)
 {
 	int ret;
 	ret = -ENOMEM;
@@ -470,15 +470,16 @@
 out:
 	return ret;
 }
-module_init(spufs_init);
 
-static void spufs_exit(void)
+static void __exit spufs_exit(void)
 {
 	spu_sched_exit();
 	unregister_spu_syscalls(&spufs_calls);
 	unregister_filesystem(&spufs_type);
 	kmem_cache_destroy(spufs_inode_cache);
 }
+
+module_init(spufs_init);
 module_exit(spufs_exit);
 
 MODULE_LICENSE("GPL");