cxlflash: Fix to avoid sizeof(bool)
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Wed, 21 Oct 2015 20:11:34 +0000 (15:11 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 30 Oct 2015 08:01:49 +0000 (17:01 +0900)
Using sizeof(bool) is considered poor form for various reasons and
sparse warns us of that. Correct by changing type from bool to u8.

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.c
drivers/scsi/cxlflash/superpipe.h

index 8ea018b41b4de901040be89d93dde7a4b1890cce..c75f3ef6a7fa4d5a9575c459d6661c4a6ea451a3 100644 (file)
@@ -737,7 +737,7 @@ static struct ctx_info *create_context(struct cxlflash_cfg *cfg,
        struct afu *afu = cfg->afu;
        struct ctx_info *ctxi = NULL;
        struct llun_info **lli = NULL;
-       bool *ws = NULL;
+       u8 *ws = NULL;
        struct sisl_rht_entry *rhte;
 
        ctxi = kzalloc(sizeof(*ctxi), GFP_KERNEL);
index fffb179a841334ac1fd39230b38ee087925ffc73..72d53cf57ea1bec7dcdec6b8555cdf083a97e491 100644 (file)
@@ -97,7 +97,7 @@ struct ctx_info {
        u32 rht_out;            /* Number of checked out RHT entries */
        u32 rht_perms;          /* User-defined permissions for RHT entries */
        struct llun_info **rht_lun;       /* Mapping of RHT entries to LUNs */
-       bool *rht_needs_ws;     /* User-desired write-same function per RHTE */
+       u8 *rht_needs_ws;       /* User-desired write-same function per RHTE */
 
        struct cxl_ioctl_start_work work;
        u64 ctxid;