Ioctl cmd value is unsigned, so change normalize_ioctl
Signed-off-by: Stephen Hemminger <[email protected]>
--- 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;