[-mm patch] drivers/md/dm-hw-handler.c: fix compile warnings

From: Adrian Bunk
Date: Thu Feb 24 2005 - 06:18:05 EST


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@xxxxxxxxx>

--- 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/