780-ARM-kirkwood-add-missing-linux-if_ether.h-for-ETH_AL.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 <[email protected]>
  6. X-Patchwork-Id: 12422209
  7. Date: Thu, 5 Aug 2021 23:23:30 +0100
  8. From: Daniel Golle <[email protected]>
  9. To: [email protected], [email protected],
  10. [email protected]
  11. Cc: "David S. Miller" <[email protected]>, Andrew Lunn <[email protected]>,
  12. Michael Walle <[email protected]>
  13. Subject: [PATCH] ARM: kirkwood: add missing <linux/if_ether.h> for ETH_ALEN
  14. Message-ID: <[email protected]>
  15. MIME-Version: 1.0
  16. Content-Disposition: inline
  17. X-BeenThere: [email protected]
  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" <[email protected]>
  23. After commit 83216e3988cd1 ("of: net: pass the dst buffer to
  24. of_get_mac_address()") build fails for kirkwood as ETH_ALEN is not
  25. defined.
  26. arch/arm/mach-mvebu/kirkwood.c: In function 'kirkwood_dt_eth_fixup':
  27. arch/arm/mach-mvebu/kirkwood.c:87:13: error: 'ETH_ALEN' undeclared (first use in this function); did you mean 'ESTALE'?
  28. u8 tmpmac[ETH_ALEN];
  29. ^~~~~~~~
  30. ESTALE
  31. arch/arm/mach-mvebu/kirkwood.c:87:13: note: each undeclared identifier is reported only once for each function it appears in
  32. arch/arm/mach-mvebu/kirkwood.c:87:6: warning: unused variable 'tmpmac' [-Wunused-variable]
  33. u8 tmpmac[ETH_ALEN];
  34. ^~~~~~
  35. make[5]: *** [scripts/Makefile.build:262: arch/arm/mach-mvebu/kirkwood.o] Error 1
  36. make[5]: *** Waiting for unfinished jobs....
  37. Add missing #include <linux/if_ether.h> to fix this.
  38. Cc: David S. Miller <[email protected]>
  39. Cc: Andrew Lunn <[email protected]>
  40. Cc: Michael Walle <[email protected]>
  41. Reported-by: https://buildbot.openwrt.org/master/images/#/builders/56/builds/220/steps/44/logs/stdio
  42. Fixes: 83216e3988cd1 ("of: net: pass the dst buffer to of_get_mac_address()")
  43. Signed-off-by: Daniel Golle <[email protected]>
  44. ---
  45. arch/arm/mach-mvebu/kirkwood.c | 1 +
  46. 1 file changed, 1 insertion(+)
  47. --- a/arch/arm/mach-mvebu/kirkwood.c
  48. +++ b/arch/arm/mach-mvebu/kirkwood.c
  49. @@ -11,6 +11,7 @@
  50. #include <linux/kernel.h>
  51. #include <linux/init.h>
  52. #include <linux/mbus.h>
  53. +#include <linux/if_ether.h>
  54. #include <linux/of.h>
  55. #include <linux/of_address.h>
  56. #include <linux/of_net.h>