aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-03-08 11:49:21 +0100
committerMichael S. Tsirkin <mst@redhat.com>2015-03-08 11:51:46 +0100
commit59ea3e7532a85b15bd551335b27fa97db48efa8d (patch)
tree5bd7ee534ff3704bf8724235ce7e6686dcc8bae6 /hw
parent56521fb88f7e3d2e3c7cf87d5f85e17e563c0df7 (diff)
downloadqemu-59ea3e7532a85b15bd551335b27fa97db48efa8d.zip
qemu-59ea3e7532a85b15bd551335b27fa97db48efa8d.tar.gz
qemu-59ea3e7532a85b15bd551335b27fa97db48efa8d.tar.bz2
acpi: drop unused code
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 <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i386/acpi-build.c12
1 files changed, 0 insertions, 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.
*/