diff options
Diffstat (limited to 'arch/frv')
| -rw-r--r-- | arch/frv/include/asm/segment.h | 6 | ||||
| -rw-r--r-- | arch/frv/include/asm/uaccess.h | 2 | ||||
| -rw-r--r-- | arch/frv/kernel/irq.c | 1 | ||||
| -rw-r--r-- | arch/frv/kernel/sysctl.c | 1 | ||||
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-dma.c | 1 | ||||
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-frv.c | 6 | ||||
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-irq.c | 1 | ||||
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-vdk.c | 1 | ||||
| -rw-r--r-- | arch/frv/mm/dma-alloc.c | 1 | ||||
| -rw-r--r-- | arch/frv/mm/init.c | 1 | ||||
| -rw-r--r-- | arch/frv/mm/pgalloc.c | 2 |
11 files changed, 8 insertions, 15 deletions
diff --git a/arch/frv/include/asm/segment.h b/arch/frv/include/asm/segment.h index e3616a6f941d..a2320a4a0042 100644 --- a/arch/frv/include/asm/segment.h +++ b/arch/frv/include/asm/segment.h | |||
| @@ -21,12 +21,12 @@ typedef struct { | |||
| 21 | 21 | ||
| 22 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) | 22 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
| 23 | 23 | ||
| 24 | #define KERNEL_DS MAKE_MM_SEG(0xdfffffffUL) | ||
| 25 | |||
| 26 | #ifdef CONFIG_MMU | 24 | #ifdef CONFIG_MMU |
| 27 | #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1) | 25 | #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1) |
| 26 | #define KERNEL_DS MAKE_MM_SEG(0xdfffffffUL) | ||
| 28 | #else | 27 | #else |
| 29 | #define USER_DS KERNEL_DS | 28 | #define USER_DS MAKE_MM_SEG(memory_end) |
| 29 | #define KERNEL_DS MAKE_MM_SEG(0xe0000000UL) | ||
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #define get_ds() (KERNEL_DS) | 32 | #define get_ds() (KERNEL_DS) |
diff --git a/arch/frv/include/asm/uaccess.h b/arch/frv/include/asm/uaccess.h index 53650c958f41..0b67ec5b4414 100644 --- a/arch/frv/include/asm/uaccess.h +++ b/arch/frv/include/asm/uaccess.h | |||
| @@ -27,8 +27,6 @@ | |||
| 27 | #define VERIFY_READ 0 | 27 | #define VERIFY_READ 0 |
| 28 | #define VERIFY_WRITE 1 | 28 | #define VERIFY_WRITE 1 |
| 29 | 29 | ||
| 30 | #define __addr_ok(addr) ((unsigned long)(addr) < get_addr_limit()) | ||
| 31 | |||
| 32 | /* | 30 | /* |
| 33 | * check that a range of addresses falls within the current address limit | 31 | * check that a range of addresses falls within the current address limit |
| 34 | */ | 32 | */ |
diff --git a/arch/frv/kernel/irq.c b/arch/frv/kernel/irq.c index 62d1aba615dc..625136625a7f 100644 --- a/arch/frv/kernel/irq.c +++ b/arch/frv/kernel/irq.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include <linux/ioport.h> | 16 | #include <linux/ioport.h> |
| 17 | #include <linux/interrupt.h> | 17 | #include <linux/interrupt.h> |
| 18 | #include <linux/timex.h> | 18 | #include <linux/timex.h> |
| 19 | #include <linux/slab.h> | ||
| 20 | #include <linux/random.h> | 19 | #include <linux/random.h> |
| 21 | #include <linux/init.h> | 20 | #include <linux/init.h> |
| 22 | #include <linux/kernel_stat.h> | 21 | #include <linux/kernel_stat.h> |
diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c index 035516cb7a97..71abd1510a59 100644 --- a/arch/frv/kernel/sysctl.c +++ b/arch/frv/kernel/sysctl.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | * 2 of the License, or (at your option) any later version. | 9 | * 2 of the License, or (at your option) any later version. |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/slab.h> | ||
| 13 | #include <linux/sysctl.h> | 12 | #include <linux/sysctl.h> |
| 14 | #include <linux/proc_fs.h> | 13 | #include <linux/proc_fs.h> |
| 15 | #include <linux/init.h> | 14 | #include <linux/init.h> |
diff --git a/arch/frv/mb93090-mb00/pci-dma.c b/arch/frv/mb93090-mb00/pci-dma.c index 2c912e805162..85d110b71cf7 100644 --- a/arch/frv/mb93090-mb00/pci-dma.c +++ b/arch/frv/mb93090-mb00/pci-dma.c | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
| 13 | #include <linux/slab.h> | ||
| 14 | #include <linux/dma-mapping.h> | 13 | #include <linux/dma-mapping.h> |
| 15 | #include <linux/list.h> | 14 | #include <linux/list.h> |
| 16 | #include <linux/pci.h> | 15 | #include <linux/pci.h> |
diff --git a/arch/frv/mb93090-mb00/pci-frv.c b/arch/frv/mb93090-mb00/pci-frv.c index 1ed15d7fea20..6b4fb28e9f99 100644 --- a/arch/frv/mb93090-mb00/pci-frv.c +++ b/arch/frv/mb93090-mb00/pci-frv.c | |||
| @@ -41,7 +41,7 @@ pcibios_align_resource(void *data, const struct resource *res, | |||
| 41 | if ((res->flags & IORESOURCE_IO) && (start & 0x300)) | 41 | if ((res->flags & IORESOURCE_IO) && (start & 0x300)) |
| 42 | start = (start + 0x3ff) & ~0x3ff; | 42 | start = (start + 0x3ff) & ~0x3ff; |
| 43 | 43 | ||
| 44 | return start | 44 | return start; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | 47 | ||
| @@ -94,8 +94,7 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list) | |||
| 94 | r = &dev->resource[idx]; | 94 | r = &dev->resource[idx]; |
| 95 | if (!r->start) | 95 | if (!r->start) |
| 96 | continue; | 96 | continue; |
| 97 | if (pci_claim_resource(dev, idx) < 0) | 97 | pci_claim_resource(dev, idx); |
| 98 | printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, pci_name(dev)); | ||
| 99 | } | 98 | } |
| 100 | } | 99 | } |
| 101 | pcibios_allocate_bus_resources(&bus->children); | 100 | pcibios_allocate_bus_resources(&bus->children); |
| @@ -125,7 +124,6 @@ static void __init pcibios_allocate_resources(int pass) | |||
| 125 | DBG("PCI: Resource %08lx-%08lx (f=%lx, d=%d, p=%d)\n", | 124 | DBG("PCI: Resource %08lx-%08lx (f=%lx, d=%d, p=%d)\n", |
| 126 | r->start, r->end, r->flags, disabled, pass); | 125 | r->start, r->end, r->flags, disabled, pass); |
| 127 | if (pci_claim_resource(dev, idx) < 0) { | 126 | if (pci_claim_resource(dev, idx) < 0) { |
| 128 | printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, pci_name(dev)); | ||
| 129 | /* We'll assign a new address later */ | 127 | /* We'll assign a new address later */ |
| 130 | r->end -= r->start; | 128 | r->end -= r->start; |
| 131 | r->start = 0; | 129 | r->start = 0; |
diff --git a/arch/frv/mb93090-mb00/pci-irq.c b/arch/frv/mb93090-mb00/pci-irq.c index ba587523c015..20f6497b2cd5 100644 --- a/arch/frv/mb93090-mb00/pci-irq.c +++ b/arch/frv/mb93090-mb00/pci-irq.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
| 10 | #include <linux/pci.h> | 10 | #include <linux/pci.h> |
| 11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
| 12 | #include <linux/slab.h> | ||
| 13 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
| 14 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
| 15 | 14 | ||
diff --git a/arch/frv/mb93090-mb00/pci-vdk.c b/arch/frv/mb93090-mb00/pci-vdk.c index c0dcec65c6b7..f8dd37e49535 100644 --- a/arch/frv/mb93090-mb00/pci-vdk.c +++ b/arch/frv/mb93090-mb00/pci-vdk.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| 17 | #include <linux/ioport.h> | 17 | #include <linux/ioport.h> |
| 18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
| 19 | #include <linux/slab.h> | ||
| 20 | 19 | ||
| 21 | #include <asm/segment.h> | 20 | #include <asm/segment.h> |
| 22 | #include <asm/io.h> | 21 | #include <asm/io.h> |
diff --git a/arch/frv/mm/dma-alloc.c b/arch/frv/mm/dma-alloc.c index 44840e73e907..7a73aaeae3ac 100644 --- a/arch/frv/mm/dma-alloc.c +++ b/arch/frv/mm/dma-alloc.c | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | #include <linux/init.h> | 37 | #include <linux/init.h> |
| 38 | #include <linux/pci.h> | 38 | #include <linux/pci.h> |
| 39 | #include <linux/hardirq.h> | 39 | #include <linux/hardirq.h> |
| 40 | #include <linux/gfp.h> | ||
| 40 | 41 | ||
| 41 | #include <asm/pgalloc.h> | 42 | #include <asm/pgalloc.h> |
| 42 | #include <asm/io.h> | 43 | #include <asm/io.h> |
diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c index 0708284f85fb..ed64588ac3a7 100644 --- a/arch/frv/mm/init.c +++ b/arch/frv/mm/init.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/signal.h> | 19 | #include <linux/signal.h> |
| 20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
| 21 | #include <linux/pagemap.h> | 21 | #include <linux/pagemap.h> |
| 22 | #include <linux/gfp.h> | ||
| 22 | #include <linux/swap.h> | 23 | #include <linux/swap.h> |
| 23 | #include <linux/mm.h> | 24 | #include <linux/mm.h> |
| 24 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c index 66f616fb4860..c42c83d507bc 100644 --- a/arch/frv/mm/pgalloc.c +++ b/arch/frv/mm/pgalloc.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
| 13 | #include <linux/slab.h> | 13 | #include <linux/gfp.h> |
| 14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
| 15 | #include <linux/highmem.h> | 15 | #include <linux/highmem.h> |
| 16 | #include <linux/quicklist.h> | 16 | #include <linux/quicklist.h> |
