summaryrefslogtreecommitdiff
path: root/drivers/w1/w1.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 14:59:41 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 16:05:35 (GMT)
commitaeeae86859f4319de0a4946b44771d9926eeed54 (patch)
tree2a9520601922a930259a18b666dc2281e8262def /drivers/w1/w1.h
parent985c0cd3f75b5a546ceab002e36b4263f2f7d2c3 (diff)
downloadlinux-aeeae86859f4319de0a4946b44771d9926eeed54.tar.xz
Fix build errors due to CONFIG_BRANCH_TRACER=y
The code that enables branch tracing for all (non-constant) branches plays games with the preprocessor and #define's the C 'if ()' construct to do tracing. That's all fine, but it fails for some unusual but valid C code that is sometimes used in macros, notably by the intel-iommu code: if (i=drhd->iommu, drhd->ignored) .. because now the preprocessor complains about multiple arguments to the 'if' macro. So make the macro expansion of this particularly horrid trick use varargs, and handle the case of comma-expressions in if-statements. Use another macro to do it cleanly in just one place. This replaces a patch by David (and acked by Steven) that did this all inside that one already-too-horrid macro. Tested-by: Ingo Molnar <mingo@elte.hu> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/w1/w1.h')
0 files changed, 0 insertions, 0 deletions