Commit d1eae390 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Kill bogus __KERNEL_SYSCALLS usage

From: Dave Jones <davej@redhat.com>

Now that the syscalls.h stuff is in mainline, that clears the way for this
I guess?
parent 2b8095b7
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
* This file handles the architecture-dependent parts of process handling.. * This file handles the architecture-dependent parts of process handling..
*/ */
#define __KERNEL_SYSCALLS__
#include <stdarg.h> #include <stdarg.h>
#include <linux/errno.h> #include <linux/errno.h>
...@@ -23,7 +22,6 @@ ...@@ -23,7 +22,6 @@
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/user.h> #include <linux/user.h>
......
...@@ -30,9 +30,6 @@ ...@@ -30,9 +30,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#define __KERNEL_SYSCALLS__
#include <asm/unistd.h>
#include "h8.h" #include "h8.h"
#define DEBUG_H8 #define DEBUG_H8
......
...@@ -44,9 +44,6 @@ ...@@ -44,9 +44,6 @@
#include <linux/kmod.h> #include <linux/kmod.h>
#endif #endif
#define __KERNEL_SYSCALLS__
#include <linux/unistd.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#define MAJOR_NR MD_MAJOR #define MAJOR_NR MD_MAJOR
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -59,9 +59,6 @@ ...@@ -59,9 +59,6 @@
#include <net/ax25.h> #include <net/ax25.h>
#endif /* CONFIG_AX25 || CONFIG_AX25_MODULE */ #endif /* CONFIG_AX25 || CONFIG_AX25_MODULE */
#define __KERNEL_SYSCALLS__
#include <linux/unistd.h>
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
#define BAYCOM_DEBUG #define BAYCOM_DEBUG
......
...@@ -32,12 +32,8 @@ ...@@ -32,12 +32,8 @@
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/pci.h> #include <linux/pci.h>
#define __KERNEL_SYSCALLS__
#define SHUTDOWN_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGTERM)) #define SHUTDOWN_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGTERM))
#include <linux/unistd.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/dma.h> #include <asm/dma.h>
......
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mempool.h> #include <linux/mempool.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#define __KERNEL_SYSCALLS__
#include <linux/unistd.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/bio.h> #include <linux/bio.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
......
...@@ -26,14 +26,7 @@ ...@@ -26,14 +26,7 @@
* maybe other stuff do to. * maybe other stuff do to.
*/ */
/* Argh. Some architectures have kernel_thread in asm/processor.h
Some have it in unistd.h and you need to define __KERNEL_SYSCALLS__
Pass me a baseball bat and the person responsible.
dwmw2
*/
#define __KERNEL_SYSCALLS__
#include <linux/time.h> #include <linux/time.h>
#include <linux/unistd.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -11,14 +11,10 @@ ...@@ -11,14 +11,10 @@
* *
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/jffs2.h> #include <linux/jffs2.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/sched.h>
#include <linux/unistd.h>
#include <linux/suspend.h> #include <linux/suspend.h>
#include "nodelist.h" #include "nodelist.h"
......
...@@ -6,13 +6,10 @@ ...@@ -6,13 +6,10 @@
* Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/module.h> #include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/nfs_fs.h> #include <linux/nfs_fs.h>
#include <linux/unistd.h>
#include <linux/sunrpc/clnt.h> #include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/svc.h> #include <linux/sunrpc/svc.h>
#include <linux/lockd/lockd.h> #include <linux/lockd/lockd.h>
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -23,7 +22,6 @@ ...@@ -23,7 +22,6 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/in.h> #include <linux/in.h>
#include <linux/uio.h> #include <linux/uio.h>
#include <linux/unistd.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
......
...@@ -10,12 +10,9 @@ ...@@ -10,12 +10,9 @@
* to allow signals to be sent reliably. * to allow signals to be sent reliably.
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/config.h> #include <linux/config.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/unistd.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched.h> #include <linux/sched.h>
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
* $Id: core.c,v 1.20 2002/08/04 21:23:58 maxk Exp $ * $Id: core.c,v 1.20 2002/08/04 21:23:58 maxk Exp $
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
* $Id: core.c,v 1.42 2002/10/01 23:26:25 maxk Exp $ * $Id: core.c,v 1.42 2002/10/01 23:26:25 maxk Exp $
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/errno.h> #include <linux/errno.h>
......
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
#include <net/route.h> #include <net/route.h>
#include <linux/ip.h> #include <linux/ip.h>
#define __KERNEL_SYSCALLS__
#include <linux/unistd.h>
/* In this code, we can be waiting indefinitely for userspace to /* In this code, we can be waiting indefinitely for userspace to
* service a packet if a hook returns NF_QUEUE. We could keep a count * service a packet if a hook returns NF_QUEUE. We could keep a count
* of skbuffs queued for userspace, and not deregister a hook unless * of skbuffs queued for userspace, and not deregister a hook unless
......
...@@ -11,12 +11,10 @@ ...@@ -11,12 +11,10 @@
#include <linux/module.h> #include <linux/module.h>
#define __KERNEL_SYSCALLS__
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mempool.h> #include <linux/mempool.h>
#include <linux/unistd.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
......
...@@ -6,13 +6,11 @@ ...@@ -6,13 +6,11 @@
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/linkage.h> #include <linux/linkage.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/net.h> #include <linux/net.h>
#include <linux/in.h> #include <linux/in.h>
#include <linux/unistd.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sunrpc/types.h> #include <linux/sunrpc/types.h>
......
...@@ -43,8 +43,6 @@ ...@@ -43,8 +43,6 @@
* (C) 1999 Trond Myklebust <trond.myklebust@fys.uio.no> * (C) 1999 Trond Myklebust <trond.myklebust@fys.uio.no>
*/ */
#define __KERNEL_SYSCALLS__
#include <linux/types.h> #include <linux/types.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/capability.h> #include <linux/capability.h>
...@@ -56,7 +54,6 @@ ...@@ -56,7 +54,6 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/udp.h> #include <linux/udp.h>
#include <linux/tcp.h> #include <linux/tcp.h>
#include <linux/unistd.h>
#include <linux/sunrpc/clnt.h> #include <linux/sunrpc/clnt.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment