summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-11 22:00:57 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-09-15 03:02:03 +0200
commitfd536998314a9dc54f384fa16287321edb81602a (patch)
treef597054c441c939264309b4b5c7e8b11e605e24f /drivers/scsi/sd.c
parentscsi: scsi_transport_fc: fix NULL pointer dereference in fc_bsg_job_timeout (diff)
downloadlinux-fd536998314a9dc54f384fa16287321edb81602a.tar.xz
linux-fd536998314a9dc54f384fa16287321edb81602a.zip
scsi: acornscsi: fix build error
A cleanup patch introduced a fatal typo from inbalanced curly braces: drivers/scsi/arm/acornscsi.c: In function 'acornscsi_host_reset': drivers/scsi/arm/acornscsi.c:2773:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] drivers/scsi/arm/acornscsi.c:2795:12: error: invalid storage class for function 'acornscsi_show_info' static int acornscsi_show_info(struct seq_file *m, struct Scsi_Host *instance) The same patch incorrectly changed the argument type of the reset handler, as shown by this warning: drivers/scsi/arm/acornscsi.c:2888:27: error: initialization of 'int (*)(struct scsi_cmnd *)' from incompatible pointer type 'int (*)(struct Scsi_Host *)' [-Werror=incompatible-pointer-types] .eh_host_reset_handler = acornscsi_host_reset, This removes one the extraneous opening brace and reverts the argument type change. [mkp: fixed checkpatch complaint] Fixes: 74fa80ee3fae ("scsi: acornscsi: move bus reset to host reset") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions