diff -drupN a/include/linux/nospec.h b/include/linux/nospec.h
--- a/include/linux/nospec.h	2018-08-06 17:23:04.000000000 +0300
+++ b/include/linux/nospec.h	2022-06-12 05:28:14.000000000 +0300
@@ -62,7 +62,5 @@ static inline unsigned long array_index_
 int arch_prctl_spec_ctrl_get(struct task_struct *task, unsigned long which);
 int arch_prctl_spec_ctrl_set(struct task_struct *task, unsigned long which,
 			     unsigned long ctrl);
-/* Speculation control for seccomp enforced mitigation */
-void arch_seccomp_spec_mitigate(struct task_struct *task);
 
 #endif /* _LINUX_NOSPEC_H */