瀏覽代碼

x86: Correct a build warning in x86 tables

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>
Simon Glass 8 年之前
父節點
當前提交
1f3f0357aa
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/lib/tables.c

+ 2 - 0
arch/x86/lib/tables.c

@@ -12,10 +12,12 @@
 #include <asm/acpi_table.h>
 #include <asm/acpi_table.h>
 #include <asm/coreboot_tables.h>
 #include <asm/coreboot_tables.h>
 
 
+#ifdef CONFIG_GENERATE_SMBIOS_TABLE
 static u32 write_smbios_table_wrapper(u32 addr)
 static u32 write_smbios_table_wrapper(u32 addr)
 {
 {
 	return write_smbios_table(addr);
 	return write_smbios_table(addr);
 }
 }
+#endif
 
 
 /**
 /**
  * Function prototype to write a specific configuration table
  * Function prototype to write a specific configuration table