From nobody Mon Feb 9 19:08:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1518250101075586.4114024255451; Sat, 10 Feb 2018 00:08:21 -0800 (PST) Received: from localhost ([::1]:37597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQCq-0004F1-5i for importer@patchew.org; Sat, 10 Feb 2018 03:08:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQ7o-00006E-BQ for qemu-devel@nongnu.org; Sat, 10 Feb 2018 03:03:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekQ7k-0000Ve-DH for qemu-devel@nongnu.org; Sat, 10 Feb 2018 03:03:08 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:39625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQ7k-0000Uw-5h; Sat, 10 Feb 2018 03:03:04 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 5715040C4E; Sat, 10 Feb 2018 11:03:03 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id A3E7A7B6; Sat, 10 Feb 2018 10:55:16 +0300 (MSK) Received: (nullmailer pid 22813 invoked by uid 1000); Sat, 10 Feb 2018 07:55:14 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Sat, 10 Feb 2018 10:55:08 +0300 Message-Id: <01a6df1b689d28341711aefd2406935d783643f7.1518249254.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 86.62.121.231 Subject: [Qemu-devel] [PULL 13/17] qga: use ARRAY_SIZE macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Michael Tokarev , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Philippe Mathieu-Daud=C3=A9 Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.co= cci Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Michael Tokarev Reviewed-by: Marc-Andr=C3=A9 Lureau --- qga/commands-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 88807f3c78..967061444a 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -901,7 +901,7 @@ static void build_guest_fsinfo_for_real_device(char con= st *syspath, if (p && sscanf(q, "%u", &host) =3D=3D 1) { has_host =3D true; nhosts =3D build_hosts(syspath, p, has_ata, hosts, - sizeof(hosts) / sizeof(hosts[0]), errp); + ARRAY_SIZE(hosts), errp); if (nhosts < 0) { goto cleanup; } --=20 2.11.0