Skip to content

Commit b72347f

Browse files
committed
rxe: fix rxe compilation with newer kernels
Newer kernels have heder that conflicts with rxe.h: In file included from ../providers/rxe/rxe.h:42:0, from ../providers/rxe/rxe.c:57: /usr/include/rdma/rdma_user_rxe.h:156:8: error: redefinition of 'struct rxe_create_cq_resp' struct rxe_create_cq_resp { ^~~~~~~~~~~~~~~~~~ In file included from ../providers/rxe/rxe.c:56:0: ../providers/rxe/rxe-abi.h:51:8: note: originally defined here struct rxe_create_cq_resp { ^~~~~~~~~~~~~~~~~~ In file included from ../providers/rxe/rxe.h:42:0, from ../providers/rxe/rxe.c:57: /usr/include/rdma/rdma_user_rxe.h:160:8: error: redefinition of 'struct rxe_resize_cq_resp' Detect rxe compilation failures and in those cases, shadow the kernel header with the one in buildlib/fix-include Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
1 parent 572c2cf commit b72347f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

providers/rxe/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
# Shadow kernel headers to avoid multiple symbol definitions with rxe.h
3+
RDMA_DoFixup("${RXE_COMPILES}" "rdma/rdma_user_rxe.h")
4+
15
rdma_provider(rxe
26
rxe.c
37
)

0 commit comments

Comments
 (0)