diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-15 22:15:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-15 22:15:23 +0200 |
commit | dc8f89a895835e92b790ceeec9f870d75867cfe3 (patch) | |
tree | 93da438a9a7fcd0531975d8691ca02c101608506 /src/compat | |
parent | 47cebf9b23441ca8c7c7f16efc7057529c2a649b (diff) |
simd: add __must_check annotation
Suggested-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/simd/include/linux/simd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat/simd/include/linux/simd.h b/src/compat/simd/include/linux/simd.h index 6adf0c3..f31059d 100644 --- a/src/compat/simd/include/linux/simd.h +++ b/src/compat/simd/include/linux/simd.h @@ -21,7 +21,7 @@ typedef enum { HAVE_FULL_SIMD } simd_context_t; -static inline simd_context_t simd_get(void) +static __must_check inline simd_context_t simd_get(void) { bool have_simd = false; #if defined(CONFIG_X86_64) && !defined(CONFIG_UML) && !defined(CONFIG_PREEMPT_RT_BASE) @@ -51,7 +51,7 @@ static inline void simd_put(simd_context_t prior_context) #endif } -static inline simd_context_t simd_relax(simd_context_t prior_context) +static __must_check inline simd_context_t simd_relax(simd_context_t prior_context) { #ifdef CONFIG_PREEMPT if (prior_context != HAVE_NO_SIMD && need_resched()) { |