diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mmzone.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 217bcf6bca77..261f299c9441 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -1056,12 +1056,14 @@ static inline struct mem_section *__pfn_to_section(unsigned long pfn) | |||
1056 | return __nr_to_section(pfn_to_section_nr(pfn)); | 1056 | return __nr_to_section(pfn_to_section_nr(pfn)); |
1057 | } | 1057 | } |
1058 | 1058 | ||
1059 | #ifndef CONFIG_HAVE_ARCH_PFN_VALID | ||
1059 | static inline int pfn_valid(unsigned long pfn) | 1060 | static inline int pfn_valid(unsigned long pfn) |
1060 | { | 1061 | { |
1061 | if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) | 1062 | if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) |
1062 | return 0; | 1063 | return 0; |
1063 | return valid_section(__nr_to_section(pfn_to_section_nr(pfn))); | 1064 | return valid_section(__nr_to_section(pfn_to_section_nr(pfn))); |
1064 | } | 1065 | } |
1066 | #endif | ||
1065 | 1067 | ||
1066 | static inline int pfn_present(unsigned long pfn) | 1068 | static inline int pfn_present(unsigned long pfn) |
1067 | { | 1069 | { |