Skip to content

Commit 0715501

Browse files
cfd-36Linus Torvalds
authored andcommitted
[PATCH] uml: get rid of ZONE_DMA use
ZONE_DMA might become dependent on CONFIG_ZONE_DMA, which UML doesn't define (we're still arguing about this) So, let's change ZONE_DMA to ZONE_NORMAL. This is prompted by optional-zone_dma-in-the-vm.patch, but should be harmless on its own. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Christoph Lameter <clameter@engr.sgi.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 5e7672e commit 0715501

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/um/kernel/mem.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ void paging_init(void)
226226
for(i = 0; i < ARRAY_SIZE(zones_size); i++)
227227
zones_size[i] = 0;
228228

229-
zones_size[ZONE_DMA] = (end_iomem >> PAGE_SHIFT) - (uml_physmem >> PAGE_SHIFT);
229+
zones_size[ZONE_NORMAL] = (end_iomem >> PAGE_SHIFT) -
230+
(uml_physmem >> PAGE_SHIFT);
230231
#ifdef CONFIG_HIGHMEM
231232
zones_size[ZONE_HIGHMEM] = highmem >> PAGE_SHIFT;
232233
#endif

0 commit comments

Comments
 (0)