]> Git Repo - linux.git/commit - drivers/scsi/3w-9xxx.c
scsi: 3w-sas: 3w-9xxx: Use unsigned char for cdb
authorNathan Chancellor <[email protected]>
Thu, 18 Oct 2018 21:55:41 +0000 (14:55 -0700)
committerMartin K. Petersen <[email protected]>
Wed, 24 Oct 2018 01:27:53 +0000 (21:27 -0400)
commit09968e5049b4b9a47413327c56f254aa2812bbc2
tree83027539e2551628115c7567dbe15b3719736d7f
parent1b171b1a29d68bcad1e44b0135a5155570efa3ea
scsi: 3w-sas: 3w-9xxx: Use unsigned char for cdb

Clang warns a few times:

drivers/scsi/3w-sas.c:386:11: warning: implicit conversion from 'int' to
'char' changes value from 128 to -128 [-Wconstant-conversion]
        cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */
               ~ ^~~~~~~~~~~~~~~~~~~~

Update cdb's type to unsigned char, which matches the type of the cdb
member in struct TW_Command_Apache.

Link: https://github.com/ClangBuiltLinux/linux/issues/158
Signed-off-by: Nathan Chancellor <[email protected]>
Acked-by: Adam Radford <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/3w-9xxx.c
drivers/scsi/3w-sas.c
This page took 0.058935 seconds and 4 git commands to generate.