From patchwork Tue Jun 4 06:19:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 10974217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49B7013AD for ; Tue, 4 Jun 2019 06:21:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36951204FE for ; Tue, 4 Jun 2019 06:21:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A84527FC0; Tue, 4 Jun 2019 06:21:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AD3C1204FE for ; Tue, 4 Jun 2019 06:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CdyKTDsWa6n+TTJPdQe8c5H+WNNcUsfABvcy3gCl2cw=; b=YFNxgaGu4hA3g5 BnSsfg4SvcopBGihlc0S7GRcVzVNcIX7WDHX+q+7DmTNg/Q8M8x1qTYHG2QJ5w4twWKGHGySBs0BH XF7dNtvHNKiKobPm6GJUpG+fWD3c5gBY+j/nIKAXNTrfExoCy6/3wNf+daV5s8ba5V/sWBSQlMb2L suyHi2TQmsVf55D0xIST71i5exN9q8iZUx6F59w3TT3wPxmIWsEMsEUTR+ofLwwN3DVvZeaYa9xHT 3in7zjPeWMlpugMGJG1Q7Q3LqTV/x0RvWn8e4SthqadX/RSy0B3IL2lOG7rL962hCc0FQ5N2SmIGV qXUNDoGPrHmSacM4tt1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hY2pS-00063s-9z; Tue, 04 Jun 2019 06:21:50 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hY2pN-00063D-Uf for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 06:21:49 +0000 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 138E72D886150BB2774; Tue, 4 Jun 2019 14:21:39 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Tue, 4 Jun 2019 14:21:32 +0800 From: YueHaibing To: Subject: [PATCH] ARM: mm: remove unused variables Date: Tue, 4 Jun 2019 14:19:57 +0800 Message-ID: <20190604061957.18704-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190603_232147_536112_98D5B241 X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: keescook@chromium.org, geert+renesas@glider.be, YueHaibing , linux-kernel@vger.kernel.org, krzk@kernel.org, rppt@linux.ibm.com, rmk+kernel@armlinux.org.uk, geert@linux-m68k.org, linux@armlinux.org.uk, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix gcc warnings: arch/arm/mm/init.c: In function 'mem_init': arch/arm/mm/init.c:456:13: warning: unused variable 'itcm_end' [-Wunused-variable] extern u32 itcm_end; ^ arch/arm/mm/init.c:455:13: warning: unused variable 'dtcm_end' [-Wunused-variable] extern u32 dtcm_end; ^ They are not used any more since commit 1c31d4e96b8c ("ARM: 8820/1: mm: Stop printing the virtual memory layout") Link: https://lkml.org/lkml/2019/5/12/82 Signed-off-by: YueHaibing Reviewed-by: Geert Uytterhoeven Reviewed-by: Krzysztof Kozlowski --- KernelVersion: 5.2-rc5 arch/arm/mm/init.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index be0b42937888..c71ecbb04db8 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -450,12 +450,6 @@ static void __init free_highpages(void) */ void __init mem_init(void) { -#ifdef CONFIG_HAVE_TCM - /* These pointers are filled in on TCM detection */ - extern u32 dtcm_end; - extern u32 itcm_end; -#endif - set_max_mapnr(pfn_to_page(max_pfn) - mem_map); /* this will put all unused low memory onto the freelists */