All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning
@ 2014-01-11 14:54 Peter Meerwald
  2014-01-11 16:16 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Meerwald @ 2014-01-11 14:54 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald, kbuild test robot

>> drivers/iio/pressure/mpl3115.c:101:46: sparse: cast to restricted __be32
>> drivers/iio/pressure/mpl3115.c:115:46: sparse: cast to restricted __be32

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: kbuild test robot <fengguang.wu@intel.com>
---
 drivers/iio/pressure/mpl3115.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/pressure/mpl3115.c b/drivers/iio/pressure/mpl3115.c
index ac8c8ab..ba6d0c5 100644
--- a/drivers/iio/pressure/mpl3115.c
+++ b/drivers/iio/pressure/mpl3115.c
@@ -77,7 +77,7 @@ static int mpl3115_read_raw(struct iio_dev *indio_dev,
 			    int *val, int *val2, long mask)
 {
 	struct mpl3115_data *data = iio_priv(indio_dev);
-	s32 tmp = 0;
+	__be32 tmp = 0;
 	int ret;
 
 	switch (mask) {
-- 
1.8.3.2


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

* Re: [PATCH] iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning
  2014-01-11 14:54 [PATCH] iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning Peter Meerwald
@ 2014-01-11 16:16 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2014-01-11 16:16 UTC (permalink / raw)
  To: Peter Meerwald, linux-iio; +Cc: kbuild test robot



On 11/01/14 14:54, Peter Meerwald wrote:
>>> drivers/iio/pressure/mpl3115.c:101:46: sparse: cast to restricted __be32
>>> drivers/iio/pressure/mpl3115.c:115:46: sparse: cast to restricted __be32
>
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
> Cc: kbuild test robot <fengguang.wu@intel.com>
Applied ot the togreg branch of iio.git.
I upped the Cc to a reported-by to give the credit where it is due.

Thanks,
> ---
>   drivers/iio/pressure/mpl3115.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/pressure/mpl3115.c b/drivers/iio/pressure/mpl3115.c
> index ac8c8ab..ba6d0c5 100644
> --- a/drivers/iio/pressure/mpl3115.c
> +++ b/drivers/iio/pressure/mpl3115.c
> @@ -77,7 +77,7 @@ static int mpl3115_read_raw(struct iio_dev *indio_dev,
>   			    int *val, int *val2, long mask)
>   {
>   	struct mpl3115_data *data = iio_priv(indio_dev);
> -	s32 tmp = 0;
> +	__be32 tmp = 0;
>   	int ret;
>
>   	switch (mask) {
>

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

end of thread, other threads:[~2014-01-11 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-11 14:54 [PATCH] iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning Peter Meerwald
2014-01-11 16:16 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.