aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-07-08 19:00:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 13:33:22 -0400
commitb21fbccd4b8aba805cbc231998ec7bf83616a79e (patch)
treed6465436da82b1cb45d4bf9b99b41b439285ba71 /include/linux/mmzone.h
parentbc732f1d55cf41627ee4c64078812b2fa592b394 (diff)
mm: remove unused functions is_{normal_idx, normal, dma32, dma}
These functions are nowhere used, so remove them. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.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.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index ae19af5ec02c..af4a3b77a8de 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -869,11 +869,6 @@ static inline int is_highmem_idx(enum zone_type idx)
869#endif 869#endif
870} 870}
871 871
872static inline int is_normal_idx(enum zone_type idx)
873{
874 return (idx == ZONE_NORMAL);
875}
876
877/** 872/**
878 * is_highmem - helper function to quickly check if a struct zone is a 873 * is_highmem - helper function to quickly check if a struct zone is a
879 * highmem zone or not. This is an attempt to keep references 874 * highmem zone or not. This is an attempt to keep references
@@ -892,29 +887,6 @@ static inline int is_highmem(struct zone *zone)
892#endif 887#endif
893} 888}
894 889
895static inline int is_normal(struct zone *zone)
896{
897 return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL;
898}
899
900static inline int is_dma32(struct zone *zone)
901{
902#ifdef CONFIG_ZONE_DMA32
903 return zone == zone->zone_pgdat->node_zones + ZONE_DMA32;
904#else
905 return 0;
906#endif
907}
908
909static inline int is_dma(struct zone *zone)
910{
911#ifdef CONFIG_ZONE_DMA
912 return zone == zone->zone_pgdat->node_zones + ZONE_DMA;
913#else
914 return 0;
915#endif
916}
917
918/* These two functions are used to setup the per zone pages min values */ 890/* These two functions are used to setup the per zone pages min values */
919struct ctl_table; 891struct ctl_table;
920int min_free_kbytes_sysctl_handler(struct ctl_table *, int, 892int min_free_kbytes_sysctl_handler(struct ctl_table *, int,