+ slub-change-slub_debug-to-config_slub_debug-in-slubc.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     slub: change SLUB_DEBUG to CONFIG_SLUB_DEBUG in slub.c
has been added to the -mm tree.  Its filename is
     slub-change-slub_debug-to-config_slub_debug-in-slubc.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: slub: change SLUB_DEBUG to CONFIG_SLUB_DEBUG in slub.c
From: Reynes Philippe <tremyfr@xxxxxxxx>

SLUB_DEBUG is used, instead of CONFIG_SLUB_DEBUG. So the compilation
failed with the error :

  CC      mm/slub.o
mm/slub.c: In function ?show_slab_objects?:
mm/slub.c:3674: erreur: implicit declaration of function ?count_partial?
mm/slub.c:3674: erreur: ?count_free? undeclared (first use in this function)
mm/slub.c:3674: erreur: (Each undeclared identifier is reported only once
mm/slub.c:3674: erreur: for each function it appears in.)
mm/slub.c:3687: erreur: ?count_total? undeclared (first use in this function)
mm/slub.c:3689: erreur: ?count_inuse? undeclared (first use in this function)
make[1]: *** [mm/slub.o] Erreur 1
make: *** [mm] Erreur 2

Cc: Christoph Lameter <clameter@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/slub.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN mm/slub.c~slub-change-slub_debug-to-config_slub_debug-in-slubc mm/slub.c
--- a/mm/slub.c~slub-change-slub_debug-to-config_slub_debug-in-slubc
+++ a/mm/slub.c
@@ -2688,7 +2688,8 @@ void kfree(const void *x)
 }
 EXPORT_SYMBOL(kfree);
 
-#if defined(SLUB_DEBUG) || defined(CONFIG_SLABINFO)
+#if (defined(CONFIG_SYSFS) && defined(CONFIG_SLUB_DEBUG)) || \
+	defined(CONFIG_SLABINFO)
 static unsigned long count_partial(struct kmem_cache_node *n)
 {
 	unsigned long flags;
_

Patches currently in -mm which might be from tremyfr@xxxxxxxx are

slub-change-slub_debug-to-config_slub_debug-in-slubc.patch
git-sched-schedc-needs-tickh.patch
add-warn_on_secs-macro-simplification-fix-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux