Skip to contentSkip to conversation

kasan-remove-redundant-initialization-of-variable-real_size.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 7, 2018

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kasan: remove redundant initialization of variable 'real_size'
has been removed from the -mm tree. Its filename was
kasan-remove-redundant-initialization-of-variable-real_size.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: kasan: remove redundant initialization of variable 'real_size'

Variable real_size is initialized with a value that is never read, it is re-assigned a new value later on, hence the initialization is redundant and can be removed.

Cleans up clang warning:
lib/test_kasan.c:422:21: warning: Value stored to 'real_size' during its initialization is never read

---

 lib/test_kasan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-remove-redundant-initialization-of-variable-real_size +1 -1
diff -puN lib/test_kasan.c~kasan-remove-redundant-initialization-of-variable-real_size lib/test_kasan.c
@@ -419,7 +419,7 @@ static noinline void __init kasan_stack_
 static noinline void __init ksize_unpoisons_memory(void)
 {
 	char *ptr;
-	size_t size = 123, real_size = size;
+	size_t size = 123, real_size;
 
 	pr_info("ksize() unpoisons the whole allocated chunk\n");
 	ptr = kmalloc(size, GFP_KERNEL);

_

Patches currently in -mm which might be from [email protected] are

mm-ksm-make-function-stable_node_dup-static.patch mm-swap-make-pointer-swap_avail_heads-static.patch