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

Configure Feed

Select the types of activity you want to include in your feed.

arm: Make simd.h more resilient

Add missing header inclusions and protect against double inclusion.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+7 -1
+7 -1
arch/arm/include/asm/simd.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef _ASM_SIMD_H 3 + #define _ASM_SIMD_H 2 4 3 - #include <linux/hardirq.h> 5 + #include <linux/compiler_attributes.h> 6 + #include <linux/preempt.h> 7 + #include <linux/types.h> 4 8 5 9 static __must_check inline bool may_use_simd(void) 6 10 { 7 11 return IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && !in_hardirq(); 8 12 } 13 + 14 + #endif /* _ASM_SIMD_H */