[PATCH] xilinx: common: Add zynq_board_read_rom_ethaddr() declaration

Venkatesh Yadav Abbarapu venkatesh.abbarapu at amd.com
Tue Oct 4 07:46:25 CEST 2022


board.c defines zynq_board_read_rom_ethaddr(), but neglected to
include its declaration, causing the following sparse and
compile time warnings:

board/xilinx/common/board.c:56:5:
warning: no previous prototype for 'zynq_board_read_rom_ethaddr'
[-Wmissing-prototypes]

Include asm/arch/sys_proto.h, which includes the missing declaration.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
---

 board/xilinx/common/board.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 9b4aded466..a822bcf53a 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/sections.h>
+#include <asm/arch/sys_proto.h>
 #include <dm/uclass.h>
 #include <i2c.h>
 #include <linux/sizes.h>
-- 
2.17.1



More information about the U-Boot mailing list