[PATCH 1/3] mm: kmemleak: drop kmemleak_warning variable

Luiz Capitulino posted 3 patches 9 months, 1 week ago
[PATCH 1/3] mm: kmemleak: drop kmemleak_warning variable
Posted by Luiz Capitulino 9 months, 1 week ago
The kmemleak_warning variable is not used since commit c5665868183f ("mm:
kmemleak: use the memory pool for early allocations"), drop it.

Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
---
 mm/kmemleak.c | 3 ---
 1 file changed, 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)
 
 /*
-- 
2.49.0
Re: [PATCH 1/3] mm: kmemleak: drop kmemleak_warning variable
Posted by Catalin Marinas 9 months, 1 week ago
On Wed, Apr 30, 2025 at 04:59:45PM -0400, Luiz Capitulino wrote:
> The kmemleak_warning variable is not used since commit c5665868183f ("mm:
> kmemleak: use the memory pool for early allocations"), drop it.
> 
> Signed-off-by: Luiz Capitulino <luizcap@redhat.com>

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>