Message ID | xriwklcwjpwcz7eiavo6f7envdar4jychhsk6sfkj5klaznb6b@j6vrvr2sxjht (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 356DBCF9C6C for <linux-mm@archiver.kernel.org>; Mon, 23 Sep 2024 02:25:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8CEA66B007B; Sun, 22 Sep 2024 22:25:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 87DFE6B0083; Sun, 22 Sep 2024 22:25:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7461A6B0085; Sun, 22 Sep 2024 22:25:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 54F2B6B007B for <linux-mm@kvack.org>; Sun, 22 Sep 2024 22:25:24 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EC40380FF1 for <linux-mm@kvack.org>; Mon, 23 Sep 2024 02:25:23 +0000 (UTC) X-FDA: 82594411326.05.79A0401 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by imf04.hostedemail.com (Postfix) with ESMTP id 220484000D for <linux-mm@kvack.org>; Mon, 23 Sep 2024 02:25:21 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YMYx9YiE; spf=pass (imf04.hostedemail.com: domain of leocstone@gmail.com designates 209.85.214.175 as permitted sender) smtp.mailfrom=leocstone@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727058166; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=t7aLKOb5llbH39oSD2wqFg2ImH5K/xs1d/3DhTSvBAM=; b=NRr2gLgHvjyBWdlNgMZSMDXcL7glrxmMhHTncMohFahRVHmXMbUffglvqC340nGptL9gpx a9l373shT+ElhiETz3sGT+0AK8p9umSUCNp8XB6uBj6N59t/sZW+G5ZCKQv+eSCNrGKnfn rBCby/4AL3rT/7vr7cllcIzwgFfDwb8= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YMYx9YiE; spf=pass (imf04.hostedemail.com: domain of leocstone@gmail.com designates 209.85.214.175 as permitted sender) smtp.mailfrom=leocstone@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727058166; a=rsa-sha256; cv=none; b=AkQz1qw2U4FfnG3uxKkrGRzk49iwEMk8RxdykIgKWcPYBHKUfP/YMgZo6a7/cCSlrfnk6R BMvyC3BdmE12hu21U6L2OqAsBQB/bP90WJV+3aHdO9ttu4734cFDhn9v/PeBeKJ1v0z5H+ r1a5PifN455sYrDK4/TdD0kyyIZCMRY= Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2053525bd90so34636415ad.0 for <linux-mm@kvack.org>; Sun, 22 Sep 2024 19:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727058321; x=1727663121; darn=kvack.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=t7aLKOb5llbH39oSD2wqFg2ImH5K/xs1d/3DhTSvBAM=; b=YMYx9YiEGrN44M+pFYdqVV6Jl69V/Ei274MbAp34naUEhNiKap9K/I39X0YCXAt7Pd Qkx0521q3XGgcspUE2c634mjHZ2aFahb0GC7/9/hoL08UPjyMrn8PNUp2KTAHt0JBTdE chBhczgfjqnMsU5Sk4pQuuURgqUMa+viJFK7xLzoK9RT0wW8oneE/8eZF9OSQ1qp5S0V yTmb3NK0HXongFZe0u+cFUF2IQurAXw4bUwRJhEzo8wZ2CXZJUszYDkyXcPghrspaqyu iioUdl1Nar5hvm3iogVynQy5Uylxafq4IYsNp85Y3VL5faOwJLpZGGnFcd074NvlKN06 65OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727058321; x=1727663121; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t7aLKOb5llbH39oSD2wqFg2ImH5K/xs1d/3DhTSvBAM=; b=O18At/5ndDuTOsRu6GTxCK+rZI4sGxwK2SV6IuhFQG3X1RND7sT3fF8qOVI0DyOfoT WXxg9Y1fY7qBAjwV38fw4wqvoxnMKYI/BKlfjSeBRCki7Rq+dVeudgqbQN696PJjzgsN Ley4K6wOACp+7vei8YOIduEO43mag0ik9O8ERxgZJRArtLQdTzETohADrc41XsZZKa/C loNTGHfNT4D4nWRcqR/8iUHDOwGlBysQaMTeO+aEPmx3wXyE2UYGVGQrpLnv5Ez4fBsO v7WerVxhYcfVrZq1NnqQlBvAgOaJNZYzZGrfRGKUEYIIU64b+tsDPrP0U5+Xis2kTnbz oJOQ== X-Forwarded-Encrypted: i=1; AJvYcCVEZeV1GC7+KsC0zN5fPQFqLLltTthwN/CBHzzbT7s7pRqiZ6RNYrvVJuRUg4W8r2cBc651vluIEQ==@kvack.org X-Gm-Message-State: AOJu0YzDvfJ1JcB9UYBKo/mhjnSJmzXS36Tp5r6/DYAEx/OqE1kwupfu cXpXpb9hFLXdOJB64qnxCPytKDuMvVftg+WwZKKZOzkn9kzFHdkV X-Google-Smtp-Source: AGHT+IHMe8B9R9yeowkpYMpdwCkp3LhabZm8IJy9oinfaIcj2oqUQXGLPn9cSkJoTdRgN+hp5ZNI4g== X-Received: by 2002:a17:902:d503:b0:202:3324:68bd with SMTP id d9443c01a7336-208d84421afmr140151485ad.43.1727058320760; Sun, 22 Sep 2024 19:25:20 -0700 (PDT) Received: from tc (c-67-171-216-181.hsd1.or.comcast.net. [67.171.216.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2079473e8a2sm124613895ad.251.2024.09.22.19.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 19:25:20 -0700 (PDT) Date: Sun, 22 Sep 2024 19:25:18 -0700 From: Leo Stone <leocstone@gmail.com> To: SeongJae Park <sj@kernel.org> Cc: Leo Stone <leocstone@gmail.com>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, akpm@linux-foundation.org, ruanjinjie@huawei.com Subject: [PATCH v2] mm/damon: fix sparse warning for zero initializer Message-ID: <xriwklcwjpwcz7eiavo6f7envdar4jychhsk6sfkj5klaznb6b@j6vrvr2sxjht> References: <20240921195511.364023-1-leocstone@gmail.com> <20240922151121.469051-1-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240922151121.469051-1-sj@kernel.org> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 220484000D X-Stat-Signature: rygih8e78qcuirzasbd5png3puwydse3 X-Rspam-User: X-HE-Tag: 1727058321-975474 X-HE-Meta: U2FsdGVkX18WLOTVpccZ9KfooOmKYsDc1CpbzfsDoiJpAtY9r1VNJ4aC+wYQ6ATPK6gCBlKnGsJ4cRVbq/h6ZsNxlXmsAfjT2qVpq2CnwcPvpV9/eoVyOFOKNtuW+T5+PUU/Ww7I1MBrFd2DZsEFTopiHN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YFxisxhzIqd1sk7sSNivSziW1jYJWNol/+nJcaTDhydm8E4lIZ5xyug3ddpxaLmAqJN4JVY47io+6a+CJJujOVYSHMh1TvIDE/6Vd48GzvjvdFc0syHIC5ggRbiEXmci/+mAdGkKDsOryWblWfVonjOirMMaHMXbuJ9RcD+rdZOh7xikblUhdnxPaGWQlt X-Bogosity: Ham, tests=bogofilter, spamicity=0.008187, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[v2] mm/damon: fix sparse warning for zero initializer
|
expand
|
diff --git a/mm/damon/tests/vaddr-kunit.h b/mm/damon/tests/vaddr-kunit.h index a339d117150f..3dad8dfd9005 100644 --- a/mm/damon/tests/vaddr-kunit.h +++ b/mm/damon/tests/vaddr-kunit.h @@ -66,7 +66,7 @@ static int __link_vmas(struct maple_tree *mt, struct vm_area_struct *vmas, 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},
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 Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests") Signed-off-by: Leo Stone <leocstone@gmail.com> --- v2: Added fixes tag. Thank you! --- mm/damon/tests/vaddr-kunit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.43.0