[PATCH 1/4] xilinx: common: Add missing prototype for board_get_usable_ram_top

Michal Simek michal.simek at amd.com
Fri Jan 6 13:44:47 CET 2023



On 1/6/23 13:00, Ashok Reddy Soma wrote:
> From: Algapally Santosh Sagar <santoshsagar.algapally at amd.com>
> 
> Add missing prototype to fix the sparse warning, warning: no previous
> prototype for 'board_get_usable_ram_top' [-Wmissing-prototypes].
> 
> Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally at amd.com>
> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at amd.com>
> ---
> 
>   board/xilinx/common/board.h | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/board/xilinx/common/board.h b/board/xilinx/common/board.h
> index 69e642429b..ef7f3f3dce 100644
> --- a/board/xilinx/common/board.h
> +++ b/board/xilinx/common/board.h
> @@ -11,4 +11,8 @@ int board_late_init_xilinx(void);
>   
>   int xilinx_read_eeprom(void);
>   
> +#if defined(CONFIG_LMB)
> +phys_size_t board_get_usable_ram_top(phys_size_t total_size);

it is already in include/init.h.

M


More information about the U-Boot mailing list