2013-07-09 03:06:43

by Murphy Zhou

[permalink] [raw]
Subject: [PATCH] x86: ce4100: add head file for reboot type

From: Xiong Zhou <[email protected]>

Add head file for reboot type stuff to fix this:
error: ?reboot_type? undeclared (first use in this function)
error: ?BOOT_KBD? undeclared (first use in this function)

Signed-off-by: Xiong Zhou <[email protected]>
---
arch/x86/platform/ce4100/ce4100.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c
index baec704..643b8b5e 100644
--- a/arch/x86/platform/ce4100/ce4100.c
+++ b/arch/x86/platform/ce4100/ce4100.c
@@ -14,6 +14,7 @@
#include <linux/module.h>
#include <linux/serial_reg.h>
#include <linux/serial_8250.h>
+#include <linux/reboot.h>

#include <asm/ce4100.h>
#include <asm/prom.h>


2013-07-12 03:47:37

by Murphy Zhou

[permalink] [raw]
Subject: Re: [PATCH] x86: ce4100: add head file for reboot type

2013/7/9 Xiong Zhou <[email protected]>:
> From: Xiong Zhou <[email protected]>
>
> Add head file for reboot type stuff to fix this:
> error: ?reboot_type? undeclared (first use in this function)
> error: ?BOOT_KBD? undeclared (first use in this function)
>
> Signed-off-by: Xiong Zhou <[email protected]>
> ---
> arch/x86/platform/ce4100/ce4100.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c
> index baec704..643b8b5e 100644
> --- a/arch/x86/platform/ce4100/ce4100.c
> +++ b/arch/x86/platform/ce4100/ce4100.c
> @@ -14,6 +14,7 @@
> #include <linux/module.h>
> #include <linux/serial_reg.h>
> #include <linux/serial_8250.h>
> +#include <linux/reboot.h>
>
> #include <asm/ce4100.h>
> #include <asm/prom.h>



cc Jiri Kosina <[email protected]>

Subject: [tip:x86/urgent] x86/platform/ce4100: Add header file for reboot type

Commit-ID: ff5599816711d2e67da2d7561fd36ac48debd433
Gitweb: http://git.kernel.org/tip/ff5599816711d2e67da2d7561fd36ac48debd433
Author: Xiong Zhou <[email protected]>
AuthorDate: Tue, 9 Jul 2013 11:06:27 +0800
Committer: Ingo Molnar <[email protected]>
CommitDate: Fri, 12 Jul 2013 12:21:20 +0200

x86/platform/ce4100: Add header file for reboot type

Add header file for reboot type to fix this build failure:

error: 'reboot_type' undeclared (first use in this function)
error: 'BOOT_KBD' undeclared (first use in this function)

Signed-off-by: Xiong Zhou <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1307091053280.28371@M2420
Signed-off-by: Ingo Molnar <[email protected]>
---
arch/x86/platform/ce4100/ce4100.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c
index f8ab494..9962015 100644
--- a/arch/x86/platform/ce4100/ce4100.c
+++ b/arch/x86/platform/ce4100/ce4100.c
@@ -14,6 +14,7 @@
#include <linux/module.h>
#include <linux/serial_reg.h>
#include <linux/serial_8250.h>
+#include <linux/reboot.h>

#include <asm/ce4100.h>
#include <asm/prom.h>