public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: include: asm: Fix build warning
@ 2015-09-29 16:25 Ksenija Stanojevic
  2015-09-29 17:06 ` Borislav Petkov
  0 siblings, 1 reply; 7+ messages in thread
From: Ksenija Stanojevic @ 2015-09-29 16:25 UTC (permalink / raw)
  To: tglx; +Cc: mingo, hpa, x86, linux-kernel, Ksenija Stanojevic

Fix build warnings:

error: implicit declaration of function ‘olpc_board_at_least’
[-Werror=implicit-function-declaration]

 error: implicit declaration of function ‘olpc_board’
[-Werror=implicit-function-declaration]

in files:
drivers/power/olpc_battery.c
drivers/input/mouse/hgpk.c
drivers/staging/olpc_dcon/olpc_dcon.c
arch/x86/platform/olpc/olpc.c
sound/pci/cs5535audio/cs5535audio_olpc.c

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
---
 arch/x86/include/asm/olpc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/x86/include/asm/olpc.h b/arch/x86/include/asm/olpc.h
index 72f9adf6..8976244 100644
--- a/arch/x86/include/asm/olpc.h
+++ b/arch/x86/include/asm/olpc.h
@@ -72,6 +72,11 @@ extern int olpc_ec_sci_query(u16 *sci_value);
 
 #else
 
+static inline uint32_t olpc_board(uint8_t id)
+{
+	return 0;
+}
+
 static inline int machine_is_olpc(void)
 {
 	return 0;
@@ -82,6 +87,11 @@ static inline int olpc_has_dcon(void)
 	return 0;
 }
 
+static inline int olpc_board_at_least(uint32_t rev)
+{
+	return 0;
+}
+
 static inline void olpc_ec_wakeup_set(u16 value) { }
 static inline void olpc_ec_wakeup_clear(u16 value) { }
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-29 17:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 16:25 [PATCH] x86: include: asm: Fix build warning Ksenija Stanojevic
2015-09-29 17:06 ` Borislav Petkov
2015-09-29 17:08   ` H. Peter Anvin
2015-09-29 17:12     ` Ksenija Stanojević
2015-09-29 17:16       ` Borislav Petkov
2015-09-29 17:19         ` Ksenija Stanojević
2015-09-29 17:31           ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox