OSDN Git Service

/dev/mem: Use more consistent data types
authorThierry Reding <treding@nvidia.com>
Mon, 28 Jul 2014 15:20:33 +0000 (17:20 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 10 Nov 2014 14:59:21 +0000 (15:59 +0100)
commit4707a341b4af57c72c1573a89d303559cf7bcf88
treeadf5f6360dafaf60e00995326b92cf1664828662
parentdc01201476ec9d62e81c0ee181531bccd8b007ff
/dev/mem: Use more consistent data types

The xlate_dev_{kmem,mem}_ptr() functions take either a physical address
or a kernel virtual address, so data types should be phys_addr_t and
void *. They both return a kernel virtual address which is only ever
used in calls to copy_{from,to}_user(), so make variables that store it
void * rather than char * for consistency.

Also only define a weak unxlate_dev_mem_ptr() function if architectures
haven't overridden them in the asm/io.h header file.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/s390/include/asm/io.h
arch/s390/mm/maccess.c
arch/x86/include/asm/io.h
arch/x86/mm/ioremap.c
drivers/char/mem.c