]> Git Repo - linux.git/commitdiff
slab: remove BAD_ALIEN_MAGIC
authorJoonsoo Kim <[email protected]>
Wed, 6 Aug 2014 23:04:38 +0000 (16:04 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:14 +0000 (18:01 -0700)
BAD_ALIEN_MAGIC value isn't used anymore. So remove it.

Signed-off-by: Joonsoo Kim <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c

index 630c85469164dd341fc28af80cc37aabacc15cb6..42a9eddb61cde06dc1a1e736b61a55580a91ea34 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -470,8 +470,6 @@ static struct kmem_cache kmem_cache_boot = {
        .name = "kmem_cache",
 };
 
-#define BAD_ALIEN_MAGIC 0x01020304ul
-
 static DEFINE_PER_CPU(struct delayed_work, slab_reap_work);
 
 static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep)
@@ -838,7 +836,7 @@ static int transfer_objects(struct array_cache *to,
 static inline struct alien_cache **alloc_alien_cache(int node,
                                                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)
This page took 0.05685 seconds and 4 git commands to generate.