Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml

Pull UML changes from Richard Weinberger:
"UML receives this time only cleanups.

The most outstanding change is the 'include "foo.h"' do 'include
<foo.h>' conversion done by Al Viro.

It touches many files, that's why the diffstat is rather big."

* 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
typo in UserModeLinux-HOWTO
hppfs: fix the return value of get_inode()
hostfs: drop vmtruncate
um: get rid of pointless include "..." where include <...> will do
um: move sysrq.h out of include/shared
um/x86: merge 32 and 64 bit variants of ptrace.h
um/x86: merge 32 and 64bit variants of checksum.h

+641 -785
+1 -1
Documentation/virtual/uml/UserModeLinux-HOWTO.txt
··· 3591 3591 3592 3592 3593 3593 Looking at the source shows that the fault happened during a call to 3594 - copy_to_user to copy the data into the kernel: 3594 + copy_from_user to copy the data into the kernel: 3595 3595 3596 3596 3597 3597 107 count -= chars;
+2 -2
arch/um/drivers/chan_kern.c
··· 7 7 #include <linux/tty.h> 8 8 #include <linux/tty_flip.h> 9 9 #include "chan.h" 10 - #include "os.h" 11 - #include "irq_kern.h" 10 + #include <os.h> 11 + #include <irq_kern.h> 12 12 13 13 #ifdef CONFIG_NOCONFIG_CHAN 14 14 static void *not_configged_init(char *str, int device,
+2 -2
arch/um/drivers/chan_user.c
··· 11 11 #include <termios.h> 12 12 #include <sys/ioctl.h> 13 13 #include "chan_user.h" 14 - #include "os.h" 15 - #include "um_malloc.h" 14 + #include <os.h> 15 + #include <um_malloc.h> 16 16 17 17 void generic_close(int fd, void *unused) 18 18 {
+1 -1
arch/um/drivers/chan_user.h
··· 6 6 #ifndef __CHAN_USER_H__ 7 7 #define __CHAN_USER_H__ 8 8 9 - #include "init.h" 9 + #include <init.h> 10 10 11 11 struct chan_opts { 12 12 void (*const announce)(char *dev_name, int dev);
+3 -3
arch/um/drivers/cow_sys.h
··· 1 1 #ifndef __COW_SYS_H__ 2 2 #define __COW_SYS_H__ 3 3 4 - #include "kern_util.h" 5 - #include "os.h" 6 - #include "um_malloc.h" 4 + #include <kern_util.h> 5 + #include <os.h> 6 + #include <um_malloc.h> 7 7 8 8 static inline void *cow_malloc(int size) 9 9 {
+1 -1
arch/um/drivers/daemon.h
··· 6 6 #ifndef __DAEMON_H__ 7 7 #define __DAEMON_H__ 8 8 9 - #include "net_user.h" 9 + #include <net_user.h> 10 10 11 11 #define SWITCH_VERSION 3 12 12
+2 -2
arch/um/drivers/daemon_kern.c
··· 6 6 * Licensed under the GPL. 7 7 */ 8 8 9 - #include "linux/init.h" 9 + #include <linux/init.h> 10 10 #include <linux/netdevice.h> 11 - #include "net_kern.h" 11 + #include <net_kern.h> 12 12 #include "daemon.h" 13 13 14 14 struct daemon_init {
+3 -3
arch/um/drivers/daemon_user.c
··· 14 14 #include <sys/time.h> 15 15 #include <sys/un.h> 16 16 #include "daemon.h" 17 - #include "net_user.h" 18 - #include "os.h" 19 - #include "um_malloc.h" 17 + #include <net_user.h> 18 + #include <os.h> 19 + #include <um_malloc.h> 20 20 21 21 enum request_type { REQ_NEW_CONTROL }; 22 22
+2 -2
arch/um/drivers/fd.c
··· 9 9 #include <errno.h> 10 10 #include <termios.h> 11 11 #include "chan_user.h" 12 - #include "os.h" 13 - #include "um_malloc.h" 12 + #include <os.h> 13 + #include <um_malloc.h> 14 14 15 15 struct fd_chan { 16 16 int fd;
+1 -1
arch/um/drivers/harddog_user.c
··· 6 6 #include <stdio.h> 7 7 #include <unistd.h> 8 8 #include <errno.h> 9 - #include "os.h" 9 + #include <os.h> 10 10 11 11 struct dog_data { 12 12 int stdin;
+9 -9
arch/um/drivers/hostaudio_kern.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/fs.h" 7 - #include "linux/module.h" 8 - #include "linux/slab.h" 9 - #include "linux/sound.h" 10 - #include "linux/soundcard.h" 11 - #include "linux/mutex.h" 12 - #include "asm/uaccess.h" 13 - #include "init.h" 14 - #include "os.h" 6 + #include <linux/fs.h> 7 + #include <linux/module.h> 8 + #include <linux/slab.h> 9 + #include <linux/sound.h> 10 + #include <linux/soundcard.h> 11 + #include <linux/mutex.h> 12 + #include <asm/uaccess.h> 13 + #include <init.h> 14 + #include <os.h> 15 15 16 16 struct hostaudio_state { 17 17 int fd;
+8 -8
arch/um/drivers/line.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/irqreturn.h" 7 - #include "linux/kd.h" 8 - #include "linux/sched.h" 9 - #include "linux/slab.h" 6 + #include <linux/irqreturn.h> 7 + #include <linux/kd.h> 8 + #include <linux/sched.h> 9 + #include <linux/slab.h> 10 10 #include "chan.h" 11 - #include "irq_kern.h" 12 - #include "irq_user.h" 13 - #include "kern_util.h" 14 - #include "os.h" 11 + #include <irq_kern.h> 12 + #include <irq_user.h> 13 + #include <kern_util.h> 14 + #include <os.h> 15 15 16 16 #define LINE_BUFSIZE 4096 17 17
+6 -6
arch/um/drivers/line.h
··· 6 6 #ifndef __LINE_H__ 7 7 #define __LINE_H__ 8 8 9 - #include "linux/list.h" 10 - #include "linux/workqueue.h" 11 - #include "linux/tty.h" 12 - #include "linux/interrupt.h" 13 - #include "linux/spinlock.h" 14 - #include "linux/mutex.h" 9 + #include <linux/list.h> 10 + #include <linux/workqueue.h> 11 + #include <linux/tty.h> 12 + #include <linux/interrupt.h> 13 + #include <linux/spinlock.h> 14 + #include <linux/mutex.h> 15 15 #include "chan_user.h" 16 16 #include "mconsole_kern.h" 17 17
+1 -1
arch/um/drivers/mconsole.h
··· 12 12 #define u32 uint32_t 13 13 #endif 14 14 15 - #include "sysdep/ptrace.h" 15 + #include <sysdep/ptrace.h> 16 16 17 17 #define MCONSOLE_MAGIC (0xcafebabe) 18 18 #define MCONSOLE_MAX_DATA (512)
+5 -5
arch/um/drivers/mconsole_kern.c
··· 27 27 #include <asm/uaccess.h> 28 28 #include <asm/switch_to.h> 29 29 30 - #include "init.h" 31 - #include "irq_kern.h" 32 - #include "irq_user.h" 33 - #include "kern_util.h" 30 + #include <init.h> 31 + #include <irq_kern.h> 32 + #include <irq_user.h> 33 + #include <kern_util.h> 34 34 #include "mconsole.h" 35 35 #include "mconsole_kern.h" 36 - #include "os.h" 36 + #include <os.h> 37 37 38 38 static int do_unlink_socket(struct notifier_block *notifier, 39 39 unsigned long what, void *data)
+1 -1
arch/um/drivers/mconsole_kern.h
··· 6 6 #ifndef __MCONSOLE_KERN_H__ 7 7 #define __MCONSOLE_KERN_H__ 8 8 9 - #include "linux/list.h" 9 + #include <linux/list.h> 10 10 #include "mconsole.h" 11 11 12 12 struct mconsole_entry {
+1 -1
arch/um/drivers/mmapper_kern.c
··· 18 18 #include <linux/mm.h> 19 19 20 20 #include <asm/uaccess.h> 21 - #include "mem_user.h" 21 + #include <mem_user.h> 22 22 23 23 /* These are set in mmapper_init, which is called at boot time */ 24 24 static unsigned long mmapper_size;
+5 -5
arch/um/drivers/net_kern.c
··· 18 18 #include <linux/skbuff.h> 19 19 #include <linux/slab.h> 20 20 #include <linux/spinlock.h> 21 - #include "init.h" 22 - #include "irq_kern.h" 23 - #include "irq_user.h" 21 + #include <init.h> 22 + #include <irq_kern.h> 23 + #include <irq_user.h> 24 24 #include "mconsole_kern.h" 25 - #include "net_kern.h" 26 - #include "net_user.h" 25 + #include <net_kern.h> 26 + #include <net_user.h> 27 27 28 28 #define DRIVER_NAME "uml-netdev" 29 29
+3 -3
arch/um/drivers/net_user.c
··· 11 11 #include <string.h> 12 12 #include <sys/socket.h> 13 13 #include <sys/wait.h> 14 - #include "net_user.h" 15 - #include "os.h" 16 - #include "um_malloc.h" 14 + #include <net_user.h> 15 + #include <os.h> 16 + #include <um_malloc.h> 17 17 18 18 int tap_open_common(void *dev, char *gate_addr) 19 19 {
+1 -1
arch/um/drivers/null.c
··· 7 7 #include <errno.h> 8 8 #include <fcntl.h> 9 9 #include "chan_user.h" 10 - #include "os.h" 10 + #include <os.h> 11 11 12 12 /* This address is used only as a unique identifier */ 13 13 static int null_chan;
+2 -2
arch/um/drivers/pcap_kern.c
··· 3 3 * Licensed under the GPL. 4 4 */ 5 5 6 - #include "linux/init.h" 6 + #include <linux/init.h> 7 7 #include <linux/netdevice.h> 8 - #include "net_kern.h" 8 + #include <net_kern.h> 9 9 #include "pcap_user.h" 10 10 11 11 struct pcap_init {
+2 -2
arch/um/drivers/pcap_user.c
··· 7 7 #include <pcap.h> 8 8 #include <string.h> 9 9 #include <asm/types.h> 10 - #include "net_user.h" 10 + #include <net_user.h> 11 11 #include "pcap_user.h" 12 - #include "um_malloc.h" 12 + #include <um_malloc.h> 13 13 14 14 #define PCAP_FD(p) (*(int *)(p)) 15 15
+1 -1
arch/um/drivers/pcap_user.h
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "net_user.h" 6 + #include <net_user.h> 7 7 8 8 struct pcap_data { 9 9 char *host_if;
+10 -10
arch/um/drivers/port_kern.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/completion.h" 7 - #include "linux/interrupt.h" 8 - #include "linux/list.h" 9 - #include "linux/mutex.h" 10 - #include "linux/slab.h" 11 - #include "linux/workqueue.h" 12 - #include "asm/atomic.h" 13 - #include "init.h" 14 - #include "irq_kern.h" 15 - #include "os.h" 6 + #include <linux/completion.h> 7 + #include <linux/interrupt.h> 8 + #include <linux/list.h> 9 + #include <linux/mutex.h> 10 + #include <linux/slab.h> 11 + #include <linux/workqueue.h> 12 + #include <asm/atomic.h> 13 + #include <init.h> 14 + #include <irq_kern.h> 15 + #include <os.h> 16 16 #include "port.h" 17 17 18 18 struct port_list {
+2 -2
arch/um/drivers/port_user.c
··· 10 10 #include <unistd.h> 11 11 #include <netinet/in.h> 12 12 #include "chan_user.h" 13 - #include "os.h" 13 + #include <os.h> 14 14 #include "port.h" 15 - #include "um_malloc.h" 15 + #include <um_malloc.h> 16 16 17 17 struct port_chan { 18 18 int raw;
+2 -2
arch/um/drivers/pty.c
··· 12 12 #include <termios.h> 13 13 #include <sys/stat.h> 14 14 #include "chan_user.h" 15 - #include "os.h" 16 - #include "um_malloc.h" 15 + #include <os.h> 16 + #include <um_malloc.h> 17 17 18 18 struct pty_chan { 19 19 void (*announce)(char *dev_name, int dev);
+2 -2
arch/um/drivers/random.c
··· 13 13 #include <linux/miscdevice.h> 14 14 #include <linux/delay.h> 15 15 #include <asm/uaccess.h> 16 - #include "irq_kern.h" 17 - #include "os.h" 16 + #include <irq_kern.h> 17 + #include <os.h> 18 18 19 19 /* 20 20 * core module and version information
+1 -1
arch/um/drivers/slip_common.c
··· 1 1 #include <string.h> 2 2 #include "slip_common.h" 3 - #include "net_user.h" 3 + #include <net_user.h> 4 4 5 5 int slip_proto_read(int fd, void *buf, int len, struct slip_proto *slip) 6 6 {
+1 -1
arch/um/drivers/slip_kern.c
··· 6 6 #include <linux/if_arp.h> 7 7 #include <linux/init.h> 8 8 #include <linux/netdevice.h> 9 - #include "net_kern.h" 9 + #include <net_kern.h> 10 10 #include "slip.h" 11 11 12 12 struct slip_init {
+3 -3
arch/um/drivers/slip_user.c
··· 11 11 #include <string.h> 12 12 #include <sys/termios.h> 13 13 #include <sys/wait.h> 14 - #include "net_user.h" 15 - #include "os.h" 14 + #include <net_user.h> 15 + #include <os.h> 16 16 #include "slip.h" 17 - #include "um_malloc.h" 17 + #include <um_malloc.h> 18 18 19 19 static int slip_user_init(void *data, void *dev) 20 20 {
+3 -3
arch/um/drivers/slirp_kern.c
··· 4 4 */ 5 5 6 6 #include <linux/if_arp.h> 7 - #include "linux/init.h" 7 + #include <linux/init.h> 8 8 #include <linux/netdevice.h> 9 9 #include <linux/string.h> 10 - #include "net_kern.h" 11 - #include "net_user.h" 10 + #include <net_kern.h> 11 + #include <net_user.h> 12 12 #include "slirp.h" 13 13 14 14 struct slirp_init {
+2 -2
arch/um/drivers/slirp_user.c
··· 7 7 #include <errno.h> 8 8 #include <string.h> 9 9 #include <sys/wait.h> 10 - #include "net_user.h" 11 - #include "os.h" 10 + #include <net_user.h> 11 + #include <os.h> 12 12 #include "slirp.h" 13 13 14 14 static int slirp_user_init(void *data, void *dev)
+11 -11
arch/um/drivers/ssl.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/fs.h" 7 - #include "linux/tty.h" 8 - #include "linux/tty_driver.h" 9 - #include "linux/major.h" 10 - #include "linux/mm.h" 11 - #include "linux/init.h" 12 - #include "linux/console.h" 13 - #include "asm/termbits.h" 14 - #include "asm/irq.h" 6 + #include <linux/fs.h> 7 + #include <linux/tty.h> 8 + #include <linux/tty_driver.h> 9 + #include <linux/major.h> 10 + #include <linux/mm.h> 11 + #include <linux/init.h> 12 + #include <linux/console.h> 13 + #include <asm/termbits.h> 14 + #include <asm/irq.h> 15 15 #include "ssl.h" 16 16 #include "chan.h" 17 - #include "init.h" 18 - #include "irq_user.h" 17 + #include <init.h> 18 + #include <irq_user.h> 19 19 #include "mconsole_kern.h" 20 20 21 21 static const int ssl_version = 1;
+18 -18
arch/um/drivers/stdio_console.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/posix_types.h" 7 - #include "linux/tty.h" 8 - #include "linux/tty_flip.h" 9 - #include "linux/types.h" 10 - #include "linux/major.h" 11 - #include "linux/kdev_t.h" 12 - #include "linux/console.h" 13 - #include "linux/string.h" 14 - #include "linux/sched.h" 15 - #include "linux/list.h" 16 - #include "linux/init.h" 17 - #include "linux/interrupt.h" 18 - #include "linux/slab.h" 19 - #include "linux/hardirq.h" 20 - #include "asm/current.h" 21 - #include "asm/irq.h" 6 + #include <linux/posix_types.h> 7 + #include <linux/tty.h> 8 + #include <linux/tty_flip.h> 9 + #include <linux/types.h> 10 + #include <linux/major.h> 11 + #include <linux/kdev_t.h> 12 + #include <linux/console.h> 13 + #include <linux/string.h> 14 + #include <linux/sched.h> 15 + #include <linux/list.h> 16 + #include <linux/init.h> 17 + #include <linux/interrupt.h> 18 + #include <linux/slab.h> 19 + #include <linux/hardirq.h> 20 + #include <asm/current.h> 21 + #include <asm/irq.h> 22 22 #include "stdio_console.h" 23 23 #include "chan.h" 24 - #include "irq_user.h" 24 + #include <irq_user.h> 25 25 #include "mconsole_kern.h" 26 - #include "init.h" 26 + #include <init.h> 27 27 28 28 #define MAX_TTYS (16) 29 29
+2 -2
arch/um/drivers/tty.c
··· 7 7 #include <fcntl.h> 8 8 #include <termios.h> 9 9 #include "chan_user.h" 10 - #include "os.h" 11 - #include "um_malloc.h" 10 + #include <os.h> 11 + #include <um_malloc.h> 12 12 13 13 struct tty_chan { 14 14 char *dev;
+4 -4
arch/um/drivers/ubd_kern.c
··· 33 33 #include <linux/platform_device.h> 34 34 #include <linux/scatterlist.h> 35 35 #include <asm/tlbflush.h> 36 - #include "kern_util.h" 36 + #include <kern_util.h> 37 37 #include "mconsole_kern.h" 38 - #include "init.h" 39 - #include "irq_kern.h" 38 + #include <init.h> 39 + #include <irq_kern.h> 40 40 #include "ubd.h" 41 - #include "os.h" 41 + #include <os.h> 42 42 #include "cow.h" 43 43 44 44 enum ubd_req { UBD_READ, UBD_WRITE };
+1 -1
arch/um/drivers/ubd_user.c
··· 19 19 #include <byteswap.h> 20 20 21 21 #include "ubd.h" 22 - #include "os.h" 22 + #include <os.h> 23 23 24 24 void ignore_sigwinch_sig(void) 25 25 {
+1 -1
arch/um/drivers/umcast.h
··· 6 6 #ifndef __DRIVERS_UMCAST_H 7 7 #define __DRIVERS_UMCAST_H 8 8 9 - #include "net_user.h" 9 + #include <net_user.h> 10 10 11 11 struct umcast_data { 12 12 char *addr;
+2 -2
arch/um/drivers/umcast_kern.c
··· 11 11 * Licensed under the GPL. 12 12 */ 13 13 14 - #include "linux/init.h" 14 + #include <linux/init.h> 15 15 #include <linux/netdevice.h> 16 16 #include "umcast.h" 17 - #include "net_kern.h" 17 + #include <net_kern.h> 18 18 19 19 struct umcast_init { 20 20 char *addr;
+2 -2
arch/um/drivers/umcast_user.c
··· 16 16 #include <errno.h> 17 17 #include <netinet/in.h> 18 18 #include "umcast.h" 19 - #include "net_user.h" 20 - #include "um_malloc.h" 19 + #include <net_user.h> 20 + #include <um_malloc.h> 21 21 22 22 static struct sockaddr_in *new_addr(char *addr, unsigned short port) 23 23 {
+3 -3
arch/um/drivers/vde_kern.c
··· 7 7 * 8 8 */ 9 9 10 - #include "linux/init.h" 10 + #include <linux/init.h> 11 11 #include <linux/netdevice.h> 12 - #include "net_kern.h" 13 - #include "net_user.h" 12 + #include <net_kern.h> 13 + #include <net_user.h> 14 14 #include "vde.h" 15 15 16 16 static void vde_init(struct net_device *dev, void *data)
+2 -2
arch/um/drivers/vde_user.c
··· 6 6 #include <stddef.h> 7 7 #include <errno.h> 8 8 #include <libvdeplug.h> 9 - #include "net_user.h" 10 - #include "um_malloc.h" 9 + #include <net_user.h> 10 + #include <um_malloc.h> 11 11 #include "vde.h" 12 12 13 13 static int vde_user_init(void *data, void *dev)
+2 -2
arch/um/drivers/xterm.c
··· 11 11 #include <string.h> 12 12 #include <termios.h> 13 13 #include "chan_user.h" 14 - #include "os.h" 15 - #include "um_malloc.h" 14 + #include <os.h> 15 + #include <um_malloc.h> 16 16 #include "xterm.h" 17 17 18 18 struct xterm_chan {
+2 -2
arch/um/drivers/xterm_kern.c
··· 7 7 #include <linux/completion.h> 8 8 #include <linux/irqreturn.h> 9 9 #include <asm/irq.h> 10 - #include "irq_kern.h" 11 - #include "os.h" 10 + #include <irq_kern.h> 11 + #include <os.h> 12 12 13 13 struct xterm_wait { 14 14 struct completion ready;
+1 -1
arch/um/include/asm/dma.h
··· 1 1 #ifndef __UM_DMA_H 2 2 #define __UM_DMA_H 3 3 4 - #include "asm/io.h" 4 + #include <asm/io.h> 5 5 6 6 extern unsigned long uml_physmem; 7 7
+1 -1
arch/um/include/asm/mmu.h
··· 6 6 #ifndef __ARCH_UM_MMU_H 7 7 #define __ARCH_UM_MMU_H 8 8 9 - #include "mm_id.h" 9 + #include <mm_id.h> 10 10 #include <asm/mm_context.h> 11 11 12 12 typedef struct mm_context {
+1 -1
arch/um/include/asm/page.h
··· 99 99 100 100 #define __va_space (8*1024*1024) 101 101 102 - #include "mem.h" 102 + #include <mem.h> 103 103 104 104 /* Cast to unsigned long before casting to void * to avoid a warning from 105 105 * mmap_kmem about cutting a long long down to a void *. Not sure that
+2 -2
arch/um/include/asm/pgtable.h
··· 23 23 pte_present gives true */ 24 24 25 25 #ifdef CONFIG_3_LEVEL_PGTABLES 26 - #include "asm/pgtable-3level.h" 26 + #include <asm/pgtable-3level.h> 27 27 #else 28 - #include "asm/pgtable-2level.h" 28 + #include <asm/pgtable-2level.h> 29 29 #endif 30 30 31 31 extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
+3 -3
arch/um/include/asm/processor-generic.h
··· 10 10 11 11 struct task_struct; 12 12 13 - #include "asm/ptrace.h" 14 - #include "registers.h" 15 - #include "sysdep/archsetjmp.h" 13 + #include <asm/ptrace.h> 14 + #include <registers.h> 15 + #include <sysdep/archsetjmp.h> 16 16 17 17 #include <linux/prefetch.h> 18 18
+1 -1
arch/um/include/asm/ptrace-generic.h
··· 9 9 #ifndef __ASSEMBLY__ 10 10 11 11 #include <asm/ptrace-abi.h> 12 - #include "sysdep/ptrace.h" 12 + #include <sysdep/ptrace.h> 13 13 14 14 struct pt_regs { 15 15 struct uml_pt_regs regs;
+3 -3
arch/um/include/asm/smp.h
··· 3 3 4 4 #ifdef CONFIG_SMP 5 5 6 - #include "linux/bitops.h" 7 - #include "asm/current.h" 8 - #include "linux/cpumask.h" 6 + #include <linux/bitops.h> 7 + #include <asm/current.h> 8 + #include <linux/cpumask.h> 9 9 10 10 #define raw_smp_processor_id() (current_thread->cpu) 11 11
+1 -1
arch/um/include/shared/arch.h
··· 6 6 #ifndef __ARCH_H__ 7 7 #define __ARCH_H__ 8 8 9 - #include "sysdep/ptrace.h" 9 + #include <sysdep/ptrace.h> 10 10 11 11 extern void arch_check_bugs(void); 12 12 extern int arch_fixup(unsigned long address, struct uml_pt_regs *regs);
+1 -1
arch/um/include/shared/as-layout.h
··· 35 35 36 36 #ifndef __ASSEMBLY__ 37 37 38 - #include "sysdep/ptrace.h" 38 + #include <sysdep/ptrace.h> 39 39 40 40 struct cpu_task { 41 41 int pid;
+2 -2
arch/um/include/shared/irq_kern.h
··· 6 6 #ifndef __IRQ_KERN_H__ 7 7 #define __IRQ_KERN_H__ 8 8 9 - #include "linux/interrupt.h" 10 - #include "asm/ptrace.h" 9 + #include <linux/interrupt.h> 10 + #include <asm/ptrace.h> 11 11 12 12 extern int um_request_irq(unsigned int irq, int fd, int type, 13 13 irq_handler_t handler,
+1 -1
arch/um/include/shared/irq_user.h
··· 6 6 #ifndef __IRQ_USER_H__ 7 7 #define __IRQ_USER_H__ 8 8 9 - #include "sysdep/ptrace.h" 9 + #include <sysdep/ptrace.h> 10 10 11 11 struct irq_fd { 12 12 struct irq_fd *next;
+2 -2
arch/um/include/shared/kern_util.h
··· 6 6 #ifndef __KERN_UTIL_H__ 7 7 #define __KERN_UTIL_H__ 8 8 9 - #include "sysdep/ptrace.h" 10 - #include "sysdep/faultinfo.h" 9 + #include <sysdep/ptrace.h> 10 + #include <sysdep/faultinfo.h> 11 11 12 12 struct siginfo; 13 13
+2 -2
arch/um/include/shared/longjmp.h
··· 1 1 #ifndef __UML_LONGJMP_H 2 2 #define __UML_LONGJMP_H 3 3 4 - #include "sysdep/archsetjmp.h" 5 - #include "os.h" 4 + #include <sysdep/archsetjmp.h> 5 + #include <os.h> 6 6 7 7 extern int setjmp(jmp_buf); 8 8 extern void longjmp(jmp_buf, int);
+3 -3
arch/um/include/shared/os.h
··· 7 7 #define __OS_H__ 8 8 9 9 #include <stdarg.h> 10 - #include "irq_user.h" 11 - #include "longjmp.h" 12 - #include "mm_id.h" 10 + #include <irq_user.h> 11 + #include <longjmp.h> 12 + #include <mm_id.h> 13 13 14 14 #define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR)) 15 15
+2 -2
arch/um/include/shared/registers.h
··· 6 6 #ifndef __REGISTERS_H 7 7 #define __REGISTERS_H 8 8 9 - #include "sysdep/ptrace.h" 10 - #include "sysdep/archsetjmp.h" 9 + #include <sysdep/ptrace.h> 10 + #include <sysdep/archsetjmp.h> 11 11 12 12 extern int save_fp_registers(int pid, unsigned long *fp_regs); 13 13 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
+1 -1
arch/um/include/shared/skas/skas.h
··· 6 6 #ifndef __SKAS_H 7 7 #define __SKAS_H 8 8 9 - #include "sysdep/ptrace.h" 9 + #include <sysdep/ptrace.h> 10 10 11 11 extern int userspace_pid[]; 12 12 extern int proc_mm, ptrace_faultinfo, ptrace_ldt;
+1 -1
arch/um/include/shared/skas_ptrace.h
··· 9 9 #define PTRACE_FAULTINFO 52 10 10 #define PTRACE_SWITCH_MM 55 11 11 12 - #include "sysdep/skas_ptrace.h" 12 + #include <sysdep/skas_ptrace.h> 13 13 14 14 #endif
arch/um/include/shared/sysrq.h arch/um/include/asm/sysrq.h
+1 -1
arch/um/kernel/asm-offsets.c
··· 1 - #include "sysdep/kernel-offsets.h" 1 + #include <sysdep/kernel-offsets.h>
+1 -1
arch/um/kernel/config.c.in
··· 5 5 6 6 #include <stdio.h> 7 7 #include <stdlib.h> 8 - #include "init.h" 8 + #include <init.h> 9 9 10 10 static __initdata const char *config[] = { 11 11 "CONFIG"
+1 -1
arch/um/kernel/dyn.lds.S
··· 89 89 90 90 .kstrtab : { *(.kstrtab) } 91 91 92 - #include "asm/common.lds.S" 92 + #include <asm/common.lds.S> 93 93 94 94 init.data : { INIT_DATA } 95 95
+1 -1
arch/um/kernel/early_printk.c
··· 9 9 #include <linux/kernel.h> 10 10 #include <linux/console.h> 11 11 #include <linux/init.h> 12 - #include "os.h" 12 + #include <os.h> 13 13 14 14 static void early_console_write(struct console *con, const char *s, unsigned int n) 15 15 {
+4 -4
arch/um/kernel/exec.c
··· 12 12 #include <asm/current.h> 13 13 #include <asm/processor.h> 14 14 #include <asm/uaccess.h> 15 - #include "as-layout.h" 16 - #include "mem_user.h" 17 - #include "skas.h" 18 - #include "os.h" 15 + #include <as-layout.h> 16 + #include <mem_user.h> 17 + #include <skas.h> 18 + #include <os.h> 19 19 #include "internal.h" 20 20 21 21 void flush_thread(void)
+1 -1
arch/um/kernel/gmon_syms.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/module.h" 6 + #include <linux/module.h> 7 7 8 8 extern void __bb_init_func(void *) __attribute__((weak)); 9 9 EXPORT_SYMBOL(__bb_init_func);
+1 -1
arch/um/kernel/gprof_syms.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/module.h" 6 + #include <linux/module.h> 7 7 8 8 extern void mcount(void); 9 9 EXPORT_SYMBOL(mcount);
+6 -6
arch/um/kernel/initrd.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/init.h" 7 - #include "linux/bootmem.h" 8 - #include "linux/initrd.h" 9 - #include "asm/types.h" 10 - #include "init.h" 11 - #include "os.h" 6 + #include <linux/init.h> 7 + #include <linux/bootmem.h> 8 + #include <linux/initrd.h> 9 + #include <asm/types.h> 10 + #include <init.h> 11 + #include <os.h> 12 12 13 13 /* Changed by uml_initrd_setup, which is a setup */ 14 14 static char *initrd __initdata = NULL;
+11 -11
arch/um/kernel/irq.c
··· 5 5 * Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar 6 6 */ 7 7 8 - #include "linux/cpumask.h" 9 - #include "linux/hardirq.h" 10 - #include "linux/interrupt.h" 11 - #include "linux/kernel_stat.h" 12 - #include "linux/module.h" 13 - #include "linux/sched.h" 14 - #include "linux/seq_file.h" 15 - #include "linux/slab.h" 16 - #include "as-layout.h" 17 - #include "kern_util.h" 18 - #include "os.h" 8 + #include <linux/cpumask.h> 9 + #include <linux/hardirq.h> 10 + #include <linux/interrupt.h> 11 + #include <linux/kernel_stat.h> 12 + #include <linux/module.h> 13 + #include <linux/sched.h> 14 + #include <linux/seq_file.h> 15 + #include <linux/slab.h> 16 + #include <as-layout.h> 17 + #include <kern_util.h> 18 + #include <os.h> 19 19 20 20 /* 21 21 * This list is accessed under irq_lock, except in sigio_handler,
+1 -1
arch/um/kernel/ksyms.c
··· 4 4 */ 5 5 6 6 #include <linux/module.h> 7 - #include "os.h" 7 + #include <os.h> 8 8 9 9 EXPORT_SYMBOL(set_signals); 10 10 EXPORT_SYMBOL(get_signals);
+6 -6
arch/um/kernel/mem.c
··· 12 12 #include <linux/slab.h> 13 13 #include <asm/fixmap.h> 14 14 #include <asm/page.h> 15 - #include "as-layout.h" 16 - #include "init.h" 17 - #include "kern.h" 18 - #include "kern_util.h" 19 - #include "mem_user.h" 20 - #include "os.h" 15 + #include <as-layout.h> 16 + #include <init.h> 17 + #include <kern.h> 18 + #include <kern_util.h> 19 + #include <mem_user.h> 20 + #include <os.h> 21 21 22 22 /* allocated in paging_init, zeroed in mem_init, and unchanged thereafter */ 23 23 unsigned long *empty_zero_page = NULL;
+4 -4
arch/um/kernel/process.c
··· 23 23 #include <asm/pgtable.h> 24 24 #include <asm/mmu_context.h> 25 25 #include <asm/uaccess.h> 26 - #include "as-layout.h" 27 - #include "kern_util.h" 28 - #include "os.h" 29 - #include "skas.h" 26 + #include <as-layout.h> 27 + #include <kern_util.h> 28 + #include <os.h> 29 + #include <skas.h> 30 30 31 31 /* 32 32 * This is a per-cpu array. A processor only modifies its entry and it only
+7 -7
arch/um/kernel/reboot.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/sched.h" 7 - #include "linux/spinlock.h" 8 - #include "linux/slab.h" 9 - #include "linux/oom.h" 10 - #include "kern_util.h" 11 - #include "os.h" 12 - #include "skas.h" 6 + #include <linux/sched.h> 7 + #include <linux/spinlock.h> 8 + #include <linux/slab.h> 9 + #include <linux/oom.h> 10 + #include <kern_util.h> 11 + #include <os.h> 12 + #include <skas.h> 13 13 14 14 void (*pm_power_off)(void); 15 15
+3 -3
arch/um/kernel/sigio.c
··· 4 4 */ 5 5 6 6 #include <linux/interrupt.h> 7 - #include "irq_kern.h" 8 - #include "os.h" 9 - #include "sigio.h" 7 + #include <irq_kern.h> 8 + #include <os.h> 9 + #include <sigio.h> 10 10 11 11 /* Protected by sigio_lock() called from write_sigio_workaround */ 12 12 static int sigio_irq_fd = -1;
+2 -2
arch/um/kernel/signal.c
··· 9 9 #include <asm/siginfo.h> 10 10 #include <asm/signal.h> 11 11 #include <asm/unistd.h> 12 - #include "frame_kern.h" 13 - #include "kern_util.h" 12 + #include <frame_kern.h> 13 + #include <kern_util.h> 14 14 15 15 EXPORT_SYMBOL(block_signals); 16 16 EXPORT_SYMBOL(unblock_signals);
+4 -4
arch/um/kernel/skas/clone.c
··· 7 7 #include <sched.h> 8 8 #include <asm/unistd.h> 9 9 #include <sys/time.h> 10 - #include "as-layout.h" 11 - #include "ptrace_user.h" 12 - #include "stub-data.h" 13 - #include "sysdep/stub.h" 10 + #include <as-layout.h> 11 + #include <ptrace_user.h> 12 + #include <stub-data.h> 13 + #include <sysdep/stub.h> 14 14 15 15 /* 16 16 * This is in a separate file because it needs to be compiled with any
+8 -8
arch/um/kernel/skas/mmu.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/mm.h" 7 - #include "linux/sched.h" 8 - #include "linux/slab.h" 9 - #include "asm/pgalloc.h" 10 - #include "asm/pgtable.h" 11 - #include "as-layout.h" 12 - #include "os.h" 13 - #include "skas.h" 6 + #include <linux/mm.h> 7 + #include <linux/sched.h> 8 + #include <linux/slab.h> 9 + #include <asm/pgalloc.h> 10 + #include <asm/pgtable.h> 11 + #include <as-layout.h> 12 + #include <os.h> 13 + #include <skas.h> 14 14 15 15 extern int __syscall_stub_start; 16 16
+6 -6
arch/um/kernel/skas/process.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/init.h" 7 - #include "linux/sched.h" 8 - #include "as-layout.h" 9 - #include "kern.h" 10 - #include "os.h" 11 - #include "skas.h" 6 + #include <linux/init.h> 7 + #include <linux/sched.h> 8 + #include <as-layout.h> 9 + #include <kern.h> 10 + #include <os.h> 11 + #include <skas.h> 12 12 13 13 int new_mm(unsigned long stack) 14 14 {
+5 -5
arch/um/kernel/skas/syscall.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/kernel.h" 7 - #include "linux/ptrace.h" 8 - #include "kern_util.h" 9 - #include "sysdep/ptrace.h" 10 - #include "sysdep/syscalls.h" 6 + #include <linux/kernel.h> 7 + #include <linux/ptrace.h> 8 + #include <kern_util.h> 9 + #include <sysdep/ptrace.h> 10 + #include <sysdep/syscalls.h> 11 11 12 12 extern int syscall_table_size; 13 13 #define NR_SYSCALLS (syscall_table_size / sizeof(void *))
+2 -2
arch/um/kernel/skas/uaccess.c
··· 11 11 #include <asm/current.h> 12 12 #include <asm/page.h> 13 13 #include <asm/pgtable.h> 14 - #include "kern_util.h" 15 - #include "os.h" 14 + #include <kern_util.h> 15 + #include <os.h> 16 16 17 17 pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr) 18 18 {
+15 -15
arch/um/kernel/smp.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/percpu.h" 7 - #include "asm/pgalloc.h" 8 - #include "asm/tlb.h" 6 + #include <linux/percpu.h> 7 + #include <asm/pgalloc.h> 8 + #include <asm/tlb.h> 9 9 10 10 #ifdef CONFIG_SMP 11 11 12 - #include "linux/sched.h" 13 - #include "linux/module.h" 14 - #include "linux/threads.h" 15 - #include "linux/interrupt.h" 16 - #include "linux/err.h" 17 - #include "linux/hardirq.h" 18 - #include "asm/smp.h" 19 - #include "asm/processor.h" 20 - #include "asm/spinlock.h" 21 - #include "kern.h" 22 - #include "irq_user.h" 23 - #include "os.h" 12 + #include <linux/sched.h> 13 + #include <linux/module.h> 14 + #include <linux/threads.h> 15 + #include <linux/interrupt.h> 16 + #include <linux/err.h> 17 + #include <linux/hardirq.h> 18 + #include <asm/smp.h> 19 + #include <asm/processor.h> 20 + #include <asm/spinlock.h> 21 + #include <kern.h> 22 + #include <irq_user.h> 23 + #include <os.h> 24 24 25 25 /* Per CPU bogomips and other parameters 26 26 * The only piece used here is the ipi pipe, which is set before SMP is
+10 -10
arch/um/kernel/syscall.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/file.h" 7 - #include "linux/fs.h" 8 - #include "linux/mm.h" 9 - #include "linux/sched.h" 10 - #include "linux/utsname.h" 11 - #include "linux/syscalls.h" 12 - #include "asm/current.h" 13 - #include "asm/mman.h" 14 - #include "asm/uaccess.h" 15 - #include "asm/unistd.h" 6 + #include <linux/file.h> 7 + #include <linux/fs.h> 8 + #include <linux/mm.h> 9 + #include <linux/sched.h> 10 + #include <linux/utsname.h> 11 + #include <linux/syscalls.h> 12 + #include <asm/current.h> 13 + #include <asm/mman.h> 14 + #include <asm/uaccess.h> 15 + #include <asm/unistd.h> 16 16 #include "internal.h" 17 17 18 18 long sys_fork(void)
+1 -1
arch/um/kernel/sysrq.c
··· 7 7 #include <linux/kernel.h> 8 8 #include <linux/module.h> 9 9 #include <linux/sched.h> 10 - #include "sysrq.h" 10 + #include <asm/sysrq.h> 11 11 12 12 /* Catch non-i386 SUBARCH's. */ 13 13 #if !defined(CONFIG_UML_X86) || defined(CONFIG_64BIT)
+2 -2
arch/um/kernel/time.c
··· 10 10 #include <linux/threads.h> 11 11 #include <asm/irq.h> 12 12 #include <asm/param.h> 13 - #include "kern_util.h" 14 - #include "os.h" 13 + #include <kern_util.h> 14 + #include <os.h> 15 15 16 16 void timer_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs) 17 17 {
+4 -4
arch/um/kernel/tlb.c
··· 8 8 #include <linux/sched.h> 9 9 #include <asm/pgtable.h> 10 10 #include <asm/tlbflush.h> 11 - #include "as-layout.h" 12 - #include "mem_user.h" 13 - #include "os.h" 14 - #include "skas.h" 11 + #include <as-layout.h> 12 + #include <mem_user.h> 13 + #include <os.h> 14 + #include <skas.h> 15 15 16 16 struct host_vm_change { 17 17 struct host_vm_op {
+5 -5
arch/um/kernel/trap.c
··· 10 10 #include <asm/current.h> 11 11 #include <asm/pgtable.h> 12 12 #include <asm/tlbflush.h> 13 - #include "arch.h" 14 - #include "as-layout.h" 15 - #include "kern_util.h" 16 - #include "os.h" 17 - #include "skas.h" 13 + #include <arch.h> 14 + #include <as-layout.h> 15 + #include <kern_util.h> 16 + #include <os.h> 17 + #include <skas.h> 18 18 19 19 /* 20 20 * Note this is constrained to return 0, -EFAULT, -EACCESS, -ENOMEM by
+7 -7
arch/um/kernel/um_arch.c
··· 14 14 #include <asm/pgtable.h> 15 15 #include <asm/processor.h> 16 16 #include <asm/setup.h> 17 - #include "as-layout.h" 18 - #include "arch.h" 19 - #include "init.h" 20 - #include "kern.h" 21 - #include "kern_util.h" 22 - #include "mem_user.h" 23 - #include "os.h" 17 + #include <as-layout.h> 18 + #include <arch.h> 19 + #include <init.h> 20 + #include <kern.h> 21 + #include <kern_util.h> 22 + #include <mem_user.h> 23 + #include <os.h> 24 24 25 25 #define DEFAULT_COMMAND_LINE "root=98:0" 26 26
+3 -3
arch/um/kernel/umid.c
··· 4 4 */ 5 5 6 6 #include <asm/errno.h> 7 - #include "init.h" 8 - #include "kern.h" 9 - #include "os.h" 7 + #include <init.h> 8 + #include <kern.h> 9 + #include <os.h> 10 10 11 11 /* Changed by set_umid_arg */ 12 12 static int umid_inited = 0;
+1 -1
arch/um/kernel/uml.lds.S
··· 60 60 PROVIDE_HIDDEN(__rela_iplt_end = .); 61 61 } 62 62 63 - #include "asm/common.lds.S" 63 + #include <asm/common.lds.S> 64 64 65 65 init.data : { INIT_DATA } 66 66 .data :
+4 -4
arch/um/os-Linux/aio.c
··· 9 9 #include <errno.h> 10 10 #include <sys/time.h> 11 11 #include <asm/unistd.h> 12 - #include "aio.h" 13 - #include "init.h" 14 - #include "kern_util.h" 15 - #include "os.h" 12 + #include <aio.h> 13 + #include <init.h> 14 + #include <kern_util.h> 15 + #include <os.h> 16 16 17 17 struct aio_thread_req { 18 18 enum aio_type type;
+1 -1
arch/um/os-Linux/drivers/etap.h
··· 6 6 #ifndef __DRIVERS_ETAP_H 7 7 #define __DRIVERS_ETAP_H 8 8 9 - #include "net_user.h" 9 + #include <net_user.h> 10 10 11 11 struct ethertap_data { 12 12 char *dev_name;
+1 -1
arch/um/os-Linux/drivers/ethertap_kern.c
··· 9 9 #include <linux/init.h> 10 10 #include <linux/netdevice.h> 11 11 #include "etap.h" 12 - #include "net_kern.h" 12 + #include <net_kern.h> 13 13 14 14 struct ethertap_init { 15 15 char *dev_name;
+3 -3
arch/um/os-Linux/drivers/ethertap_user.c
··· 13 13 #include <sys/socket.h> 14 14 #include <sys/wait.h> 15 15 #include "etap.h" 16 - #include "os.h" 17 - #include "net_user.h" 18 - #include "um_malloc.h" 16 + #include <os.h> 17 + #include <net_user.h> 18 + #include <um_malloc.h> 19 19 20 20 #define MAX_PACKET ETH_MAX_PACKET 21 21
+1 -1
arch/um/os-Linux/drivers/tuntap.h
··· 6 6 #ifndef __UM_TUNTAP_H 7 7 #define __UM_TUNTAP_H 8 8 9 - #include "net_user.h" 9 + #include <net_user.h> 10 10 11 11 struct tuntap_data { 12 12 char *dev_name;
+1 -1
arch/um/os-Linux/drivers/tuntap_kern.c
··· 7 7 #include <linux/init.h> 8 8 #include <linux/skbuff.h> 9 9 #include <asm/errno.h> 10 - #include "net_kern.h" 10 + #include <net_kern.h> 11 11 #include "tuntap.h" 12 12 13 13 struct tuntap_init {
+2 -2
arch/um/os-Linux/drivers/tuntap_user.c
··· 13 13 #include <sys/socket.h> 14 14 #include <sys/wait.h> 15 15 #include <sys/uio.h> 16 - #include "kern_util.h" 17 - #include "os.h" 16 + #include <kern_util.h> 17 + #include <os.h> 18 18 #include "tuntap.h" 19 19 20 20 static int tuntap_user_init(void *data, void *dev)
+3 -3
arch/um/os-Linux/elf_aux.c
··· 9 9 */ 10 10 #include <elf.h> 11 11 #include <stddef.h> 12 - #include "init.h" 13 - #include "elf_user.h" 14 - #include "mem_user.h" 12 + #include <init.h> 13 + #include <elf_user.h> 14 + #include <mem_user.h> 15 15 16 16 typedef Elf32_auxv_t elf_auxv_t; 17 17
+2 -2
arch/um/os-Linux/execvp.c
··· 27 27 #include <limits.h> 28 28 29 29 #ifndef TEST 30 - #include "um_malloc.h" 30 + #include <um_malloc.h> 31 31 #else 32 32 #include <stdio.h> 33 33 #define um_kmalloc malloc 34 34 #endif 35 - #include "os.h" 35 + #include <os.h> 36 36 37 37 /* Execute FILE, searching in the `PATH' environment variable if it contains 38 38 no slashes, with arguments ARGV and environment from `environ'. */
+1 -1
arch/um/os-Linux/file.c
··· 13 13 #include <sys/socket.h> 14 14 #include <sys/stat.h> 15 15 #include <sys/un.h> 16 - #include "os.h" 16 + #include <os.h> 17 17 18 18 static void copy_stat(struct uml_stat *dst, const struct stat64 *src) 19 19 {
+3 -3
arch/um/os-Linux/helper.c
··· 10 10 #include <linux/limits.h> 11 11 #include <sys/socket.h> 12 12 #include <sys/wait.h> 13 - #include "kern_util.h" 14 - #include "os.h" 15 - #include "um_malloc.h" 13 + #include <kern_util.h> 14 + #include <os.h> 15 + #include <um_malloc.h> 16 16 17 17 struct helper_data { 18 18 void (*pre_exec)(void*);
+3 -3
arch/um/os-Linux/irq.c
··· 8 8 #include <poll.h> 9 9 #include <signal.h> 10 10 #include <string.h> 11 - #include "irq_user.h" 12 - #include "os.h" 13 - #include "um_malloc.h" 11 + #include <irq_user.h> 12 + #include <os.h> 13 + #include <um_malloc.h> 14 14 15 15 /* 16 16 * Locked by irq_lock in arch/um/kernel/irq.c. Changed by os_create_pollfd
+5 -5
arch/um/os-Linux/main.c
··· 10 10 #include <signal.h> 11 11 #include <string.h> 12 12 #include <sys/resource.h> 13 - #include "as-layout.h" 14 - #include "init.h" 15 - #include "kern_util.h" 16 - #include "os.h" 17 - #include "um_malloc.h" 13 + #include <as-layout.h> 14 + #include <init.h> 15 + #include <kern_util.h> 16 + #include <os.h> 17 + #include <um_malloc.h> 18 18 19 19 #define PGD_BOUND (4 * 1024 * 1024) 20 20 #define STACKSIZE (8 * 1024 * 1024)
+2 -2
arch/um/os-Linux/mem.c
··· 13 13 #include <sys/stat.h> 14 14 #include <sys/mman.h> 15 15 #include <sys/param.h> 16 - #include "init.h" 17 - #include "os.h" 16 + #include <init.h> 17 + #include <os.h> 18 18 19 19 /* Modified by which_tmpdir, which is called during early boot */ 20 20 static char *default_tmpdir = "/tmp";
+4 -4
arch/um/os-Linux/process.c
··· 12 12 #include <sys/ptrace.h> 13 13 #include <sys/wait.h> 14 14 #include <asm/unistd.h> 15 - #include "init.h" 16 - #include "longjmp.h" 17 - #include "os.h" 18 - #include "skas_ptrace.h" 15 + #include <init.h> 16 + #include <longjmp.h> 17 + #include <os.h> 18 + #include <skas_ptrace.h> 19 19 20 20 #define ARBITRARY_ADDR -1 21 21 #define FAILURE_PID -1
+3 -3
arch/um/os-Linux/registers.c
··· 7 7 #include <errno.h> 8 8 #include <string.h> 9 9 #include <sys/ptrace.h> 10 - #include "sysdep/ptrace.h" 11 - #include "sysdep/ptrace_user.h" 12 - #include "registers.h" 10 + #include <sysdep/ptrace.h> 11 + #include <sysdep/ptrace_user.h> 12 + #include <registers.h> 13 13 14 14 int save_registers(int pid, struct uml_pt_regs *regs) 15 15 {
+5 -5
arch/um/os-Linux/sigio.c
··· 11 11 #include <sched.h> 12 12 #include <signal.h> 13 13 #include <string.h> 14 - #include "kern_util.h" 15 - #include "init.h" 16 - #include "os.h" 17 - #include "sigio.h" 18 - #include "um_malloc.h" 14 + #include <kern_util.h> 15 + #include <init.h> 16 + #include <os.h> 17 + #include <sigio.h> 18 + #include <um_malloc.h> 19 19 20 20 /* 21 21 * Protected by sigio_lock(), also used by sigio_cleanup, which is an
+4 -4
arch/um/os-Linux/signal.c
··· 9 9 #include <errno.h> 10 10 #include <signal.h> 11 11 #include <strings.h> 12 - #include "as-layout.h" 13 - #include "kern_util.h" 14 - #include "os.h" 15 - #include "sysdep/mcontext.h" 12 + #include <as-layout.h> 13 + #include <kern_util.h> 14 + #include <os.h> 15 + #include <sysdep/mcontext.h> 16 16 #include "internal.h" 17 17 18 18 void (*sig_info[NSIG])(int, siginfo_t *, struct uml_pt_regs *) = {
+10 -10
arch/um/os-Linux/skas/mem.c
··· 8 8 #include <errno.h> 9 9 #include <string.h> 10 10 #include <sys/mman.h> 11 - #include "init.h" 12 - #include "as-layout.h" 13 - #include "mm_id.h" 14 - #include "os.h" 15 - #include "proc_mm.h" 16 - #include "ptrace_user.h" 17 - #include "registers.h" 18 - #include "skas.h" 19 - #include "sysdep/ptrace.h" 20 - #include "sysdep/stub.h" 11 + #include <init.h> 12 + #include <as-layout.h> 13 + #include <mm_id.h> 14 + #include <os.h> 15 + #include <proc_mm.h> 16 + #include <ptrace_user.h> 17 + #include <registers.h> 18 + #include <skas.h> 19 + #include <sysdep/ptrace.h> 20 + #include <sysdep/stub.h> 21 21 22 22 extern unsigned long batch_syscall_stub, __syscall_stub_start; 23 23
+11 -11
arch/um/os-Linux/skas/process.c
··· 11 11 #include <sys/mman.h> 12 12 #include <sys/wait.h> 13 13 #include <asm/unistd.h> 14 - #include "as-layout.h" 15 - #include "init.h" 16 - #include "kern_util.h" 17 - #include "mem.h" 18 - #include "os.h" 19 - #include "proc_mm.h" 20 - #include "ptrace_user.h" 21 - #include "registers.h" 22 - #include "skas.h" 23 - #include "skas_ptrace.h" 24 - #include "sysdep/stub.h" 14 + #include <as-layout.h> 15 + #include <init.h> 16 + #include <kern_util.h> 17 + #include <mem.h> 18 + #include <os.h> 19 + #include <proc_mm.h> 20 + #include <ptrace_user.h> 21 + #include <registers.h> 22 + #include <skas.h> 23 + #include <skas_ptrace.h> 24 + #include <sysdep/stub.h> 25 25 26 26 int is_skas_winch(int pid, int fd, void *data) 27 27 {
+7 -7
arch/um/os-Linux/start_up.c
··· 16 16 #include <sys/stat.h> 17 17 #include <sys/wait.h> 18 18 #include <asm/unistd.h> 19 - #include "init.h" 20 - #include "os.h" 21 - #include "mem_user.h" 22 - #include "ptrace_user.h" 23 - #include "registers.h" 24 - #include "skas.h" 25 - #include "skas_ptrace.h" 19 + #include <init.h> 20 + #include <os.h> 21 + #include <mem_user.h> 22 + #include <ptrace_user.h> 23 + #include <registers.h> 24 + #include <skas.h> 25 + #include <skas_ptrace.h> 26 26 27 27 static void ptrace_child(void) 28 28 {
+2 -2
arch/um/os-Linux/time.c
··· 8 8 #include <signal.h> 9 9 #include <time.h> 10 10 #include <sys/time.h> 11 - #include "kern_util.h" 12 - #include "os.h" 11 + #include <kern_util.h> 12 + #include <os.h> 13 13 #include "internal.h" 14 14 15 15 int set_interval(void)
+2 -2
arch/um/os-Linux/tty.c
··· 7 7 #include <unistd.h> 8 8 #include <errno.h> 9 9 #include <fcntl.h> 10 - #include "kern_util.h" 11 - #include "os.h" 10 + #include <kern_util.h> 11 + #include <os.h> 12 12 13 13 struct grantpt_info { 14 14 int fd;
+2 -2
arch/um/os-Linux/umid.c
··· 12 12 #include <string.h> 13 13 #include <unistd.h> 14 14 #include <sys/stat.h> 15 - #include "init.h" 16 - #include "os.h" 15 + #include <init.h> 16 + #include <os.h> 17 17 18 18 #define UML_DIR "~/.uml/" 19 19
+2 -2
arch/um/os-Linux/user_syms.c
··· 1 - #include "linux/types.h" 2 - #include "linux/module.h" 1 + #include <linux/types.h> 2 + #include <linux/module.h> 3 3 4 4 /* Some of this are builtin function (some are not but could in the future), 5 5 * so I *must* declare good prototypes for them and then EXPORT them.
+1 -1
arch/um/os-Linux/util.c
··· 13 13 #include <wait.h> 14 14 #include <sys/mman.h> 15 15 #include <sys/utsname.h> 16 - #include "os.h" 16 + #include <os.h> 17 17 18 18 void stack_protections(unsigned long address) 19 19 {
+3 -3
arch/um/sys-ppc/miscthings.c
··· 1 - #include "linux/threads.h" 2 - #include "linux/stddef.h" // for NULL 3 - #include "linux/elf.h" // for AT_NULL 1 + #include <linux/threads.h> 2 + #include <linux/stddef.h> // for NULL 3 + #include <linux/elf.h> // for AT_NULL 4 4 5 5 /* The following function nicked from arch/ppc/kernel/process.c and 6 6 * adapted slightly */
+1 -1
arch/um/sys-ppc/ptrace.c
··· 1 - #include "linux/sched.h" 1 + #include <linux/sched.h> 2 2 #include "asm/ptrace.h" 3 3 4 4 int putreg(struct task_struct *child, unsigned long regno,
+1 -1
arch/um/sys-ppc/ptrace_user.c
··· 1 1 #include <errno.h> 2 2 #include <asm/ptrace.h> 3 - #include "sysdep/ptrace.h" 3 + #include <sysdep/ptrace.h> 4 4 5 5 int ptrace_getregs(long pid, unsigned long *regs_out) 6 6 {
+1 -1
arch/um/sys-ppc/shared/sysdep/ptrace.h
··· 5 5 #ifndef __SYS_PTRACE_PPC_H 6 6 #define __SYS_PTRACE_PPC_H 7 7 8 - #include "linux/types.h" 8 + #include <linux/types.h> 9 9 10 10 /* the following taken from <asm-ppc/ptrace.h> */ 11 11
+1 -1
arch/um/sys-ppc/sigcontext.c
··· 1 1 #include "asm/ptrace.h" 2 2 #include "asm/sigcontext.h" 3 - #include "sysdep/ptrace.h" 3 + #include <sysdep/ptrace.h> 4 4
+2 -2
arch/um/sys-ppc/sysrq.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/kernel.h" 7 - #include "linux/smp.h" 6 + #include <linux/kernel.h> 7 + #include <linux/smp.h> 8 8 #include "asm/ptrace.h" 9 9 #include "sysrq.h" 10 10
+144
arch/x86/um/asm/checksum.h
··· 1 1 #ifndef __UM_CHECKSUM_H 2 2 #define __UM_CHECKSUM_H 3 3 4 + #include <linux/string.h> 5 + #include <linux/in6.h> 6 + 7 + /* 8 + * computes the checksum of a memory block at buff, length len, 9 + * and adds in "sum" (32-bit) 10 + * 11 + * returns a 32-bit number suitable for feeding into itself 12 + * or csum_tcpudp_magic 13 + * 14 + * this function must be called with even lengths, except 15 + * for the last fragment, which may be odd 16 + * 17 + * it's best to have buff aligned on a 32-bit boundary 18 + */ 19 + extern __wsum csum_partial(const void *buff, int len, __wsum sum); 20 + 21 + /* 22 + * Note: when you get a NULL pointer exception here this means someone 23 + * passed in an incorrect kernel address to one of these functions. 24 + * 25 + * If you use these functions directly please don't forget the 26 + * access_ok(). 27 + */ 28 + 29 + static __inline__ 30 + __wsum csum_partial_copy_nocheck(const void *src, void *dst, 31 + int len, __wsum sum) 32 + { 33 + memcpy(dst, src, len); 34 + return csum_partial(dst, len, sum); 35 + } 36 + 37 + /* 38 + * the same as csum_partial, but copies from src while it 39 + * checksums, and handles user-space pointer exceptions correctly, when needed. 40 + * 41 + * here even more important to align src and dst on a 32-bit (or even 42 + * better 64-bit) boundary 43 + */ 44 + 45 + static __inline__ 46 + __wsum csum_partial_copy_from_user(const void __user *src, void *dst, 47 + int len, __wsum sum, int *err_ptr) 48 + { 49 + if (copy_from_user(dst, src, len)) { 50 + *err_ptr = -EFAULT; 51 + return (__force __wsum)-1; 52 + } 53 + 54 + return csum_partial(dst, len, sum); 55 + } 56 + 57 + /** 58 + * csum_fold - Fold and invert a 32bit checksum. 59 + * sum: 32bit unfolded sum 60 + * 61 + * Fold a 32bit running checksum to 16bit and invert it. This is usually 62 + * the last step before putting a checksum into a packet. 63 + * Make sure not to mix with 64bit checksums. 64 + */ 65 + static inline __sum16 csum_fold(__wsum sum) 66 + { 67 + __asm__( 68 + " addl %1,%0\n" 69 + " adcl $0xffff,%0" 70 + : "=r" (sum) 71 + : "r" ((__force u32)sum << 16), 72 + "0" ((__force u32)sum & 0xffff0000) 73 + ); 74 + return (__force __sum16)(~(__force u32)sum >> 16); 75 + } 76 + 77 + /** 78 + * csum_tcpup_nofold - Compute an IPv4 pseudo header checksum. 79 + * @saddr: source address 80 + * @daddr: destination address 81 + * @len: length of packet 82 + * @proto: ip protocol of packet 83 + * @sum: initial sum to be added in (32bit unfolded) 84 + * 85 + * Returns the pseudo header checksum the input data. Result is 86 + * 32bit unfolded. 87 + */ 88 + static inline __wsum 89 + csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, 90 + unsigned short proto, __wsum sum) 91 + { 92 + asm(" addl %1, %0\n" 93 + " adcl %2, %0\n" 94 + " adcl %3, %0\n" 95 + " adcl $0, %0\n" 96 + : "=r" (sum) 97 + : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); 98 + return sum; 99 + } 100 + 101 + /* 102 + * computes the checksum of the TCP/UDP pseudo-header 103 + * returns a 16-bit checksum, already complemented 104 + */ 105 + static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 106 + unsigned short len, 107 + unsigned short proto, 108 + __wsum sum) 109 + { 110 + return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); 111 + } 112 + 113 + /** 114 + * ip_fast_csum - Compute the IPv4 header checksum efficiently. 115 + * iph: ipv4 header 116 + * ihl: length of header / 4 117 + */ 118 + static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) 119 + { 120 + unsigned int sum; 121 + 122 + asm( " movl (%1), %0\n" 123 + " subl $4, %2\n" 124 + " jbe 2f\n" 125 + " addl 4(%1), %0\n" 126 + " adcl 8(%1), %0\n" 127 + " adcl 12(%1), %0\n" 128 + "1: adcl 16(%1), %0\n" 129 + " lea 4(%1), %1\n" 130 + " decl %2\n" 131 + " jne 1b\n" 132 + " adcl $0, %0\n" 133 + " movl %0, %2\n" 134 + " shrl $16, %0\n" 135 + " addw %w2, %w0\n" 136 + " adcl $0, %0\n" 137 + " notl %0\n" 138 + "2:" 139 + /* Since the input registers which are loaded with iph and ipl 140 + are modified, we must also specify them as outputs, or gcc 141 + will assume they contain their original values. */ 142 + : "=r" (sum), "=r" (iph), "=r" (ihl) 143 + : "1" (iph), "2" (ihl) 144 + : "memory"); 145 + return (__force __sum16)sum; 146 + } 147 + 4 148 #ifdef CONFIG_X86_32 5 149 # include "checksum_32.h" 6 150 #else
-140
arch/x86/um/asm/checksum_32.h
··· 5 5 #ifndef __UM_SYSDEP_CHECKSUM_H 6 6 #define __UM_SYSDEP_CHECKSUM_H 7 7 8 - #include "linux/in6.h" 9 - #include "linux/string.h" 10 - 11 - /* 12 - * computes the checksum of a memory block at buff, length len, 13 - * and adds in "sum" (32-bit) 14 - * 15 - * returns a 32-bit number suitable for feeding into itself 16 - * or csum_tcpudp_magic 17 - * 18 - * this function must be called with even lengths, except 19 - * for the last fragment, which may be odd 20 - * 21 - * it's best to have buff aligned on a 32-bit boundary 22 - */ 23 - __wsum csum_partial(const void *buff, int len, __wsum sum); 24 - 25 - /* 26 - * Note: when you get a NULL pointer exception here this means someone 27 - * passed in an incorrect kernel address to one of these functions. 28 - * 29 - * If you use these functions directly please don't forget the 30 - * access_ok(). 31 - */ 32 - 33 - static __inline__ 34 - __wsum csum_partial_copy_nocheck(const void *src, void *dst, 35 - int len, __wsum sum) 36 - { 37 - memcpy(dst, src, len); 38 - return csum_partial(dst, len, sum); 39 - } 40 - 41 - /* 42 - * the same as csum_partial, but copies from src while it 43 - * checksums, and handles user-space pointer exceptions correctly, when needed. 44 - * 45 - * here even more important to align src and dst on a 32-bit (or even 46 - * better 64-bit) boundary 47 - */ 48 - 49 - static __inline__ 50 - __wsum csum_partial_copy_from_user(const void __user *src, void *dst, 51 - int len, __wsum sum, int *err_ptr) 52 - { 53 - if (copy_from_user(dst, src, len)) { 54 - *err_ptr = -EFAULT; 55 - return (__force __wsum)-1; 56 - } 57 - 58 - return csum_partial(dst, len, sum); 59 - } 60 - 61 - /* 62 - * This is a version of ip_compute_csum() optimized for IP headers, 63 - * which always checksum on 4 octet boundaries. 64 - * 65 - * By Jorge Cwik <jorge@laser.satlink.net>, adapted for linux by 66 - * Arnt Gulbrandsen. 67 - */ 68 - static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) 69 - { 70 - unsigned int sum; 71 - 72 - __asm__ __volatile__( 73 - "movl (%1), %0 ;\n" 74 - "subl $4, %2 ;\n" 75 - "jbe 2f ;\n" 76 - "addl 4(%1), %0 ;\n" 77 - "adcl 8(%1), %0 ;\n" 78 - "adcl 12(%1), %0 ;\n" 79 - "1: adcl 16(%1), %0 ;\n" 80 - "lea 4(%1), %1 ;\n" 81 - "decl %2 ;\n" 82 - "jne 1b ;\n" 83 - "adcl $0, %0 ;\n" 84 - "movl %0, %2 ;\n" 85 - "shrl $16, %0 ;\n" 86 - "addw %w2, %w0 ;\n" 87 - "adcl $0, %0 ;\n" 88 - "notl %0 ;\n" 89 - "2: ;\n" 90 - /* Since the input registers which are loaded with iph and ipl 91 - are modified, we must also specify them as outputs, or gcc 92 - will assume they contain their original values. */ 93 - : "=r" (sum), "=r" (iph), "=r" (ihl) 94 - : "1" (iph), "2" (ihl) 95 - : "memory"); 96 - return (__force __sum16)sum; 97 - } 98 - 99 - /* 100 - * Fold a partial checksum 101 - */ 102 - 103 - static inline __sum16 csum_fold(__wsum sum) 104 - { 105 - __asm__( 106 - "addl %1, %0 ;\n" 107 - "adcl $0xffff, %0 ;\n" 108 - : "=r" (sum) 109 - : "r" ((__force u32)sum << 16), 110 - "0" ((__force u32)sum & 0xffff0000) 111 - ); 112 - return (__force __sum16)(~(__force u32)sum >> 16); 113 - } 114 - 115 - static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, 116 - unsigned short len, 117 - unsigned short proto, 118 - __wsum sum) 119 - { 120 - __asm__( 121 - "addl %1, %0 ;\n" 122 - "adcl %2, %0 ;\n" 123 - "adcl %3, %0 ;\n" 124 - "adcl $0, %0 ;\n" 125 - : "=r" (sum) 126 - : "g" (daddr), "g"(saddr), "g"((len + proto) << 8), "0"(sum)); 127 - return sum; 128 - } 129 - 130 - /* 131 - * computes the checksum of the TCP/UDP pseudo-header 132 - * returns a 16-bit checksum, already complemented 133 - */ 134 - static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 135 - unsigned short len, 136 - unsigned short proto, 137 - __wsum sum) 138 - { 139 - return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); 140 - } 141 - 142 - /* 143 - * this routine is used for miscellaneous IP-like checksums, mainly 144 - * in icmp.c 145 - */ 146 - 147 8 static inline __sum16 ip_compute_csum(const void *buff, int len) 148 9 { 149 10 return csum_fold (csum_partial(buff, len, 0)); ··· 59 198 } 60 199 61 200 #endif 62 -
-125
arch/x86/um/asm/checksum_64.h
··· 5 5 #ifndef __UM_SYSDEP_CHECKSUM_H 6 6 #define __UM_SYSDEP_CHECKSUM_H 7 7 8 - #include "linux/string.h" 9 - #include "linux/in6.h" 10 - #include "asm/uaccess.h" 11 - 12 - extern __wsum csum_partial(const void *buff, int len, __wsum sum); 13 - 14 - /* 15 - * Note: when you get a NULL pointer exception here this means someone 16 - * passed in an incorrect kernel address to one of these functions. 17 - * 18 - * If you use these functions directly please don't forget the 19 - * access_ok(). 20 - */ 21 - 22 - static __inline__ 23 - __wsum csum_partial_copy_nocheck(const void *src, void *dst, 24 - int len, __wsum sum) 25 - { 26 - memcpy(dst, src, len); 27 - return(csum_partial(dst, len, sum)); 28 - } 29 - 30 - static __inline__ 31 - __wsum csum_partial_copy_from_user(const void __user *src, 32 - void *dst, int len, __wsum sum, 33 - int *err_ptr) 34 - { 35 - if (copy_from_user(dst, src, len)) { 36 - *err_ptr = -EFAULT; 37 - return (__force __wsum)-1; 38 - } 39 - return csum_partial(dst, len, sum); 40 - } 41 - 42 - /** 43 - * csum_fold - Fold and invert a 32bit checksum. 44 - * sum: 32bit unfolded sum 45 - * 46 - * Fold a 32bit running checksum to 16bit and invert it. This is usually 47 - * the last step before putting a checksum into a packet. 48 - * Make sure not to mix with 64bit checksums. 49 - */ 50 - static inline __sum16 csum_fold(__wsum sum) 51 - { 52 - __asm__( 53 - " addl %1,%0\n" 54 - " adcl $0xffff,%0" 55 - : "=r" (sum) 56 - : "r" ((__force u32)sum << 16), 57 - "0" ((__force u32)sum & 0xffff0000) 58 - ); 59 - return (__force __sum16)(~(__force u32)sum >> 16); 60 - } 61 - 62 - /** 63 - * csum_tcpup_nofold - Compute an IPv4 pseudo header checksum. 64 - * @saddr: source address 65 - * @daddr: destination address 66 - * @len: length of packet 67 - * @proto: ip protocol of packet 68 - * @sum: initial sum to be added in (32bit unfolded) 69 - * 70 - * Returns the pseudo header checksum the input data. Result is 71 - * 32bit unfolded. 72 - */ 73 - static inline __wsum 74 - csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, 75 - unsigned short proto, __wsum sum) 76 - { 77 - asm(" addl %1, %0\n" 78 - " adcl %2, %0\n" 79 - " adcl %3, %0\n" 80 - " adcl $0, %0\n" 81 - : "=r" (sum) 82 - : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); 83 - return sum; 84 - } 85 - 86 - /* 87 - * computes the checksum of the TCP/UDP pseudo-header 88 - * returns a 16-bit checksum, already complemented 89 - */ 90 - static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 91 - unsigned short len, 92 - unsigned short proto, 93 - __wsum sum) 94 - { 95 - return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); 96 - } 97 - 98 - /** 99 - * ip_fast_csum - Compute the IPv4 header checksum efficiently. 100 - * iph: ipv4 header 101 - * ihl: length of header / 4 102 - */ 103 - static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) 104 - { 105 - unsigned int sum; 106 - 107 - asm( " movl (%1), %0\n" 108 - " subl $4, %2\n" 109 - " jbe 2f\n" 110 - " addl 4(%1), %0\n" 111 - " adcl 8(%1), %0\n" 112 - " adcl 12(%1), %0\n" 113 - "1: adcl 16(%1), %0\n" 114 - " lea 4(%1), %1\n" 115 - " decl %2\n" 116 - " jne 1b\n" 117 - " adcl $0, %0\n" 118 - " movl %0, %2\n" 119 - " shrl $16, %0\n" 120 - " addw %w2, %w0\n" 121 - " adcl $0, %0\n" 122 - " notl %0\n" 123 - "2:" 124 - /* Since the input registers which are loaded with iph and ipl 125 - are modified, we must also specify them as outputs, or gcc 126 - will assume they contain their original values. */ 127 - : "=r" (sum), "=r" (iph), "=r" (ihl) 128 - : "1" (iph), "2" (ihl) 129 - : "memory"); 130 - return (__force __sum16)sum; 131 - } 132 - 133 8 static inline unsigned add32_with_carry(unsigned a, unsigned b) 134 9 { 135 10 asm("addl %2,%0\n\t"
+1 -1
arch/x86/um/asm/elf.h
··· 6 6 #define __UM_ELF_X86_H 7 7 8 8 #include <asm/user.h> 9 - #include "skas.h" 9 + #include <skas.h> 10 10 11 11 #ifdef CONFIG_X86_32 12 12
+54 -4
arch/x86/um/asm/ptrace.h
··· 1 1 #ifndef __UM_X86_PTRACE_H 2 2 #define __UM_X86_PTRACE_H 3 3 4 - #ifdef CONFIG_X86_32 5 - # include "ptrace_32.h" 6 - #else 7 - # include "ptrace_64.h" 4 + #include <linux/compiler.h> 5 + #ifndef CONFIG_X86_32 6 + #define __FRAME_OFFSETS /* Needed to get the R* macros */ 8 7 #endif 8 + #include <asm/ptrace-generic.h> 9 + 10 + #define user_mode(r) UPT_IS_USER(&(r)->regs) 9 11 10 12 #define PT_REGS_AX(r) UPT_AX(&(r)->regs) 11 13 #define PT_REGS_BX(r) UPT_BX(&(r)->regs) ··· 38 36 { 39 37 return PT_REGS_AX(regs); 40 38 } 39 + 40 + /* 41 + * Forward declaration to avoid including sysdep/tls.h, which causes a 42 + * circular include, and compilation failures. 43 + */ 44 + struct user_desc; 45 + 46 + #ifdef CONFIG_X86_32 47 + 48 + #define HOST_AUDIT_ARCH AUDIT_ARCH_I386 49 + 50 + extern int ptrace_get_thread_area(struct task_struct *child, int idx, 51 + struct user_desc __user *user_desc); 52 + 53 + extern int ptrace_set_thread_area(struct task_struct *child, int idx, 54 + struct user_desc __user *user_desc); 55 + 56 + #else 57 + 58 + #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64 59 + 60 + #define PT_REGS_R8(r) UPT_R8(&(r)->regs) 61 + #define PT_REGS_R9(r) UPT_R9(&(r)->regs) 62 + #define PT_REGS_R10(r) UPT_R10(&(r)->regs) 63 + #define PT_REGS_R11(r) UPT_R11(&(r)->regs) 64 + #define PT_REGS_R12(r) UPT_R12(&(r)->regs) 65 + #define PT_REGS_R13(r) UPT_R13(&(r)->regs) 66 + #define PT_REGS_R14(r) UPT_R14(&(r)->regs) 67 + #define PT_REGS_R15(r) UPT_R15(&(r)->regs) 68 + 69 + #include <asm/errno.h> 70 + 71 + static inline int ptrace_get_thread_area(struct task_struct *child, int idx, 72 + struct user_desc __user *user_desc) 73 + { 74 + return -ENOSYS; 75 + } 76 + 77 + static inline int ptrace_set_thread_area(struct task_struct *child, int idx, 78 + struct user_desc __user *user_desc) 79 + { 80 + return -ENOSYS; 81 + } 82 + 83 + extern long arch_prctl(struct task_struct *task, int code, 84 + unsigned long __user *addr); 85 + 86 + #endif 41 87 #endif /* __UM_X86_PTRACE_H */
-28
arch/x86/um/asm/ptrace_32.h
··· 1 - /* 2 - * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 3 - * Licensed under the GPL 4 - */ 5 - 6 - #ifndef __UM_PTRACE_I386_H 7 - #define __UM_PTRACE_I386_H 8 - 9 - #define HOST_AUDIT_ARCH AUDIT_ARCH_I386 10 - 11 - #include "linux/compiler.h" 12 - #include "asm/ptrace-generic.h" 13 - 14 - #define user_mode(r) UPT_IS_USER(&(r)->regs) 15 - 16 - /* 17 - * Forward declaration to avoid including sysdep/tls.h, which causes a 18 - * circular include, and compilation failures. 19 - */ 20 - struct user_desc; 21 - 22 - extern int ptrace_get_thread_area(struct task_struct *child, int idx, 23 - struct user_desc __user *user_desc); 24 - 25 - extern int ptrace_set_thread_area(struct task_struct *child, int idx, 26 - struct user_desc __user *user_desc); 27 - 28 - #endif
-46
arch/x86/um/asm/ptrace_64.h
··· 1 - /* 2 - * Copyright 2003 PathScale, Inc. 3 - * 4 - * Licensed under the GPL 5 - */ 6 - 7 - #ifndef __UM_PTRACE_X86_64_H 8 - #define __UM_PTRACE_X86_64_H 9 - 10 - #include "linux/compiler.h" 11 - #include "asm/errno.h" 12 - 13 - #define __FRAME_OFFSETS /* Needed to get the R* macros */ 14 - #include "asm/ptrace-generic.h" 15 - 16 - #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64 17 - 18 - #define PT_REGS_R8(r) UPT_R8(&(r)->regs) 19 - #define PT_REGS_R9(r) UPT_R9(&(r)->regs) 20 - #define PT_REGS_R10(r) UPT_R10(&(r)->regs) 21 - #define PT_REGS_R11(r) UPT_R11(&(r)->regs) 22 - #define PT_REGS_R12(r) UPT_R12(&(r)->regs) 23 - #define PT_REGS_R13(r) UPT_R13(&(r)->regs) 24 - #define PT_REGS_R14(r) UPT_R14(&(r)->regs) 25 - #define PT_REGS_R15(r) UPT_R15(&(r)->regs) 26 - 27 - /* XXX */ 28 - #define user_mode(r) UPT_IS_USER(&(r)->regs) 29 - 30 - struct user_desc; 31 - 32 - static inline int ptrace_get_thread_area(struct task_struct *child, int idx, 33 - struct user_desc __user *user_desc) 34 - { 35 - return -ENOSYS; 36 - } 37 - 38 - static inline int ptrace_set_thread_area(struct task_struct *child, int idx, 39 - struct user_desc __user *user_desc) 40 - { 41 - return -ENOSYS; 42 - } 43 - 44 - extern long arch_prctl(struct task_struct *task, int code, 45 - unsigned long __user *addr); 46 - #endif
+3 -3
arch/x86/um/bugs_32.c
··· 4 4 */ 5 5 6 6 #include <signal.h> 7 - #include "kern_util.h" 8 - #include "longjmp.h" 9 - #include "sysdep/ptrace.h" 7 + #include <kern_util.h> 8 + #include <longjmp.h> 9 + #include <sysdep/ptrace.h> 10 10 #include <generated/asm-offsets.h> 11 11 12 12 /* Set during early boot */
+1 -1
arch/x86/um/bugs_64.c
··· 4 4 * Licensed under the GPL 5 5 */ 6 6 7 - #include "sysdep/ptrace.h" 7 + #include <sysdep/ptrace.h> 8 8 9 9 void arch_check_bugs(void) 10 10 {
+1 -1
arch/x86/um/fault.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "sysdep/ptrace.h" 6 + #include <sysdep/ptrace.h> 7 7 8 8 /* These two are from asm-um/uaccess.h and linux/module.h, check them. */ 9 9 struct exception_table_entry
+5 -5
arch/x86/um/ldt.c
··· 7 7 #include <linux/sched.h> 8 8 #include <linux/slab.h> 9 9 #include <asm/unistd.h> 10 - #include "os.h" 11 - #include "proc_mm.h" 12 - #include "skas.h" 13 - #include "skas_ptrace.h" 14 - #include "sysdep/tls.h" 10 + #include <os.h> 11 + #include <proc_mm.h> 12 + #include <skas.h> 13 + #include <skas_ptrace.h> 14 + #include <sysdep/tls.h> 15 15 16 16 extern int modify_ldt(int func, void *ptr, unsigned long bytecount); 17 17
+3 -3
arch/x86/um/mem_64.c
··· 1 - #include "linux/mm.h" 2 - #include "asm/page.h" 3 - #include "asm/mman.h" 1 + #include <linux/mm.h> 2 + #include <asm/page.h> 3 + #include <asm/mman.h> 4 4 5 5 const char *arch_vma_name(struct vm_area_struct *vma) 6 6 {
+2 -2
arch/x86/um/os-Linux/registers.c
··· 9 9 #ifdef __i386__ 10 10 #include <sys/user.h> 11 11 #endif 12 - #include "longjmp.h" 13 - #include "sysdep/ptrace_user.h" 12 + #include <longjmp.h> 13 + #include <sysdep/ptrace_user.h> 14 14 15 15 int save_fp_registers(int pid, unsigned long *fp_regs) 16 16 {
+1 -1
arch/x86/um/os-Linux/task_size.c
··· 2 2 #include <stdlib.h> 3 3 #include <signal.h> 4 4 #include <sys/mman.h> 5 - #include "longjmp.h" 5 + #include <longjmp.h> 6 6 7 7 #ifdef __i386__ 8 8
+1 -1
arch/x86/um/os-Linux/tls.c
··· 5 5 #include <sys/syscall.h> 6 6 #include <unistd.h> 7 7 8 - #include "sysdep/tls.h" 8 + #include <sysdep/tls.h> 9 9 10 10 #ifndef PTRACE_GET_THREAD_AREA 11 11 #define PTRACE_GET_THREAD_AREA 25
+4 -4
arch/x86/um/ptrace_32.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/mm.h" 7 - #include "linux/sched.h" 8 - #include "asm/uaccess.h" 9 - #include "skas.h" 6 + #include <linux/mm.h> 7 + #include <linux/sched.h> 8 + #include <asm/uaccess.h> 9 + #include <skas.h> 10 10 11 11 extern int arch_switch_tls(struct task_struct *to); 12 12
+1 -1
arch/x86/um/ptrace_user.c
··· 4 4 */ 5 5 6 6 #include <errno.h> 7 - #include "ptrace_user.h" 7 + #include <ptrace_user.h> 8 8 9 9 int ptrace_getregs(long pid, unsigned long *regs_out) 10 10 {
+1 -1
arch/x86/um/shared/sysdep/ptrace.h
··· 2 2 #define __SYSDEP_X86_PTRACE_H 3 3 4 4 #include <generated/user_constants.h> 5 - #include "sysdep/faultinfo.h" 5 + #include <sysdep/faultinfo.h> 6 6 7 7 #define MAX_REG_OFFSET (UM_FRAME_SIZE) 8 8 #define MAX_REG_NR ((MAX_REG_OFFSET) / sizeof(unsigned long))
+2 -2
arch/x86/um/shared/sysdep/stub.h
··· 1 1 #include <asm/unistd.h> 2 2 #include <sys/mman.h> 3 3 #include <signal.h> 4 - #include "as-layout.h" 5 - #include "stub-data.h" 4 + #include <as-layout.h> 5 + #include <stub-data.h> 6 6 7 7 #ifdef __i386__ 8 8 #include "stub_32.h"
+2 -2
arch/x86/um/shared/sysdep/syscalls_32.h
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "asm/unistd.h" 7 - #include "sysdep/ptrace.h" 6 + #include <asm/unistd.h> 7 + #include <sysdep/ptrace.h> 8 8 9 9 typedef long syscall_handler_t(struct pt_regs); 10 10
+2 -2
arch/x86/um/signal.c
··· 11 11 #include <asm/unistd.h> 12 12 #include <asm/uaccess.h> 13 13 #include <asm/ucontext.h> 14 - #include "frame_kern.h" 15 - #include "skas.h" 14 + #include <frame_kern.h> 15 + #include <skas.h> 16 16 17 17 #ifdef CONFIG_X86_32 18 18
+1 -1
arch/x86/um/stub_32.S
··· 1 - #include "as-layout.h" 1 + #include <as-layout.h> 2 2 3 3 .globl syscall_stub 4 4 .section .__syscall_stub, "ax"
+1 -1
arch/x86/um/stub_64.S
··· 1 - #include "as-layout.h" 1 + #include <as-layout.h> 2 2 3 3 .globl syscall_stub 4 4 .section .__syscall_stub, "ax"
+3 -3
arch/x86/um/stub_segv.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "sysdep/stub.h" 7 - #include "sysdep/faultinfo.h" 8 - #include "sysdep/mcontext.h" 6 + #include <sysdep/stub.h> 7 + #include <sysdep/faultinfo.h> 8 + #include <sysdep/mcontext.h> 9 9 10 10 void __attribute__ ((__section__ (".__syscall_stub"))) 11 11 stub_segv_handler(int sig, siginfo_t *info, void *p)
+6 -6
arch/x86/um/sysrq_32.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/kernel.h" 7 - #include "linux/smp.h" 8 - #include "linux/sched.h" 9 - #include "linux/kallsyms.h" 10 - #include "asm/ptrace.h" 11 - #include "sysrq.h" 6 + #include <linux/kernel.h> 7 + #include <linux/smp.h> 8 + #include <linux/sched.h> 9 + #include <linux/kallsyms.h> 10 + #include <asm/ptrace.h> 11 + #include <asm/sysrq.h> 12 12 13 13 /* This is declared by <linux/sched.h> */ 14 14 void show_regs(struct pt_regs *regs)
+1 -1
arch/x86/um/sysrq_64.c
··· 10 10 #include <linux/utsname.h> 11 11 #include <asm/current.h> 12 12 #include <asm/ptrace.h> 13 - #include "sysrq.h" 13 + #include <asm/sysrq.h> 14 14 15 15 void __show_regs(struct pt_regs *regs) 16 16 {
+6 -6
arch/x86/um/tls_32.c
··· 3 3 * Licensed under the GPL 4 4 */ 5 5 6 - #include "linux/percpu.h" 7 - #include "linux/sched.h" 8 - #include "asm/uaccess.h" 9 - #include "os.h" 10 - #include "skas.h" 11 - #include "sysdep/tls.h" 6 + #include <linux/percpu.h> 7 + #include <linux/sched.h> 8 + #include <asm/uaccess.h> 9 + #include <os.h> 10 + #include <skas.h> 11 + #include <sysdep/tls.h> 12 12 13 13 /* 14 14 * If needed we can detect when it's uninitialized.
+1 -1
arch/x86/um/tls_64.c
··· 1 - #include "linux/sched.h" 1 + #include <linux/sched.h> 2 2 3 3 void clear_flushed_tls(struct task_struct *task) 4 4 {
+1 -1
fs/hostfs/hostfs.h
··· 1 1 #ifndef __UM_FS_HOSTFS 2 2 #define __UM_FS_HOSTFS 3 3 4 - #include "os.h" 4 + #include <os.h> 5 5 6 6 /* 7 7 * These are exactly the same definitions as in fs.h, but the names are
+7 -5
fs/hostfs/hostfs_kern.c
··· 16 16 #include <linux/mount.h> 17 17 #include <linux/namei.h> 18 18 #include "hostfs.h" 19 - #include "init.h" 20 - #include "kern.h" 19 + #include <init.h> 20 + #include <kern.h> 21 21 22 22 struct hostfs_inode_info { 23 23 int fd; ··· 848 848 attr->ia_size != i_size_read(inode)) { 849 849 int error; 850 850 851 - error = vmtruncate(inode, attr->ia_size); 852 - if (err) 853 - return err; 851 + error = inode_newsize_ok(inode, attr->ia_size); 852 + if (error) 853 + return error; 854 + 855 + truncate_setsize(inode, attr->ia_size); 854 856 } 855 857 856 858 setattr_copy(inode, attr);
-1
fs/hostfs/hostfs_user.c
··· 15 15 #include <sys/types.h> 16 16 #include <sys/vfs.h> 17 17 #include "hostfs.h" 18 - #include "os.h" 19 18 #include <utime.h> 20 19 21 20 static void stat64_to_hostfs(const struct stat64 *buf, struct hostfs_stat *p)
+2 -2
fs/hppfs/hppfs.c
··· 18 18 #include <linux/pid_namespace.h> 19 19 #include <linux/namei.h> 20 20 #include <asm/uaccess.h> 21 - #include "os.h" 21 + #include <os.h> 22 22 23 23 static struct inode *get_inode(struct super_block *, struct dentry *); 24 24 ··· 674 674 675 675 if (!inode) { 676 676 dput(dentry); 677 - return ERR_PTR(-ENOMEM); 677 + return NULL; 678 678 } 679 679 680 680 if (S_ISDIR(dentry->d_inode->i_mode)) {