direct-io.hg

changeset 14347:94fcbb52bde2

Fix valid_phys_addr_range() prototype of xen /dev/mem.
The second argument is size_t, not size_t *.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kfraser@localhost.localdomain
date Mon Mar 12 11:03:07 2007 +0000 (2007-03-12)
parents e39964673c6f
children f9fbcc354daa
files linux-2.6-xen-sparse/drivers/xen/char/mem.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/char/mem.c	Mon Mar 12 11:00:44 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/char/mem.c	Mon Mar 12 11:03:07 2007 +0000
     1.3 @@ -27,7 +27,7 @@
     1.4  #include <asm/hypervisor.h>
     1.5  
     1.6  #ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE
     1.7 -static inline int valid_phys_addr_range(unsigned long addr, size_t *count)
     1.8 +static inline int valid_phys_addr_range(unsigned long addr, size_t count)
     1.9  {
    1.10  	return 1;
    1.11  }
    1.12 @@ -44,7 +44,7 @@ static ssize_t read_mem(struct file * fi
    1.13  	ssize_t read = 0, sz;
    1.14  	void __iomem *v;
    1.15  
    1.16 -	if (!valid_phys_addr_range(p, &count))
    1.17 +	if (!valid_phys_addr_range(p, count))
    1.18  		return -EFAULT;
    1.19  
    1.20  	while (count > 0) {
    1.21 @@ -95,7 +95,7 @@ static ssize_t write_mem(struct file * f
    1.22  	ssize_t written = 0, sz;
    1.23  	void __iomem *v;
    1.24  
    1.25 -	if (!valid_phys_addr_range(p, &count))
    1.26 +	if (!valid_phys_addr_range(p, count))
    1.27  		return -EFAULT;
    1.28  
    1.29  	while (count > 0) {