summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/qp.h
diff options
context:
space:
mode:
authorjubin.john@intel.com2016-01-12 00:30:52 +0100
committerDoug Ledford2016-03-01 16:36:19 +0100
commit349ac71ffad79281f3c0dc908cd4b6f7d7dbb477 (patch)
tree26b80feb083f0700e557eb7fe208701cda4e23c9 /drivers/staging/rdma/hfi1/qp.h
parentstaging/hfi1: set Gen3 half-swing for integrated devices (diff)
downloadkernel-qcow2-linux-349ac71ffad79281f3c0dc908cd4b6f7d7dbb477.tar.gz
kernel-qcow2-linux-349ac71ffad79281f3c0dc908cd4b6f7d7dbb477.tar.xz
kernel-qcow2-linux-349ac71ffad79281f3c0dc908cd4b6f7d7dbb477.zip
staging/hfi1: Use BIT macro
This patch fixes the checkpatch issue: CHECK: Prefer using the BIT macro Use of BIT macro for HDRQ_INCREMENT in chip.h causes a change in format specifier for error message in init.c in order to avoid a build warning. Reviewed-by: Dean Luick <dean.luick@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/qp.h')
-rw-r--r--drivers/staging/rdma/hfi1/qp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/qp.h b/drivers/staging/rdma/hfi1/qp.h
index 62a94c5d7dca..19b16a9a99ea 100644
--- a/drivers/staging/rdma/hfi1/qp.h
+++ b/drivers/staging/rdma/hfi1/qp.h
@@ -54,7 +54,7 @@
#include "verbs.h"
#include "sdma.h"
-#define QPN_MAX (1 << 24)
+#define QPN_MAX BIT(24)
#define QPNMAP_ENTRIES (QPN_MAX / PAGE_SIZE / BITS_PER_BYTE)
/*