]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1cfba6a617c705f4da8fe2fb478abc1115d9e62
treef3042a750946c495e8fcbefa526a7c665ccdc197
parentcdb3c18ded62e878155ca16f1218ca311181e2b1
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>
include/linux/sysfs.h