<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From patchwork Thu Aug  5 22:23:30 2021
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Daniel Golle &lt;daniel@makrotopia.org&gt;
X-Patchwork-Id: 12422209
Date: Thu, 5 Aug 2021 23:23:30 +0100
From: Daniel Golle &lt;daniel@makrotopia.org&gt;
To: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;, Andrew Lunn &lt;andrew@lunn.ch&gt;,
 Michael Walle &lt;michael@walle.cc&gt;
Subject: [PATCH] ARM: kirkwood: add missing &lt;linux/if_ether.h&gt; for ETH_ALEN
Message-ID: &lt;YQxk4jrbm31NM1US@makrotopia.org&gt;
MIME-Version: 1.0
Content-Disposition: inline
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: &lt;linux-arm-kernel.lists.infradead.org&gt;
List-Archive: &lt;http://lists.infradead.org/pipermail/linux-arm-kernel/&gt;
Sender: "linux-arm-kernel" &lt;linux-arm-kernel-bounces@lists.infradead.org&gt;

After commit 83216e3988cd1 ("of: net: pass the dst buffer to
of_get_mac_address()") build fails for kirkwood as ETH_ALEN is not
defined.

arch/arm/mach-mvebu/kirkwood.c: In function 'kirkwood_dt_eth_fixup':
arch/arm/mach-mvebu/kirkwood.c:87:13: error: 'ETH_ALEN' undeclared (first use in this function); did you mean 'ESTALE'?
   u8 tmpmac[ETH_ALEN];
             ^~~~~~~~
             ESTALE
arch/arm/mach-mvebu/kirkwood.c:87:13: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-mvebu/kirkwood.c:87:6: warning: unused variable 'tmpmac' [-Wunused-variable]
   u8 tmpmac[ETH_ALEN];
      ^~~~~~
make[5]: *** [scripts/Makefile.build:262: arch/arm/mach-mvebu/kirkwood.o] Error 1
make[5]: *** Waiting for unfinished jobs....

Add missing #include &lt;linux/if_ether.h&gt; to fix this.

Cc: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Andrew Lunn &lt;andrew@lunn.ch&gt;
Cc: Michael Walle &lt;michael@walle.cc&gt;
Reported-by: https://buildbot.openwrt.org/master/images/#/builders/56/builds/220/steps/44/logs/stdio
Fixes: 83216e3988cd1 ("of: net: pass the dst buffer to of_get_mac_address()")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
---
 arch/arm/mach-mvebu/kirkwood.c | 1 +
 1 file changed, 1 insertion(+)

--- a/arch/arm/mach-mvebu/kirkwood.c
+++ b/arch/arm/mach-mvebu/kirkwood.c
@@ -11,6 +11,7 @@
 #include &lt;linux/kernel.h&gt;
 #include &lt;linux/init.h&gt;
 #include &lt;linux/mbus.h&gt;
+#include &lt;linux/if_ether.h&gt;
 #include &lt;linux/of.h&gt;
 #include &lt;linux/of_address.h&gt;
 #include &lt;linux/of_net.h&gt;
</pre></body></html>