]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sysfs: Don't use enums in inline function declaration.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 5 May 2010 21:54:00 +0000 (14:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:31 +0000 (09:37 -0700)
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 <ebiederm@aristanetworks.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/sysfs.h

index 47f1c95b5298a63cac6c26d23ddaeb624276fbd6..6903e9204032e962528ae13561b9bd48a762e10a 100644 (file)
@@ -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)
 {
 }