From af72d669a34282656a348da78528b3e331af8a6d Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 5 Dec 2009 23:14:03 -0200 Subject: [PATCH] Use init and exit marks. --- hello.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.20.1