diff --git a/kernel/testmodule.c b/kernel/testmodule.c
index f147c1b03740242a5ad481515f9344196d3d41f8..4f85008be61c5ee5841709b223cad0300ea1888e 100644
--- a/kernel/testmodule.c
+++ b/kernel/testmodule.c
@@ -8,13 +8,15 @@
 
 void somefunction(void)
 {
-	printf("this is some function\n");
+	printk("this is some function\n");
 }
 
+void _module_exit(void)
+{
+	printk("cleaning up\n");
+}
 
-void _module_init(void);
-
-void _module_init(void)
+int _module_init(void)
 {
 	int i;
 
@@ -25,4 +27,5 @@ void _module_init(void)
 
 	printk("allocating: %p\n", page_alloc());
 
+	return 0;
 }