Skip to contentSkip to conversation

exofs: fix sparse non-ANSI function warning

PATCH In review Randy Dunlap 2 participants 3 messages Jun 11, 2012 – Jun 12, 2012 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exofs: fix sparse non-ANSI function warning

From: Randy Dunlap <[email protected]>

Fix sparse non-ANSI function warning:

fs/exofs/sys.c:112:28: warning: non-ANSI function declaration of function 'exofs_sysfs_dbg_print'

---
 fs/exofs/sys.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/exofs/sys.c +1 -1
@@ -109,7 +109,7 @@ static struct kobj_type odev_ktype = {
 static struct kobj_type uuid_ktype = {
 };
 
-void exofs_sysfs_dbg_print()
+void exofs_sysfs_dbg_print(void)
 {
 #ifdef CONFIG_EXOFS_DEBUG
 	struct kobject *k_name, *k_tmp;
#1 lore raw
Quoted 6 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix sparse non-ANSI function warning:

fs/exofs/sys.c:112:28: warning: non-ANSI function declaration of function 'exofs_sysfs_dbg_print'

Thanks, will push for 3.6 merge window. Might take me a few days to push to linux-next

Boaz

Quoted 16 lines
---
 fs/exofs/sys.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/exofs/sys.c +1 -1
@@ -109,7 +109,7 @@ static struct kobj_type odev_ktype = {
 static struct kobj_type uuid_ktype = {
 };
 
-void exofs_sysfs_dbg_print()
+void exofs_sysfs_dbg_print(void)
 {
 #ifdef CONFIG_EXOFS_DEBUG
 	struct kobject *k_name, *k_tmp;
#2 lore raw
Quoted 4 lines · Boaz Harrosh
Quoted 2 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Quoted 9 lines
Quoted 4 lines

Fix sparse non-ANSI function warning:

fs/exofs/sys.c:112:28: warning: non-ANSI function declaration of function 'exofs_sysfs_dbg_print'

Thanks, will push for 3.6 merge window. Might take me a few days to push to linux-next

Linus already pushed this for -rc3, cool less work for me ;-)

Thanks guys
Boaz

Quoted 2 lines

Boaz