Module: xenomai-forge Branch: next Commit: 47fea503922fbe350001cee82c2a6ab952f5ef84 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=47fea503922fbe350001cee82c2a6ab952f5ef84
Author: Philippe Gerum <r...@xenomai.org> Date: Tue Apr 8 10:03:53 2014 +0200 cobalt: drop useless inclusion guards No kernel header is exposed to userland builds anymore, so we may drop all inclusion guards. --- kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h | 4 ---- kernel/cobalt/arch/arm/include/asm/xenomai/features.h | 4 ---- kernel/cobalt/arch/arm/include/asm/xenomai/machine.h | 4 ---- kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h | 4 ---- kernel/cobalt/arch/arm/include/asm/xenomai/thread.h | 4 ---- kernel/cobalt/arch/blackfin/include/asm/xenomai/calibration.h | 4 ---- kernel/cobalt/arch/blackfin/include/asm/xenomai/features.h | 4 ---- kernel/cobalt/arch/blackfin/include/asm/xenomai/machine.h | 4 ---- kernel/cobalt/arch/blackfin/include/asm/xenomai/syscall.h | 4 ---- kernel/cobalt/arch/blackfin/include/asm/xenomai/thread.h | 4 ---- kernel/cobalt/arch/nios2/include/asm/xenomai/calibration.h | 4 ---- kernel/cobalt/arch/nios2/include/asm/xenomai/features.h | 4 ---- kernel/cobalt/arch/nios2/include/asm/xenomai/machine.h | 4 ---- kernel/cobalt/arch/nios2/include/asm/xenomai/syscall.h | 4 ---- kernel/cobalt/arch/nios2/include/asm/xenomai/thread.h | 4 ---- kernel/cobalt/arch/powerpc/include/asm/xenomai/calibration.h | 4 ---- kernel/cobalt/arch/powerpc/include/asm/xenomai/features.h | 4 ---- kernel/cobalt/arch/powerpc/include/asm/xenomai/machine.h | 4 ---- kernel/cobalt/arch/powerpc/include/asm/xenomai/syscall.h | 4 ---- kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h | 4 ---- kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h | 4 ---- kernel/cobalt/arch/sh/include/asm/xenomai/features.h | 4 ---- kernel/cobalt/arch/sh/include/asm/xenomai/machine.h | 4 ---- kernel/cobalt/arch/sh/include/asm/xenomai/syscall.h | 4 ---- kernel/cobalt/arch/sh/include/asm/xenomai/thread.h | 4 ---- kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h | 4 ---- kernel/cobalt/arch/x86/include/asm/xenomai/features.h | 4 ---- kernel/cobalt/arch/x86/include/asm/xenomai/machine.h | 4 ---- kernel/cobalt/arch/x86/include/asm/xenomai/smi.h | 4 ---- kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h | 4 ---- kernel/cobalt/arch/x86/include/asm/xenomai/thread.h | 4 ---- kernel/cobalt/include/asm-generic/xenomai/machine.h | 4 ---- kernel/cobalt/include/asm-generic/xenomai/mayday.h | 4 ---- kernel/cobalt/include/asm-generic/xenomai/syscall.h | 4 ---- kernel/cobalt/include/asm-generic/xenomai/thread.h | 4 ---- kernel/cobalt/include/asm-generic/xenomai/wrappers.h | 4 ---- 36 files changed, 144 deletions(-) diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h b/kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h index 28d641d..6f8f3bf 100644 --- a/kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h +++ b/kernel/cobalt/arch/arm/include/asm/xenomai/calibration.h @@ -22,10 +22,6 @@ #ifndef _COBALT_ARM_ASM_CALIBRATION_H #define _COBALT_ARM_ASM_CALIBRATION_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - extern unsigned omap_rev(void); #define cpu_is_omap44xx() ((omap_rev() & 0xff) == 0x44) diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/features.h b/kernel/cobalt/arch/arm/include/asm/xenomai/features.h index b422750..6e0c528 100644 --- a/kernel/cobalt/arch/arm/include/asm/xenomai/features.h +++ b/kernel/cobalt/arch/arm/include/asm/xenomai/features.h @@ -22,10 +22,6 @@ #ifndef _COBALT_ARM_ASM_FEATURES_H #define _COBALT_ARM_ASM_FEATURES_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #ifdef CONFIG_AEABI #define CONFIG_XENO_ARM_EABI 1 #endif diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/machine.h b/kernel/cobalt/arch/arm/include/asm/xenomai/machine.h index 86edab3..0981468 100644 --- a/kernel/cobalt/arch/arm/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/arm/include/asm/xenomai/machine.h @@ -23,10 +23,6 @@ #ifndef _COBALT_ARM_ASM_MACHINE_H #define _COBALT_ARM_ASM_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/version.h> #include <asm/byteorder.h> diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h index 7e1fcb1..e015d23 100644 --- a/kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h +++ b/kernel/cobalt/arch/arm/include/asm/xenomai/syscall.h @@ -22,10 +22,6 @@ #ifndef _COBALT_ARM_ASM_SYSCALL_H #define _COBALT_ARM_ASM_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/errno.h> #include <asm/uaccess.h> #include <asm/ptrace.h> diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h index ea4ee92..c2efa2b 100644 --- a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h @@ -19,10 +19,6 @@ #ifndef _COBALT_ARM_ASM_THREAD_H #define _COBALT_ARM_ASM_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm-generic/xenomai/thread.h> #ifdef CONFIG_XENO_HW_FPU diff --git a/kernel/cobalt/arch/blackfin/include/asm/xenomai/calibration.h b/kernel/cobalt/arch/blackfin/include/asm/xenomai/calibration.h index fbe4ee0..b1f6464 100644 --- a/kernel/cobalt/arch/blackfin/include/asm/xenomai/calibration.h +++ b/kernel/cobalt/arch/blackfin/include/asm/xenomai/calibration.h @@ -19,10 +19,6 @@ #ifndef _COBALT_BLACKFIN_ASM_CALIBRATION_H #define _COBALT_BLACKFIN_ASM_CALIBRATION_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - static inline unsigned long xnarch_get_sched_latency (void) { diff --git a/kernel/cobalt/arch/blackfin/include/asm/xenomai/features.h b/kernel/cobalt/arch/blackfin/include/asm/xenomai/features.h index a3a6824..b7e7d02 100644 --- a/kernel/cobalt/arch/blackfin/include/asm/xenomai/features.h +++ b/kernel/cobalt/arch/blackfin/include/asm/xenomai/features.h @@ -19,10 +19,6 @@ #ifndef _COBALT_BLACKFIN_ASM_FEATURES_H #define _COBALT_BLACKFIN_ASM_FEATURES_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - struct xnfeatinfo; static inline void collect_arch_features(struct xnfeatinfo *p) { } diff --git a/kernel/cobalt/arch/blackfin/include/asm/xenomai/machine.h b/kernel/cobalt/arch/blackfin/include/asm/xenomai/machine.h index d00add1..8e3c03a 100644 --- a/kernel/cobalt/arch/blackfin/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/blackfin/include/asm/xenomai/machine.h @@ -20,10 +20,6 @@ #ifndef _COBALT_BLACKFIN_ASM_MACHINE_H #define _COBALT_BLACKFIN_ASM_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/compiler.h> #include <linux/linkage.h> #include <linux/bitops.h> diff --git a/kernel/cobalt/arch/blackfin/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/blackfin/include/asm/xenomai/syscall.h index 1776e18..ed6314b 100644 --- a/kernel/cobalt/arch/blackfin/include/asm/xenomai/syscall.h +++ b/kernel/cobalt/arch/blackfin/include/asm/xenomai/syscall.h @@ -19,10 +19,6 @@ #ifndef _COBALT_BLACKFIN_ASM_SYSCALL_H #define _COBALT_BLACKFIN_ASM_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/errno.h> #include <asm/ptrace.h> #include <asm-generic/xenomai/syscall.h> diff --git a/kernel/cobalt/arch/blackfin/include/asm/xenomai/thread.h b/kernel/cobalt/arch/blackfin/include/asm/xenomai/thread.h index 3f6fc8c..e270fa8 100644 --- a/kernel/cobalt/arch/blackfin/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/blackfin/include/asm/xenomai/thread.h @@ -19,10 +19,6 @@ #ifndef _COBALT_BLACKFIN_ASM_THREAD_H #define _COBALT_BLACKFIN_ASM_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm-generic/xenomai/thread.h> struct xnarchtcb { diff --git a/kernel/cobalt/arch/nios2/include/asm/xenomai/calibration.h b/kernel/cobalt/arch/nios2/include/asm/xenomai/calibration.h index 1fe342c..0366754 100644 --- a/kernel/cobalt/arch/nios2/include/asm/xenomai/calibration.h +++ b/kernel/cobalt/arch/nios2/include/asm/xenomai/calibration.h @@ -19,10 +19,6 @@ #ifndef _COBALT_NIOS2_ASM_CALIBRATION_H #define _COBALT_NIOS2_ASM_CALIBRATION_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - static inline unsigned long xnarch_get_sched_latency (void) { #if CONFIG_XENO_OPT_TIMING_SCHEDLAT != 0 diff --git a/kernel/cobalt/arch/nios2/include/asm/xenomai/features.h b/kernel/cobalt/arch/nios2/include/asm/xenomai/features.h index 7b91c14..c24c7bd 100644 --- a/kernel/cobalt/arch/nios2/include/asm/xenomai/features.h +++ b/kernel/cobalt/arch/nios2/include/asm/xenomai/features.h @@ -19,10 +19,6 @@ #ifndef _COBALT_NIOS2_ASM_FEATURES_H #define _COBALT_NIOS2_ASM_FEATURES_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/ipipe.h> #include <asm/xenomai/uapi/features.h> diff --git a/kernel/cobalt/arch/nios2/include/asm/xenomai/machine.h b/kernel/cobalt/arch/nios2/include/asm/xenomai/machine.h index f52fd2f..19c8456 100644 --- a/kernel/cobalt/arch/nios2/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/nios2/include/asm/xenomai/machine.h @@ -20,10 +20,6 @@ #ifndef _COBALT_NIOS2_ASM_MACHINE_H #define _COBALT_NIOS2_ASM_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/compiler.h> /* diff --git a/kernel/cobalt/arch/nios2/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/nios2/include/asm/xenomai/syscall.h index a541db7..642ef7c 100644 --- a/kernel/cobalt/arch/nios2/include/asm/xenomai/syscall.h +++ b/kernel/cobalt/arch/nios2/include/asm/xenomai/syscall.h @@ -19,10 +19,6 @@ #ifndef _COBALT_NIOS2_ASM_SYSCALL_H #define _COBALT_NIOS2_ASM_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/errno.h> #include <asm/uaccess.h> #include <asm/ptrace.h> diff --git a/kernel/cobalt/arch/nios2/include/asm/xenomai/thread.h b/kernel/cobalt/arch/nios2/include/asm/xenomai/thread.h index 87f5e17..df473c9 100644 --- a/kernel/cobalt/arch/nios2/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/nios2/include/asm/xenomai/thread.h @@ -19,10 +19,6 @@ #ifndef _COBALT_NIOS2_ASM_THREAD_H #define _COBALT_NIOS2_ASM_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm-generic/xenomai/thread.h> #ifndef CONFIG_MMU diff --git a/kernel/cobalt/arch/powerpc/include/asm/xenomai/calibration.h b/kernel/cobalt/arch/powerpc/include/asm/xenomai/calibration.h index a78b70e..b801759 100644 --- a/kernel/cobalt/arch/powerpc/include/asm/xenomai/calibration.h +++ b/kernel/cobalt/arch/powerpc/include/asm/xenomai/calibration.h @@ -22,10 +22,6 @@ #ifndef _COBALT_POWERPC_ASM_CALIBRATION_H #define _COBALT_POWERPC_ASM_CALIBRATION_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - static inline unsigned long xnarch_get_sched_latency(void) { #if CONFIG_XENO_OPT_TIMING_SCHEDLAT != 0 diff --git a/kernel/cobalt/arch/powerpc/include/asm/xenomai/features.h b/kernel/cobalt/arch/powerpc/include/asm/xenomai/features.h index a73d566..876b629 100644 --- a/kernel/cobalt/arch/powerpc/include/asm/xenomai/features.h +++ b/kernel/cobalt/arch/powerpc/include/asm/xenomai/features.h @@ -19,10 +19,6 @@ #ifndef _COBALT_POWERPC_ASM_FEATURES_H #define _COBALT_POWERPC_ASM_FEATURES_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - struct xnfeatinfo; static inline void collect_arch_features(struct xnfeatinfo *p) { } diff --git a/kernel/cobalt/arch/powerpc/include/asm/xenomai/machine.h b/kernel/cobalt/arch/powerpc/include/asm/xenomai/machine.h index f12bfc4..6737ddc 100644 --- a/kernel/cobalt/arch/powerpc/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/powerpc/include/asm/xenomai/machine.h @@ -23,10 +23,6 @@ #ifndef _COBALT_POWERPC_ASM_MACHINE_H #define _COBALT_POWERPC_ASM_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/compiler.h> #define XNARCH_HOST_TICK_IRQ __ipipe_hrtimer_irq diff --git a/kernel/cobalt/arch/powerpc/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/powerpc/include/asm/xenomai/syscall.h index 0c25d0d..2d5294e 100644 --- a/kernel/cobalt/arch/powerpc/include/asm/xenomai/syscall.h +++ b/kernel/cobalt/arch/powerpc/include/asm/xenomai/syscall.h @@ -22,10 +22,6 @@ #ifndef _COBALT_POWERPC_ASM_SYSCALL_H #define _COBALT_POWERPC_ASM_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/errno.h> #include <asm/ptrace.h> #include <asm-generic/xenomai/syscall.h> diff --git a/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h b/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h index 10ccf2c..02e4e6d 100644 --- a/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/powerpc/include/asm/xenomai/thread.h @@ -19,10 +19,6 @@ #ifndef _COBALT_POWERPC_ASM_THREAD_H #define _COBALT_POWERPC_ASM_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm-generic/xenomai/thread.h> struct xnarchtcb { diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h b/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h index 5a721dc..1ce64e6 100644 --- a/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h +++ b/kernel/cobalt/arch/sh/include/asm/xenomai/calibration.h @@ -19,10 +19,6 @@ #ifndef _COBALT_SH_ASM_CALIBRATION_H #define _COBALT_SH_ASM_CALIBRATION_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - static inline unsigned long xnarch_get_sched_latency (void) { #if CONFIG_XENO_OPT_TIMING_SCHEDLAT != 0 diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/features.h b/kernel/cobalt/arch/sh/include/asm/xenomai/features.h index aa93bcf..3211000 100644 --- a/kernel/cobalt/arch/sh/include/asm/xenomai/features.h +++ b/kernel/cobalt/arch/sh/include/asm/xenomai/features.h @@ -19,10 +19,6 @@ #ifndef _COBALT_SH_ASM_FEATURES_H #define _COBALT_SH_ASM_FEATURES_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/ipipe.h> #include <asm/xenomai/uapi/features.h> diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/machine.h b/kernel/cobalt/arch/sh/include/asm/xenomai/machine.h index d9fe6ec..ba66b4c 100644 --- a/kernel/cobalt/arch/sh/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/sh/include/asm/xenomai/machine.h @@ -20,10 +20,6 @@ #ifndef _COBALT_SH_ASM_MACHINE_H #define _COBALT_SH_ASM_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/compiler.h> #ifndef CONFIG_CPU_SH4 diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/sh/include/asm/xenomai/syscall.h index 93de25c..d00050a 100644 --- a/kernel/cobalt/arch/sh/include/asm/xenomai/syscall.h +++ b/kernel/cobalt/arch/sh/include/asm/xenomai/syscall.h @@ -19,10 +19,6 @@ #ifndef _COBALT_SH_ASM_SYSCALL_H #define _COBALT_SH_ASM_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/errno.h> #include <asm/ptrace.h> #include <asm-generic/xenomai/syscall.h> diff --git a/kernel/cobalt/arch/sh/include/asm/xenomai/thread.h b/kernel/cobalt/arch/sh/include/asm/xenomai/thread.h index 9a78124..c53cce6 100644 --- a/kernel/cobalt/arch/sh/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/sh/include/asm/xenomai/thread.h @@ -19,10 +19,6 @@ #ifndef _COBALT_SH_ASM_THREAD_H #define _COBALT_SH_ASM_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm-generic/xenomai/thread.h> struct xnarchtcb { diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h b/kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h index 98fc897..95f6506 100644 --- a/kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/calibration.h @@ -19,10 +19,6 @@ #ifndef _COBALT_X86_ASM_CALIBRATION_H #define _COBALT_X86_ASM_CALIBRATION_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm/processor.h> static inline unsigned long xnarch_get_sched_latency (void) diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/features.h b/kernel/cobalt/arch/x86/include/asm/xenomai/features.h index 1d40b70..00f52a0 100644 --- a/kernel/cobalt/arch/x86/include/asm/xenomai/features.h +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/features.h @@ -19,10 +19,6 @@ #ifndef _COBALT_X86_ASM_FEATURES_H #define _COBALT_X86_ASM_FEATURES_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - struct xnfeatinfo; static inline void collect_arch_features(struct xnfeatinfo *p) { } diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/machine.h b/kernel/cobalt/arch/x86/include/asm/xenomai/machine.h index 13add91..bb5ccc1 100644 --- a/kernel/cobalt/arch/x86/include/asm/xenomai/machine.h +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/machine.h @@ -19,10 +19,6 @@ #ifndef _COBALT_X86_ASM_MACHINE_H #define _COBALT_X86_ASM_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/compiler.h> static inline __attribute_const__ unsigned long ffnz(unsigned long ul) diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/smi.h b/kernel/cobalt/arch/x86/include/asm/xenomai/smi.h index dd7c35e..1ea90fb 100644 --- a/kernel/cobalt/arch/x86/include/asm/xenomai/smi.h +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/smi.h @@ -21,10 +21,6 @@ #ifndef _COBALT_X86_ASM_SMI_H #define _COBALT_X86_ASM_SMI_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #ifndef _COBALT_X86_ASM_MACHINE_H #error "please don't include asm/smi.h directly" #endif diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h b/kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h index a3277c3..4f78132 100644 --- a/kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/syscall.h @@ -20,10 +20,6 @@ #ifndef _COBALT_X86_ASM_SYSCALL_H #define _COBALT_X86_ASM_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/errno.h> #include <asm/ptrace.h> #include <asm-generic/xenomai/syscall.h> diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h b/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h index 8730018..3fe443f 100644 --- a/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h @@ -20,10 +20,6 @@ #ifndef _COBALT_X86_ASM_THREAD_H #define _COBALT_X86_ASM_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm-generic/xenomai/thread.h> #include <asm/xenomai/wrappers.h> diff --git a/kernel/cobalt/include/asm-generic/xenomai/machine.h b/kernel/cobalt/include/asm-generic/xenomai/machine.h index 8be8402..f00f4b8 100644 --- a/kernel/cobalt/include/asm-generic/xenomai/machine.h +++ b/kernel/cobalt/include/asm-generic/xenomai/machine.h @@ -19,10 +19,6 @@ #ifndef _COBALT_ASM_GENERIC_MACHINE_H #define _COBALT_ASM_GENERIC_MACHINE_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/ipipe.h> #include <linux/percpu.h> #include <asm/byteorder.h> diff --git a/kernel/cobalt/include/asm-generic/xenomai/mayday.h b/kernel/cobalt/include/asm-generic/xenomai/mayday.h index 4dd7f6a..6a83ba8 100644 --- a/kernel/cobalt/include/asm-generic/xenomai/mayday.h +++ b/kernel/cobalt/include/asm-generic/xenomai/mayday.h @@ -19,10 +19,6 @@ #ifndef _COBALT_ASM_GENERIC_MAYDAY_H #define _COBALT_ASM_GENERIC_MAYDAY_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - struct task_struct; struct pt_regs; diff --git a/kernel/cobalt/include/asm-generic/xenomai/syscall.h b/kernel/cobalt/include/asm-generic/xenomai/syscall.h index 0962d19..eac54fc 100644 --- a/kernel/cobalt/include/asm-generic/xenomai/syscall.h +++ b/kernel/cobalt/include/asm-generic/xenomai/syscall.h @@ -19,10 +19,6 @@ #ifndef _COBALT_ASM_GENERIC_SYSCALL_H #define _COBALT_ASM_GENERIC_SYSCALL_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/types.h> #include <asm/uaccess.h> #include <asm/xenomai/features.h> diff --git a/kernel/cobalt/include/asm-generic/xenomai/thread.h b/kernel/cobalt/include/asm-generic/xenomai/thread.h index fbaecb1..370fd74 100644 --- a/kernel/cobalt/include/asm-generic/xenomai/thread.h +++ b/kernel/cobalt/include/asm-generic/xenomai/thread.h @@ -19,10 +19,6 @@ #ifndef _COBALT_ASM_GENERIC_THREAD_H #define _COBALT_ASM_GENERIC_THREAD_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <asm/ptrace.h> #include <asm/processor.h> diff --git a/kernel/cobalt/include/asm-generic/xenomai/wrappers.h b/kernel/cobalt/include/asm-generic/xenomai/wrappers.h index d6a1a27..c7e3216 100644 --- a/kernel/cobalt/include/asm-generic/xenomai/wrappers.h +++ b/kernel/cobalt/include/asm-generic/xenomai/wrappers.h @@ -18,10 +18,6 @@ */ #ifndef _COBALT_ASM_GENERIC_WRAPPERS_H -#ifndef __KERNEL__ -#error "Pure kernel header included from user-space!" -#endif - #include <linux/version.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git