Commit bae753be authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt: use generic linux/uaccess.h header

asm/uaccess.h is an arch-local, partial header which may cause build
issues if included directly.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 6171f857
......@@ -27,7 +27,7 @@
#include <linux/time.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <rtdm/driver.h>
/* --- Trace section --- */
......
......@@ -23,7 +23,7 @@
#define _COBALT_ARM_ASM_SYSCALL_H
#include <linux/errno.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/unistd.h>
#include <asm/ptrace.h>
#include <asm-generic/xenomai/syscall.h>
......
......@@ -23,7 +23,7 @@
#define _COBALT_ARM64_ASM_SYSCALL_H
#include <linux/errno.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/unistd.h>
#include <asm/ptrace.h>
#include <asm-generic/xenomai/syscall.h>
......
......@@ -21,11 +21,7 @@
#include <linux/types.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
#include <asm/uaccess.h>
#else
#include <linux/uaccess.h>
#endif
#include <asm/xenomai/features.h>
#include <asm/xenomai/wrappers.h>
#include <asm/xenomai/machine.h>
......
......@@ -26,8 +26,8 @@
#include <linux/termios.h>
#include <linux/spinlock.h>
#include <linux/device.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <cobalt/kernel/sched.h>
#include <cobalt/kernel/heap.h>
#include <cobalt/kernel/pipe.h>
......
......@@ -22,7 +22,7 @@
#include <linux/ioport.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <rtdm/driver.h>
#include <rtdm/analogy/device.h>
......
......@@ -47,8 +47,8 @@
#include <linux/mii.h>
#include <linux/completion.h>
#include <linux/crc32.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/uaccess.h>
/* *** RTnet *** */
#include <rtnet_port.h>
......
......@@ -95,10 +95,10 @@ static int local_debug = -1; /* The debug level */
#include <linux/init.h>
#include <linux/mii.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
......
......@@ -28,7 +28,7 @@
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/bitops.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <net/arp.h>
#define rtos_spinlock_t rtdm_lock_t
......
......@@ -255,10 +255,10 @@ static int vortex_debug = 1;
#include <linux/skbuff.h>
#include <linux/ethtool.h>
#include <linux/highmem.h>
#include <linux/uaccess.h>
#include <asm/irq.h> /* For NR_IRQS only. */
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/uaccess.h>
// *** RTnet ***
#include <rtnet_port.h>
......
......@@ -37,13 +37,13 @@
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <asm/immap_8260.h>
#include <asm/pgtable.h>
#include <asm/mpc8260.h>
#include <asm/irq.h>
#include <asm/bitops.h>
#include <asm/uaccess.h>
#include <asm/cpm_8260.h>
#ifdef CONFIG_XENO_DRIVERS_NET_USE_MDIO
......
......@@ -45,12 +45,12 @@
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <asm/8xx_immap.h>
#include <asm/pgtable.h>
#include <asm/mpc8xx.h>
#include <asm/bitops.h>
#include <asm/uaccess.h>
#include <asm/irq.h>
#include <asm/commproc.h>
......
......@@ -56,13 +56,13 @@
#include <linux/spinlock.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/uaccess.h>
#include <asm/8xx_immap.h>
#include <asm/pgtable.h>
#include <asm/mpc8xx.h>
#include <asm/irq.h>
#include <asm/bitops.h>
#include <asm/uaccess.h>
#include <asm/commproc.h>
#ifdef CONFIG_XENO_DRIVERS_NET_USE_MDIO
......
......@@ -165,11 +165,11 @@
#include <linux/delay.h>
#include <linux/rtnetlink.h>
#include <linux/mii.h>
#include <linux/uaccess.h>
#include <asm/processor.h> /* Processor type for cache alignment. */
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
/*** RTnet ***/
#include <rtnet_port.h>
......
......@@ -46,10 +46,10 @@ DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Jan.Kiszka@web.de\n";
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/crc32.h>
#include <linux/uaccess.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/uaccess.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
......
......@@ -29,8 +29,8 @@
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/crc32.h>
#include <linux/uaccess.h>
#include <asm/unaligned.h>
#include <asm/uaccess.h>
#ifdef __sparc__
#include <asm/pbm.h>
......
......@@ -199,11 +199,11 @@ static const int multicast_filter_limit = 32;
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/crc32.h>
#include <linux/uaccess.h>
#include <asm/processor.h> /* Processor type for cache alignment. */
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
/*** RTnet ***/
#include <rtnet_port.h>
......
......@@ -24,7 +24,7 @@
*/
#include <linux/module.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <ipv4_chrdev.h>
#include <rtnet_internal.h>
......
......@@ -23,7 +23,7 @@
*/
#include <linux/module.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <nomac_chrdev.h>
#include <rtmac/nomac/nomac.h>
......
......@@ -24,8 +24,8 @@
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <asm/div64.h>
#include <asm/uaccess.h>
#include <tdma_chrdev.h>
#include <rtmac/rtmac_vnic.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