]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cxlflash: Fix context encode mask width
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Wed, 21 Oct 2015 20:11:43 +0000 (15:11 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 30 Oct 2015 08:02:06 +0000 (17:02 +0900)
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>
drivers/scsi/cxlflash/superpipe.h

index 72d53cf57ea1bec7dcdec6b8555cdf083a97e491..79470910d5bef81f9b3dfde408377c43b69e6330 100644 (file)
@@ -87,7 +87,7 @@ enum ctx_ctrl {
        CTX_CTRL_FILE           = (1 << 5)
 };
 
-#define ENCODE_CTXID(_ctx, _id)        (((((u64)_ctx) & 0xFFFFFFFF0) << 28) | _id)
+#define ENCODE_CTXID(_ctx, _id)        (((((u64)_ctx) & 0xFFFFFFFF0ULL) << 28) | _id)
 #define DECODE_CTXID(_val)     (_val & 0xFFFFFFFF)
 
 struct ctx_info {