|
@@ -55,7 +55,7 @@ static int kmem_cache_sanity_check(const char *name, size_t size)
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
-#if !defined(CONFIG_SLUB) || !defined(CONFIG_SLUB_DEBUG_ON)
|
|
|
|
|
|
+#if !defined(CONFIG_SLUB)
|
|
if (!strcmp(s->name, name)) {
|
|
if (!strcmp(s->name, name)) {
|
|
pr_err("%s (%s): Cache name already exists.\n",
|
|
pr_err("%s (%s): Cache name already exists.\n",
|
|
__func__, name);
|
|
__func__, name);
|