diff options
author | 2025-04-30 16:59:45 -0400 | |
---|---|---|
committer | 2025-05-12 23:50:47 -0700 | |
commit | e313ee4ebb357af5e316863ed15d01eb2c2e2a2f (patch) | |
tree | 295a3923d8d5eac24a615b715fc2a0b548e094e5 | |
parent | jfs: implement migrate_folio for jfs_metapage_aops (diff) | |
download | wireguard-linux-e313ee4ebb357af5e316863ed15d01eb2c2e2a2f.tar.xz wireguard-linux-e313ee4ebb357af5e316863ed15d01eb2c2e2a2f.zip |
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>
-rw-r--r-- | mm/kmemleak.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c index c12cef3eeb32..e6df94c7b032 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -215,8 +215,6 @@ static int kmemleak_enabled = 1; static int kmemleak_free_enabled = 1; /* set in the late_initcall if there were no errors */ static int kmemleak_late_initialized; -/* set if a kmemleak warning was issued */ -static int kmemleak_warning; /* set if a fatal kmemleak error has occurred */ static int kmemleak_error; @@ -254,7 +252,6 @@ static void kmemleak_disable(void); #define kmemleak_warn(x...) do { \ pr_warn(x); \ dump_stack(); \ - kmemleak_warning = 1; \ } while (0) /* |