From: Herbert Xu Date: Fri, 11 Apr 2025 07:38:43 +0000 (+0800) Subject: asm-generic: Make simd.h more resilient X-Git-Tag: v6.16-rc1~206^2~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba8df47810f073;p=thirdparty%2Fkernel%2Flinux.git asm-generic: Make simd.h more resilient Add missing header inclusions and protect against double inclusion. Signed-off-by: Herbert Xu --- diff --git a/include/asm-generic/simd.h b/include/asm-generic/simd.h index d0343d58a74a1..ac29a22eb7cff 100644 --- a/include/asm-generic/simd.h +++ b/include/asm-generic/simd.h @@ -1,6 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_GENERIC_SIMD_H +#define _ASM_GENERIC_SIMD_H -#include +#include +#include +#include /* * may_use_simd - whether it is allowable at this time to issue SIMD @@ -13,3 +17,5 @@ static __must_check inline bool may_use_simd(void) { return !in_interrupt(); } + +#endif /* _ASM_GENERIC_SIMD_H */