From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbcF0LBS (ORCPT ); Mon, 27 Jun 2016 07:01:18 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:52223 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbcF0LBQ (ORCPT ); Mon, 27 Jun 2016 07:01:16 -0400 From: Arnd Bergmann To: Rob Herring Cc: Kefeng Wang , Arnd Bergmann , Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: s3c64xx: avoid warning about 'struct device_node' Date: Mon, 27 Jun 2016 13:02:50 +0200 Message-Id: <20160627110303.3391769-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:a5FzvFNwk0fHJvXanijvhgFKIwmFuvQMVqydCx9zAq7sZteQTdl FhBc4mfFqyRTTFN2jqyhdpR+HM6JZtco39LORsSCPhziDkf1tDKVvztuwor9FZzsPHgmNXJ qeog5nViVmeF/jzqKPoKrF3AWCuWaQ1NJzEzo1RyQ3/sQ3DJdIa23agA5fuhF9DvlAWNvWE WXOegPEBzF8Rcl/MdVLkQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:dbELjd+aI8o=:9k0PlmYfqYLn1/PaDvQvkC AMu7yfuia8FKFOzPjXrqenEdJWARjYiAZc7ElNypfSQ9ae/CP+xVK/bkd5PQedTaYeB5SwiaP /pC0DlP2t7fNSUQAbiRcDkcj7BdFC+swLTv5swPhmzU/o+AgCG1d3HjqpQ1Oy8nnk8n6aw7s8 XSKOSRnmJfScIOxBi1YOwxH5aJuzfhbWlvv3yCcSB5/IFPlCtlYkrBReMpDxh+ihHbKOJNtxB OFoBjoe/PzWau2iozv7VBhq+vVYsmf5cmyA1XFELZ5gsMOIqCl4pfBt5HTZTiH/QMwAdyuW6T DB+zpjH1Es9yimbkgZ9OCd1c4OOGhMyIR70S9GYwQ7pNweryDY3Mngrhjfq048iPnMvYdqfYO +zLFX+QGAfw4bJK/ERLThGVg6sj9XKmo2yPAkw1FYggcAL6Fd7Qt8KdzzugzzsiQBjKb/ytLu 5pRiQ6y78MlMZIvPQYako103QUpdhEp8UOuIpKKn12xbMsKUxwY6m9AnQ2NPmGrmcTkPU2tTw Z9QcPctAWzmNtslTuzwxIFqUrzLOm7679XImLoTppHtXUQWJItCWU5cWp/xJz68udRRbhiea1 CK57q+MNxVg1MdzEQdjbsrJueY38jXakc36roInVbVHlnGyjLoJrtmgTUbqHqX4JDNgCLTO3+ JQCrBI8QGEN9bAW1NKk0HiTrBkqzi00EDVtM3x3Z4xfJK08Gg1F7tBChoWPdYAmNCv4w= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The change to simplify of_platform_populate() had an unintended side-effect of introducing a build warning on s3c64xx: In file included from arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c:18:0: arch/arm/mach-s3c64xx/common.h:27:30: error: 'struct device_node' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] This adds a forward-declaration for the structure name in the header to avoid the warning. Signed-off-by: Arnd Bergmann Fixes: 850bea2335e4 ("arm: Remove unnecessary of_platform_populate with default match table") --- Rob, can you apply this on top of the devicetree git so we don't have to coordinate the merges? --- arch/arm/mach-s3c64xx/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-s3c64xx/common.h b/arch/arm/mach-s3c64xx/common.h index 9eb864412911..4f204668f00e 100644 --- a/arch/arm/mach-s3c64xx/common.h +++ b/arch/arm/mach-s3c64xx/common.h @@ -24,6 +24,7 @@ void s3c64xx_init_io(struct map_desc *mach_desc, int size); void s3c64xx_restart(enum reboot_mode mode, const char *cmd); +struct device_node; void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f, unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base); void s3c64xx_set_xtal_freq(unsigned long freq); -- 2.9.0