Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: kmemleak: drop kmemleak_warning variable

These are a trivial mm/kmemleak.c cleanups. I found these while reading
through the code.


This patch (of 3):

The kmemleak_warning variable is not used since commit c5665868183f ("mm:
kmemleak: use the memory pool for early allocations"), drop it.

Link: https://lkml.kernel.org/r/cover.1746046744.git.luizcap@redhat.com
Link: https://lkml.kernel.org/r/97e23faa7b67099027a1094c9438da5f72e037af.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>

authored by

Luiz Capitulino and committed by
Andrew Morton
e313ee4e 906d7ce3

-3
-3
mm/kmemleak.c
··· 215 215 static int kmemleak_free_enabled = 1; 216 216 /* set in the late_initcall if there were no errors */ 217 217 static int kmemleak_late_initialized; 218 - /* set if a kmemleak warning was issued */ 219 - static int kmemleak_warning; 220 218 /* set if a fatal kmemleak error has occurred */ 221 219 static int kmemleak_error; 222 220 ··· 252 254 #define kmemleak_warn(x...) do { \ 253 255 pr_warn(x); \ 254 256 dump_stack(); \ 255 - kmemleak_warning = 1; \ 256 257 } while (0) 257 258 258 259 /*