From nobody Wed Feb 11 04:00:39 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; dkim=fail; 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 1500359750860261.57284167898104; Mon, 17 Jul 2017 23:35:50 -0700 (PDT) Received: from localhost ([::1]:54330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXM6m-0007Hh-I6 for importer@patchew.org; Tue, 18 Jul 2017 02:35:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLt2-0002Cx-BM for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXLt1-0001Zi-Mv for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:36 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:33874) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXLsz-0001WO-Nm; Tue, 18 Jul 2017 02:21:33 -0400 Received: by mail-qt0-x244.google.com with SMTP id 19so1352454qty.1; Mon, 17 Jul 2017 23:21:33 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id l31sm1099862qtc.64.2017.07.17.23.21.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 23:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j+TFNxNyAZQBtr8t7Z4o0l0BiUgv/VW7d5QtEyKdIUU=; b=maE5xu3xO6Z5rMgIzD0WjxKsehbnK2Y5/lhneF0hn9kDPHHhfAgtOzYVqfc6UN8lfp lUIZmR9xxwm2RBiSs2aNRDvua6u+UiSFGpw/knQYtP31YgJ9Qqy6jc2JJex5kwL8V5PP gyxtayBZUsswejSg6DhPLdGoZNGy5waU1HiJtqunjsAmTZHL5tNHDcDVAiuI0yV+paXY JxkdAOurlelLxiTndJKc/iah37pSybItqzoR5Pdd/QCn3cY0gu0XcvgjBwEDq4gPEa7N Iv6rXhW0JZ++ClaV7CrzrSKNlBn+6oq5gZbSxYdpUVt0z66Bso4jx+c4catwIAQgDLkt TyYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=j+TFNxNyAZQBtr8t7Z4o0l0BiUgv/VW7d5QtEyKdIUU=; b=hNDu1S6yePhYSywhTkj1WLtrj/eUEGYxmLMEQYDKXx87bzusTBNASRviXYsyAqs8xH 2KVrk5sgfXeeqn/ocfixMu2NOoLPME0gs1CLmBDKCF0yJ6ro7Q3gt81QbYQ4C4i2e9a1 2afbW78Lk/yXlJxQpNV45eUAwBufQCFMyY+aKpGzbz/iwWJ7eBO9C7p2lQqXgIMByd1u +YpQl8vMSGVPEhzfGwM1lx/htPKOgo54h6GhE61vynEgzTWNxEPI26JPPHckOt/BJQ+d pM8dGOa4fWb9s9V2uuChSSe6znjzbSfSwGv5Xwpr21ReOtuUbNqFdK6gvO9rxaSEXqGf Vubw== X-Gm-Message-State: AIVw112xzhrSFWL/RV1Lbt2P35mpXHE1jd5AFUBe9oAUzkmBCdlYkcXc lbpzUs8jcHuE2sXNmTMEdw== X-Received: by 10.237.39.97 with SMTP id n88mr133165qtd.78.1500358893142; Mon, 17 Jul 2017 23:21:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, Stefan Hajnoczi , Fam Zheng Date: Tue, 18 Jul 2017 03:09:59 -0300 Message-Id: <20170718061005.29518-24-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170718061005.29518-1-f4bug@amsat.org> References: <20170718061005.29518-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH 23/29] async: 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-block@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.co= cci Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau --- util/aio-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/aio-posix.c b/util/aio-posix.c index 2d51239ec6..e89fd7024a 100644 --- a/util/aio-posix.c +++ b/util/aio-posix.c @@ -119,7 +119,7 @@ static int aio_epoll(AioContext *ctx, GPollFD *pfds, } if (timeout <=3D 0 || ret > 0) { ret =3D epoll_wait(ctx->epollfd, events, - sizeof(events) / sizeof(events[0]), + ARRAY_SIZE(events), timeout); if (ret <=3D 0) { goto out; --=20 2.13.2