From patchwork Tue Jul 18 06:10:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 789924 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="viAE7W3p"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xBVfM4zwTz9s3w for ; Tue, 18 Jul 2017 16:30:51 +1000 (AEST) Received: from localhost ([::1]:54301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXM1x-0002O7-IL for incoming@patchwork.ozlabs.org; Tue, 18 Jul 2017 02:30:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLt5-0002Fd-Ip for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXLt4-0001dk-Rb for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:21:39 -0400 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:33876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXLt2-0001aM-BN; Tue, 18 Jul 2017 02:21:36 -0400 Received: by mail-qt0-x241.google.com with SMTP id 19so1352515qty.1; Mon, 17 Jul 2017 23:21:36 -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=pZHSt1hH1+s42g1hyxp1EUwGxT5lC542JFIQ26i8S0Y=; b=viAE7W3pdAem/aTXeGLGGOAQlqMG4JHxIsmOYL2ZhZLKXsLhQUZfjFZl9v+wOmPmW3 UeIWjABXmo4MJ9wE5jqH+u0KvofEImW9zQtS0RGMkXpHnxDLBGkx5gzfaYy4CThJOb1G omVZZTTOW9kp++rQkGMezU2+Ql5Z7Fwtu0nuNdktFE4f/ayR/3HHc6Duj9k2PhulOpiL AtzzyuI1u48y7zl818b+dS2WG6DZKuhHH3GdEVqHPgsgXJBWnfqaitvqO/mdQP+EW4w/ G2Aevx7eUzm6eKT8J5QSgR8t7FtPnEhgQfKA4N4dJHtgkyziJDvLkSawLSZYmQ7h/7dr 0v/w== 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=pZHSt1hH1+s42g1hyxp1EUwGxT5lC542JFIQ26i8S0Y=; b=sG8wsgzHVqHPl/ghUu0lj0C4VyXqYiFmoHxa5fpf9LSe6SnfMs0bLM9WZzqjyNoocJ CHvj1DCkNtddLqbUCVQUst5O885NzLUdY+2EAN/hbKu1jg2foI07C/JIjLYddxAeX1JS WMWOzdSger3M+VhBG6lvERUFesU+BQyXsOyXw+sV+0hkKBqCg72lxH85x/Rqx1G0jWTX UOYf8ES73Wmaid9It0nChC3ZsfaVIllrLnj80G/6oDUllYckqx0yisRyRvDOyPuSpgC0 sYRzG95oukt8xVYFm0kgDmXGh4DcP6XngQH3YWg7Fk8lO8iHhHROiyUb1N4hyNZXSxia gf4w== X-Gm-Message-State: AIVw1107z9Fc2NN9zPu0XM7FRjCGB8qR+QyQLHFIMiuycSErBnxYDPTz fO0ljOYXTA/Ct56P9CLNFQ== X-Received: by 10.237.45.194 with SMTP id i60mr26603qtd.121.1500358895779; Mon, 17 Jul 2017 23:21:35 -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.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 23:21:35 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, "Michael S. Tsirkin" , Igor Mammedov Date: Tue, 18 Jul 2017 03:10:00 -0300 Message-Id: <20170718061005.29518-25-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 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::241 Subject: [Qemu-devel] [PATCH 24/29] tests/acpi: 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-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci Signed-off-by: Philippe Mathieu-Daudé --- tests/acpi-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acpi-utils.h b/tests/acpi-utils.h index f8d87236c6..91ee0a273d 100644 --- a/tests/acpi-utils.h +++ b/tests/acpi-utils.h @@ -58,7 +58,7 @@ typedef struct { } while (0); #define ACPI_READ_ARRAY(arr, addr) \ - ACPI_READ_ARRAY_PTR(arr, sizeof(arr) / sizeof(arr[0]), addr) + ACPI_READ_ARRAY_PTR(arr, ARRAY_SIZE(arr), addr) #define ACPI_READ_TABLE_HEADER(table, addr) \ do { \