From patchwork Sat Sep 21 19:54:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Stone X-Patchwork-Id: 13808974 Return-Path: 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 BC62ECF9C5B for ; Sat, 21 Sep 2024 19:57:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9E9B6B007B; Sat, 21 Sep 2024 15:57:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4DB26B0082; Sat, 21 Sep 2024 15:57:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B3C956B0085; Sat, 21 Sep 2024 15:57:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9BDEE6B007B for ; Sat, 21 Sep 2024 15:57:12 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id F15B2C0B46 for ; Sat, 21 Sep 2024 19:57:11 +0000 (UTC) X-FDA: 82589804262.04.312CB38 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by imf27.hostedemail.com (Postfix) with ESMTP id 3BD914000F for ; Sat, 21 Sep 2024 19:57:10 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mODiQF2C; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf27.hostedemail.com: domain of leocstone@gmail.com designates 209.85.214.180 as permitted sender) smtp.mailfrom=leocstone@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726948617; a=rsa-sha256; cv=none; b=MDuKoH8Hk547e7+qt/Kyyij0L7qZON0nExm1M/4lmgPMXp+JBy4foP51BTZUc5y7K9VFqc w2L9q2QLUaOipf4KRRXyiFJTgSwAh1kroId+SVbAcwum1V0swDrQ0de14nz5m+WWnpmfPx XrgAAw2RHnvIQc40YJ8HwPd5ZnINFKc= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mODiQF2C; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf27.hostedemail.com: domain of leocstone@gmail.com designates 209.85.214.180 as permitted sender) smtp.mailfrom=leocstone@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726948617; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=tL6Q4yRMI5cAA833hyiACaaa+MFKJlXA+BVwOAtvywo=; b=rteKB/27A3MY5u0p2ZyO7DzFAHMPFdm2Y/1kkcwMJ2BxvWHIVhdZ1iUvBQKUcSR54+XL51 Wn96X0Xpk/mRDdBdqV48901hHA+FIuokQRRBfeZgLj5AHHqPEAYyBNa8jELemhm2LrEa+c R7o7rTWR5IXLPXik7DcsCxIG0VKYl+4= Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2053616fa36so38681445ad.0 for ; Sat, 21 Sep 2024 12:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726948629; x=1727553429; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tL6Q4yRMI5cAA833hyiACaaa+MFKJlXA+BVwOAtvywo=; b=mODiQF2CX/cJrarFzWNRV5q9KFM7iEqcNhAioACE+6UvfNx44HfX09J/h/ELpfuqoB 4PNMMfmgGNJLGzpmSfyoClQum2YWaD3pQkGanxABqWBscwgDwBTcXxlzvnCoHILhgpcY eUWfeBPKQHcoeXIG71t8Npw+ia857OOesBFqHMTgIJ9LoYjQB7+tP3wE8jG5o7zeKbww DKHdaIKD5Pbr8QQn2+An6fCLm1ndNipC3hN9GrBpW3UPy46+0ZqDWFBOSNHYLF8QhPiH GWeEjy9IoXLy2v9MXAdax1WvpzVmg2NufNEXuVWr1Iexc0uk6nXQp1RMdgf8GjHuiiny PIgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726948629; x=1727553429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tL6Q4yRMI5cAA833hyiACaaa+MFKJlXA+BVwOAtvywo=; b=J3VGHkNR6HcoPgM7NmfX1v+Cc18uGGBRhnx4IvVYjUYjiwYJ2k4CUg3ng/K/CVvIZa axVt1h47czycEgwyFwvjrJF31FRLdU49eCEt93nnI/RS0jGVXS1gLI9fp7A7Jx+HvkHz MXSk8zjBl/hfcTcYpwFGd7YeEJsnMAaGyyTiL1kq/v/1zeCZP31SASf++mFAfDCLwb0x +zZfyJKLzPgK3KhceHi30Uo5R5+lkilXEw2xkWvLB3d8BOGJ/HHEChpaN6nuZ94yqZD0 ceq4ZpT01/tEKj0/zo6ruQhtDxf/gwJ6BlKtZclpq0szxSLKzu2Q0xexUvAECtltbqt+ buwQ== X-Forwarded-Encrypted: i=1; AJvYcCXoaBrEdha7PJHONA7FLOMZqDqddgN9EejRP+VdrykxMZzE3N57TkJqH0WT84qnWqHY8+gHmeCa+w==@kvack.org X-Gm-Message-State: AOJu0YxT7xfRQEbqOZJK1GxFolrkG/Fc13qZzYbnlJb0j55zCkCHDFn5 Zs+JKIskkHms372TugAimgEP23B5BUoGNBFds7INF5SdpUmYj8Nx X-Google-Smtp-Source: AGHT+IHOVPLtF44VuR8xtKWdO1Sdnkq7LicaBWc92K+g37O0VEZI4c3J/dixnkEOEekfoeeN1wANdA== X-Received: by 2002:a17:903:181:b0:206:9640:e751 with SMTP id d9443c01a7336-208d830ed11mr115040245ad.3.1726948628817; Sat, 21 Sep 2024 12:57:08 -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-2079472fb94sm112006355ad.253.2024.09.21.12.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2024 12:57:08 -0700 (PDT) From: Leo Stone To: sj@kernel.org, akpm@linux-foundation.org, ruanjinjie@huawei.com Cc: Leo Stone , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH] mm/damon: fix sparse warning for zero initializer Date: Sat, 21 Sep 2024 12:54:45 -0700 Message-ID: <20240921195511.364023-1-leocstone@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: c919pm6j4a3i5yz5cb6eyd7gyyj6sa9k X-Rspamd-Queue-Id: 3BD914000F X-Rspamd-Server: rspam02 X-HE-Tag: 1726948630-221900 X-HE-Meta: U2FsdGVkX19CwBuY5AXXf4Wi+GJLuQwaLpzgxaWRTmnnYqlke+IAqDUnMdX0WVpp0XVFgawNQAYjUmDh8e66G+SL3KomEV6GRSvLILwOzLhvkojQjtSjtxSw4jB1v3h31c1aCjSF6MnVMyqKtq/IaR/6bsO8huMQgqPJqU0YtSgLSvLyRRau/j8ZJWtQZL10Y/ildBdbUXtMkt7FzWVzsg3P/ECUROB9tGKQty79Gz3dvvuEwK8g5tTGjg/RSpvpf81AqgyPubFlf/+iqe8b752iE0I08JgkdTo6ZhmSjRXzNFE4zJN3Ulu9IngHKL4kvJpDxD2e/a1cRH0eWFaIw1XPI62/QAlS1Qp7BhOpYyaKPcvgqiqb9g0BvPQx9+3cm0viiHMktgp2HKT7k2I4kePxCxf9R03pZEktmRA9WGqUzw12vdSyr9SgECWXduam/B4CLpxPKLXsEC06tLHdKWSAvoYD9RgPkhsMc6Eshwcsercd65Sdka+QqTqgw3PzgNopZRqWc8epYuscQ5dbiaVOJ2hll2CMEbqzgKSGOzdpPlE3iwmbZI42t9GR1OVAXygOZRoXg+5rZIsY+tMb7BTNcKqO+P7zN0x/m4yzD5uUzMCD5F8lZUIt/EwnB/ktfua3jk0PqQuvzdF6Yxv8Zfqu0jMjhjvEcFXU6gZ2ecn8XCzOlQbVOElJubngFMXD7+rmHU6nhT+nBYXDV/Wb5k55X0Rx6N7CAkNFaNdTZq2GWab3MpXLsQUijHKC7MWigaoZy+aP/v7bHDYJ78Eg20aCsCCkFIUe9ZoSFiPo2j9rQ8Nfw/zPQ4LRDaE+vI/zPqIzQxVkl8g+oBlEhv77Q9oxw9QcElhzRvGeU/0qqRFCIMzczi4HqFiyVyEpuanq/QI0vWz0vx7TXYH0ObAmU+GD5KNeJYnnInOrquFfci9mAyPlSRp0bGOJUqa4BmAwunrjuaBsu3rPcHFk9Rg mDrw6OA5 HF6fYCULa5LXdEo31eHhGzUgUwqo++41b5Iot78PBzHWXXwWq+dslEZomRTsDCn1W1f+h9kCxvWqDtIz4vZO7n4SVf/W8JYFcA27ZqhaF7w2+60hRnPS+nejhRaTT6QfBCoYwwM73M2+ih5Kc/8/KztqD27BJuIkKVzDUD5zaBrVt0RH6OYDJTNc/fBvOUJyYOPzUyNpffVPcwAPoMP4iPzoLpjK1GyYa5Y4OogNRpUN8N4228tLQO0yX5oWYOTqhTAWrUGeW1axmf74qyw4F39UzAsI3pOLZxnt/rU1jlfD/cStr8rWj/+KyFuv68q62qAdwO+xeA7GQzxmT6wlVD4+8vX9wtO3pCkmDK094wPaZdoFRyLNNAKCGqg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000402, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 Signed-off-by: Leo Stone Reviewed-by: SeongJae Park --- mm/damon/tests/vaddr-kunit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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},