Skip to contentSkip to conversation

gfs2 lock function parameter

PATCH In review Randy Dunlap 2 participants 2 messages Nov 29, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2 lock function parameter

From: Randy Dunlap <[email protected]>

Fix function parameter typing:
fs/gfs2/glock.c:100: warning: function declaration isn't a prototype

---
 fs/gfs2/glock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/gfs2/glock.c +1 -1
@@ -96,7 +96,7 @@ static inline rwlock_t *gl_lock_addr(uns
 	return &gl_hash_locks[x & (GL_HASH_LOCK_SZ-1)];
 }
 #else /* not SMP, so no spinlocks required */
-static inline rwlock_t *gl_lock_addr(x)
+static inline rwlock_t *gl_lock_addr(unsigned int x)
 {
 	return NULL;
 }

---

#1 lore raw

Hi,

I've put this in the -nmw git tree. I'd pull it into the -fixes tree too, but its probably better to let Linus take whats there first and then I'll send this on later,

Steve.

Quoted 24 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix function parameter typing:
fs/gfs2/glock.c:100: warning: function declaration isn't a prototype

---
 fs/gfs2/glock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/gfs2/glock.c +1 -2
@@ -96,7 +96,7 @@ static inline rwlock_t *gl_lock_addr(uns
 	return &gl_hash_locks[x & (GL_HASH_LOCK_SZ-1)];
 }
 #else /* not SMP, so no spinlocks required */
-static inline rwlock_t *gl_lock_addr(x)
+static inline rwlock_t *gl_lock_addr(unsigned int x)
 {
 	return NULL;
 }
 
 
---