bcm27xx: update 6.1 patches from RPi foundation
[openwrt/staging/xback.git] / target / linux / bcm27xx / patches-6.1 / 950-0307-kbuild-Silence-unavoidable-dtc-overlay-warnings.patch
1 From eff293169d037a716e88734182bc8d7eb0c73289 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 @@ -415,6 +415,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