[PATCH v2] env: add prototypes for weak function

Patrick DELAUNAY patrick.delaunay at st.com
Fri Apr 24 15:35:44 CEST 2020


Hi,

> From: Patrick DELAUNAY <patrick.delaunay at st.com>
> Sent: mardi 28 janvier 2020 09:19
> 
> This patch adds prototypes for several weak functions:
> - env_ext4_get_intf
> - env_ext4_get_dev_part
> - env_get_location
> 
> It solves the following warnings when compiling with W=1 on stm32mp1 board:
> 
> board/st/stm32mp1/stm32mp1.c:849:19: warning: no previous prototype for
> 'env_get_location' [-Wmissing-prototypes]  enum env_location
> env_get_location(enum env_operation op, int prio)
>                    ^~~~~~~~~~~~~~~~
> board/st/stm32mp1/stm32mp1.c:876:13: warning: no previous prototype for
> 'env_ext4_get_intf' [-Wmissing-prototypes]  const char *env_ext4_get_intf(void)
>              ^~~~~~~~~~~~~~~~~
> board/st/stm32mp1/stm32mp1.c:889:13: warning: no previous prototype for
> 'env_ext4_get_dev_part' [-Wmissing-prototypes]  const char
> *env_ext4_get_dev_part(void)
>              ^~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
> 
> Changes in v2:
> - clarify the comment on the added prototype
> 
>  include/env_internal.h | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
> 

Any comments on this patch ?

Regards,

Patrick


More information about the U-Boot mailing list