[PATCH] xilinx: common: Add print_cpuinfo() declaration
Michal Simek
monstr at monstr.eu
Fri Oct 7 11:34:28 CEST 2022
On 10/4/22 07:50, Venkatesh Yadav Abbarapu wrote:
> 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)
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
More information about the U-Boot
mailing list