Commit b21fbccd authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Linus Torvalds

mm: remove unused functions is_{normal_idx, normal, dma32, dma}

These functions are nowhere used, so remove them.
Signed-off-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bc732f1d
...@@ -869,11 +869,6 @@ static inline int is_highmem_idx(enum zone_type idx) ...@@ -869,11 +869,6 @@ static inline int is_highmem_idx(enum zone_type idx)
#endif #endif
} }
static inline int is_normal_idx(enum zone_type idx)
{
return (idx == ZONE_NORMAL);
}
/** /**
* is_highmem - helper function to quickly check if a struct zone is a * is_highmem - helper function to quickly check if a struct zone is a
* highmem zone or not. This is an attempt to keep references * highmem zone or not. This is an attempt to keep references
...@@ -892,29 +887,6 @@ static inline int is_highmem(struct zone *zone) ...@@ -892,29 +887,6 @@ static inline int is_highmem(struct zone *zone)
#endif #endif
} }
static inline int is_normal(struct zone *zone)
{
return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL;
}
static inline int is_dma32(struct zone *zone)
{
#ifdef CONFIG_ZONE_DMA32
return zone == zone->zone_pgdat->node_zones + ZONE_DMA32;
#else
return 0;
#endif
}
static inline int is_dma(struct zone *zone)
{
#ifdef CONFIG_ZONE_DMA
return zone == zone->zone_pgdat->node_zones + ZONE_DMA;
#else
return 0;
#endif
}
/* These two functions are used to setup the per zone pages min values */ /* These two functions are used to setup the per zone pages min values */
struct ctl_table; struct ctl_table;
int min_free_kbytes_sysctl_handler(struct ctl_table *, int, int min_free_kbytes_sysctl_handler(struct ctl_table *, int,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment