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

xtensa: Use Kbuild infrastructure to handle asm-generic headers

Use Kbuild infrastructure to handle the asm-generic headers
and remove the wrapper headers that call them.

This only affects headers that do nothing but include the generic
equivalent. It does not touch any header that does a little more.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>

authored by

Max Filippov and committed by
Chris Zankel
795ca178 83596729

+26 -374
+26 -1
arch/xtensa/include/asm/Kbuild
··· 1 - 1 + generic-y += bitsperlong.h 2 + generic-y += bug.h 2 3 generic-y += clkdev.h 4 + generic-y += cputime.h 5 + generic-y += device.h 6 + generic-y += div64.h 7 + generic-y += emergency-restart.h 8 + generic-y += errno.h 3 9 generic-y += exec.h 10 + generic-y += fcntl.h 11 + generic-y += futex.h 12 + generic-y += hardirq.h 13 + generic-y += ioctl.h 14 + generic-y += irq_regs.h 15 + generic-y += kdebug.h 16 + generic-y += kmap_types.h 17 + generic-y += kvm_para.h 18 + generic-y += local.h 19 + generic-y += local64.h 20 + generic-y += percpu.h 21 + generic-y += resource.h 22 + generic-y += scatterlist.h 23 + generic-y += sections.h 24 + generic-y += siginfo.h 25 + generic-y += statfs.h 26 + generic-y += termios.h 27 + generic-y += topology.h 28 + generic-y += xor.h
-18
arch/xtensa/include/asm/bug.h
··· 1 - /* 2 - * include/asm-xtensa/bug.h 3 - * 4 - * Macros to cause a 'bug' message. 5 - * 6 - * This file is subject to the terms and conditions of the GNU General Public 7 - * License. See the file "COPYING" in the main directory of this archive 8 - * for more details. 9 - * 10 - * Copyright (C) 2001 - 2005 Tensilica Inc. 11 - */ 12 - 13 - #ifndef _XTENSA_BUG_H 14 - #define _XTENSA_BUG_H 15 - 16 - #include <asm-generic/bug.h> 17 - 18 - #endif /* _XTENSA_BUG_H */
-6
arch/xtensa/include/asm/cputime.h
··· 1 - #ifndef _XTENSA_CPUTIME_H 2 - #define _XTENSA_CPUTIME_H 3 - 4 - #include <asm-generic/cputime.h> 5 - 6 - #endif /* _XTENSA_CPUTIME_H */
-7
arch/xtensa/include/asm/device.h
··· 1 - /* 2 - * Arch specific extensions to struct device 3 - * 4 - * This file is released under the GPLv2 5 - */ 6 - #include <asm-generic/device.h> 7 -
-16
arch/xtensa/include/asm/div64.h
··· 1 - /* 2 - * include/asm-xtensa/div64.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2007 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_DIV64_H 12 - #define _XTENSA_DIV64_H 13 - 14 - #include <asm-generic/div64.h> 15 - 16 - #endif /* _XTENSA_DIV64_H */
-6
arch/xtensa/include/asm/emergency-restart.h
··· 1 - #ifndef _ASM_EMERGENCY_RESTART_H 2 - #define _ASM_EMERGENCY_RESTART_H 3 - 4 - #include <asm-generic/emergency-restart.h> 5 - 6 - #endif /* _ASM_EMERGENCY_RESTART_H */
-1
arch/xtensa/include/asm/futex.h
··· 1 - #include <asm-generic/futex.h>
-16
arch/xtensa/include/asm/hardirq.h
··· 1 - /* 2 - * include/asm-xtensa/hardirq.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General 5 - * Public License. See the file "COPYING" in the main directory of 6 - * this archive for more details. 7 - * 8 - * Copyright (C) 2002 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_HARDIRQ_H 12 - #define _XTENSA_HARDIRQ_H 13 - 14 - #include <asm-generic/hardirq.h> 15 - 16 - #endif /* _XTENSA_HARDIRQ_H */
-1
arch/xtensa/include/asm/irq_regs.h
··· 1 - #include <asm-generic/irq_regs.h>
-1
arch/xtensa/include/asm/kdebug.h
··· 1 - #include <asm-generic/kdebug.h>
-6
arch/xtensa/include/asm/kmap_types.h
··· 1 - #ifndef _XTENSA_KMAP_TYPES_H 2 - #define _XTENSA_KMAP_TYPES_H 3 - 4 - #include <asm-generic/kmap_types.h> 5 - 6 - #endif /* _XTENSA_KMAP_TYPES_H */
-16
arch/xtensa/include/asm/local.h
··· 1 - /* 2 - * include/asm-xtensa/local.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_LOCAL_H 12 - #define _XTENSA_LOCAL_H 13 - 14 - #include <asm-generic/local.h> 15 - 16 - #endif /* _XTENSA_LOCAL_H */
-1
arch/xtensa/include/asm/local64.h
··· 1 - #include <asm-generic/local64.h>
-16
arch/xtensa/include/asm/percpu.h
··· 1 - /* 2 - * linux/include/asm-xtensa/percpu.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_PERCPU__ 12 - #define _XTENSA_PERCPU__ 13 - 14 - #include <asm-generic/percpu.h> 15 - 16 - #endif /* _XTENSA_PERCPU__ */
-16
arch/xtensa/include/asm/scatterlist.h
··· 1 - /* 2 - * include/asm-xtensa/scatterlist.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_SCATTERLIST_H 12 - #define _XTENSA_SCATTERLIST_H 13 - 14 - #include <asm-generic/scatterlist.h> 15 - 16 - #endif /* _XTENSA_SCATTERLIST_H */
-16
arch/xtensa/include/asm/sections.h
··· 1 - /* 2 - * include/asm-xtensa/sections.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_SECTIONS_H 12 - #define _XTENSA_SECTIONS_H 13 - 14 - #include <asm-generic/sections.h> 15 - 16 - #endif /* _XTENSA_SECTIONS_H */
-64
arch/xtensa/include/asm/termios.h
··· 1 - /* 2 - * include/asm-xtensa/termios.h 3 - * 4 - * Copied from SH. 5 - * 6 - * This file is subject to the terms and conditions of the GNU General Public 7 - * License. See the file "COPYING" in the main directory of this archive 8 - * for more details. 9 - * 10 - * Copyright (C) 2001 - 2005 Tensilica Inc. 11 - */ 12 - #ifndef _XTENSA_TERMIOS_H 13 - #define _XTENSA_TERMIOS_H 14 - 15 - #include <uapi/asm/termios.h> 16 - 17 - 18 - /* intr=^C quit=^\ erase=del kill=^U 19 - eof=^D vtime=\0 vmin=\1 sxtc=\0 20 - start=^Q stop=^S susp=^Z eol=\0 21 - reprint=^R discard=^U werase=^W lnext=^V 22 - eol2=\0 23 - */ 24 - #define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0" 25 - 26 - /* 27 - * Translate a "termio" structure into a "termios". Ugh. 28 - */ 29 - 30 - #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ 31 - unsigned short __tmp; \ 32 - get_user(__tmp,&(termio)->x); \ 33 - *(unsigned short *) &(termios)->x = __tmp; \ 34 - } 35 - 36 - #define user_termio_to_kernel_termios(termios, termio) \ 37 - ({ \ 38 - SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \ 39 - SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \ 40 - SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 41 - SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \ 42 - copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 43 - }) 44 - 45 - /* 46 - * Translate a "termios" structure into a "termio". Ugh. 47 - */ 48 - 49 - #define kernel_termios_to_user_termio(termio, termios) \ 50 - ({ \ 51 - put_user((termios)->c_iflag, &(termio)->c_iflag); \ 52 - put_user((termios)->c_oflag, &(termio)->c_oflag); \ 53 - put_user((termios)->c_cflag, &(termio)->c_cflag); \ 54 - put_user((termios)->c_lflag, &(termio)->c_lflag); \ 55 - put_user((termios)->c_line, &(termio)->c_line); \ 56 - copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ 57 - }) 58 - 59 - #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) 60 - #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) 61 - #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) 62 - #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) 63 - 64 - #endif /* _XTENSA_TERMIOS_H */
-16
arch/xtensa/include/asm/topology.h
··· 1 - /* 2 - * include/asm-xtensa/topology.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_TOPOLOGY_H 12 - #define _XTENSA_TOPOLOGY_H 13 - 14 - #include <asm-generic/topology.h> 15 - 16 - #endif /* _XTENSA_TOPOLOGY_H */
-16
arch/xtensa/include/asm/xor.h
··· 1 - /* 2 - * include/asm-xtensa/xor.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_XOR_H 12 - #define _XTENSA_XOR_H 13 - 14 - #include <asm-generic/xor.h> 15 - 16 - #endif
-9
arch/xtensa/include/uapi/asm/Kbuild
··· 2 2 include include/uapi/asm-generic/Kbuild.asm 3 3 4 4 header-y += auxvec.h 5 - header-y += bitsperlong.h 6 5 header-y += byteorder.h 7 - header-y += errno.h 8 - header-y += fcntl.h 9 - header-y += ioctl.h 10 6 header-y += ioctls.h 11 7 header-y += ipcbuf.h 12 - header-y += kvm_para.h 13 8 header-y += mman.h 14 9 header-y += msgbuf.h 15 10 header-y += param.h 16 11 header-y += poll.h 17 12 header-y += posix_types.h 18 13 header-y += ptrace.h 19 - header-y += resource.h 20 14 header-y += sembuf.h 21 15 header-y += setup.h 22 16 header-y += shmbuf.h 23 17 header-y += sigcontext.h 24 - header-y += siginfo.h 25 18 header-y += signal.h 26 19 header-y += socket.h 27 20 header-y += sockios.h 28 21 header-y += stat.h 29 - header-y += statfs.h 30 22 header-y += swab.h 31 23 header-y += termbits.h 32 - header-y += termios.h 33 24 header-y += types.h 34 25 header-y += unistd.h
-1
arch/xtensa/include/uapi/asm/bitsperlong.h
··· 1 - #include <asm-generic/bitsperlong.h>
-16
arch/xtensa/include/uapi/asm/errno.h
··· 1 - /* 2 - * include/asm-xtensa/errno.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General 5 - * Public License. See the file "COPYING" in the main directory of 6 - * this archive for more details. 7 - * 8 - * Copyright (C) 2002 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_ERRNO_H 12 - #define _XTENSA_ERRNO_H 13 - 14 - #include <asm-generic/errno.h> 15 - 16 - #endif /* _XTENSA_ERRNO_H */
-1
arch/xtensa/include/uapi/asm/fcntl.h
··· 1 - #include <asm-generic/fcntl.h>
-1
arch/xtensa/include/uapi/asm/ioctl.h
··· 1 - #include <asm-generic/ioctl.h>
-1
arch/xtensa/include/uapi/asm/kvm_para.h
··· 1 - #include <asm-generic/kvm_para.h>
-16
arch/xtensa/include/uapi/asm/resource.h
··· 1 - /* 2 - * include/asm-xtensa/resource.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_RESOURCE_H 12 - #define _XTENSA_RESOURCE_H 13 - 14 - #include <asm-generic/resource.h> 15 - 16 - #endif /* _XTENSA_RESOURCE_H */
-16
arch/xtensa/include/uapi/asm/siginfo.h
··· 1 - /* 2 - * include/asm-xtensa/siginfo.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_SIGINFO_H 12 - #define _XTENSA_SIGINFO_H 13 - 14 - #include <asm-generic/siginfo.h> 15 - 16 - #endif /* _XTENSA_SIGINFO_H */
-17
arch/xtensa/include/uapi/asm/statfs.h
··· 1 - /* 2 - * include/asm-xtensa/statfs.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2005 Tensilica Inc. 9 - */ 10 - 11 - #ifndef _XTENSA_STATFS_H 12 - #define _XTENSA_STATFS_H 13 - 14 - #include <asm-generic/statfs.h> 15 - 16 - #endif /* _XTENSA_STATFS_H */ 17 -
-56
arch/xtensa/include/uapi/asm/termios.h
··· 1 - /* 2 - * include/asm-xtensa/termios.h 3 - * 4 - * Copied from SH. 5 - * 6 - * This file is subject to the terms and conditions of the GNU General Public 7 - * License. See the file "COPYING" in the main directory of this archive 8 - * for more details. 9 - * 10 - * Copyright (C) 2001 - 2005 Tensilica Inc. 11 - */ 12 - 13 - #ifndef _UAPI_XTENSA_TERMIOS_H 14 - #define _UAPI_XTENSA_TERMIOS_H 15 - 16 - #include <asm/termbits.h> 17 - #include <asm/ioctls.h> 18 - 19 - struct winsize { 20 - unsigned short ws_row; 21 - unsigned short ws_col; 22 - unsigned short ws_xpixel; 23 - unsigned short ws_ypixel; 24 - }; 25 - 26 - #define NCC 8 27 - struct termio { 28 - unsigned short c_iflag; /* input mode flags */ 29 - unsigned short c_oflag; /* output mode flags */ 30 - unsigned short c_cflag; /* control mode flags */ 31 - unsigned short c_lflag; /* local mode flags */ 32 - unsigned char c_line; /* line discipline */ 33 - unsigned char c_cc[NCC]; /* control characters */ 34 - }; 35 - 36 - /* Modem lines */ 37 - 38 - #define TIOCM_LE 0x001 39 - #define TIOCM_DTR 0x002 40 - #define TIOCM_RTS 0x004 41 - #define TIOCM_ST 0x008 42 - #define TIOCM_SR 0x010 43 - #define TIOCM_CTS 0x020 44 - #define TIOCM_CAR 0x040 45 - #define TIOCM_RNG 0x080 46 - #define TIOCM_DSR 0x100 47 - #define TIOCM_CD TIOCM_CAR 48 - #define TIOCM_RI TIOCM_RNG 49 - #define TIOCM_OUT1 0x2000 50 - #define TIOCM_OUT2 0x4000 51 - #define TIOCM_LOOP 0x8000 52 - 53 - /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ 54 - 55 - 56 - #endif /* _UAPI_XTENSA_TERMIOS_H */