Message ID | 20180622085942.24253-1-alexandru.ardelean@analog.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 22/06/2018 16:59, Alexandru Ardelean wrote: > 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. G'day Alexandru, I recently submitted a patch for the same issue. see: https://patchwork.kernel.org/patch/10447649/ Jonathan was holding of for a couple of weeks due to ordering issues. > > 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, >
T24gRnJpLCAyMDE4LTA2LTIyIGF0IDE3OjE1ICswODAwLCBQaGlsIFJlaWQgd3JvdGU6DQo+IE9u IDIyLzA2LzIwMTggMTY6NTksIEFsZXhhbmRydSBBcmRlbGVhbiB3cm90ZToNCj4gPiBGaXhlcyBj b21taXQgYzA0M2VjMWNhNWJhICgiaWlvOmJ1ZmZlcjogbWFrZSBsZW5ndGggdHlwZXMgbWF0Y2gg a2ZpZm8NCj4gPiB0eXBlcyIpLg0KPiA+IFdoZW4gdGhlIGxlbm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W9fYnVmZmVyICpidWZmZXIpOw0KPiA+ICAgDQo+ID4gICBpbnQgaWlvX2RtYV9idWZm ZXJfaW5pdChzdHJ1Y3QgaWlvX2RtYV9idWZmZXJfcXVldWUgKnF1ZXVlLA0KPiA+IA0KPiANCj4g -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, 22 Jun 2018 09:32:52 +0000 "Ardelean, Alexandru" <alexandru.Ardelean@analog.com> wrote: > On Fri, 2018-06-22 at 17:15 +0800, Phil Reid wrote: > > On 22/06/2018 16:59, Alexandru Ardelean wrote: > > > 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. > > > > G'day Alexandru, > > > > I recently submitted a patch for the same issue. > > see: https://patchwork.kernel.org/patch/10447649/ > > > > Jonathan was holding of for a couple of weeks due to ordering issues. > > > > Sorry for the noise/duplication. > I only looked into the iio/togreg tree and saw it wasn't there. > > Let's drop my patch. > > Thanks > Alex I've just applied Phil's patch and will try to send a pull request out later today for that. Thanks, Jonathan > > > > > > > > > > > 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, > > > > > > > N_____r__y____b_X____v_^_)__{.n_+____{__*"__^n_r___z___h_____&___G___h_(_______j"___m______z______f___h___~_ -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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,
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(-)