From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840AbbCPHDs (ORCPT ); Mon, 16 Mar 2015 03:03:48 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:36226 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbbCPHDo (ORCPT ); Mon, 16 Mar 2015 03:03:44 -0400 Date: Mon, 16 Mar 2015 08:03:39 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Sascha Hauer Cc: Mike Turquette , James Liao , YH Chen , linux-kernel@vger.kernel.org, Henry Chen , linux-mediatek@lists.infradead.org, kernel@pengutronix.de, Matthias Brugger , Yingjoe Chen , Eddie Huang , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/5] clk: mediatek: Add basic clocks for Mediatek MT8135. Message-ID: <20150316070339.GA25487@pengutronix.de> References: <1426485311-31428-1-git-send-email-s.hauer@pengutronix.de> <1426485311-31428-4-git-send-email-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1426485311-31428-4-git-send-email-s.hauer@pengutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Sascha, On Mon, Mar 16, 2015 at 06:55:09AM +0100, Sascha Hauer wrote: > +static const char *axi_parents[] __initconst = { > + "clk26m", > + "syspll_d3", > + "syspll_d4", > + "syspll_d6", > + "univpll_d5", > + "univpll2_d2", > + "syspll_d3p5" > +}; __initconst should only be used for const data, but this array isn't const. Only the strings the pointer in this array point to are constant. So you have to use either static const char *axi_parents[] __initdata = { or static const char * const axi_parents[] __initconst = { . Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Mon, 16 Mar 2015 08:03:39 +0100 Subject: [PATCH 3/5] clk: mediatek: Add basic clocks for Mediatek MT8135. In-Reply-To: <1426485311-31428-4-git-send-email-s.hauer@pengutronix.de> References: <1426485311-31428-1-git-send-email-s.hauer@pengutronix.de> <1426485311-31428-4-git-send-email-s.hauer@pengutronix.de> Message-ID: <20150316070339.GA25487@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello Sascha, On Mon, Mar 16, 2015 at 06:55:09AM +0100, Sascha Hauer wrote: > +static const char *axi_parents[] __initconst = { > + "clk26m", > + "syspll_d3", > + "syspll_d4", > + "syspll_d6", > + "univpll_d5", > + "univpll2_d2", > + "syspll_d3p5" > +}; __initconst should only be used for const data, but this array isn't const. Only the strings the pointer in this array point to are constant. So you have to use either static const char *axi_parents[] __initdata = { or static const char * const axi_parents[] __initconst = { . Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |