diff mbox series

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

Message ID 20230106120035.2183-2-ashok.reddy.soma@amd.com
State Superseded
Delegated to: Michal Simek
Headers show
Series Fix sparse warnings | expand

Commit Message

Ashok Reddy Soma Jan. 6, 2023, noon UTC
From: Algapally Santosh Sagar <santoshsagar.algapally@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@amd.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
---

 board/xilinx/common/board.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Michal Simek Jan. 6, 2023, 12:44 p.m. UTC | #1
On 1/6/23 13:00, Ashok Reddy Soma wrote:
> From: Algapally Santosh Sagar <santoshsagar.algapally@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@amd.com>
> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@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
diff mbox series

Patch

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);
+#endif
+
 #endif /* BOARD_XILINX_COMMON_BOARD_H */