Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Eric W. Biederman <ebiederm@aristanetworks.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Eric W. Biederman and committed by
Greg Kroah-Hartman
27eabc7c b9d8b45e

+1 -1
+1 -1
include/linux/sysfs.h
··· 328 328 { 329 329 } 330 330 331 - static inline void sysfs_exit_ns(enum kobj_ns_type type, const void *tag) 331 + static inline void sysfs_exit_ns(int type, const void *tag) 332 332 { 333 333 } 334 334