[PATCH 6/8] floppy: fix signed/unsigned warnings

From: Stephen Hemminger
Date: Wed Jun 09 2010 - 14:55:37 EST


Ioctl cmd value is unsigned, so change normalize_ioctl

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>

--- a/drivers/block/floppy.c 2010-06-08 23:08:29.136934127 -0700
+++ b/drivers/block/floppy.c 2010-06-08 23:08:32.697067816 -0700
@@ -3337,7 +3337,7 @@ static int set_geometry(unsigned int cmd
}

/* handle obsolete ioctl's */
-static int ioctl_table[] = {
+static unsigned int ioctl_table[] = {
FDCLRPRM,
FDSETPRM,
FDDEFPRM,
@@ -3365,7 +3365,7 @@ static int ioctl_table[] = {
FDTWADDLE
};

-static int normalize_ioctl(int *cmd, int *size)
+static int normalize_ioctl(unsigned int *cmd, int *size)
{
int i;



--
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/