All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corentin Labbe <clabbe.montjoie@gmail.com>
To: robh+dt@kernel.org, mark.rutland@arm.com,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: How to add multiple example with conflicting includes
Date: Fri, 26 Jul 2019 20:11:08 +0200	[thread overview]
Message-ID: <20190726181108.GA17767@Red> (raw)

Hello

When I try to check the following examples of a devicetree schema:
examples:                                                                       
  - |                                                                           
    #include <dt-bindings/interrupt-controller/arm-gic.h>                       
    #include <dt-bindings/clock/sun50i-a64-ccu.h>                               
    #include <dt-bindings/reset/sun50i-a64-ccu.h>                               
                                                                                
    crypto: crypto@1c15000 {                                                    
      compatible = "allwinner,sun8i-h3-crypto";                                 
      reg = <0x01c15000 0x1000>;                                                
      interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;                            
      clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;                                
      clock-names = "ahb", "mod";                                               
      resets = <&ccu RST_BUS_CE>;                                               
      reset-names = "ahb";                                                      
    };                                                                          
                                                                                
  - |                                                                           
    #include <dt-bindings/interrupt-controller/arm-gic.h>                       
    #include <dt-bindings/clock/sun50i-h6-ccu.h>                                
    #include <dt-bindings/reset/sun50i-h6-ccu.h>                                
                                                                                
    crypto: crypto@1904000 {                                                    
      compatible = "allwinner,sun50i-h6-crypto";                                
      reg = <0x01904000 0x1000>;                                                
      interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;                            
      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.

Thanks
Regards

             reply	other threads:[~2019-07-26 18:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26 18:11 Corentin Labbe [this message]
2019-08-13  5:44 ` How to add multiple example with conflicting includes Maxime Ripard
2019-08-20 21:08 ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190726181108.GA17767@Red \
    --to=clabbe.montjoie@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.