aboutsummaryrefslogtreecommitdiffstats
path: root/samples/markers
diff options
context:
space:
mode:
Diffstat (limited to 'samples/markers')
-rw-r--r--samples/markers/marker-example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/markers/marker-example.c b/samples/markers/marker-example.c
index e90dc5d04392..e9cd9c0bc84f 100644
--- a/samples/markers/marker-example.c
+++ b/samples/markers/marker-example.c
@@ -30,7 +30,7 @@ static struct file_operations mark_ops = {
30 .open = my_open, 30 .open = my_open,
31}; 31};
32 32
33static int example_init(void) 33static int __init example_init(void)
34{ 34{
35 printk(KERN_ALERT "example init\n"); 35 printk(KERN_ALERT "example init\n");
36 pentry_example = proc_create("marker-example", 0444, NULL, &mark_ops); 36 pentry_example = proc_create("marker-example", 0444, NULL, &mark_ops);
@@ -39,7 +39,7 @@ static int example_init(void)
39 return 0; 39 return 0;
40} 40}
41 41
42static void example_exit(void) 42static void __exit example_exit(void)
43{ 43{
44 printk(KERN_ALERT "example exit\n"); 44 printk(KERN_ALERT "example exit\n");
45 remove_proc_entry("marker-example", NULL); 45 remove_proc_entry("marker-example", NULL);