All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] FRV: Missing error defs
@ 2007-02-20 14:18 David Howells
  2007-02-20 14:18 ` [PATCH 2/2] FRV: No ZONE_DMA David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2007-02-20 14:18 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel, dhowells

From: David Howells <dhowells@redhat.com>

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

Signed-Off-By: David Howells <dhowells@redhat.com>
---

 include/linux/irq.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/irq.h b/include/linux/irq.h
index aa5b3e6..a0818be 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -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>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] FRV: No ZONE_DMA
  2007-02-20 14:18 [PATCH 1/2] FRV: Missing error defs David Howells
@ 2007-02-20 14:18 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2007-02-20 14:18 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel, dhowells

From: David Howells <dhowells@redhat.com>

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

Signed-Off-By: David Howells <dhowells@redhat.com>
---

 arch/frv/mm/init.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c
index 3f3a0ed..4103c2c 100644
--- a/arch/frv/mm/init.c
+++ b/arch/frv/mm/init.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-20 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20 14:18 [PATCH 1/2] FRV: Missing error defs David Howells
2007-02-20 14:18 ` [PATCH 2/2] FRV: No ZONE_DMA David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.