From: YueHaibing <yuehaibing@huawei.com> To: <patches@armlinux.org.uk> Cc: <linux-kernel@vger.kernel.org>, <geert+renesas@glider.be>, <keescook@chromium.org>, <linux-arm-kernel@lists.infradead.org>, <akpm@linux-foundation.org>, <rppt@linux.ibm.com>, <linux@armlinux.org.uk>, <geert@linux-m68k.org>, <krzk@kernel.org>, <rmk+kernel@armlinux.org.uk>, YueHaibing <yuehaibing@huawei.com> Subject: [PATCH] ARM: mm: remove unused variables Date: Tue, 4 Jun 2019 14:19:57 +0800 [thread overview] Message-ID: <20190604061957.18704-1-yuehaibing@huawei.com> (raw) In-Reply-To: <CAJKOXPeDRuvmHG=KUCYiPav2ODT4MC4hEgi5hAsy7s_+v-DB3g@mail.gmail.com> 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 <yuehaibing@huawei.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> --- 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 */ -- 2.20.1
WARNING: multiple messages have this Message-ID (diff)
From: YueHaibing <yuehaibing@huawei.com> To: <patches@armlinux.org.uk> Cc: keescook@chromium.org, geert+renesas@glider.be, YueHaibing <yuehaibing@huawei.com>, 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 Subject: [PATCH] ARM: mm: remove unused variables Date: Tue, 4 Jun 2019 14:19:57 +0800 [thread overview] Message-ID: <20190604061957.18704-1-yuehaibing@huawei.com> (raw) In-Reply-To: <CAJKOXPeDRuvmHG=KUCYiPav2ODT4MC4hEgi5hAsy7s_+v-DB3g@mail.gmail.com> 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 <yuehaibing@huawei.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> --- 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 */ -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-06-04 6:21 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-12 11:41 [PATCH] ARM: mm: remove unused variables YueHaibing 2019-05-12 11:41 ` YueHaibing 2019-05-13 6:20 ` Geert Uytterhoeven 2019-05-13 6:20 ` Geert Uytterhoeven 2019-06-03 18:45 ` Krzysztof Kozlowski 2019-06-03 18:45 ` Krzysztof Kozlowski 2019-06-04 2:08 ` Yuehaibing 2019-06-04 2:08 ` Yuehaibing 2019-06-04 6:19 ` YueHaibing [this message] 2019-06-04 6:19 ` YueHaibing
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190604061957.18704-1-yuehaibing@huawei.com \ --to=yuehaibing@huawei.com \ --cc=akpm@linux-foundation.org \ --cc=geert+renesas@glider.be \ --cc=geert@linux-m68k.org \ --cc=keescook@chromium.org \ --cc=krzk@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=patches@armlinux.org.uk \ --cc=rmk+kernel@armlinux.org.uk \ --cc=rppt@linux.ibm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.