The patch titled Subject: include/linux/list_bl.h: use bool instead of int for boolean functions has been added to the -mm tree. Its filename is include-linux-list_blh-use-bool-instead-of-int-for-boolean-functions.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/include-linux-list_blh-use-bool-instead-of-int-for-boolean-functions.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/include-linux-list_blh-use-bool-instead-of-int-for-boolean-functions.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: Chen Gang <chengang@xxxxxxxxxxxxxxxx> Subject: include/linux/list_bl.h: use bool instead of int for boolean functions hlist_bl_unhashed() and hlist_bl_empty() are all boolean functions, so return bool instead of int. Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/list_bl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/list_bl.h~include-linux-list_blh-use-bool-instead-of-int-for-boolean-functions include/linux/list_bl.h --- a/include/linux/list_bl.h~include-linux-list_blh-use-bool-instead-of-int-for-boolean-functions +++ a/include/linux/list_bl.h @@ -48,7 +48,7 @@ static inline void INIT_HLIST_BL_NODE(st #define hlist_bl_entry(ptr, type, member) container_of(ptr,type,member) -static inline int hlist_bl_unhashed(const struct hlist_bl_node *h) +static inline bool hlist_bl_unhashed(const struct hlist_bl_node *h) { return !h->pprev; } @@ -68,7 +68,7 @@ static inline void hlist_bl_set_first(st h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK); } -static inline int hlist_bl_empty(const struct hlist_bl_head *h) +static inline bool hlist_bl_empty(const struct hlist_bl_head *h) { return !((unsigned long)READ_ONCE(h->first) & ~LIST_BL_LOCKMASK); } _ Patches currently in -mm which might be from chengang@xxxxxxxxxxxxxxxx are include-linux-list_blh-use-bool-instead-of-int-for-boolean-functions.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