aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/pgtable.h3
-rw-r--r--arch/alpha/kernel/osf_sys.c15
-rw-r--r--arch/alpha/kernel/pci-sysfs.c1
3 files changed, 8 insertions, 11 deletions
diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h
index 81a4342d5a3f..d8f9b7e89234 100644
--- a/arch/alpha/include/asm/pgtable.h
+++ b/arch/alpha/include/asm/pgtable.h
@@ -354,9 +354,6 @@ extern inline pte_t mk_swap_pte(unsigned long type, unsigned long offset)
354#define kern_addr_valid(addr) (1) 354#define kern_addr_valid(addr) (1)
355#endif 355#endif
356 356
357#define io_remap_pfn_range(vma, start, pfn, size, prot) \
358 remap_pfn_range(vma, start, pfn, size, prot)
359
360#define pte_ERROR(e) \ 357#define pte_ERROR(e) \
361 printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 358 printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e))
362#define pmd_ERROR(e) \ 359#define pmd_ERROR(e) \
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index b9e37ad6fa19..1402fcc11c2c 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -96,6 +96,7 @@ struct osf_dirent {
96}; 96};
97 97
98struct osf_dirent_callback { 98struct osf_dirent_callback {
99 struct dir_context ctx;
99 struct osf_dirent __user *dirent; 100 struct osf_dirent __user *dirent;
100 long __user *basep; 101 long __user *basep;
101 unsigned int count; 102 unsigned int count;
@@ -146,17 +147,17 @@ SYSCALL_DEFINE4(osf_getdirentries, unsigned int, fd,
146{ 147{
147 int error; 148 int error;
148 struct fd arg = fdget(fd); 149 struct fd arg = fdget(fd);
149 struct osf_dirent_callback buf; 150 struct osf_dirent_callback buf = {
151 .ctx.actor = osf_filldir,
152 .dirent = dirent,
153 .basep = basep,
154 .count = count
155 };
150 156
151 if (!arg.file) 157 if (!arg.file)
152 return -EBADF; 158 return -EBADF;
153 159
154 buf.dirent = dirent; 160 error = iterate_dir(arg.file, &buf.ctx);
155 buf.basep = basep;
156 buf.count = count;
157 buf.error = 0;
158
159 error = vfs_readdir(arg.file, osf_filldir, &buf);
160 if (error >= 0) 161 if (error >= 0)
161 error = buf.error; 162 error = buf.error;
162 if (count != buf.count) 163 if (count != buf.count)
diff --git a/arch/alpha/kernel/pci-sysfs.c b/arch/alpha/kernel/pci-sysfs.c
index b51f7b4818cd..2b183b0d3207 100644
--- a/arch/alpha/kernel/pci-sysfs.c
+++ b/arch/alpha/kernel/pci-sysfs.c
@@ -26,7 +26,6 @@ static int hose_mmap_page_range(struct pci_controller *hose,
26 base = sparse ? hose->sparse_io_base : hose->dense_io_base; 26 base = sparse ? hose->sparse_io_base : hose->dense_io_base;
27 27
28 vma->vm_pgoff += base >> PAGE_SHIFT; 28 vma->vm_pgoff += base >> PAGE_SHIFT;
29 vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
30 29
31 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, 30 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
32 vma->vm_end - vma->vm_start, 31 vma->vm_end - vma->vm_start,