Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2054193pxf; Sat, 27 Mar 2021 01:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydnd+D0aGsq4NEPH8sLiDHbakVPnyxKMZ+xKXIbCwyYKNIA6dtWVm5+524irfNbwwpB0n5 X-Received: by 2002:a05:6402:5113:: with SMTP id m19mr19575818edd.78.1616833153067; Sat, 27 Mar 2021 01:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616833153; cv=none; d=google.com; s=arc-20160816; b=Cuu1L0FE1okMnNTCuf9nO+sEIo2WYSmd2VW+Ox+Kz577GCyLIp7qtVCjBLH4TKqYTp P5XrHSaJzxGYL8YO96CwVL0hlb09NKf89+rLbBWSZXWzQFt0crFZZDX9YaLoKWWi2Vq8 mFEfK0iZRJJm8GP5TW/jC8mm9Wdcbol3crUqvOkbgzVKZYJvgmYazZP0Im4UcchYn2a2 sSUdk9Q34Tm7uzueWIAitQYPwzQwa9bvpOEL3yoQid11CsS86oqhpuA3CcsvIAW+XtRI paNcl3AVnhAen4U8dKYtylrPJf1g527lzDM7y0/1TsHvoEQWcEcM2cOS4gQ2kRj8XBKe I9+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=62PS92v6BR3TXAJyLjK5ee/inahdl5Z0+yZN06/B2Qo=; b=tpM9Efm/+9g6cwopzMSeGJ2/qRZan+l8WwavPWHXCfufijsdM9FMZrWuwQT470IXcf pJuCC+SnzO2KmqHitH5Fo+9bbTqD3+hi9kn9H5LCt89VfPvv8i1XtL3manEkBW5OJnST 6eLJpWNacurryezWcpiQV8VrcY0LQCeLMDQh484+s0J9u+UpsptKSWAOMg6Ek1zT/i8f +2QYnr/5/qgZp1sVWfbVVtxFCRCXm+aFriTGGFP7IYXbCsM2iddwzroMoYtm8l8GKqXx 1zLIqYsDEmjPDdqQqf7OwC0IdBS9eeexq4DRRZpI4m1V5p1WBrvQZvuKzS+tYsgsWln8 H1jw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ba9si8519347edb.489.2021.03.27.01.18.50; Sat, 27 Mar 2021 01:19:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbhC0IAv (ORCPT + 99 others); Sat, 27 Mar 2021 04:00:51 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14570 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbhC0IAL (ORCPT ); Sat, 27 Mar 2021 04:00:11 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F6rmB6CZVzPqjx; Sat, 27 Mar 2021 15:57:30 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:59:58 +0800 From: Shixin Liu To: Andrey Ryabinin , Russell King , Alexander Potapenko , "Andrey Konovalov" , Dmitry Vyukov CC: , , , Shixin Liu Subject: [PATCH] arm: 9016/2: Make symbol 'tmp_pmd_table' static Date: Sat, 27 Mar 2021 16:30:18 +0800 Message-ID: <20210327083018.1922539-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Symbol 'tmp_pmd_table' is not used outside of kasan_init.c and only used when CONFIG_ARM_LPAE enabled. So marks it static and add it into CONFIG_ARM_LPAE. Signed-off-by: Shixin Liu --- arch/arm/mm/kasan_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mm/kasan_init.c b/arch/arm/mm/kasan_init.c index 9c348042a724..3a06d3b51f97 100644 --- a/arch/arm/mm/kasan_init.c +++ b/arch/arm/mm/kasan_init.c @@ -27,7 +27,9 @@ static pgd_t tmp_pgd_table[PTRS_PER_PGD] __initdata __aligned(PGD_SIZE); -pmd_t tmp_pmd_table[PTRS_PER_PMD] __page_aligned_bss; +#ifdef CONFIG_ARM_LPAE +static pmd_t tmp_pmd_table[PTRS_PER_PMD] __page_aligned_bss; +#endif static __init void *kasan_alloc_block(size_t size) { -- 2.25.1