Redirect GFP_DMA allocations to ZONE_NORMAL if CONFIG_ZONE_DMA is not set Siged-off-by: Christoph Lameter Index: linux-2.6.17-mm6/include/linux/gfp.h =================================================================== --- linux-2.6.17-mm6.orig/include/linux/gfp.h 2006-07-04 14:41:53.820668198 -0700 +++ linux-2.6.17-mm6/include/linux/gfp.h 2006-07-04 15:33:07.401117400 -0700 @@ -11,7 +11,12 @@ struct vm_area_struct; * GFP bitmasks.. */ /* Zone modifiers in GFP_ZONEMASK (see linux/mmzone.h - low three bits) */ + +#ifdef CONFIG_ZONE_DMA #define __GFP_DMA ((__force gfp_t)0x01u) +#else +#define __GFP_DMA ((__force gfp_t)0x00) /* NORMAL is DMA */ +#endif #ifdef CONFIG_HIGHMEM #define __GFP_HIGHMEM ((__force gfp_t)0x02u)