public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio:buffer: fix iio_dma_buffer_set_length() prototype mismatch
@ 2018-06-22  8:59 Alexandru Ardelean
  2018-06-22  9:15 ` Phil Reid
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandru Ardelean @ 2018-06-22  8:59 UTC (permalink / raw)
  To: linux-iio; +Cc: jic23, Alexandru Ardelean

Fixes commit c043ec1ca5ba ("iio:buffer: make length types match kfifo
types").
When the length parameter's type was updated in the
`iio_dma_buffer_set_length()` function, the prototype was omitted in the
`include/linux/iio/buffer-dma.h` header.

This causes a build error when running certain CFLAGS configurations that
are a bit more pedantic.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
---
 include/linux/iio/buffer-dma.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iio/buffer-dma.h b/include/linux/iio/buffer-dma.h
index 767467d886de..67c75372b691 100644
--- a/include/linux/iio/buffer-dma.h
+++ b/include/linux/iio/buffer-dma.h
@@ -141,7 +141,7 @@ int iio_dma_buffer_read(struct iio_buffer *buffer, size_t n,
 	char __user *user_buffer);
 size_t iio_dma_buffer_data_available(struct iio_buffer *buffer);
 int iio_dma_buffer_set_bytes_per_datum(struct iio_buffer *buffer, size_t bpd);
-int iio_dma_buffer_set_length(struct iio_buffer *buffer, int length);
+int iio_dma_buffer_set_length(struct iio_buffer *buffer, unsigned int length);
 int iio_dma_buffer_request_update(struct iio_buffer *buffer);
 
 int iio_dma_buffer_init(struct iio_dma_buffer_queue *queue,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-24 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-22  8:59 [PATCH] iio:buffer: fix iio_dma_buffer_set_length() prototype mismatch Alexandru Ardelean
2018-06-22  9:15 ` Phil Reid
2018-06-22  9:32   ` Ardelean, Alexandru
2018-06-24 13:52     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox