target: Remove the unused function transport_lba_64_ext()
Subsystems (2)
PATCH 1/1 target: Remove the unused function transport_lba_64_ext()
The function transport_lba_64_ext() is defined in the target_core_sbc.c file, but not called elsewhere, so remove this unused function.
drivers/target/target_core_sbc.c:276:34: warning: unused function 'transport_lba_64_ext'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/target/target_core_sbc.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/target/target_core_sbc.c +0 -8
@@ -270,14 +270,6 @@ static inline unsigned long long transport_lba_64(unsigned char *cdb)return get_unaligned_be64 (&cdb[2 ]); } -/* -* For VARIABLE_LENGTH_CDB w/ 32 byte extended CDBs -*/ -static inline unsigned long long transport_lba_64_ext (unsigned char *cdb) -{ -return get_unaligned_be64 (&cdb[12 ]); -} -static sense_reason_t sbc_setup_write_same (struct se_cmd *cmd,unsigned char flags,struct sbc_ops *ops) {
Signature · 1 line
2.20.1.7.g153144c
Martin K. Petersen
AppliedQuoted 6 lines · Jiapeng Chong
The function
transport_lba_64_ext()is defined in thetarget_core_sbc.cfile, but not called elsewhere, so remove this unused function.
drivers/target/target_core_sbc.c:276:34: warning: unused function 'transport_lba_64_ext'.
Applied to 6.2/scsi-queue, thanks!
[1/1] target: Remove the unused function transport_lba_64_ext()
https://git.kernel.org/mkp/scsi/c/621a323c3a7e
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering