X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fkernel%2Fsamples%2F01.hello%2F.git;a=blobdiff_plain;f=hello.c;fp=hello.c;h=327ee34e14bb604c94edca18c009d0c1175d5ab5;hp=dca8626061a9f9570d87dd1f3d00f0158085f2c7;hb=af72d669a34282656a348da78528b3e331af8a6d;hpb=35009a201c821efa0c15e8305fe8df11cb9d1324 diff --git a/hello.c b/hello.c index dca8626..327ee34 100644 --- a/hello.c +++ b/hello.c @@ -15,7 +15,7 @@ MODULE_LICENSE("GPL"); #endif /* Our init function: returns 0 if successfull, an error code, otherwise. */ -static int hello_init(void) +static int __init hello_init(void) { /* printk is just like printf, but without floating point support. */ printk(KERN_ALERT "Hello, " SUBJECT "!\n"); @@ -23,7 +23,7 @@ static int hello_init(void) } /* Our exit function: static is good, so we do not pollute namespace. */ -static void hello_exit(void) +static void __exit hello_exit(void) { /* KERN_ALERT is a string macro prepended to our message. */ printk(KERN_ALERT "Goodbye, cruel " SUBJECT "!\n");