From: Stephen Hemminger Date: Tue, 15 Jun 2010 11:21:11 +0000 (+0200) Subject: floppy: fix signed/unsigned warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21af5448042a0962fb1df13a310bb363a8f6a8dc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git floppy: fix signed/unsigned warnings Ioctl cmd value is unsigned, so change normalize_ioctl Signed-off-by: Stephen Hemminger Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 975fac3669c5..fd7085aa999f 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -3337,7 +3337,7 @@ static int set_geometry(unsigned int cmd, struct floppy_struct *g, } /* 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;