IB/hfi1: Convert the macro AHG_HEADER_SET into an inline function
authorHarish Chegondi <harish.chegondi@intel.com>
Tue, 26 Sep 2017 14:00:11 +0000 (07:00 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 27 Sep 2017 15:34:13 +0000 (11:34 -0400)
commitd34ed562ac0af306037d0985fb1b7fad97f91f1e
tree746cd6a8849c609e4e3fd49f331d91a102bff839
parente870b4a1f57afb7e913cb05609fd891aa00755a8
IB/hfi1: Convert the macro AHG_HEADER_SET into an inline function

AHG_HEADER_SET macro doesn't conform to the coding standards as it can
affect the control flow. Convert the macro AHG_HEADER_SET into an inline
function ahg_header_set().

Cc: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c
drivers/infiniband/hw/hfi1/user_sdma.h