diff options
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r-- | include/linux/gfp.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 56d8fc87fbbc..cb4089254f01 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h | |||
@@ -249,14 +249,7 @@ static inline enum zone_type gfp_zone(gfp_t flags) | |||
249 | 249 | ||
250 | z = (GFP_ZONE_TABLE >> (bit * ZONES_SHIFT)) & | 250 | z = (GFP_ZONE_TABLE >> (bit * ZONES_SHIFT)) & |
251 | ((1 << ZONES_SHIFT) - 1); | 251 | ((1 << ZONES_SHIFT) - 1); |
252 | 252 | VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1); | |
253 | if (__builtin_constant_p(bit)) | ||
254 | BUILD_BUG_ON((GFP_ZONE_BAD >> bit) & 1); | ||
255 | else { | ||
256 | #ifdef CONFIG_DEBUG_VM | ||
257 | BUG_ON((GFP_ZONE_BAD >> bit) & 1); | ||
258 | #endif | ||
259 | } | ||
260 | return z; | 253 | return z; |
261 | } | 254 | } |
262 | 255 | ||