bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0337-kbuild-Silence-unavoidable-dtc-overlay-warnings.patch
1 From a940e0dff79259844e576ad6604ce00dee976c6c Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 29 Jan 2021 10:34:11 +0000
4 Subject: [PATCH] kbuild: Silence unavoidable dtc overlay warnings
5
6 Much effort has been put into finding ways to avoid warnings from dtc
7 about overlays, usually to do with the presence of #address-cells and
8 size-cells, but not exclusively so. Since the issues being warned about
9 are harmless, suppress the warnings to declutter the build output and
10 to avoid alarming users.
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 scripts/Makefile.lib | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17 --- a/scripts/Makefile.lib
18 +++ b/scripts/Makefile.lib
19 @@ -380,6 +380,12 @@ cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ;
20 $(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
21 -i $(dir $<) $(DTC_FLAGS) \
22 -Wno-interrupts_property \
23 + -Wno-label_is_string \
24 + -Wno-reg_format \
25 + -Wno-pci_device_bus_num \
26 + -Wno-i2c_bus_reg \
27 + -Wno-spi_bus_reg \
28 + -Wno-avoid_default_addr_size \
29 -d $(depfile).dtc.tmp $(dtc-tmp) ; \
30 cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
31