Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp261307pxx; Thu, 29 Oct 2020 01:50:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4NoceRJskU4VGPA0NDK00Nx+CHPwTkrRoaviu/CnCTRllm1/mCKbAfKLwlHA3GKvTpFSh X-Received: by 2002:a17:906:c041:: with SMTP id bm1mr2945616ejb.202.1603961436849; Thu, 29 Oct 2020 01:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961436; cv=none; d=google.com; s=arc-20160816; b=z0AypVWCdv+OCB3oRFfRn+bmDErVDJk0+Vn3g2SsXT8R+wsFrHkAy6q63vBLs3Zo7J huuS6nNErqYq590gWKLKRVPd61fPJaYP684j0e92IkE64upUhiafkpt4ac3ZxdYQl1z8 ZvvuUhnyBTEvJXFfdfHLkSFYCxkZv1G8rH/xftvElBn1zPLTYaM2rv3hOQRnzSwbb51k 9Ea7DCNur7qYZFpM9XEWCAmQN/SVokmBv7FQg2147x5sqK5FDwPP4RPzR2aVTG7spr3S RH7PHsfJkBhbmPV91Hwoxf+egJyGUMbf2tz/PMvtrDTRIiOyLvWoa/bTHbPaHp+k+B9Z AWkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=NMMSklcg0al98KMczQDT0k654HibhlfI0UQvbva/jqc=; b=M1wWrXO2n/vxwPSy/U7PporyBGM2yfsGhBNNsbyeVTXz8LDq4Kq/1q77zw0njcrz5I /Zfee3zCN+lcnrmBnSeuNpjF1K9OY87vR1FPnmeYxTh4UyqKV2gsKeLCmK2S7GlVcQe9 m0c1W8zIKd2PRPgv4xitfI4cQE8BO+kxTRi65JTqre5ndlzgA842guVzNPYeS6zgCtvw z8YYp9TfeAYtShY0ac9vwGdkY4mbFwTl26Zyjwj4Yjtnu0DUgLobUqtLEpBzjyD6jfDK WENz48xqIQ/I9L09hC4zqX9Js0L4TF/slrRlZZj5JCzQPnYGIjqSwa5o2SUIDaoym9JP ZQPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si1036130edr.610.2020.10.29.01.50.15; Thu, 29 Oct 2020 01:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728135AbgJ2CBd (ORCPT + 99 others); Wed, 28 Oct 2020 22:01:33 -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-kernel@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