]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Correct a build warning in x86 tables
authorSimon Glass <sjg@chromium.org>
Mon, 7 Nov 2016 15:47:03 +0000 (08:47 -0700)
committerAlexander Graf <agraf@suse.de>
Mon, 14 Nov 2016 22:24:03 +0000 (23:24 +0100)
There is a build warning for three x86 boards since
write_smbios_table_wrapper() is not used. Fix it.

Fixes: e824cf3f (smbios: Allow compilation on 64bit systems)
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/x86/lib/tables.c

index 025b183d6bd7a61788e5680c370f82d555397fdc..5966e5862a31eddf5c2d39e582a6ec98e0c871d5 100644 (file)
 #include <asm/acpi_table.h>
 #include <asm/coreboot_tables.h>
 
+#ifdef CONFIG_GENERATE_SMBIOS_TABLE
 static u32 write_smbios_table_wrapper(u32 addr)
 {
        return write_smbios_table(addr);
 }
+#endif
 
 /**
  * Function prototype to write a specific configuration table