Merge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / samples / markers / marker-example.c
index e90dc5d04392dcc0f10d6d480dd6a866cc54df0e..e9cd9c0bc84f573e4c4976f66667d90ceedda626 100644 (file)
@@ -30,7 +30,7 @@ static struct file_operations mark_ops = {
        .open = my_open,
 };
 
-static int example_init(void)
+static int __init example_init(void)
 {
        printk(KERN_ALERT "example init\n");
        pentry_example = proc_create("marker-example", 0444, NULL, &mark_ops);
@@ -39,7 +39,7 @@ static int example_init(void)
        return 0;
 }
 
-static void example_exit(void)
+static void __exit example_exit(void)
 {
        printk(KERN_ALERT "example exit\n");
        remove_proc_entry("marker-example", NULL);