From: Nicolas Pitre <nicolas.pitre@linaro.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
Russell King <linux@arm.linux.org.uk>,
js1304@gmail.com, Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
linux-kernel@vger.kernel.org,
Rob Herring <rob.herring@calxeda.com>
Subject: Re: [PATCH v6 3/3] ARM: mm: use static_vm for managing static mapped areas
Date: Sat, 16 Feb 2013 08:51:14 -0500 (EST) [thread overview]
Message-ID: <alpine.LFD.2.03.1302160850450.6419@syhkavp.arg> (raw)
In-Reply-To: <201302161249.08597.arnd@arndb.de>
On Sat, 16 Feb 2013, Arnd Bergmann wrote:
> On Wednesday 06 February 2013, Joonsoo Kim wrote:
> > @@ -859,17 +864,12 @@ static void __init pci_reserve_io(void)
> > {
> > struct vm_struct *vm;
> > unsigned long addr;
> > + struct static_vm *svm;
> >
> > - /* we're still single threaded hence no lock needed here */
> > - for (vm = vmlist; vm; vm = vm->next) {
> > - if (!(vm->flags & VM_ARM_STATIC_MAPPING))
> > - continue;
> > - addr = (unsigned long)vm->addr;
> > - addr &= ~(SZ_2M - 1);
> > - if (addr == PCI_IO_VIRT_BASE)
> > - return;
> > + svm = find_static_vm_vaddr((void *)PCI_IO_VIRT_BASE);
> > + if (svm)
> > + return;
> >
> > - }
>
> This is causing build warnings in a bunch of configurations now,
> see patch below.
>
> Arnd
>
> 8<-----
> ARM: mm: remove unused variables in pci_reserve_io
>
> Patch "ARM: 7646/1: mm: use static_vm for managing static mapped areas"
> removed code from pci_reserve_io but left variable declarations
> in place that are now unused, as gcc correctly warns.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Pitre <nico@linaro.org>
>
> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
> index c6fe15a..c6d45c8 100644
> --- a/arch/arm/mm/mmu.c
> +++ b/arch/arm/mm/mmu.c
> @@ -901,8 +901,6 @@ static void __init fill_pmd_gaps(void)
> #if defined(CONFIG_PCI) && !defined(CONFIG_NEED_MACH_IO_H)
> static void __init pci_reserve_io(void)
> {
> - struct vm_struct *vm;
> - unsigned long addr;
> struct static_vm *svm;
>
> svm = find_static_vm_vaddr((void *)PCI_IO_VIRT_BASE);
>
next prev parent reply other threads:[~2013-02-16 13:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 9:13 [PATCH v6 0/3] introduce static_vm for ARM-specific static mapped area Joonsoo Kim
2013-02-06 9:13 ` [PATCH v6 1/3] ARM: vmregion: remove vmregion code entirely Joonsoo Kim
2013-02-06 9:13 ` [PATCH v6 2/3] ARM: ioremap: introduce an infrastructure for static mapped area Joonsoo Kim
2013-02-06 9:13 ` [PATCH v6 3/3] ARM: mm: use static_vm for managing static mapped areas Joonsoo Kim
2013-02-16 12:49 ` Arnd Bergmann
2013-02-16 12:52 ` Russell King - ARM Linux
2013-02-16 13:17 ` Arnd Bergmann
2013-02-16 13:52 ` Nicolas Pitre
2013-02-16 13:51 ` Nicolas Pitre [this message]
2013-02-07 4:09 ` [PATCH v6 0/3] introduce static_vm for ARM-specific static mapped area Nicolas Pitre
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=alpine.LFD.2.03.1302160850450.6419@syhkavp.arg \
--to=nicolas.pitre@linaro.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=js1304@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rob.herring@calxeda.com \
--cc=will.deacon@arm.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®