From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796AbcAXVEW (ORCPT ); Sun, 24 Jan 2016 16:04:22 -0500 Received: from out11.biz.mail.alibaba.com ([205.204.114.131]:57577 "EHLO out11.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbcAXVEU (ORCPT ); Sun, 24 Jan 2016 16:04:20 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08715149|-1;FP=0|0|0|0|0|-1|-1|-1;HT=e01l10418;MF=chengang@emindsoft.com.cn;NM=1;PH=DS;RN=9;RT=8;SR=0;TI=SMTPD_----4Tr0xvk_1453669102; From: chengang@emindsoft.com.cn To: akpm@linux-foundation.org, dhowells@redhat.com Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, josh@joshtriplett.org, Chen Gang , Chen Gang Subject: [PATCH] include/linux/list_bl.h: Use bool instead of int for boolean functions Date: Mon, 25 Jan 2016 04:58:18 +0800 Message-Id: <1453669098-8595-1-git-send-email-chengang@emindsoft.com.cn> X-Mailer: git-send-email 1.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Gang hlist_bl_unhashed() and hlist_bl_empty() are all boolean functions, so return bool instead of int. Signed-off-by: Chen Gang --- include/linux/list_bl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/list_bl.h b/include/linux/list_bl.h index ee7229a..cb48330 100644 --- a/include/linux/list_bl.h +++ b/include/linux/list_bl.h @@ -48,7 +48,7 @@ static inline void INIT_HLIST_BL_NODE(struct hlist_bl_node *h) #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(struct hlist_bl_head *h, 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); } -- 1.9.3