# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1173687872 -32400 # Node ID 78adff00d90398bbcf1a84cab04d90ed0675a2da # Parent 8a01644306ee024eb49a195a50662d04021aefa1 Fix valid_phys_addr_range() prototype of xen /dev/mem. The second argument is size_t, not size_t *. PATCHNAME: xen_dev_mem_valid_phys_addr_range Signed-off-by: Isaku Yamahata diff -r 8a01644306ee -r 78adff00d903 linux-2.6-xen-sparse/drivers/xen/char/mem.c --- a/linux-2.6-xen-sparse/drivers/xen/char/mem.c Sun Mar 11 22:42:22 2007 +0000 +++ b/linux-2.6-xen-sparse/drivers/xen/char/mem.c Mon Mar 12 17:24:32 2007 +0900 @@ -27,7 +27,7 @@ #include #ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE -static inline int valid_phys_addr_range(unsigned long addr, size_t *count) +static inline int valid_phys_addr_range(unsigned long addr, size_t count) { return 1; } @@ -44,7 +44,7 @@ static ssize_t read_mem(struct file * fi ssize_t read = 0, sz; void __iomem *v; - if (!valid_phys_addr_range(p, &count)) + if (!valid_phys_addr_range(p, count)) return -EFAULT; while (count > 0) { @@ -95,7 +95,7 @@ static ssize_t write_mem(struct file * f ssize_t written = 0, sz; void __iomem *v; - if (!valid_phys_addr_range(p, &count)) + if (!valid_phys_addr_range(p, count)) return -EFAULT; while (count > 0) {