The patch titled Subject: mm/mlock.c: change can_do_mlock return value type to boolean has been added to the -mm tree. Its filename is mm-mlockc-change-can_do_mlock-return-value-type-to-boolean.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mlockc-change-can_do_mlock-return-value-type-to-boolean.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mlockc-change-can_do_mlock-return-value-type-to-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: Wang Xiaoqiang <wangxq10@xxxxxxxxxx> Subject: mm/mlock.c: change can_do_mlock return value type to boolean Since can_do_mlock only return 1 or 0, so make it boolean. No functional change. Signed-off-by: Wang Xiaoqiang <wangxq10@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mlock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff -puN mm/mlock.c~mm-mlockc-change-can_do_mlock-return-value-type-to-boolean mm/mlock.c --- a/mm/mlock.c~mm-mlockc-change-can_do_mlock-return-value-type-to-boolean +++ a/mm/mlock.c @@ -24,13 +24,13 @@ #include "internal.h" -int can_do_mlock(void) +bool can_do_mlock(void) { if (rlimit(RLIMIT_MEMLOCK) != 0) - return 1; + return true; if (capable(CAP_IPC_LOCK)) - return 1; - return 0; + return true; + return false; } EXPORT_SYMBOL(can_do_mlock); _ Patches currently in -mm which might be from wangxq10@xxxxxxxxxx are mm-page_isolation-do-some-cleanup-in-undo_isolate_page_range.patch mm-vmallocc-use-micro-is_aligned-to-judge-the-aligment.patch mm-mlockc-change-can_do_mlock-return-value-type-to-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