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

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


cpu-info.c defines print_cpuinfo(), but neglected to
include its declaration, causing the following sparse and
compile time warnings:

board/xilinx/common/cpu-info.c:10:5:
warning: no previous prototype for 'print_cpuinfo'
[-Wmissing-prototypes]

Include init.h, which includes the missing declaration.

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

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

diff --git a/board/xilinx/common/cpu-info.c b/board/xilinx/common/cpu-info.c
index 4a863d00de..4eccc7abbe 100644
--- a/board/xilinx/common/cpu-info.c
+++ b/board/xilinx/common/cpu-info.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <soc.h>
 
 int print_cpuinfo(void)
-- 
2.17.1



More information about the U-Boot mailing list