From: Jeff Garzik Subject: [PATCH] SCSI: quiet device_reprobe warning Date: Wed, 27 Sep 2006 20:38:57 -0400 Message-ID: <20060928003857.GA23981@havoc.gtf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from havoc.gtf.org ([69.61.125.42]:58833 "EHLO havoc.gtf.org") by vger.kernel.org with ESMTP id S1031296AbWI1Ai6 (ORCPT ); Wed, 27 Sep 2006 20:38:58 -0400 Content-Disposition: inline Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org, Andrew Morton Cc: LKML 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 diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 895d212..b401c82 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -298,9 +298,9 @@ extern int scsi_execute_async(struct scs void (*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)