projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
samples: mark {static|__init|__exit} for {init|exit} functions
[cascardo/linux.git]
/
samples
/
kobject
/
kset-example.c
diff --git
a/samples/kobject/kset-example.c
b/samples/kobject/kset-example.c
index
7395c0b
..
45b7d56
100644
(file)
--- a/
samples/kobject/kset-example.c
+++ b/
samples/kobject/kset-example.c
@@
-229,7
+229,7
@@
static void destroy_foo_obj(struct foo_obj *foo)
kobject_put(&foo->kobj);
}
kobject_put(&foo->kobj);
}
-static int example_init(void)
+static int
__init
example_init(void)
{
/*
* Create a kset with the name of "kset_example",
{
/*
* Create a kset with the name of "kset_example",
@@
-264,7
+264,7
@@
foo_error:
return -EINVAL;
}
return -EINVAL;
}
-static void example_exit(void)
+static void
__exit
example_exit(void)
{
destroy_foo_obj(baz_obj);
destroy_foo_obj(bar_obj);
{
destroy_foo_obj(baz_obj);
destroy_foo_obj(bar_obj);