Commit a6406168 authored by Joonsoo Kim's avatar Joonsoo Kim Committed by Linus Torvalds

slab: remove BAD_ALIEN_MAGIC

BAD_ALIEN_MAGIC value isn't used anymore. So remove it.
Signed-off-by: default avatarJoonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 367f7f2f
...@@ -470,8 +470,6 @@ static struct kmem_cache kmem_cache_boot = { ...@@ -470,8 +470,6 @@ static struct kmem_cache kmem_cache_boot = {
.name = "kmem_cache", .name = "kmem_cache",
}; };
#define BAD_ALIEN_MAGIC 0x01020304ul
static DEFINE_PER_CPU(struct delayed_work, slab_reap_work); static DEFINE_PER_CPU(struct delayed_work, slab_reap_work);
static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep)
...@@ -838,7 +836,7 @@ static int transfer_objects(struct array_cache *to, ...@@ -838,7 +836,7 @@ static int transfer_objects(struct array_cache *to,
static inline struct alien_cache **alloc_alien_cache(int node, static inline struct alien_cache **alloc_alien_cache(int node,
int limit, gfp_t gfp) int limit, gfp_t gfp)
{ {
return (struct alien_cache **)BAD_ALIEN_MAGIC; return NULL;
} }
static inline void free_alien_cache(struct alien_cache **ac_ptr) static inline void free_alien_cache(struct alien_cache **ac_ptr)
......
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