Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbbLROLJ (ORCPT ); Fri, 18 Dec 2015 09:11:09 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:54702 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbbLROLH (ORCPT ); Fri, 18 Dec 2015 09:11:07 -0500 From: Arnd Bergmann To: Yury Norov Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, jan.dakinevich@gmail.com, ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH v6 15/20] arm64: signal: move ilp32 and lp64 common code to separated file Date: Fri, 18 Dec 2015 15:09:46 +0100 Message-ID: <2916702.unU22JtYur@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151218134855.GA31200@yury-N73SV> References: <1450215766-14765-1-git-send-email-ynorov@caviumnetworks.com> <6089723.moZBJ98Dq4@wuerfel> <20151218134855.GA31200@yury-N73SV> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:fEr/JdbEuDd+Zfa7pIIYtxPLFsxB2/L2I95spMSYAeXA9w4T4Pd v4Mtmg+h5L9QUoY/XyV0hOtnH/1lJ5yOAJihzr8ONrQnT/EggBG05BQTnQbuLTAVqOgU8oN 4Yyf2/04VlaCzx0FZuKOs/4ZdAecfugBWg4235ocg+Gx+6vRk7J4J4vrjMPpZvk86Gy+4yZ ZVzZdSS/P+kM/5glUpI/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:EaDS8Xo8yXc=:A+BHvesN6aT6MqckvD/xnB cBrmJj8gPJ39579VW9muWSrq64fx2hz0L3Fh4iKSbas4PWP2bF5OP2PBUPzeoWglKbAfNf3WT Dv6sdRjjaowlMBLMN8pg9Xr6iCMJwq5f8g6me7+kewBvKJkI32uqJ/xAgOAP2nqlz709fMDCE jeLeFoDqmilemF7jP5HKP2AEl3B6Z69JCr8ZwbcTjhIoQCo77Vjd7B8j8ByrkarUEhsIaszYU rGkqU2PFzAU/j7BvdcceuWRNgG4g8uSQ+Vk1LXMY0XUdleL9X/25Z24hQMW+FtqbuWNmUUq63 iFrFiVIEJV6pxg67/zQhSwLe49Q5TJ7GMZmWcQQUa1FCH0qAUOBaS52hoXP5Peh9uQNJXnkyD cZgdNMUVzywZcfGOcI8qNUqLQAmj1Z2+vbXDroWUlaLrUo7/TbbpsP3nvf7Pkc0TREIe3kaJS CXgjV+1idaqW8koj9zCO8XpJdJ8vkLSiVovvaqjvPbvytTTznELWpiMj7Dy1z1vkKG1XTdTzS 9Bc8wLUnps2R6/ImI9Sd7A5oIGVQHXaqo/2FuDKU7D1AmJkhrT3gtWwnKQyZwn6AsfOLle4/U kU1fBwGtaX6WaDgEvwWDpDlzYKQ64/pX5aCFwYI/ZaKWOYoRyeqxjNYxueCOV2rscREFg8Lyk /Y5UdTNqdQWAajEN5WpC+/lF7pnZWg/nnsGPIDEtq1GhgQewKA1bHJcU0XnB3ts8qHHs8YQIZ m2qtOYbbSR/kTonY Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 32 On Friday 18 December 2015 16:48:55 Yury Norov wrote: > On Wed, Dec 16, 2015 at 05:08:35PM +0100, Arnd Bergmann wrote: > > On Wednesday 16 December 2015 00:42:41 Yury Norov wrote: > > > + sigtramp = ka->sa.sa_restorer; > > > +#ifdef CONFIG_ARM64_ILP32 > > > + else if (is_ilp32_compat_task()) > > > + sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp_ilp32); > > > +#endif > > > + else > > > + sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp); > > > > > > > This is another case where I think it's more readable to remove the #ifdef, > > with no change in behavior. > > > > Arnd > > No actually. symbol sigtramp_ilp32 is declared in > arch/arm64/kernel/vdso-ilp32/vdso-ilp32.lds.S > > And so it does not exist if CONFIG_ARM64_ILP32 is not set. You only need the declaration of that symbol, the compiler's dead code elimination will ensure that no symbol reference is generated when the condition is always false at compile time. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/