diff options
| -rw-r--r-- | meta-skeleton/recipes-kernel/hello-mod/files/hello.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-skeleton/recipes-kernel/hello-mod/files/hello.c b/meta-skeleton/recipes-kernel/hello-mod/files/hello.c index f3c0d372eb..b68b0c348e 100644 --- a/meta-skeleton/recipes-kernel/hello-mod/files/hello.c +++ b/meta-skeleton/recipes-kernel/hello-mod/files/hello.c | |||
| @@ -19,15 +19,17 @@ | |||
| 19 | 19 | ||
| 20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
| 21 | 21 | ||
| 22 | int init_module(void) | 22 | static int __init hello_init(void) |
| 23 | { | 23 | { |
| 24 | printk("Hello World!\n"); | 24 | printk("Hello World!\n"); |
| 25 | return 0; | 25 | return 0; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | void cleanup_module(void) | 28 | static void __exit hello_exit(void) |
| 29 | { | 29 | { |
| 30 | printk("Goodbye Cruel World!\n"); | 30 | printk("Goodbye Cruel World!\n"); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | module_init(hello_init); | ||
| 34 | module_exit(hello_exit); | ||
| 33 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
