Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754849AbcDYOhR (ORCPT ); Mon, 25 Apr 2016 10:37:17 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:26269 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754815AbcDYOhL (ORCPT ); Mon, 25 Apr 2016 10:37:11 -0400 Date: Mon, 25 Apr 2016 15:37:31 +0100 From: Eric Engestrom To: Nicolas Pitre CC: Arnd Bergmann , , Alexandre Belloni , Krzysztof Kozlowski , Tony Lindgren , Linus Walleij , Nicolas Ferre , Lee Jones , Roland Stigge , Florian Fainelli , Russell King , Alexander Shiyan , Kevin Hilman , Viresh Kumar , , Jean-Christophe Plagniol-Villard , , Ray Jui , Rajendra Nayak , Sekhar Nori , Krzysztof Halasa , Gregory Fong , , Paul Walmsley , Scott Branden , Shiraz Hashim , , Sascha Hauer , Shawn Guo Subject: Re: [PATCH 4/4] ARM: remove duplicate const qualifier Message-ID: <20160425143731.GR32731@imgtec.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.60.4.28] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 20 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. Cheers, Eric