From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 517B3C55179 for ; Thu, 29 Oct 2020 02:01:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1CED820791 for ; Thu, 29 Oct 2020 02:01:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbgJ2CBc (ORCPT ); Wed, 28 Oct 2020 22:01:32 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6573 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727841AbgJ2CBb (ORCPT ); Wed, 28 Oct 2020 22:01:31 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CM7w960L7zhc21; Thu, 29 Oct 2020 10:01:29 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 10:01:20 +0800 From: Zou Wei To: CC: , , Zou Wei Subject: [PATCH -next] mm/hugetlb: Make is_aligned_hugepage_range static Date: Thu, 29 Oct 2020 10:13:20 +0800 Message-ID: <1603937600-53015-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Fix the following sparse warning: arch/mips/mm/hugetlbpage.c:64:5: warning: symbol 'is_aligned_hugepage_range' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zou Wei --- arch/mips/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mm/hugetlbpage.c b/arch/mips/mm/hugetlbpage.c index 77ffece..774c988 100644 --- a/arch/mips/mm/hugetlbpage.c +++ b/arch/mips/mm/hugetlbpage.c @@ -61,7 +61,7 @@ pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr, /* * This function checks for proper alignment of input addr and len parameters. */ -int is_aligned_hugepage_range(unsigned long addr, unsigned long len) +static int is_aligned_hugepage_range(unsigned long addr, unsigned long len) { if (len & ~HPAGE_MASK) return -EINVAL; -- 2.6.2