]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ib_verbs: Use explicit if-else statements to avoid errors with do-while macros
authorBen Collins <ben.collins@ubuntu.com>
Thu, 14 Dec 2006 03:10:05 +0000 (22:10 -0500)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 14 Dec 2006 03:47:13 +0000 (19:47 -0800)
commitf762bf58874bda1894bceffa6228d020eb122b32
treeb70872f617961c6db06fb6e4f8f26fb53caba8a6
parent5403c18df5237d1f42af745a046893f54c014837
[PATCH] ib_verbs: Use explicit if-else statements to avoid errors with do-while macros

At least on PPC, the "op ? op : dma" construct causes a compile failure
because the dma_* is a do{}while(0) macro.

This turns all of them into proper if/else to avoid this problem.

Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/rdma/ib_verbs.h