From: Patrice CHOTARD Date: Tue, 14 Apr 2020 12:58:09 +0000 Subject: [Uboot-stm32] [PATCH 02/18] dfu: add prototype for dfu_transaction_initiate/cleanup In-Reply-To: <20200318082503.8025-3-patrick.delaunay@st.com> References: <20200318082503.8025-1-patrick.delaunay@st.com> <20200318082503.8025-3-patrick.delaunay@st.com> Message-ID: <944c8855-bf19-5437-250a-bce1b73ef2fc@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > > 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 Thanks Patrice