From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH 00/18] ARM: use const and __initconst for smp_operations Date: Mon, 24 Aug 2015 22:21:27 +0100 Message-ID: <20150824212127.GH7557@n2100.arm.linux.org.uk> References: <1440390978-22796-1-git-send-email-yamada.masahiro@socionext.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from pandora.arm.linux.org.uk ([78.32.30.218]:53753 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbbHXVWU (ORCPT ); Mon, 24 Aug 2015 17:22:20 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Olof Johansson Cc: Masahiro Yamada , "arm@kernel.org" , Andy Gross , Arnd Bergmann , Gregory Clement , Tsahee Zidenberg , Kumar Gala , Jason Cooper , Geert Uytterhoeven , Jun Nie , Ray Jui , =?iso-8859-1?Q?S=F6ren?= Brinkmann , "linux-samsung-soc@vger.kernel.org" , Heiko Stuebner , David Brown , Scott Branden , Hans de Goede , "open list:ARM/Rockchip SoC..." , Maxime Ripard , Krzysztof Kozlowski On Mon, Aug 24, 2015 at 02:12:06PM -0700, Olof Johansson wrote: > Easiest of all would probably be to get the sub-arch patches into one > release, then switch the prototypes and function definitions in the > next. If you switch prototypes first you'll get a bunch of warnings, > right? Wrong way around. :) If you change the sub-arches to declare the smp operations as const, and try and pass them into a function which doesn't take a const-pointer, you'll get a warning. The core bits need to go in first before the sub-arch patches. I think the series has limited value - it allows us to (a) check that a small quantity of code doesn't write to these things, and (b) allows us to move the SMP operations structure from __initdata to __initconstdata. It's still going to end up in the init region which is read/write in any case, and still gets thrown away. Given where we are, I don't think we need to rush this in during the last week before the merge window opens, even though it's trivial. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net.