SCSI: quiet device_reprobe warning
PATCH 1/1 SCSI: quiet device_reprobe warning
This quiets a huge explosion of warnings that appeared with the __must_check patch, by shifting the burden to the caller.
Incidentally, there is only a single user of this function: mptsas
Signed-off-by Jeff Garzik <[email protected]>
include/scsi/scsi_device.h +2 -2
@@ -298,9 +298,9 @@ extern int scsi_execute_async(struct scsvoid (*done)(void *,char *,int ,int ), gfp_t gfp); -static inline void scsi_device_reprobe (struct scsi_device *sdev) +static inline int __must_check scsi_device_reprobe (struct scsi_device *sdev) { -device_reprobe (&sdev->sdev_gendev); +return device_reprobe (&sdev->sdev_gendev); }static inline unsigned int sdev_channel (struct scsi_device *sdev)