Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934919AbdGTQHM (ORCPT ); Thu, 20 Jul 2017 12:07:12 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33924 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933887AbdGTQHL (ORCPT ); Thu, 20 Jul 2017 12:07:11 -0400 From: Alexander Sverdlin Reply-To: Alexander Sverdlin To: Arnd Bergmann Cc: Hartley Sweeten , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/12] ARM: ep93xx: use ARM_PATCH_PHYS_VIRT X-Mailer: Modest 3.90.7 References: <20170720154616.3250481-1-arnd@arndb.de> <20170720154939.3250697-1-arnd@arndb.de> In-Reply-To: <20170720154939.3250697-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-ID: <1500566872.5716.2.camel@Nokia-N900> Date: Thu, 20 Jul 2017 18:07:53 +0200 Message-Id: <1500566873.5716.3.camel@Nokia-N900> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1008 Lines: 30 On Thu Jul 20 17:49:27 2017 Arnd Bergmann wrote: > Just like ARCH_MULTIPLATFORM, we want to use ARM_PATCH_PHYS_VIRT > when possible, but that fails for NOMMU or XIP_KERNEL configurations. > Using 'imply' instead of 'select' gets this right and only uses > the symbol when we don't have to hardcode the address anyway. > > Signed-off-by: Arnd Bergmann Acked-by: Alexander Sverdlin > --- >  arch/arm/Kconfig | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index d6e6f40addf6..db856355bd24 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -406,7 +406,7 @@ config ARCH_EP93XX >      bool "EP93xx-based" >      select ARCH_HAS_HOLES_MEMORYMODEL >      select ARM_AMBA > -    select ARM_PATCH_PHYS_VIRT > +    imply ARM_PATCH_PHYS_VIRT >      select ARM_VIC >      select AUTO_ZRELADDR >      select CLKDEV_LOOKUP > -- > 2.9.0 >