Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbcC2ItM (ORCPT ); Tue, 29 Mar 2016 04:49:12 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:63138 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbcC2ItJ (ORCPT ); Tue, 29 Mar 2016 04:49:09 -0400 From: Arnd Bergmann To: Jonas Rabenstein Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk Subject: Re: [PATCH] arm: remove tautologic #ifdefs in proc-v7-3level.S Date: Tue, 29 Mar 2016 10:48:59 +0200 Message-ID: <7626858.QDVI2ASZbI@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160329082911.GG20211@studium.uni-erlangen.de> References: <1459237071-13842-1-git-send-email-jonas.rabenstein@studium.uni-erlangen.de> <3570872.7QPkonuD2y@wuerfel> <20160329082911.GG20211@studium.uni-erlangen.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:PcA17P4qBpCj4HXPwqWyqs+qFomp9n6Ljvl+orJ+g43NTj/1oz7 FmPOMc68Ctw6pRtboRzzOLkw/BjLe9iNCwNfibIFWpCYmDwbZlIOZq7kyJlqsrbQwF7QP7A nkhs/qHzbIvrXo+jrj1HLq1ksvO+tnDbvBMIxPiLcSKuYAh3dnQHrKK8A+NvIKcKvxiTmcV e6nspzYYn0Cl1ZPbXaHYA== X-UI-Out-Filterresults: notjunk:1;V01:K0:eIN7LD4zDSg=:X/in6Dm+lLGwDg7f2icQoq tTMR3IeN6cXmIuBa5lTIid945jb2snngrf6jIu4bYAadsQPtW09l+nTxh4SJf3/cZn1bLGjXY oxySwfV8Rq8kHKZGwFpFTIJOW2YQgl+mUTaCZUbLV8C20bkmgH4/jI4+ZSQ3BtKI3cpMjQJI0 NcsNDaKmKlk78/H9g1QoHkH+YyKHppvqzjghSJrYZvJVucCIWmLdRQdaRY3G/qMbU5n8oZv3B as9XaOnAD+sVLsp6yfpnUVd0FtTJO6WYukucZJ3yCWKPRrOgiY8eej1JCraHzm3Y4GnnDOqRE 8trZo3cwAmMGyaB0iWfVSCmGcYjMR6SSnBt9vmqkMStum9gtuwYaOB2P8rUAiQhsZS0Qvw4a7 UyUL0sSWk5Cqc64LA2nRDho37PY3sGqHokY8wlHjx36wviZwunqR0AsJU4c/YgzxOevueyrTR fzg3AHIlhlWJddhPt/WjO+mgG/eWRYnkrh4c/KvDHNHOTUlJiIXp9qmGqMO/Y/GaBsqf5HwIS NkKUsyq7dZDQY1YHlbd8TfD6xFNbqmYondYe6x5r7+4D5w1acY7INpIwIZ074TFOcplP4jo8v fubgf+6iTof6P6JmJozW7yVdvZ4V/g69VQrapCKf19CXSntYK41kMk7z1vknBb88PF1/Om7Ja N6BFOU7gFvTVWUXA+m8qTCFPjubPWIFbm2r9MIatH0na34YBmz7VgjMEeCCIEzMFuSFh4u7qE VyKyqTT2ITd+Va7G Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1855 Lines: 41 On Tuesday 29 March 2016 10:29:11 Jonas Rabenstein wrote: > On Tue, Mar 29, 2016 at 10:05:58AM +0200, Arnd Bergmann wrote: > > On Tuesday 29 March 2016 09:37:51 Jonas Rabenstein wrote: > > > The file arch/arm/mm/proc-v7-3level.S is only used by the #include > > > directive in arch/arm/mm/proc-v7.S:23. This #include is conditional and > > > depends on CONFIG_ARM_LPAE (otherwise proc-v7-2level.S is used). > > > CONFIG_ARM_LPAE has a dependency on CONFIG_MMU defined in Kconfig. > > > Consequently, checks for CONFIG_MMU in proc-v7-3level.S are superfluous. > > > > > > Signed-off-by: Jonas Rabenstein > > > --- > > > I detected the issue with chimaera, a tool I currently develop for my bachelor > > > thesis extending the undertaker tool suite (https://undertaker.cs.fau.de). > > > > Nice catch! > > > > Reviewed-by: Arnd Bergmann > > > > I guess you should submit the same thing for the other file as well, > > either in the same patch or as a series. > I do not get, what you mean with 'the other file'? For the > proc-v7-2level.S this precondition does not hold, as proc-v7-2level.S is > included if !CONFIG_ARM_LPAE. Consequently, no evidence about the MMU > state is available in their. My mistake. I misread this as the both files being used only for MMU-enabled kernels, which would make sense because they deal with page tables that are not being used without MMU, but they are in fact being compiled anyway. > > You can also add > > > > Fixes: 8d2cd3a38fd6 ("ARM: LPAE: Factor out classic-MMU specific code into proc-v7-2level.S") > Shouldn't it be: > Fixes: 1b6ba46b7efa ("ARM: LPAE: MMU setup for the 3-level page table > format")? Nevermind then. My line was incorrect, and the other one is a bit redundant as it is the one that adds the file in the first place. Arnd