arm: Make simd.h more resilient
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Apr 2025 07:38:45 +0000 (15:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:36:23 +0000 (15:36 +0800)
Add missing header inclusions and protect against double inclusion.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/include/asm/simd.h

index 82191dbd7e78a036423e0e1518dca767c536cb86..d37559762180400b5c9963a0705936eb8326b0a9 100644 (file)
@@ -1,8 +1,14 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_SIMD_H
+#define _ASM_SIMD_H
 
-#include <linux/hardirq.h>
+#include <linux/compiler_attributes.h>
+#include <linux/preempt.h>
+#include <linux/types.h>
 
 static __must_check inline bool may_use_simd(void)
 {
        return IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && !in_hardirq();
 }
+
+#endif /* _ASM_SIMD_H */