block: Switch struct packet_command to use struct scsi_sense_hdr
authorKees Cook <keescook@chromium.org>
Thu, 2 Aug 2018 21:22:13 +0000 (15:22 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2018 21:22:13 +0000 (15:22 -0600)
commite7d0748dd71695b94f3a35c8bdc05226a7f3d919
tree77184457d67207941673fcb9b02648ef2fdbdc1e
parent8a39a0478355e9dfdd2f35038d07c4ebe3192441
block: Switch struct packet_command to use struct scsi_sense_hdr

There is a lot of needless struct request_sense usage in the CDROM
code. These can all be struct scsi_sense_hdr instead, to avoid any
confusion over their respective structure sizes. This patch is a lot
of noise changing "sense" to "sshdr", but the final code is more
readable to distinguish between "sense" meaning "struct request_sense"
and "sshdr" meaning "struct scsi_sense_hdr".

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/pktcdvd.c
drivers/cdrom/cdrom.c
drivers/ide/ide-cd.c
drivers/ide/ide-cd.h
drivers/ide/ide-cd_ioctl.c
drivers/scsi/sr_ioctl.c
include/linux/cdrom.h