Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761448Ab3ICXZ7 (ORCPT ); Tue, 3 Sep 2013 19:25:59 -0400 Received: from merlin.infradead.org ([205.233.59.134]:44376 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753667Ab3ICXZ5 (ORCPT ); Tue, 3 Sep 2013 19:25:57 -0400 Message-ID: <52266FE7.9030506@infradead.org> Date: Tue, 03 Sep 2013 16:25:27 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Rob Herring CC: LKML , Andrew Morton , Grant Likely , Rob Herring , "devicetree@vger.kernel.org" Subject: [PATCH v2] of_irq.h: fix build warnings when CONFIG_OF is not enabled References: <5224B499.4010600@infradead.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1221 Lines: 33 From: Randy Dunlap Fix build warnings when CONFIG_OF is not enabled: (seen on i386 and x86_64) include/linux/of_irq.h:82:7: warning: 'struct device_node' declared inside parameter list [enabled by default] include/linux/of_irq.h:82:7: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] include/linux/of_irq.h:87:47: warning: 'struct device_node' declared inside parameter list [enabled by default] Signed-off-by: Randy Dunlap Cc: Grant Likely Cc: Rob Herring Cc: devicetree@vger.kernel.org --- include/linux/of_irq.h | 2 ++ 1 file changed, 2 insertions(+) --- linux-next-20130830.orig/include/linux/of_irq.h +++ linux-next-20130830/include/linux/of_irq.h @@ -1,6 +1,8 @@ #ifndef __OF_IRQ_H #define __OF_IRQ_H +struct device_node; + #if defined(CONFIG_OF) struct of_irq; #include -- 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/