diff mbox

sparc64: cheaper asm/uaccess.h inclusion

Message ID 20090813200543.GA2376@x200.localdomain
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Alexey Dobriyan Aug. 13, 2009, 8:05 p.m. UTC
sched.h inclusion is definitely not needed like in 32-bit version,
remove it, fixup compilation.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 arch/sparc/include/asm/uaccess_64.h |    2 +-
 arch/sparc/kernel/sysfs.c           |    1 +
 samples/kprobes/kretprobe_example.c |    1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

David Miller Aug. 17, 2009, 1:26 a.m. UTC | #1
From: Alexey Dobriyan <adobriyan@gmail.com>
Date: Fri, 14 Aug 2009 00:05:43 +0400

> sched.h inclusion is definitely not needed like in 32-bit version,
> remove it, fixup compilation.
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>

Looks good, applied.

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/arch/sparc/include/asm/uaccess_64.h
+++ b/arch/sparc/include/asm/uaccess_64.h
@@ -7,8 +7,8 @@ 
 
 #ifdef __KERNEL__
 #include <linux/compiler.h>
-#include <linux/sched.h>
 #include <linux/string.h>
+#include <linux/thread_info.h>
 #include <asm/asi.h>
 #include <asm/system.h>
 #include <asm/spitfire.h>
--- a/arch/sparc/kernel/sysfs.c
+++ b/arch/sparc/kernel/sysfs.c
@@ -2,6 +2,7 @@ 
  *
  * Copyright (C) 2007 David S. Miller <davem@davemloft.net>
  */
+#include <linux/sched.h>
 #include <linux/sysdev.h>
 #include <linux/cpu.h>
 #include <linux/smp.h>
--- a/samples/kprobes/kretprobe_example.c
+++ b/samples/kprobes/kretprobe_example.c
@@ -23,6 +23,7 @@ 
 #include <linux/kprobes.h>
 #include <linux/ktime.h>
 #include <linux/limits.h>
+#include <linux/sched.h>
 
 static char func_name[NAME_MAX] = "do_fork";
 module_param_string(func, func_name, NAME_MAX, S_IRUGO);