public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* binfmt_misc: attribute used or unused
@ 2004-04-11  3:48 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2004-04-11  3:48 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel


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 =====
--- 1.24/fs/binfmt_misc.c	Wed Feb 25 21:34:47 2004
+++ edited/fs/binfmt_misc.c	Sun Apr 11 13:42:02 2004
@@ -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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-11  3:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-11  3:48 binfmt_misc: attribute used or unused Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox