kernel: bump 5.15 to 5.15.134
[openwrt/staging/stintel.git] / target / linux / generic / pending-5.15 / 780-ARM-kirkwood-add-missing-linux-if_ether.h-for-ETH_AL.patch
1 From patchwork Thu Aug 5 22:23:30 2021
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 X-Patchwork-Submitter: Daniel Golle <daniel@makrotopia.org>
6 X-Patchwork-Id: 12422209
7 Date: Thu, 5 Aug 2021 23:23:30 +0100
8 From: Daniel Golle <daniel@makrotopia.org>
9 To: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
10 linux-kernel@vger.kernel.org
11 Cc: "David S. Miller" <davem@davemloft.net>, Andrew Lunn <andrew@lunn.ch>,
12 Michael Walle <michael@walle.cc>
13 Subject: [PATCH] ARM: kirkwood: add missing <linux/if_ether.h> for ETH_ALEN
14 Message-ID: <YQxk4jrbm31NM1US@makrotopia.org>
15 MIME-Version: 1.0
16 Content-Disposition: inline
17 X-BeenThere: linux-arm-kernel@lists.infradead.org
18 X-Mailman-Version: 2.1.34
19 Precedence: list
20 List-Id: <linux-arm-kernel.lists.infradead.org>
21 List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/>
22 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org>
23
24 After commit 83216e3988cd1 ("of: net: pass the dst buffer to
25 of_get_mac_address()") build fails for kirkwood as ETH_ALEN is not
26 defined.
27
28 arch/arm/mach-mvebu/kirkwood.c: In function 'kirkwood_dt_eth_fixup':
29 arch/arm/mach-mvebu/kirkwood.c:87:13: error: 'ETH_ALEN' undeclared (first use in this function); did you mean 'ESTALE'?
30 u8 tmpmac[ETH_ALEN];
31 ^~~~~~~~
32 ESTALE
33 arch/arm/mach-mvebu/kirkwood.c:87:13: note: each undeclared identifier is reported only once for each function it appears in
34 arch/arm/mach-mvebu/kirkwood.c:87:6: warning: unused variable 'tmpmac' [-Wunused-variable]
35 u8 tmpmac[ETH_ALEN];
36 ^~~~~~
37 make[5]: *** [scripts/Makefile.build:262: arch/arm/mach-mvebu/kirkwood.o] Error 1
38 make[5]: *** Waiting for unfinished jobs....
39
40 Add missing #include <linux/if_ether.h> to fix this.
41
42 Cc: David S. Miller <davem@davemloft.net>
43 Cc: Andrew Lunn <andrew@lunn.ch>
44 Cc: Michael Walle <michael@walle.cc>
45 Reported-by: https://buildbot.openwrt.org/master/images/#/builders/56/builds/220/steps/44/logs/stdio
46 Fixes: 83216e3988cd1 ("of: net: pass the dst buffer to of_get_mac_address()")
47 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
48 ---
49 arch/arm/mach-mvebu/kirkwood.c | 1 +
50 1 file changed, 1 insertion(+)
51
52 --- a/arch/arm/mach-mvebu/kirkwood.c
53 +++ b/arch/arm/mach-mvebu/kirkwood.c
54 @@ -11,6 +11,7 @@
55 #include <linux/kernel.h>
56 #include <linux/init.h>
57 #include <linux/mbus.h>
58 +#include <linux/if_ether.h>
59 #include <linux/of.h>
60 #include <linux/of_address.h>
61 #include <linux/of_net.h>