From mboxrd@z Thu Jan 1 00:00:00 1970 From: jic23@kernel.org (Jonathan Cameron) Date: Sun, 20 May 2018 11:26:58 +0100 Subject: [PATCH] iio: adc: stm32-dfsdm: include stm32-dfsdm-adc.h In-Reply-To: <1526397557-31389-1-git-send-email-fabrice.gasnier@st.com> References: <1526397557-31389-1-git-send-email-fabrice.gasnier@st.com> Message-ID: <20180520112658.1c84968b@archlinux> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 15 May 2018 17:19:17 +0200 Fabrice Gasnier wrote: > Fix the following sparse warnings: > CHECK drivers/iio/adc/stm32-dfsdm-adc.c > symbol 'stm32_dfsdm_get_buff_cb' was not declared. Should it be static? > symbol 'stm32_dfsdm_release_buff_cb' was not declared. Should it be static? > > BTW, move interrupt.h to sort headers alphabetically. > > Signed-off-by: Fabrice Gasnier Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/adc/stm32-dfsdm-adc.c | 4 ++-- > include/linux/iio/adc/stm32-dfsdm-adc.h | 2 ++ > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c > index 1b78bec..31462ae 100644 > --- a/drivers/iio/adc/stm32-dfsdm-adc.c > +++ b/drivers/iio/adc/stm32-dfsdm-adc.c > @@ -8,11 +8,11 @@ > > #include > #include > -#include > +#include > #include > #include > -#include > #include > +#include > #include > #include > #include > diff --git a/include/linux/iio/adc/stm32-dfsdm-adc.h b/include/linux/iio/adc/stm32-dfsdm-adc.h > index e7dc7a5..0da298b 100644 > --- a/include/linux/iio/adc/stm32-dfsdm-adc.h > +++ b/include/linux/iio/adc/stm32-dfsdm-adc.h > @@ -9,6 +9,8 @@ > #ifndef STM32_DFSDM_ADC_H > #define STM32_DFSDM_ADC_H > > +#include > + > int stm32_dfsdm_get_buff_cb(struct iio_dev *iio_dev, > int (*cb)(const void *data, size_t size, > void *private),