cxlflash: Change rht_needs_ws from bool to u8
PATCH 6/29 cxlflash: Change rht_needs_ws from bool to u8
Fix sparse sizeof(bool) warning by changing type from bool to u8.
Signed-off-by Matthew R. Ochs <[email protected]>
Signed-off-by Manoj N. Kumar <[email protected]>
--- drivers/scsi/cxlflash/superpipe.c | 2 +- drivers/scsi/cxlflash/superpipe.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/cxlflash/superpipe.c +1 -1
@@ -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 );
drivers/scsi/cxlflash/superpipe.h +1 -1
@@ -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;
Signature · 1 line
2.1.0