From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: How to add multiple example with conflicting includes Date: Tue, 13 Aug 2019 07:44:26 +0200 Message-ID: <20190813054426.73ret73tmkrkyqfo@flea> References: <20190726181108.GA17767@Red> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190726181108.GA17767@Red> Sender: linux-kernel-owner@vger.kernel.org To: robh+dt@kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe List-Id: devicetree@vger.kernel.org Hi Rob, On Fri, Jul 26, 2019 at 08:11:08PM +0200, Corentin Labbe wrote: > When I try to check the following examples of a devicetree schema: > examples: > - | > #include > #include > #include > > crypto: crypto@1c15000 { > compatible = "allwinner,sun8i-h3-crypto"; > reg = <0x01c15000 0x1000>; > interrupts = ; > clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; > clock-names = "ahb", "mod"; > resets = <&ccu RST_BUS_CE>; > reset-names = "ahb"; > }; > > - | > #include > #include > #include > > crypto: crypto@1904000 { > compatible = "allwinner,sun50i-h6-crypto"; > reg = <0x01904000 0x1000>; > interrupts = ; > clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>, <&ccu CLK_MBUS_CE>; > clock-names = "ahb", "mod", "mbus"; > resets = <&ccu RST_BUS_CE>; > reset-names = "ahb"; > }; > > I get: > In file included from Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.example.dts:42: > /linux-next/scripts/dtc/include-prefixes/dt-bindings/clock/sun50i-h6-ccu.h:9: warning: "CLK_PLL_PERIPH0" redefined > #define CLK_PLL_PERIPH0 3 > [...] > > So how can I add multiple examples which need somes conflicting > #include to be validated. I'm having the same issue right now, is there a proper fix / workaround? Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com