lkml.org 
[lkml]   [2011]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] x86/e820: fix build when ACPI is disabled
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build error when CONFIG_ACPI is not enabled:

arch/x86/kernel/e820.c:734: error:implicit declaration of function 'suspend_nvs_register'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
include/linux/acpi.h | 5 +++++
1 file changed, 5 insertions(+)

--- linux-next-20110112.orig/include/linux/acpi.h
+++ linux-next-20110112/include/linux/acpi.h
@@ -360,5 +360,10 @@ static inline int acpi_table_parse(char
{
return -1;
}
+
+static inline int suspend_nvs_register(unsigned long a, unsigned long b)
+{
+ return 0;
+}
#endif /* !CONFIG_ACPI */
#endif /*_LINUX_ACPI_H*/

\
 
 \ /
  Last update: 2011-01-12 21:23    [W:0.425 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site