From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753997AbcDJODK (ORCPT ); Sun, 10 Apr 2016 10:03:10 -0400 Received: from mail113-250.mail.alibaba.com ([205.204.113.250]:60627 "EHLO us-alimail-mta2.hst.scl.en.alidc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753226AbcDJODI (ORCPT ); Sun, 10 Apr 2016 10:03:08 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09516624|-1;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03277;MF=chengang@emindsoft.com.cn;NM=1;PH=DS;RN=13;RT=12;SR=0;TI=SMTPD_----4h-TQbL_1460296647; From: chengang@emindsoft.com.cn To: akpm@linux-foundation.org, n-horiguchi@ah.jp.nec.com, mike.kravetz@oracle.com, hillf.zj@alibaba-inc.com, mhocko@suse.com, kirill.shutemov@linux.intel.com, dan.j.williams@intel.com, dingel@linux.vnet.ibm.com, baiyaowei@cmss.chinamobile.com Cc: linux-kernel@vger.kernel.org, Chen Gang , Chen Gang Subject: [PATCH] include/linux/hugetlb.h: Use bool instead of int for hugepage_migration_supported() Date: Sun, 10 Apr 2016 21:57:24 +0800 Message-Id: <1460296644-27566-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 It is used as a pure bool function within kernel source wide. Signed-off-by: Chen Gang --- include/linux/hugetlb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index e44c578..0f735ea 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -454,12 +454,12 @@ static inline pgoff_t basepage_index(struct page *page) extern void dissolve_free_huge_pages(unsigned long start_pfn, unsigned long end_pfn); -static inline int hugepage_migration_supported(struct hstate *h) +static inline bool hugepage_migration_supported(struct hstate *h) { #ifdef CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION return huge_page_shift(h) == PMD_SHIFT; #else - return 0; + return false; #endif } @@ -521,7 +521,7 @@ static inline pgoff_t basepage_index(struct page *page) return page->index; } #define dissolve_free_huge_pages(s, e) do {} while (0) -#define hugepage_migration_supported(h) 0 +#define hugepage_migration_supported(h) false static inline spinlock_t *huge_pte_lockptr(struct hstate *h, struct mm_struct *mm, pte_t *pte) -- 1.9.3