aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>2015-10-21 16:11:43 -0400
committerJames Bottomley <JBottomley@Odin.com>2015-10-30 04:02:06 -0400
commita76df368beb31f55aca03c6cd34c272b86e49470 (patch)
tree32a15aeeb83f71913998a5393dcbb1248acafb5d
parente568e23f3c6d7bf60ce00a4e8f1331a5b38bbea0 (diff)
cxlflash: Fix context encode mask width
The context encode mask covers more than 32-bits, making it a long integer. This should be noted by appending the ULL width suffix to the mask. Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com> Reviewed-by: Brian King <brking@linux.vnet.ibm.com> Reviewed-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
-rw-r--r--drivers/scsi/cxlflash/superpipe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/cxlflash/superpipe.h b/drivers/scsi/cxlflash/superpipe.h
index 72d53cf57ea1..79470910d5be 100644
--- a/drivers/scsi/cxlflash/superpipe.h
+++ b/drivers/scsi/cxlflash/superpipe.h
@@ -87,7 +87,7 @@ enum ctx_ctrl {
87 CTX_CTRL_FILE = (1 << 5) 87 CTX_CTRL_FILE = (1 << 5)
88}; 88};
89 89
90#define ENCODE_CTXID(_ctx, _id) (((((u64)_ctx) & 0xFFFFFFFF0) << 28) | _id) 90#define ENCODE_CTXID(_ctx, _id) (((((u64)_ctx) & 0xFFFFFFFF0ULL) << 28) | _id)
91#define DECODE_CTXID(_val) (_val & 0xFFFFFFFF) 91#define DECODE_CTXID(_val) (_val & 0xFFFFFFFF)
92 92
93struct ctx_info { 93struct ctx_info {