All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-damon-fix-sparse-warning-for-zero-initializer.patch added to mm-unstable branch
@ 2024-09-24 23:17 Andrew Morton
  2024-09-24 23:24 ` SeongJae Park
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2024-09-24 23:17 UTC (permalink / raw)
  To: mm-commits, skhan, sj, ruanjinjie, leocstone, akpm


The patch titled
     Subject: mm/damon: fix sparse warning for zero initializer
has been added to the -mm mm-unstable branch.  Its filename is
     mm-damon-fix-sparse-warning-for-zero-initializer.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-fix-sparse-warning-for-zero-initializer.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Leo Stone <leocstone@gmail.com>
Subject: mm/damon: fix sparse warning for zero initializer
Date: Sun, 22 Sep 2024 19:25:18 -0700

sparse warns about zero initializing an array with {0,}, change it to
the equivalent {0}.

Fixes the sparse warning:
mm/damon/tests/vaddr-kunit.h:69:47: warning: missing braces around initializer

Link: https://lkml.kernel.org/r/xriwklcwjpwcz7eiavo6f7envdar4jychhsk6sfkj5klaznb6b@j6vrvr2sxjht
Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests")
Signed-off-by: Leo Stone <leocstone@gmail.com>
Cc: Jinjie Ruan <ruanjinjie@huawei.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/damon/tests/vaddr-kunit.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/damon/tests/vaddr-kunit.h~mm-damon-fix-sparse-warning-for-zero-initializer
+++ a/mm/damon/tests/vaddr-kunit.h
@@ -66,7 +66,7 @@ failed:
 static void damon_test_three_regions_in_vmas(struct kunit *test)
 {
 	static struct mm_struct mm;
-	struct damon_addr_range regions[3] = {0,};
+	struct damon_addr_range regions[3] = {0};
 	/* 10-20-25, 200-210-220, 300-305, 307-330 */
 	struct vm_area_struct vmas[] = {
 		(struct vm_area_struct) {.vm_start = 10, .vm_end = 20},
_

Patches currently in -mm which might be from leocstone@gmail.com are

mm-damon-fix-sparse-warning-for-zero-initializer.patch


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: + mm-damon-fix-sparse-warning-for-zero-initializer.patch added to mm-unstable branch
  2024-09-24 23:17 + mm-damon-fix-sparse-warning-for-zero-initializer.patch added to mm-unstable branch Andrew Morton
@ 2024-09-24 23:24 ` SeongJae Park
  0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2024-09-24 23:24 UTC (permalink / raw)
  To: Andrew Morton; +Cc: SeongJae Park, mm-commits, skhan, ruanjinjie, leocstone

On Tue, 24 Sep 2024 16:17:57 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

[...]
 From: Leo Stone <leocstone@gmail.com>
> Subject: mm/damon: fix sparse warning for zero initializer
> Date: Sun, 22 Sep 2024 19:25:18 -0700
> 
> sparse warns about zero initializing an array with {0,}, change it to
> the equivalent {0}.
> 
> Fixes the sparse warning:
> mm/damon/tests/vaddr-kunit.h:69:47: warning: missing braces around initializer
> 
> Link: https://lkml.kernel.org/r/xriwklcwjpwcz7eiavo6f7envdar4jychhsk6sfkj5klaznb6b@j6vrvr2sxjht
> Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests")
> Signed-off-by: Leo Stone <leocstone@gmail.com>
> Cc: Jinjie Ruan <ruanjinjie@huawei.com>
> Cc: SeongJae Park <sj@kernel.org>
> Cc: Shuah Khan <skhan@linuxfoundation.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Actually I also gave [1] my Reviewed-by: tag, but seems it got dropped from v2
of this patch.  So, trying again.

Reviewed-by: SeongJae Park <sj@kernel.org>

[1] https://lore.kernel.org/20240922151121.469051-1-sj@kernel.org


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-24 23:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 23:17 + mm-damon-fix-sparse-warning-for-zero-initializer.patch added to mm-unstable branch Andrew Morton
2024-09-24 23:24 ` SeongJae Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.