On 6/4/22 2:29 AM, Wolfram Sang wrote: > When checking for defined macros, we want the boolean AND not the binary > one. Do we need the parens though? > Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> > --- > > Found while looking for examples of '#if' in dts files. > > arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi > index aa170492dd2b..6be25a8a28db 100644 > --- a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi > +++ b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi > @@ -29,7 +29,7 @@ > #define SW_RSPI_CAN 1 > #endif > > -#if (SW_SCIF_CAN & SW_RSPI_CAN) > +#if (SW_SCIF_CAN && SW_RSPI_CAN) > #error "Can not set 1 to both SW_SCIF_CAN and SW_RSPI_CAN due to HW routing" > #endif > MBR, Sergey