Skip to contentSkip to conversation

binfmt_misc: attribute used or unused

PATCH Anton Blanchard 1 participant 1 message Apr 11, 2004

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

Hi,

Any idea why we have an attribute((unused)) here? I was going to convert it to __attribute_used__ so it handles gcc's schizophrenic behaviour but then realised it all looks bogus.

Anton

===== fs/binfmt_misc.c 1.24 vs edited =====

fs/binfmt_misc.c +1 -1
@@ -52,7 +52,7 @@
 	struct dentry *dentry;
 } Node;
 
-static rwlock_t entries_lock __attribute__((unused)) = RW_LOCK_UNLOCKED;
+static rwlock_t entries_lock = RW_LOCK_UNLOCKED;
 static struct vfsmount *bm_mnt;
 static int entry_count;