diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 673942094328..ebff729cc956 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1943,11 +1943,15 @@ void *vmalloc_exec(unsigned long size) | |||
1943 | } | 1943 | } |
1944 | 1944 | ||
1945 | #if defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA32) | 1945 | #if defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA32) |
1946 | #define GFP_VMALLOC32 GFP_DMA32 | GFP_KERNEL | 1946 | #define GFP_VMALLOC32 (GFP_DMA32 | GFP_KERNEL) |
1947 | #elif defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA) | 1947 | #elif defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA) |
1948 | #define GFP_VMALLOC32 GFP_DMA | GFP_KERNEL | 1948 | #define GFP_VMALLOC32 (GFP_DMA | GFP_KERNEL) |
1949 | #else | 1949 | #else |
1950 | #define GFP_VMALLOC32 GFP_KERNEL | 1950 | /* |
1951 | * 64b systems should always have either DMA or DMA32 zones. For others | ||
1952 | * GFP_DMA32 should do the right thing and use the normal zone. | ||
1953 | */ | ||
1954 | #define GFP_VMALLOC32 GFP_DMA32 | GFP_KERNEL | ||
1951 | #endif | 1955 | #endif |
1952 | 1956 | ||
1953 | /** | 1957 | /** |