The patch titled Subject: init/main.c: obsolete_checksetup can be boolean has been added to the -mm tree. Its filename is init-mainc-obsolete_checksetup-can-be-boolean.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/init-mainc-obsolete_checksetup-can-be-boolean.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/init-mainc-obsolete_checksetup-can-be-boolean.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 *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yaowei Bai <baiyaowei@xxxxxxxxxxxxxxxxxxxx> Subject: init/main.c: obsolete_checksetup can be boolean Make obsolete_checksetup() return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai <baiyaowei@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- init/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff -puN init/main.c~init-mainc-obsolete_checksetup-can-be-boolean init/main.c --- a/init/main.c~init-mainc-obsolete_checksetup-can-be-boolean +++ a/init/main.c @@ -164,10 +164,10 @@ static const char *panic_later, *panic_p extern const struct obs_kernel_param __setup_start[], __setup_end[]; -static int __init obsolete_checksetup(char *line) +static bool __init obsolete_checksetup(char *line) { const struct obs_kernel_param *p; - int had_early_param = 0; + bool had_early_param = false; p = __setup_start; do { @@ -179,13 +179,13 @@ static int __init obsolete_checksetup(ch * Keep iterating, as we can have early * params and __setups of same names 8( */ if (line[n] == '\0' || line[n] == '=') - had_early_param = 1; + had_early_param = true; } else if (!p->setup_func) { pr_warn("Parameter %s is obsolete, ignored\n", p->str); - return 1; + return true; } else if (p->setup_func(line + n)) - return 1; + return true; } p++; } while (p < __setup_end); _ Patches currently in -mm which might be from baiyaowei@xxxxxxxxxxxxxxxxxxxx are mm-hugetlb-is_file_hugepages-can-be-boolean.patch mm-memblock-memblock_is_memory-reserved-can-be-boolean.patch mm-lru-remove-unused-is_unevictable_lru-function.patch mm-zonelist-enumerate-zonelists-array-index.patch fs-statc-drop-the-last-new_valid_dev-check.patch include-linux-kdev_th-remove-new_valid_dev.patch init-mainc-obsolete_checksetup-can-be-boolean.patch init-do_mounts-initrd_load-can-be-boolean.patch ipc-shm-is_file_shm_hugepages-can-be-boolean.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