From nobody Mon Apr 29 15:08:00 2024 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.zoho.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 149788150071139.30933280169836; Mon, 19 Jun 2017 07:11:40 -0700 (PDT) Received: from localhost ([::1]:42870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMxOz-00081z-7x for importer@patchew.org; Mon, 19 Jun 2017 10:11:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMwyp-0003Vl-Ta for qemu-devel@nongnu.org; Mon, 19 Jun 2017 09:44:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMwym-00046d-TE for qemu-devel@nongnu.org; Mon, 19 Jun 2017 09:44:36 -0400 Received: from gg-0.genua.de ([80.154.94.10]:32295 helo=gg.genua.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMwym-000424-LV for qemu-devel@nongnu.org; Mon, 19 Jun 2017 09:44:32 -0400 Received: from gg.genua.de (localhost [127.0.0.1]) by gg.genua.de (Postfix) with ESMTP id 2464F859DAB for ; Mon, 19 Jun 2017 15:44:29 +0200 (CEST) Received: (from localhost) by gg.genua.de (MSCAN) id 4/gg.genua.de/smtp-gw/mscan; Mon Jun 19 15:44:29 2017 From: Christian Ludwig To: qemu-devel@nongnu.org Date: Mon, 19 Jun 2017 15:44:08 +0200 Message-Id: <1497879848-7612-1-git-send-email-cludwig@genua.de> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.154.94.10 X-Mailman-Approved-At: Mon, 19 Jun 2017 10:09:29 -0400 Subject: [Qemu-devel] [PATCH] AcpiDeviceIf: More readable bitmask definition 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: Christian Ludwig Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" AcpiEventStatusBits defines bits in a bitmask. Having it in decimal notation is rather uncommon. Make it more clear which bits are meant there. No functional change. Signed-off-by: Christian Ludwig --- include/hw/acpi/acpi_dev_interface.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/hw/acpi/acpi_dev_interface.h b/include/hw/acpi/acpi_de= v_interface.h index 3c2e4e9..f526a6c 100644 --- a/include/hw/acpi/acpi_dev_interface.h +++ b/include/hw/acpi/acpi_dev_interface.h @@ -7,11 +7,11 @@ =20 /* These values are part of guest ABI, and can not be changed */ typedef enum { - ACPI_PCI_HOTPLUG_STATUS =3D 2, - ACPI_CPU_HOTPLUG_STATUS =3D 4, - ACPI_MEMORY_HOTPLUG_STATUS =3D 8, - ACPI_NVDIMM_HOTPLUG_STATUS =3D 16, - ACPI_VMGENID_CHANGE_STATUS =3D 32, + ACPI_PCI_HOTPLUG_STATUS =3D (1 << 1), + ACPI_CPU_HOTPLUG_STATUS =3D (1 << 2), + ACPI_MEMORY_HOTPLUG_STATUS =3D (1 << 3), + ACPI_NVDIMM_HOTPLUG_STATUS =3D (1 << 4), + ACPI_VMGENID_CHANGE_STATUS =3D (1 << 5), } AcpiEventStatusBits; =20 #define TYPE_ACPI_DEVICE_IF "acpi-device-interface" --=20 2.1.4