[Uboot-stm32] [PATCH 02/18] dfu: add prototype for dfu_transaction_initiate/cleanup
Patrice CHOTARD
patrice.chotard at st.com
Tue Apr 14 14:58:09 CEST 2020
Hi
On 3/18/20 9:24 AM, Patrick Delaunay wrote:
> Add prototype for function dfu_transaction_initiate and
> dfu_transaction_cleanup to avoid warning with W=1.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> include/dfu.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/dfu.h b/include/dfu.h
> index fb5260d903..2f0e335ec0 100644
> --- a/include/dfu.h
> +++ b/include/dfu.h
> @@ -209,6 +209,9 @@ void dfu_initiated_callback(struct dfu_entity *dfu);
> */
> void dfu_flush_callback(struct dfu_entity *dfu);
>
> +int dfu_transaction_initiate(struct dfu_entity *dfu, bool read);
> +void dfu_transaction_cleanup(struct dfu_entity *dfu);
> +
> /*
> * dfu_defer_flush - pointer to store dfu_entity for deferred flashing.
> * It should be NULL when not used.
Reviewed-by: Patrice Chotard <patrice.chotard at st.com>
Thanks
Patrice
More information about the U-Boot
mailing list