From: Simon Glass Date: Mon, 7 Nov 2016 15:47:03 +0000 (-0700) Subject: x86: Correct a build warning in x86 tables X-Git-Tag: v2017.01-rc1~252^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f3f0357aa79212e06fadf2149a85e0fa435a8eb;p=platform%2Fkernel%2Fu-boot.git 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 Signed-off-by: Alexander Graf --- 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 #include +#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