提交 27eabc7c 编写于 作者: E Eric W. Biederman 提交者: Greg Kroah-Hartman

sysfs: Don't use enums in inline function declaration.

It appears gcc can't cope with using an enum that is only declared in
an inline function declaration, that doesn't even use the variable
that is so declared.

Avoid the silliness and replace the enum with an int, and make gcc
happy.
Signed-off-by: NEric W. Biederman <ebiederm@aristanetworks.com>
Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 b9d8b45e
...@@ -328,7 +328,7 @@ static inline void sysfs_put(struct sysfs_dirent *sd) ...@@ -328,7 +328,7 @@ static inline void sysfs_put(struct sysfs_dirent *sd)
{ {
} }
static inline void sysfs_exit_ns(enum kobj_ns_type type, const void *tag) static inline void sysfs_exit_ns(int type, const void *tag)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册