aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2013-10-17 10:45:29 +0000
committerIngo Molnar <[email protected]>2013-10-18 19:58:54 +0000
commitb0267507dfd0187fb7840a0ec461a510a7f041c5 (patch)
tree8d17053d2ac87eb4f53120dc8d83cc084819096a /net/lapb/lapb_timer.c
parentMerge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6 (diff)
downloadkernel-b0267507dfd0187fb7840a0ec461a510a7f041c5.tar.gz
kernel-b0267507dfd0187fb7840a0ec461a510a7f041c5.zip
mutex: Avoid gcc version dependent __builtin_constant_p() usage
Commit 040a0a37 ("mutex: Add support for wound/wait style locks") used "!__builtin_constant_p(p == NULL)" but gcc 3.x cannot handle such expression correctly, leading to boot failure when built with CONFIG_DEBUG_MUTEXES=y. Fix it by explicitly passing a bool which tells whether p != NULL or not. [ PeterZ: This is a sad patch, but provided it actually generates similar code I suppose its the best we can do bar whole sale deprecating gcc-3. ] Signed-off-by: Tetsuo Handa <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Acked-by: Maarten Lankhorst <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Linus Torvalds <[email protected]> Cc: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions