diff options
author | Yaowei Bai <baiyaowei@cmss.chinamobile.com> | 2016-01-14 18:19:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-14 19:00:49 -0500 |
commit | 5b80287a65da927742c6d43b1369bd5ed133aad1 (patch) | |
tree | 2adc3f93d292a663097b02754ef2890ae58623fe /include/linux/mmzone.h | |
parent | 6219c2a2ec990f80a586216172c811a9099c5cdf (diff) |
mm/mmzone.c: memmap_valid_within() can be boolean
Make memmap_valid_within return bool due to this particular function
only using either one or zero as its return value.
No functional change.
Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 12c98dfc31b1..3b6fb71bbeb3 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -1200,13 +1200,13 @@ unsigned long __init node_memmap_size_bytes(int, unsigned long, unsigned long); | |||
1200 | * the zone and PFN linkages are still valid. This is expensive, but walkers | 1200 | * the zone and PFN linkages are still valid. This is expensive, but walkers |
1201 | * of the full memmap are extremely rare. | 1201 | * of the full memmap are extremely rare. |
1202 | */ | 1202 | */ |
1203 | int memmap_valid_within(unsigned long pfn, | 1203 | bool memmap_valid_within(unsigned long pfn, |
1204 | struct page *page, struct zone *zone); | 1204 | struct page *page, struct zone *zone); |
1205 | #else | 1205 | #else |
1206 | static inline int memmap_valid_within(unsigned long pfn, | 1206 | static inline bool memmap_valid_within(unsigned long pfn, |
1207 | struct page *page, struct zone *zone) | 1207 | struct page *page, struct zone *zone) |
1208 | { | 1208 | { |
1209 | return 1; | 1209 | return true; |
1210 | } | 1210 | } |
1211 | #endif /* CONFIG_ARCH_HAS_HOLES_MEMORYMODEL */ | 1211 | #endif /* CONFIG_ARCH_HAS_HOLES_MEMORYMODEL */ |
1212 | 1212 | ||