[Uboot-stm32] [PATCH 2/4] board: stm32mp1: change dfu function to static

Patrice CHOTARD patrice.chotard at st.com
Fri Feb 14 08:54:33 CET 2020


On 1/28/20 10:44 AM, Patrick Delaunay wrote:
> Change the dfu functions dfu_otp_read and dfu_pmic_read to static,
> this patch avoids warning when compiling with W=1.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
>  board/st/stm32mp1/stm32mp1.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
> index 2fecfc1b16..b6b70ce20f 100644
> --- a/board/st/stm32mp1/stm32mp1.c
> +++ b/board/st/stm32mp1/stm32mp1.c
> @@ -1010,7 +1010,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
>  #include <dfu.h>
>  #include <power/stpmic1.h>
>  
> -int dfu_otp_read(u64 offset, u8 *buffer, long *size)
> +static int dfu_otp_read(u64 offset, u8 *buffer, long *size)
>  {
>  	struct udevice *dev;
>  	int ret;
> @@ -1030,7 +1030,7 @@ int dfu_otp_read(u64 offset, u8 *buffer, long *size)
>  	return 0;
>  }
>  
> -int dfu_pmic_read(u64 offset, u8 *buffer, long *size)
> +static int dfu_pmic_read(u64 offset, u8 *buffer, long *size)
>  {
>  	int ret;
>  #ifdef CONFIG_PMIC_STPMIC1

Reviewed-by: Patrice Chotard <patrice.chotard at st.com>

Thanks


More information about the U-Boot mailing list