Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753347AbcD0UDV (ORCPT ); Wed, 27 Apr 2016 16:03:21 -0400 Received: from mail-qg0-f41.google.com ([209.85.192.41]:35834 "EHLO mail-qg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256AbcD0UBI (ORCPT ); Wed, 27 Apr 2016 16:01:08 -0400 Date: Wed, 27 Apr 2016 16:01:03 -0400 (EDT) From: Nicolas Pitre To: Eric Engestrom cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Krzysztof Kozlowski , Tony Lindgren , Linus Walleij , Nicolas Ferre , Lee Jones , Roland Stigge , Florian Fainelli , Russell King , Alexander Shiyan , Kevin Hilman , Viresh Kumar , bcm-kernel-feedback-list@broadcom.com, Jean-Christophe Plagniol-Villard , spear-devel@list.st.com, Ray Jui , Rajendra Nayak , Sekhar Nori , Krzysztof Halasa , Gregory Fong , linux-omap@vger.kernel.org, Paul Walmsley , Scott Branden , Shiraz Hashim , linux-kernel@vger.kernel.org, Sascha Hauer , Shawn Guo Subject: Re: [PATCH 4/4] ARM: remove duplicate const qualifier In-Reply-To: <20160425143731.GR32731@imgtec.com> Message-ID: References: <1461577678-29517-1-git-send-email-eric.engestrom@imgtec.com> <20160425095715.GA2366@piout.net> <20160425103911.GO32731@imgtec.com> <4641918.pNBP5iAK01@wuerfel> <20160425125809.GP32731@imgtec.com> <20160425143731.GR32731@imgtec.com> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 989 Lines: 28 On Mon, 25 Apr 2016, Eric Engestrom wrote: > On Mon, Apr 25, 2016 at 10:12:16AM -0400, Nicolas Pitre wrote: > > Beware. > > > > I added many of those exactly because gcc did not ignore them when > > compiling with LTO where the lack of a const qualifier to qualify the > > actual array content, and not only the reference to that content, > > generated build errors due to section mismatches from the __initconst > > annotation. > > I believe the first `const` does that, without the need for a second. > > > So this is a NAK from me unless you may confirm that LTO builds are > > unaffected by your changes. > > I can't confirm it (haven't tried), and don't care enough to do it :] > I guess I'm just dropping the patch then. Like I said, it can't hurt to > leave them in. I just tested LTO with your patch applied and everything appears to be fine. The extra const are indeed redundant here. So you have an ACK from me. Acked-by: Nicolas Pitre Nicolas