From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUYww-0001es-KA for qemu-devel@nongnu.org; Sun, 08 Mar 2015 07:00:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUYwq-0007vq-V9 for qemu-devel@nongnu.org; Sun, 08 Mar 2015 07:00:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUYwq-0007vT-Ju for qemu-devel@nongnu.org; Sun, 08 Mar 2015 07:00:40 -0400 Date: Sun, 8 Mar 2015 12:00:34 +0100 From: "Michael S. Tsirkin" Message-ID: <1425812118-20220-4-git-send-email-mst@redhat.com> References: <1425812118-20220-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425812118-20220-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL v6 3/3] acpi: drop unused code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Richard Henderson , Anthony Liguori , Paolo Bonzini Recent changes left acpi_get_hex unused, and clag is unhappy about it: error: unused function 'acpi_get_hex' Drop it, as well as some unused macros. Signer-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index d5e1016..d0a5c85 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -467,20 +467,8 @@ build_madt(GArray *table_data, GArray *linker, AcpiCpuInfo *cpu, table_data->len - madt_start, 1); } -/* Encode a hex value */ -static inline char acpi_get_hex(uint32_t val) -{ - val &= 0x0f; - return (val <= 9) ? ('0' + val) : ('A' + val - 10); -} - - -#define ACPI_SSDT_SIGNATURE 0x54445353 /* SSDT */ -#define ACPI_SSDT_HEADER_LENGTH 36 - #include "hw/i386/ssdt-tpm.hex" - /* Assign BSEL property to all buses. In the future, this can be changed * to only assign to buses that support hotplug. */ -- MST