IB/rxe: Issue warnings once
authorBart Van Assche <[email protected]>
Tue, 10 Jan 2017 19:15:47 +0000 (11:15 -0800)
committerDoug Ledford <[email protected]>
Tue, 10 Jan 2017 21:52:47 +0000 (16:52 -0500)
commit43553b47c3124e7f4a9f115cff9db513b35a5e0a
tree408a1e2b7e1dfbd97e223df17ce51e58282bcffb
parent32404fb76408e873d79d0723fda3207b18d235ad
IB/rxe: Issue warnings once

It is strongly recommended to report kernel warnings once instead
of every time a condition is hit. Hence change WARN_ON() into
WARN_ON_ONCE() / BUILD_BUG_ON() as appropriate.

Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Reviewed-by: Andrew Boyer <[email protected]>
Cc: Moni Shoua <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/sw/rxe/rxe_comp.c
drivers/infiniband/sw/rxe/rxe_mr.c
drivers/infiniband/sw/rxe/rxe_resp.c