Re: [PATCH v5 12/15] qla2xxx: Cast explicitly to uint16_t / uint32_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/11/20 10:09 PM, Bart Van Assche wrote:
Casting a pointer to void * and relying on an implicit cast from void *
to uint16_t or uint32_t suppresses sparse warnings about endianness. Hence
cast explicitly to uint16_t and uint32_t. Additionally, remove superfluous
void * casts.

Cc: Arun Easi <aeasi@xxxxxxxxxxx>
Cc: Nilesh Javali <njavali@xxxxxxxxxxx>
Cc: Daniel Wagner <dwagner@xxxxxxx>
Cc: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx>
Cc: Hannes Reinecke <hare@xxxxxxx>
Cc: Martin Wilck <mwilck@xxxxxxxx>
Cc: Roman Bolshakov <r.bolshakov@xxxxxxxxx>
Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
  drivers/scsi/qla2xxx/qla_dbg.c    |  4 ++--
  drivers/scsi/qla2xxx/qla_init.c   | 26 +++++++++++++-------------
  drivers/scsi/qla2xxx/qla_mbx.c    |  6 +++---
  drivers/scsi/qla2xxx/qla_mid.c    |  4 ++--
  drivers/scsi/qla2xxx/qla_mr.c     |  4 ++--
  drivers/scsi/qla2xxx/qla_nvme.c   |  4 ++--
  drivers/scsi/qla2xxx/qla_nx2.c    |  4 ++--
  drivers/scsi/qla2xxx/qla_os.c     | 10 +++++-----
  drivers/scsi/qla2xxx/qla_sup.c    | 12 ++++++------
  drivers/scsi/qla2xxx/qla_target.c |  4 ++--
  10 files changed, 39 insertions(+), 39 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@xxxxxxx                               +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux