diff mbox

[U-Boot,v4,01/14] x86: Correct a build warning in x86 tables

Message ID 1478533636-17577-2-git-send-email-sjg@chromium.org
State Accepted
Commit 1f3f0357aa79212e06fadf2149a85e0fa435a8eb
Delegated to: Alexander Graf
Headers show

Commit Message

Simon Glass Nov. 7, 2016, 3:47 p.m. UTC
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>
---

Changes in v4: None
Changes in v3: None
Changes in v2: None

 arch/x86/lib/tables.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Alexander Graf Nov. 14, 2016, 11:05 p.m. UTC | #1
> 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>

Thanks, applied to efi-next

Alex
diff mbox

Patch

diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index 025b183..5966e58 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -12,10 +12,12 @@ 
 #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