diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-21 19:04:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-21 19:04:12 -0400 |
commit | d363bc53ef4233e02d70791f10fe1f18c6c0f508 (patch) | |
tree | df7243b80511077f80664405e511478a988b2454 /fs | |
parent | 3e9b2bae8369661070622d05570cbcdfa01770e6 (diff) |
sysfs: group.c: move EXPORT_SYMBOL_GPL() to the proper location
This fixes up the coding style issue of incorrectly placing the
EXPORT_SYMBOL_GPL() macro, it should be right after the function itself,
not at the end of the file.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/sysfs/group.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c index 68baf8501552..c86a1729f537 100644 --- a/fs/sysfs/group.c +++ b/fs/sysfs/group.c | |||
@@ -129,6 +129,7 @@ int sysfs_create_group(struct kobject *kobj, | |||
129 | { | 129 | { |
130 | return internal_create_group(kobj, 0, grp); | 130 | return internal_create_group(kobj, 0, grp); |
131 | } | 131 | } |
132 | EXPORT_SYMBOL_GPL(sysfs_create_group); | ||
132 | 133 | ||
133 | /** | 134 | /** |
134 | * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups | 135 | * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups |
@@ -186,8 +187,7 @@ int sysfs_update_group(struct kobject *kobj, | |||
186 | { | 187 | { |
187 | return internal_create_group(kobj, 1, grp); | 188 | return internal_create_group(kobj, 1, grp); |
188 | } | 189 | } |
189 | 190 | EXPORT_SYMBOL_GPL(sysfs_update_group); | |
190 | |||
191 | 191 | ||
192 | void sysfs_remove_group(struct kobject * kobj, | 192 | void sysfs_remove_group(struct kobject * kobj, |
193 | const struct attribute_group * grp) | 193 | const struct attribute_group * grp) |
@@ -211,6 +211,7 @@ void sysfs_remove_group(struct kobject * kobj, | |||
211 | 211 | ||
212 | sysfs_put(sd); | 212 | sysfs_put(sd); |
213 | } | 213 | } |
214 | EXPORT_SYMBOL_GPL(sysfs_remove_group); | ||
214 | 215 | ||
215 | /** | 216 | /** |
216 | * sysfs_remove_groups - remove a list of groups | 217 | * sysfs_remove_groups - remove a list of groups |
@@ -327,7 +328,3 @@ void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name, | |||
327 | } | 328 | } |
328 | } | 329 | } |
329 | EXPORT_SYMBOL_GPL(sysfs_remove_link_from_group); | 330 | EXPORT_SYMBOL_GPL(sysfs_remove_link_from_group); |
330 | |||
331 | EXPORT_SYMBOL_GPL(sysfs_create_group); | ||
332 | EXPORT_SYMBOL_GPL(sysfs_update_group); | ||
333 | EXPORT_SYMBOL_GPL(sysfs_remove_group); | ||