Skip to contentSkip to conversation

FRV: Missing error defs

PATCH New David Howells 1 participant 2 messages Feb 20, 2007 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 FRV: Missing error defs

From: David Howells <[email protected]>

linux/irq.h uses EINVAL but does not #include linux/errno.h. This results in the compiler spitting out errors on some files.

---

 include/linux/irq.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/irq.h +1 -0
index aa5b3e6..a0818be 100644
@@ -18,6 +18,7 @@
 #include <linux/spinlock.h>
 #include <linux/cpumask.h>
 #include <linux/irqreturn.h>
+#include <linux/errno.h>
 
 #include <asm/irq.h>
 #include <asm/ptrace.h>
#1 lore raw

PATCH 2/2 FRV: No ZONE_DMA

From: David Howells <[email protected]>

FRV does not require a ZONE_DMA, so all DMA'able pages that aren't highmem should be in ZONE_NORMAL.

---

 arch/frv/mm/init.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/frv/mm/init.c +1 -2
index 3f3a0ed..4103c2c 100644
@@ -126,8 +126,7 @@ void __init paging_init(void)
 
 	/* distribute the allocatable pages across the various zones and pass them to the allocator
 	 */
-	zones_size[ZONE_DMA]     = max_low_pfn - min_low_pfn;
-	zones_size[ZONE_NORMAL]  = 0;
+	zones_size[ZONE_NORMAL]  = max_low_pfn - min_low_pfn;
 #ifdef CONFIG_HIGHMEM
 	zones_size[ZONE_HIGHMEM] = num_physpages - num_mappedpages;
 #endif