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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Wednesday, May 5, 2010 - 2:54 pm

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>
---
 include/linux/sysfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index e58ca1c..17cbeb7 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -318,7 +318,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)
 {
 }
 
-- 
1.6.6.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for April 30, Stephen Rothwell, (Thu Apr 29, 11:35 pm)
Re: linux-next: Tree for April 30 (CONFIG_SYSFS=n), Randy Dunlap, (Fri Apr 30, 10:50 am)
Re: linux-next: Tree for April 30, Frederic Weisbecker, (Fri Apr 30, 12:27 pm)
Re: linux-next: Tree for April 30, Stephen Rothwell, (Mon May 3, 12:29 am)
Re: linux-next: Tree for April 30 (CONFIG_SYSFS=n), Randy Dunlap, (Wed May 5, 9:17 am)
Re: linux-next: Tree for April 30 (CONFIG_SYSFS=n), Eric W. Biederman, (Wed May 5, 2:35 pm)
[PATCH] sysfs: Don't use enums in inline function declaration., Eric W. Biederman, (Wed May 5, 2:54 pm)