From patchwork Fri Jan 1 13:42:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101220 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3966599lbb; Fri, 1 Jan 2016 05:43:35 -0800 (PST) X-Received: by 10.98.73.27 with SMTP id w27mr58886884pfa.55.1451655815786; Fri, 01 Jan 2016 05:43:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ui10si34087880pac.7.2016.01.01.05.43.35; Fri, 01 Jan 2016 05:43:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998AbcAANne (ORCPT + 29 others); Fri, 1 Jan 2016 08:43:34 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:50393 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbcAANna (ORCPT ); Fri, 1 Jan 2016 08:43:30 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LlJ1m-1Ze14D0gWU-00b3rh; Fri, 01 Jan 2016 14:42:55 +0100 From: Arnd Bergmann To: Michael Turquette , Heiko Stuebner Cc: Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sjoerd Simons Subject: [PATCH] [BUG] clk: rockchip: don't mark clock names as initconst Date: Fri, 01 Jan 2016 14:42:52 +0100 Message-ID: <2791943.MBZ53mI7Gp@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:0y7IZzECJOHuoQc4E+aaRY/qF07g8/o3wsHCO1gClfx4WPbahPj iKjeD680vkCRXqbcuYUlJYE0bbqF4UeqcB1Oig7fbQgEf+iOeph16n6Tg+1I5l5IqZOfxG2 dGnxNB6zpvIJrGQ7f/ommy2YUL8/dWdslL5Xp2ut1zQUMI9Sfy6viI2i4C1hd+GjFnsiPjp kbCN6Po3+WXNLsZMqaPTA== X-UI-Out-Filterresults: notjunk:1; V01:K0:0zZKlRdmDV8=:I6yJ9aY+DAHPnd2BtoJRbK r/JR4msCLeyV7dnXTB6r9SZI/BGCnHjS7MeThCHisut/wgRweTtOq+mmIXCJHsJ1xPR96iDsD qkzRSPJJYNU4zww9qsCUZMMlgL4FFwP6HoYRdJgzX++eQLL0gbxP5wi75UtqQ/G4CsbM9Nr0a aNF4m3MIopDeh7TAaJd8m/VTVJFn17qPrprESSC6BYQR+LDINLpjHV0vNsAGyM36tkZ7jF11O mLrIhrey2/Ui/pHHrYEe9EvyOtr+Fr/M7RvbNvduC9ak76O48MrEFFMXBwpUlQUDAM5czJq97 IUeM8YNTp3HFKY0oVeKz5d9u2E9fUjNr9GrAcBkF71pBMGNRdoS5TlBffq87TDyN4j1md3USI CmUz9XkD8v/2OFHa9vUTsulG/31uCAlSdFeZ+05NeCRDmmVCx0a882k0dZGgY64rSNeBqUrHc dXyErg/hQkQzyyEzNx8NdmVT5I+tK2l+PmvFLBYelpW/F8sxvDM1tOnsXyHSgVc1CljoTeR2z QVdneHp+A62nTiFZRCwuj3QQoYuquXrUBYTf/EhVVcVvYbCIqz2YZN8ziEZRmvIudT93SZj0b rr6pW1SalLadgc9bDOUfUPM/Clw/8Fr8e2jHPloNDF363l3PUA7y9M7pefB+fPUwTNb9INMLN pH6D2cZDh3HCySJ9yOKVxg9ZLfrtlpU3sdm40mD2jebArKwcn21ObZxnYTejd77BppIlsjB5d Yn04Dg1TPvzoS2i1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The latest changes to the rockchip clk implementation cause tons of warnings and/or errors (depending on the configuration): WARNING: vmlinux.o(.data+0x125394): Section mismatch in reference from the variable __compound_literal.125 to the (unknown reference) .init.rodata:(unknown) The reason is a compount literal in a macro that refers to an object in the .init.rodata section: #define COMPOSITE_FRACMUX(_id, cname, pname, f, mo, df, go, gs, gf, ch) \ { \ ... .child = &(struct rockchip_clk_branch)ch, \ } 'ch' here is placed in .data, and I could find no way to override that using an attribute or pragma because there is no identifier associated with it. This patch avoids the warning by placing the names in .rodata rather than .init.rodata. However, it is not an ideal solution because we really want all those data structures to be discarded along with the initdata. Signed-off-by: Arnd Bergmann Fixes: 8ca1ca8f6039 ("clk: rockchip: handle mux dependency of fractional dividers") -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h index 3f71ee5d1bc9..5cadf5e3fb16 100644 --- a/drivers/clk/rockchip/clk.h +++ b/drivers/clk/rockchip/clk.h @@ -244,7 +244,7 @@ struct clk *rockchip_clk_register_inverter(const char *name, void __iomem *reg, int shift, int flags, spinlock_t *lock); -#define PNAME(x) static const char *const x[] __initconst +#define PNAME(x) static const char *const x[] enum rockchip_clk_branch_type { branch_composite,