The patch titled use defines in sys_getpriority/sys_setpriority has been removed from the -mm tree. Its filename was use-defines-in-sys_getpriority-sys_setpriority.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: use defines in sys_getpriority/sys_setpriority From: Daniel Walker <dwalker@xxxxxxxxxx> Switch to the defines for these two checks, instead of hard coding the values. [akpm@xxxxxxxxxxxxxxxxxxxx: add missing include] Signed-off-by: Daniel Walker <dwalker@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sys.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN kernel/sys.c~use-defines-in-sys_getpriority-sys_setpriority kernel/sys.c --- a/kernel/sys.c~use-defines-in-sys_getpriority-sys_setpriority +++ a/kernel/sys.c @@ -14,6 +14,7 @@ #include <linux/prctl.h> #include <linux/highuid.h> #include <linux/fs.h> +#include <linux/resource.h> #include <linux/kernel.h> #include <linux/kexec.h> #include <linux/workqueue.h> @@ -659,7 +660,7 @@ asmlinkage long sys_setpriority(int whic int error = -EINVAL; struct pid *pgrp; - if (which > 2 || which < 0) + if (which > PRIO_USER || which < PRIO_PROCESS) goto out; /* normalize: avoid signed division (rounding problems) */ @@ -723,7 +724,7 @@ asmlinkage long sys_getpriority(int whic long niceval, retval = -ESRCH; struct pid *pgrp; - if (which > 2 || which < 0) + if (which > PRIO_USER || which < PRIO_PROCESS) return -EINVAL; read_lock(&tasklist_lock); _ Patches currently in -mm which might be from dwalker@xxxxxxxxxx are origin.patch slim-make-and-config-stuff.patch profile-likely-unlikely-macros.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html