Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535AbcCFT5N (ORCPT ); Sun, 6 Mar 2016 14:57:13 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:56979 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbcCFT5G (ORCPT ); Sun, 6 Mar 2016 14:57:06 -0500 From: Arnd Bergmann To: Robert Jarzmik Subject: Re: [PATCH] mtd: only use __xipram annotation when XIP_KERNEL is set Date: Sun, 6 Mar 2016 20:56:01 +0100 User-Agent: KMail/1.12.2 (Linux/3.19.0-54-generic; KDE/4.3.2; x86_64; ; ) Cc: Brian Norris , David Woodhouse , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Haojian Zhuang , Daniel Mack References: <1453736525-1959191-2-git-send-email-arnd@arndb.de> <3582240.H8v1IXn8EB@wuerfel> <8737s5wbxa.fsf@belgarion.home> In-Reply-To: <8737s5wbxa.fsf@belgarion.home> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201603062056.01683.arnd@arndb.de> X-Provags-ID: V03:K0:/aIOZz9rKuxujX9Ve0UlOOsDG5nDTmidN2qMeRF5YG4k8knol4N uDaQCUwFlVTFxwv+yN7kJ4Wq+EnFgPcSgaJGMKTtNRj6+B4CubWWqcc1oMCl0oy0jrLSHsS QsOGzdD6lBcdzROGnIh3gYnKfvrl2Pp2Vk/LWcMTe3DRB/XIgAuw8CE4Cn7WIkH6ve5aq7Y m5/vM0IfzwopVDnouujGA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Aer1Nj74iS4=:FhmF4QPfYxgegJgXQLZGRg 4qxW1Wn/f7seHWyJEdEYre8clpWtySmvVOs5Hz6PmKQPIhfk9aor0JRyM0gqpRt6jI9iaq3x2 OA/nF0YPFVI4Fs9D0mQsl3Al3Nada1bEVsDlZ4OeVnib+ncNDDPYXqluRYVlYRHDxBcMuSxTN 01vC5CePfytXW1A8zSg7BvI4+UNAuWe600JWETR0vyFASqatkJYsy/zgKT+8HtQ8tAFSFUoXx dWjNAi1eqwP+X+A7bpaQvajyLHp7Mcr9a8wuDfN9n5Cx6K1YJly8W3OkzbQ0FrQIoVijSHxrs J0wALhLM6S3dDtzn/KM5ePVkLsmnTIIpYvBhnBAwmtJGaeqDfJy3e8ya8vBMN0k6ehs1+W/y+ IyeDj+u7/LGpQBNfo3nVs9kShpcbr3ZrQekKFUfEoEEq/Orby7i63+igczSXFFybsLg1M1ZJG LxY9eSh4WiHhAblHCoqrCeNrcKRHmF48wQzLI2HntA4t1NI4mNZvXAq66dpSvH03WqfP0PyAm B/jzIX95F9fHYIMUHohazGRLsjzU1zNXvtqJuq71PisLqb0YoodOdPmWZo8+Kn3QY9VgXLMl7 MQpLMxuSGH9odnNg7d2KGAXcbACBVNWeC8Ma8TvdDbE/kEZfx8x25ehD15HhKfJobakyVsGvA +lhVvedFPsXAqH9/SYF85Vb//jITEurXTrWt185/JXpGuGeroob/MhlQ4S5QkwwYDG6s1u9mi CLjS4D7qQknHl8Qt Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 21 On Saturday 05 March 2016, Robert Jarzmik wrote: > Arnd Bergmann writes: > > > I guess we can bring back the macros for the case that MTD_XIP and XIP_KERNEL > > are both enabled. > > > > Arnd > I wouldn't have ICMR and ICIP exposed to drivers, Eric's original move looks > corect to me. Yes, it's a reasonable cleanup that we have done in many places, except this one introduced a regression for MTD_XIP. > On the other hand, I'm wondering if xip_irqpending(), xip_currtime() and > xip_cpu_idle() should be declared as functions in mtd-xip.h, and be part of > something like arch/arm/mach-pxa/xip.c ... They have to at least be marked __xipram and must not reference anything in .text or .rodata, but there might be additional requirements. Arnd