* + mm-kmemleak-drop-wrong-comment.patch added to mm-unstable branch
@ 2025-05-01 19:11 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-05-01 19:11 UTC (permalink / raw)
To: mm-commits, david, catalin.marinas, luizcap, akpm
The patch titled
Subject: mm: kmemleak: drop wrong comment
has been added to the -mm mm-unstable branch. Its filename is
mm-kmemleak-drop-wrong-comment.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-kmemleak-drop-wrong-comment.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
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/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Luiz Capitulino <luizcap@redhat.com>
Subject: mm: kmemleak: drop wrong comment
Date: Wed, 30 Apr 2025 16:59:46 -0400
Newly created objects have object->count == 0, so the comment is
incorrect. Just drop it.
Link: https://lkml.kernel.org/r/3dfd09bc0e77bb626619184a808774ff07de275c.1746046744.git.luizcap@redhat.com
Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/kmemleak.c | 2 --
1 file changed, 2 deletions(-)
--- a/mm/kmemleak.c~mm-kmemleak-drop-wrong-comment
+++ a/mm/kmemleak.c
@@ -322,8 +322,6 @@ static void hex_dump_object(struct seq_f
* sufficient references to it (count >= min_count)
* - black - ignore, it doesn't contain references (e.g. text section)
* (min_count == -1). No function defined for this color.
- * Newly created objects don't have any color assigned (object->count == -1)
- * before the next memory scan when they become white.
*/
static bool color_white(const struct kmemleak_object *object)
{
_
Patches currently in -mm which might be from luizcap@redhat.com are
mm-kmemleak-drop-kmemleak_warning-variable.patch
mm-kmemleak-drop-wrong-comment.patch
mm-kmemleak-mark-variables-as-__read_mostly.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-01 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-01 19:11 + mm-kmemleak-drop-wrong-comment.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.