Skip to content

Commit

Permalink
sysfs: Don't use enums in inline function declaration.
Browse files Browse the repository at this point in the history
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: Eric W. Biederman <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
ebiederm authored and gregkh committed May 21, 2010
1 parent b9d8b45 commit 27eabc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down

0 comments on commit 27eabc7

Please sign in to comment.