The patch titled kernel/sys.c: fix "warning: do-while statement is not a compound statement" noise has been added to the -mm tree. Its filename is kernel-sysc-fix-warning-do-while-statement-is-not-a-compound-statement-noise.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: kernel/sys.c: fix "warning: do-while statement is not a compound statement" noise From: "H Hartley Sweeten" <hartleys@xxxxxxxxxxxxxxxxxxx> do_each_thread/while_each_thread wrap a block of code that is in this format: for (...) do ... while If curly braces do not surround the inner loop the following warning is generated by sparse: warning: do-while statement is not a compound statement Fix the warning by adding the braces. Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN kernel/sys.c~kernel-sysc-fix-warning-do-while-statement-is-not-a-compound-statement-noise kernel/sys.c --- a/kernel/sys.c~kernel-sysc-fix-warning-do-while-statement-is-not-a-compound-statement-noise +++ a/kernel/sys.c @@ -190,10 +190,10 @@ SYSCALL_DEFINE3(setpriority, int, which, !(user = find_user(who))) goto out_unlock; /* No processes for this user */ - do_each_thread(g, p) + do_each_thread(g, p) { if (__task_cred(p)->uid == who) error = set_one_prio(p, niceval, error); - while_each_thread(g, p); + } while_each_thread(g, p); if (who != cred->uid) free_uid(user); /* For find_user() */ break; @@ -253,13 +253,13 @@ SYSCALL_DEFINE2(getpriority, int, which, !(user = find_user(who))) goto out_unlock; /* No processes for this user */ - do_each_thread(g, p) + do_each_thread(g, p) { if (__task_cred(p)->uid == who) { niceval = 20 - task_nice(p); if (niceval > retval) retval = niceval; } - while_each_thread(g, p); + } while_each_thread(g, p); if (who != cred->uid) free_uid(user); /* for find_user() */ break; _ Patches currently in -mm which might be from hartleys@xxxxxxxxxxxxxxxxxxx are origin.patch linux-next.patch drivers-misc-add-driver-for-texas-instruments-dac7512.patch drivers-misc-add-driver-for-texas-instruments-dac7512-update.patch init-mainc-fix-symbol-shadows-noise.patch kernel-sysc-fix-warning-do-while-statement-is-not-a-compound-statement-noise.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