diff options
author | Darren Hart <dvhart@linux.intel.com> | 2010-11-08 13:40:28 -0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-11-10 15:01:34 +0100 |
commit | 5bdb05f91b27b9361c4f348a4e05999f597df72e (patch) | |
tree | 23d68ff7cdd469a6138b95aff37e6990b395eae9 /fs/9p/xattr.c | |
parent | b41277dc7a18ee332d9e8078e978bacdf6e76157 (diff) | |
download | op-kernel-dev-5bdb05f91b27b9361c4f348a4e05999f597df72e.zip op-kernel-dev-5bdb05f91b27b9361c4f348a4e05999f597df72e.tar.gz |
futex: Add futex_q static initializer
The futex_q struct has grown considerably over the last couple years. I
believe it now merits a static initializer to avoid uninitialized data
errors (having spent more time than I care to admit debugging an uninitialized
q.bitset in an experimental new op code).
With the key initializer built in, several of the FUTEX_KEY_INIT calls can
be removed.
V2: use a static variable instead of an init macro.
use a C99 initializer and don't rely on variable ordering in the struct.
V3: make futex_q_init const
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: John Kacur <jkacur@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <1289252428-18383-1-git-send-email-dvhart@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/9p/xattr.c')
0 files changed, 0 insertions, 0 deletions