]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
acpi: Fix unused function warning.
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 22 Feb 2015 13:42:43 +0000 (14:42 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sun, 22 Feb 2015 13:42:43 +0000 (14:42 +0100)
grub-core/commands/acpi.c

index 5507ffa0885834e037c9ab98ce13e732fc7100ad..05a6dcad45e4c788c20d8fc352803434bba1a7c4 100644 (file)
@@ -131,6 +131,8 @@ grub_acpi_get_rsdpv1 (void)
   return grub_machine_acpi_get_rsdpv1 ();
 }
 
+#if defined (__i386__) || defined (__x86_64__)
+
 static inline int
 iszero (grub_uint8_t *reg, int size)
 {
@@ -141,7 +143,6 @@ iszero (grub_uint8_t *reg, int size)
   return 1;
 }
 
-#if defined (__i386__) || defined (__x86_64__)
 /* Context for grub_acpi_create_ebda.  */
 struct grub_acpi_create_ebda_ctx {
   int ebda_len;