]> git.baikalelectronics.ru Git - kernel.git/commit
uio: Pass pointers to virt_to_page(), not integers
authorBen Hutchings <ben@decadent.org.uk>
Sun, 27 Oct 2013 21:53:40 +0000 (21:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 23:51:57 +0000 (16:51 -0700)
commit4ccb54177d34f38c54595a2acf61ae7ca6624679
treed50409fad508cefafd39d62fc0b4beb519810bc5
parent47c4d31639a8f9d8ebe130607a292fe7ac413863
uio: Pass pointers to virt_to_page(), not integers

Most architectures define virt_to_page() as a macro that casts its
argument such that an argument of type unsigned long will be accepted
without complaint.  However, the proper type is void *, and passing
unsigned long results in a warning on MIPS.

Compile-tested only.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c