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

xtensa: drop ifdef __KERNEL__ from kernel-only headers

These headers are not exported to userspace, so they're never used
without __KERNEL__ defined. Drop these ifdef statements.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

-24
-4
arch/xtensa/include/asm/atomic.h
··· 15 15 16 16 #include <linux/stringify.h> 17 17 #include <linux/types.h> 18 - 19 - #ifdef __KERNEL__ 20 18 #include <asm/processor.h> 21 19 #include <asm/cmpxchg.h> 22 20 #include <asm/barrier.h> ··· 197 199 198 200 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) 199 201 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) 200 - 201 - #endif /* __KERNEL__ */ 202 202 203 203 #endif /* _XTENSA_ATOMIC_H */
-4
arch/xtensa/include/asm/bitops.h
··· 13 13 #ifndef _XTENSA_BITOPS_H 14 14 #define _XTENSA_BITOPS_H 15 15 16 - #ifdef __KERNEL__ 17 - 18 16 #ifndef _LINUX_BITOPS_H 19 17 #error only <linux/bitops.h> can be included directly 20 18 #endif ··· 229 231 #include <asm-generic/bitops/hweight.h> 230 232 #include <asm-generic/bitops/lock.h> 231 233 #include <asm-generic/bitops/sched.h> 232 - 233 - #endif /* __KERNEL__ */ 234 234 235 235 #endif /* _XTENSA_BITOPS_H */
-3
arch/xtensa/include/asm/futex.h
··· 15 15 #ifndef _ASM_XTENSA_FUTEX_H 16 16 #define _ASM_XTENSA_FUTEX_H 17 17 18 - #ifdef __KERNEL__ 19 - 20 18 #include <linux/futex.h> 21 19 #include <linux/uaccess.h> 22 20 #include <linux/errno.h> ··· 121 123 return ret; 122 124 } 123 125 124 - #endif /* __KERNEL__ */ 125 126 #endif /* _ASM_XTENSA_FUTEX_H */
-3
arch/xtensa/include/asm/io.h
··· 11 11 #ifndef _XTENSA_IO_H 12 12 #define _XTENSA_IO_H 13 13 14 - #ifdef __KERNEL__ 15 14 #include <asm/byteorder.h> 16 15 #include <asm/page.h> 17 16 #include <asm/vectors.h> ··· 76 77 #define bus_to_virt phys_to_virt 77 78 78 79 #endif /* CONFIG_MMU */ 79 - 80 - #endif /* __KERNEL__ */ 81 80 82 81 #include <asm-generic/io.h> 83 82
-3
arch/xtensa/include/asm/pci-bridge.h
··· 11 11 #ifndef _XTENSA_PCI_BRIDGE_H 12 12 #define _XTENSA_PCI_BRIDGE_H 13 13 14 - #ifdef __KERNEL__ 15 - 16 14 struct device_node; 17 15 struct pci_controller; 18 16 ··· 82 84 int early_write_config_word(struct pci_controller*, int, int, int, u16); 83 85 int early_write_config_dword(struct pci_controller*, int, int, int, u32); 84 86 85 - #endif /* __KERNEL__ */ 86 87 #endif /* _XTENSA_PCI_BRIDGE_H */
-4
arch/xtensa/include/asm/pci.h
··· 11 11 #ifndef _XTENSA_PCI_H 12 12 #define _XTENSA_PCI_H 13 13 14 - #ifdef __KERNEL__ 15 - 16 14 /* Can be used to override the logic in pci_scan_bus for skipping 17 15 * already-configured bus numbers - to be used for buggy BIOSes 18 16 * or architectures with incomplete PCI setup by the loader ··· 42 44 #define HAVE_PCI_MMAP 1 43 45 #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 44 46 #define arch_can_pci_mmap_io() 1 45 - 46 - #endif /* __KERNEL__ */ 47 47 48 48 /* Generic PCI */ 49 49 #include <asm-generic/pci.h>
-3
arch/xtensa/include/asm/pgalloc.h
··· 11 11 #ifndef _XTENSA_PGALLOC_H 12 12 #define _XTENSA_PGALLOC_H 13 13 14 - #ifdef __KERNEL__ 15 - 16 14 #include <linux/highmem.h> 17 15 #include <linux/slab.h> 18 16 ··· 77 79 } 78 80 #define pmd_pgtable(pmd) pmd_page(pmd) 79 81 80 - #endif /* __KERNEL__ */ 81 82 #endif /* _XTENSA_PGALLOC_H */