From f1f2423f3ce7a5b68ddce9e9d165e229d6d99c2f Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 30 Oct 2025 18:08:54 -0500 Subject: [PATCH] linuxkm/x86_vector_register_glue.c: remove static assert on kernel >= 5.4.0 -- current implementation is unaffected by the noted bugs on < 5.4.0. --- linuxkm/x86_vector_register_glue.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/linuxkm/x86_vector_register_glue.c b/linuxkm/x86_vector_register_glue.c index 0bf01b42a..4e1e47ba2 100644 --- a/linuxkm/x86_vector_register_glue.c +++ b/linuxkm/x86_vector_register_glue.c @@ -35,13 +35,6 @@ #define VRG_PR_WARN_X pr_warn_once #endif -/* kernel 4.19 -- the most recent LTS before 5.4 -- lacks the necessary safety - * checks in __kernel_fpu_begin(), and lacks TIF_NEED_FPU_LOAD. - */ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)) - #error WOLFSSL_USE_SAVE_VECTOR_REGISTERS on x86 requires kernel 5.4.0 or higher. -#endif - static unsigned int wc_linuxkm_fpu_states_n_tracked = 0; struct wc_thread_fpu_count_ent {