Commit 3612e06b authored by David Rientjes's avatar David Rientjes Committed by Greg Kroah-Hartman

sysfs: small header file cleanup for SYSFS=n

Convert sysfs_remove_bin_file() to have a return type of 'void' for
!CONFIG_SYSFS configurations.  Also removes unnecessary colons from empty
void functions.
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Reviewed-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1429db83
...@@ -131,7 +131,6 @@ static inline int sysfs_create_dir(struct kobject *kobj) ...@@ -131,7 +131,6 @@ static inline int sysfs_create_dir(struct kobject *kobj)
static inline void sysfs_remove_dir(struct kobject *kobj) static inline void sysfs_remove_dir(struct kobject *kobj)
{ {
;
} }
static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name) static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name)
...@@ -160,7 +159,6 @@ static inline int sysfs_chmod_file(struct kobject *kobj, ...@@ -160,7 +159,6 @@ static inline int sysfs_chmod_file(struct kobject *kobj,
static inline void sysfs_remove_file(struct kobject *kobj, static inline void sysfs_remove_file(struct kobject *kobj,
const struct attribute *attr) const struct attribute *attr)
{ {
;
} }
static inline int sysfs_create_bin_file(struct kobject *kobj, static inline int sysfs_create_bin_file(struct kobject *kobj,
...@@ -169,10 +167,9 @@ static inline int sysfs_create_bin_file(struct kobject *kobj, ...@@ -169,10 +167,9 @@ static inline int sysfs_create_bin_file(struct kobject *kobj,
return 0; return 0;
} }
static inline int sysfs_remove_bin_file(struct kobject *kobj, static inline void sysfs_remove_bin_file(struct kobject *kobj,
struct bin_attribute *attr) struct bin_attribute *attr)
{ {
return 0;
} }
static inline int sysfs_create_link(struct kobject *kobj, static inline int sysfs_create_link(struct kobject *kobj,
...@@ -183,7 +180,6 @@ static inline int sysfs_create_link(struct kobject *kobj, ...@@ -183,7 +180,6 @@ static inline int sysfs_create_link(struct kobject *kobj,
static inline void sysfs_remove_link(struct kobject *kobj, const char *name) static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
{ {
;
} }
static inline int sysfs_create_group(struct kobject *kobj, static inline int sysfs_create_group(struct kobject *kobj,
...@@ -195,7 +191,6 @@ static inline int sysfs_create_group(struct kobject *kobj, ...@@ -195,7 +191,6 @@ static inline int sysfs_create_group(struct kobject *kobj,
static inline void sysfs_remove_group(struct kobject *kobj, static inline void sysfs_remove_group(struct kobject *kobj,
const struct attribute_group *grp) const struct attribute_group *grp)
{ {
;
} }
static inline int sysfs_add_file_to_group(struct kobject *kobj, static inline int sysfs_add_file_to_group(struct kobject *kobj,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment