Skip to content

Commit

Permalink
ipc, kernel: use Linux headers
Browse files Browse the repository at this point in the history
Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
Use #include <linux/types.h> instead of <asm/types.h>

Signed-off-by: Paul McQuade <paulmcquad@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
paulmcquad authored and torvalds committed Jun 6, 2014
1 parent eb66ec4 commit 7153e40
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ipc/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <linux/ptrace.h>

#include <linux/mutex.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion ipc/compat_mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/mqueue.h>
#include <linux/syscalls.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>

struct compat_mq_attr {
compat_long_t mq_flags; /* message queue flags */
Expand Down
2 changes: 1 addition & 1 deletion ipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <linux/ipc_namespace.h>

#include <asm/current.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include "util.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#include <linux/nsproxy.h>
#include <linux/ipc_namespace.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include "util.h"

/* One semaphore structure for each semaphore in the system. */
Expand Down
2 changes: 1 addition & 1 deletion ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <linux/mount.h>
#include <linux/ipc_namespace.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion kernel/acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include <linux/times.h>
#include <linux/syscalls.h>
#include <linux/mount.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/div64.h>
#include <linux/blkdev.h> /* sector_div */
#include <linux/pid_namespace.h>
Expand Down
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/init.h>
#include <asm/types.h>
#include <linux/types.h>
#include <linux/atomic.h>
#include <linux/mm.h>
#include <linux/export.h>
Expand Down

0 comments on commit 7153e40

Please sign in to comment.