Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp582084ybl; Mon, 12 Aug 2019 22:46:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGDbTZ0xk1rglfSMd/+Xk3hgungTcoPKsOdeF5lwl+RpOuIj3vOOJuJotNOClBT25L69hn X-Received: by 2002:aa7:8e17:: with SMTP id c23mr39351734pfr.227.1565675209326; Mon, 12 Aug 2019 22:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565675209; cv=none; d=google.com; s=arc-20160816; b=X61dilv4E7qvuZ0AT0saHqciTG9ytC3KH+F5y8KeFPGJHt9viUkfazVYYRU1p/X62Y ksmHZS7XxSYKZs2P90DFO7eqkmAOva5hh//6IhnmFEs1vHqK43KEM92SjNKQHUHcY4aL oDipaehU8maQKSRRWkFfy9r6aIo0KRRpstbVZKWu+CAzjZc/sqnTQPjAf4sLNNpW85T0 ax9lJJ1J5t5Avmwam/aSZuTJYoY1kxUfYq1eGpw7De6NhNeBqPkHp6jzMHGoWBp+zcBO Fc2hnWS5D6NmWH3rYY4+ol0vwgC1IwzZklTyYvGVrwyPSF5qXFyrxsUdPJK/FbCYuATM xJug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4NGUesxg6NWlj1c+bFIm/Q/0/jk5z9EpediAu17fjpw=; b=HuNVQImOLAenlK/rkvMLMiK032/yjIpB0s2ZDrXzqLGNa5o7h67NgVdTRFITAFI/Rp SksvJvXfre9+ASR3CBMnjCCvkCBnYRt4Lr1wZtgFiCR3zDdiozf9LQdHROcBwXMjCCLY nVhHOMeZDE98BQdhxLLtQ7ZtKLnlC8fjfPEcytaq9KbO/KHmKMc0vVlpGPc5NjROA1Ix cG0rhuGaFOgLLbfVeNC5mZhr+6ki9s4SNt/jjWIltYfEklaUGF2lMJBF0v5x8IbldY7X keuC+tX8yr2rI3X6Nn5EK1LEmx/7NH8kJtyoh5p26nVXLa6oy5a9NjK7uUK+qGqVuZXh S66w== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si1929253plk.47.2019.08.12.22.46.31; Mon, 12 Aug 2019 22:46:49 -0700 (PDT) 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 S1726789AbfHMFo3 (ORCPT + 99 others); Tue, 13 Aug 2019 01:44:29 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:56277 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbfHMFo3 (ORCPT ); Tue, 13 Aug 2019 01:44:29 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 4F59DC0006; Tue, 13 Aug 2019 05:44:27 +0000 (UTC) Date: Tue, 13 Aug 2019 07:44:26 +0200 From: Maxime Ripard To: robh+dt@kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: Re: How to add multiple example with conflicting includes Message-ID: <20190813054426.73ret73tmkrkyqfo@flea> References: <20190726181108.GA17767@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726181108.GA17767@Red> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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