The patch titled use defines in sys_getpriority/sys_setpriority has been added to the -mm tree. Its filename is use-defines-in-sys_getpriority-sys_setpriority.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ 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. Signed-off-by: Daniel Walker <dwalker@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sys.c | 4 ++-- 1 files changed, 2 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 @@ -659,7 +659,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 +723,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 use-defines-in-sys_getpriority-sys_setpriority.patch use-defines-in-sys_getpriority-sys_setpriority-fix.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