The patch titled Subject: kasan: remove redundant initialization of variable 'real_size' has been added to the -mm tree. Its filename is kasan-remove-redundant-initialization-of-variable-real_size.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kasan-remove-redundant-initialization-of-variable-real_size.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kasan-remove-redundant-initialization-of-variable-real_size.patch 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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Colin Ian King <colin.king@xxxxxxxxxxxxx> 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 Link: http://lkml.kernel.org/r/20180206144950.32457-1-colin.king@xxxxxxxxxxxxx Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx> Acked-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/test_kasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN lib/test_kasan.c~kasan-remove-redundant-initialization-of-variable-real_size lib/test_kasan.c --- a/lib/test_kasan.c~kasan-remove-redundant-initialization-of-variable-real_size +++ a/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 colin.king@xxxxxxxxxxxxx are kasan-remove-redundant-initialization-of-variable-real_size.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html