diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 2782df47101e..54d74f6eb233 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -842,16 +842,16 @@ static inline int populated_zone(struct zone *zone) | |||
842 | 842 | ||
843 | extern int movable_zone; | 843 | extern int movable_zone; |
844 | 844 | ||
845 | #ifdef CONFIG_HIGHMEM | ||
845 | static inline int zone_movable_is_highmem(void) | 846 | static inline int zone_movable_is_highmem(void) |
846 | { | 847 | { |
847 | #if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP) | 848 | #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP |
848 | return movable_zone == ZONE_HIGHMEM; | 849 | return movable_zone == ZONE_HIGHMEM; |
849 | #elif defined(CONFIG_HIGHMEM) | ||
850 | return (ZONE_MOVABLE - 1) == ZONE_HIGHMEM; | ||
851 | #else | 850 | #else |
852 | return 0; | 851 | return (ZONE_MOVABLE - 1) == ZONE_HIGHMEM; |
853 | #endif | 852 | #endif |
854 | } | 853 | } |
854 | #endif | ||
855 | 855 | ||
856 | static inline int is_highmem_idx(enum zone_type idx) | 856 | static inline int is_highmem_idx(enum zone_type idx) |
857 | { | 857 | { |