diff options
author | Matt Fleming <matt.fleming@intel.com> | 2014-03-05 05:03:59 -0500 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-03-05 05:12:39 -0500 |
commit | b663a685831905066e3efcb4c173cd8b3f46228b (patch) | |
tree | b131c0d5af97e3e2eb553b78cc6d3aa8061d7242 /arch/x86/boot | |
parent | 18c46461d9e42d398536055f31f58cdcd2c6347e (diff) |
x86, tools: Fix up compiler warnings
The kbuild test robot reported the following errors that were introduced
with commit 993c30a04e20 ("x86, tools: Consolidate #ifdef code"),
arch/x86/boot/tools/build.c: In function 'update_pecoff_setup_and_reloc':
>> arch/x86/boot/tools/build.c:252:1: error: parameter name omitted
static inline void update_pecoff_setup_and_reloc(unsigned int) {}
^
arch/x86/boot/tools/build.c: In function 'update_pecoff_text':
>> arch/x86/boot/tools/build.c:253:1: error: parameter name omitted
static inline void update_pecoff_text(unsigned int, unsigned int) {}
^
>> arch/x86/boot/tools/build.c:253:1: error: parameter name omitted
arch/x86/boot/tools/build.c: In function 'main':
>> arch/x86/boot/tools/build.c:372:2: warning: implicit declaration of function 'efi_stub_entry_update' [-Wimplicit-function-declaration]
efi_stub_entry_update();
^
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/tools/build.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/boot/tools/build.c b/arch/x86/boot/tools/build.c index 4f07df5ac5d9..1a2f2121cada 100644 --- a/arch/x86/boot/tools/build.c +++ b/arch/x86/boot/tools/build.c | |||
@@ -256,10 +256,11 @@ static void efi_stub_entry_update(void) | |||
256 | 256 | ||
257 | #else | 257 | #else |
258 | 258 | ||
259 | static inline void update_pecoff_setup_and_reloc(unsigned int) {} | 259 | static inline void update_pecoff_setup_and_reloc(unsigned int size) {} |
260 | static inline void update_pecoff_text(unsigned int, unsigned int) {} | 260 | static inline void update_pecoff_text(unsigned int text_start, |
261 | unsigned int file_sz) {} | ||
261 | static inline void efi_stub_defaults(void) {} | 262 | static inline void efi_stub_defaults(void) {} |
262 | static inline void efi_stup_entry_update(void) {} | 263 | static inline void efi_stub_entry_update(void) {} |
263 | 264 | ||
264 | static inline int reserve_pecoff_reloc_section(int c) | 265 | static inline int reserve_pecoff_reloc_section(int c) |
265 | { | 266 | { |