From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbbDIH1u (ORCPT ); Thu, 9 Apr 2015 03:27:50 -0400 Received: from mail-vn0-f45.google.com ([209.85.216.45]:38982 "EHLO mail-vn0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751511AbbDIH1s (ORCPT ); Thu, 9 Apr 2015 03:27:48 -0400 MIME-Version: 1.0 In-Reply-To: <1427825817-26773-2-git-send-email-s.hauer@pengutronix.de> References: <1427825817-26773-1-git-send-email-s.hauer@pengutronix.de> <1427825817-26773-2-git-send-email-s.hauer@pengutronix.de> Date: Thu, 9 Apr 2015 09:27:47 +0200 X-Google-Sender-Auth: JgQM20YRTEkJNgErOHvhu83kA2I Message-ID: Subject: Re: [PATCH 1/6] clk: make strings in parent name arrays const From: Krzysztof Kozlowski To: Sascha Hauer Cc: Mike Turquette , Stephen Boyd , 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2015-03-31 20:16 GMT+02:00 Sascha Hauer : > The clk functions and structs declare the parent_name arrays as > 'const char **parent_names' which means the parent name strings > are const, but the array itself is not. Use > 'const char * const * parent_names' instead which also makes > the array const. This allows us to put the parent_name arrays into > the __initconst section. > > Signed-off-by: Sascha Hauer Reviewed-by: Krzysztof Kozlowski and tested: Tested-by: Krzysztof Kozlowski Best regards, Krzysztof From mboxrd@z Thu Jan 1 00:00:00 1970 From: k.kozlowski@samsung.com (Krzysztof Kozlowski) Date: Thu, 9 Apr 2015 09:27:47 +0200 Subject: [PATCH 1/6] clk: make strings in parent name arrays const In-Reply-To: <1427825817-26773-2-git-send-email-s.hauer@pengutronix.de> References: <1427825817-26773-1-git-send-email-s.hauer@pengutronix.de> <1427825817-26773-2-git-send-email-s.hauer@pengutronix.de> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 2015-03-31 20:16 GMT+02:00 Sascha Hauer : > The clk functions and structs declare the parent_name arrays as > 'const char **parent_names' which means the parent name strings > are const, but the array itself is not. Use > 'const char * const * parent_names' instead which also makes > the array const. This allows us to put the parent_name arrays into > the __initconst section. > > Signed-off-by: Sascha Hauer Reviewed-by: Krzysztof Kozlowski and tested: Tested-by: Krzysztof Kozlowski Best regards, Krzysztof