Messages in this thread Patch in this message | | | Date | Thu, 24 Feb 2005 12:11:15 +0100 | From | Adrian Bunk <> | Subject | [-mm patch] drivers/md/dm-hw-handler.c: fix compile warnings |
| |
On Wed, Feb 23, 2005 at 01:42:33AM -0800, Andrew Morton wrote: >... > Changes since 2.6.11-rc3-mm1: >... > +device-mapper-multipath-hardware-handler.patch >... > More DM updates >...
This causes the following compile warnings:
<-- snip -->
... CC drivers/md/dm-hw-handler.o drivers/md/dm-hw-handler.c: In function `dm_scsi_err_handler': drivers/md/dm-hw-handler.c:154: warning: unused variable `sense_key' drivers/md/dm-hw-handler.c:154: warning: unused variable `asc' drivers/md/dm-hw-handler.c:154: warning: unused variable `ascq' ...
<-- snip -->
Trivial fix:
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.11-rc4-mm1-full/drivers/md/dm-hw-handler.c.old 2005-02-24 01:59:45.000000000 +0100 +++ linux-2.6.11-rc4-mm1-full/drivers/md/dm-hw-handler.c 2005-02-24 02:00:05.000000000 +0100 @@ -151,9 +151,9 @@ unsigned dm_scsi_err_handler(struct hw_handler *hwh, struct bio *bio) { +#if 0 int sense_key, asc, ascq; -#if 0 if (bio->bi_error & BIO_SENSE) { /* FIXME: This is just an initial guess. */ /* key / asc / ascq */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |