diff options
| author | Darren Hart <[email protected]> | 2010-11-08 21:40:28 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2010-11-10 14:01:34 +0000 |
| commit | 5bdb05f91b27b9361c4f348a4e05999f597df72e (patch) | |
| tree | 23d68ff7cdd469a6138b95aff37e6990b395eae9 /lib/dynamic_debug.c | |
| parent | futex: Replace fshared and clockrt with combined flags (diff) | |
| download | kernel-5bdb05f91b27b9361c4f348a4e05999f597df72e.tar.gz kernel-5bdb05f91b27b9361c4f348a4e05999f597df72e.zip | |
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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: John Kacur <[email protected]>
Cc: Ingo Molnar <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
