* [PATCH 2.6.0-test5-mm1] Fix build with debug disabled
@ 2003-09-09 11:19 Bernhard Rosenkraenzer
2003-09-09 12:03 ` Maciej Soltysiak
0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Rosenkraenzer @ 2003-09-09 11:19 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm
[-- Attachment #1: Type: TEXT/PLAIN, Size: 279 bytes --]
2.6.0-test5-mm1 mm/slab.c defines dbg_redzone1 and friends in #if DEBUG,
but uses them unconditionally.
Patch attached.
--
Ark Linux - Linux for the masses
http://www.arklinux.org/
Redistribution and processing of this message is subject to
http://www.arklinux.org/terms.php
[-- Attachment #2: Fix compile --]
[-- Type: TEXT/PLAIN, Size: 1018 bytes --]
--- linux-2.6.0-test5/mm/slab.c.ark 2003-09-09 13:32:08.000000000 +0200
+++ linux-2.6.0-test5/mm/slab.c 2003-09-09 13:33:30.000000000 +0200
@@ -948,6 +948,7 @@
check_poison_obj(cachep, objp);
#endif
}
+#if DEBUG
if (cachep->flags & SLAB_RED_ZONE) {
if (*dbg_redzone1(cachep, objp) != RED_INACTIVE)
slab_error(cachep, "start of a freed object "
@@ -956,6 +957,7 @@
slab_error(cachep, "end of a freed object "
"was overwritten");
}
+#endif
if (cachep->dtor && !(cachep->flags & SLAB_POISON))
(cachep->dtor)(objp+obj_dbghead(cachep), cachep, 0);
}
@@ -2794,11 +2796,13 @@
} else {
kernel_map_pages(virt_to_page(objp), c->objsize/PAGE_SIZE, 1);
+#if DEBUG
if (c->flags & SLAB_RED_ZONE)
printk("redzone: 0x%lx/0x%lx.\n", *dbg_redzone1(c, objp), *dbg_redzone2(c, objp));
if (c->flags & SLAB_STORE_USER)
printk("Last user: %p.\n", *dbg_userword(c, objp));
+#endif
}
spin_unlock_irqrestore(&c->spinlock, flags);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.0-test5-mm1] Fix build with debug disabled
2003-09-09 11:19 [PATCH 2.6.0-test5-mm1] Fix build with debug disabled Bernhard Rosenkraenzer
@ 2003-09-09 12:03 ` Maciej Soltysiak
2003-09-09 12:07 ` Maciej Soltysiak
0 siblings, 1 reply; 3+ messages in thread
From: Maciej Soltysiak @ 2003-09-09 12:03 UTC (permalink / raw)
To: Bernhard Rosenkraenzer; +Cc: linux-kernel, akpm
Hi Alan,
> 2.6.0-test5-mm1 mm/slab.c defines dbg_redzone1 and friends in #if DEBUG,
> but uses them unconditionally.
> Patch attached.
Could you create directories in your people/akpm/* directory for patches
that are accepted/needed/bugfixes/whatever sent for -mm patches after you
submit the respective patch?
Like:
.../people/akpm/patches/2.6/2.6.0-test5-mm1/pending/01_debugfix_patch.diff
.../people/akpm/patches/2.6/2.6.0-test5-mm1/pending/02_other_bugfix.diff
Those would be applied over test5-mm1 to get it going, before you publish
newer patches.
Is this fine with you?
I think that testers would be happy with that.
Regards,
Maciej
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.0-test5-mm1] Fix build with debug disabled
2003-09-09 12:03 ` Maciej Soltysiak
@ 2003-09-09 12:07 ` Maciej Soltysiak
0 siblings, 0 replies; 3+ messages in thread
From: Maciej Soltysiak @ 2003-09-09 12:07 UTC (permalink / raw)
To: Bernhard Rosenkraenzer; +Cc: linux-kernel, akpm
> Hi Alan,
Oops, I meant Hi Andrew!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-09 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 11:19 [PATCH 2.6.0-test5-mm1] Fix build with debug disabled Bernhard Rosenkraenzer
2003-09-09 12:03 ` Maciej Soltysiak
2003-09-09 12:07 ` Maciej Soltysiak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®