Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1563743

Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig

From Afzal Mohammed <afzal.mohd.ma@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig
Date 2017-01-20 17:10 +0100
Message-ID <t1JVg-Ze-13@gated-at.bofh.it> (permalink)
References <t15bt-o6-55@gated-at.bofh.it> <t15bt-o6-59@gated-at.bofh.it> <t1lSV-2E6-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Thu, Jan 19, 2017 at 02:24:24PM +0000, Russell King - ARM Linux wrote:
> On Thu, Jan 19, 2017 at 02:07:39AM +0530, afzal mohammed wrote:

> > +++ b/arch/arm/include/asm/memory.h

> > +#define VECTORS_BASE		0xffff0000
> 
> This should be UL(0xffff0000)

> > -			MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
> > -				(PAGE_SIZE)),
> > +			MLK(UL(VECTORS_BASE), UL(VECTORS_BASE) + (PAGE_SIZE)),
> 
> which means you don't need it here, which will then fix the build error
> reported by the 0-day builder.

Seems there is some confusion here,

VECTORS_BASE definition above in memory.h is enclosed within
CONFIG_MMU. Robot used a no-MMU defconfig, it didn't get a
VECTORS_BASE definition at this patch, causing the build error. Our
dear robot mentioned that my HEAD didn't break build, but
bisectability is broken at this point.

With "PATCH 3/4 ARM: nommu: display vectors base", the above is
changed to
        #ifdef CONFIG_MMU
                MLK(UL(VECTORS_BASE), UL(VECTORS_BASE) + (PAGE_SIZE)),
        #else
                ...
        #endif
thus making the series build again for no-MMU

One option to keep bisectability would be to squash this with PATCH
3/4, but i think a better & natural solution would be define
VECTORS_BASE outside of
        #ifdef CONFIG_MMU
        ...
        #else
        ...
        #endif
and then in PATCH 3/4, move VECTORS_BASE to be inside
        #ifdef CONFIG_MMU
        ...
        #else

Regards
afzal

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig afzal mohammed <afzal.mohd.ma@gmail.com> - 2017-01-18 21:40 +0100
  Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2017-01-19 14:40 +0100
  Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig kbuild test robot <lkp@intel.com> - 2017-01-19 15:10 +0100
  Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-01-19 15:30 +0100
    Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2017-01-20 17:10 +0100
    Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2017-01-22 04:30 +0100

csiph-web