mirror of https://gitee.com/openkylin/linux.git
floppy: fix signed/unsigned warnings
Ioctl cmd value is unsigned, so change normalize_ioctl Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
parent
be1c0fbfb4
commit
21af544804
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue