Merge tag 'ucount-rlimits-cleanups-for-v5.19' of git://git.kernel.org/pub/scm/linux...
[sfrench/cifs-2.6.git] / kernel / sys.c
index 9633229376a7b702be9248affe71df3fd40dba76..8a6432465dc5b287b59f27e8032920df4d23fa2a 100644 (file)
 #ifndef SVE_GET_VL
 # define SVE_GET_VL()          (-EINVAL)
 #endif
+#ifndef SME_SET_VL
+# define SME_SET_VL(a)         (-EINVAL)
+#endif
+#ifndef SME_GET_VL
+# define SME_GET_VL()          (-EINVAL)
+#endif
 #ifndef PAC_RESET_KEYS
 # define PAC_RESET_KEYS(a, b)  (-EINVAL)
 #endif
@@ -2541,6 +2547,12 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
        case PR_SVE_GET_VL:
                error = SVE_GET_VL();
                break;
+       case PR_SME_SET_VL:
+               error = SME_SET_VL(arg2);
+               break;
+       case PR_SME_GET_VL:
+               error = SME_GET_VL();
+               break;
        case PR_GET_SPECULATION_CTRL:
                if (arg3 || arg4 || arg5)
                        return -EINVAL;