All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: wilc1000: fix compilation warning for ARCH PowerPC
@ 2018-08-02 11:27 Ajay Singh
  2018-08-02 19:31 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Ajay Singh @ 2018-08-02 11:27 UTC (permalink / raw)
  To: linux-wireless
  Cc: devel, gregkh, ganesh.krishna, venkateswara.kaja, aditya.shankar,
	claudiu.beznea, adham.abozaeid, Ajay Singh

Fix below warning reported for PowerPC arch compilation

include/uapi/linux/byteorder/big_endian.h:95:37: warning: passing
argument 1 of '__swab32s' makes pointer from integer without a cast
[-Wint-conversion]

Fixes: 02211edc9a1f ("staging: wilc1000: fix endianness warnings
reported by sparse")

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
---
 drivers/staging/wilc1000/wilc_sdio.c | 2 +-
 drivers/staging/wilc1000/wilc_spi.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c
index 8bda550..1908afa1 100644
--- a/drivers/staging/wilc1000/wilc_sdio.c
+++ b/drivers/staging/wilc1000/wilc_sdio.c
@@ -563,7 +563,7 @@ static int sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data)
 		}
 	}
 
-	le32_to_cpus(*data);
+	le32_to_cpus(data);
 
 	return 1;
 
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index 064892d..a85f87b 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -699,7 +699,7 @@ static int spi_internal_read(struct wilc *wilc, u32 adr, u32 *data)
 		return 0;
 	}
 
-	le32_to_cpus(*data);
+	le32_to_cpus(data);
 
 	return 1;
 }
@@ -778,7 +778,7 @@ static int wilc_spi_read_reg(struct wilc *wilc, u32 addr, u32 *data)
 		return 0;
 	}
 
-	le32_to_cpus(*data);
+	le32_to_cpus(data);
 
 	return 1;
 }
-- 
2.7.4

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

* Re: [PATCH] staging: wilc1000: fix compilation warning for ARCH PowerPC
  2018-08-02 11:27 [PATCH] staging: wilc1000: fix compilation warning for ARCH PowerPC Ajay Singh
@ 2018-08-02 19:31 ` Greg KH
  2018-08-03  4:29   ` Ajay Singh
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2018-08-02 19:31 UTC (permalink / raw)
  To: Ajay Singh
  Cc: linux-wireless, devel, ganesh.krishna, venkateswara.kaja,
	aditya.shankar, claudiu.beznea, adham.abozaeid

On Thu, Aug 02, 2018 at 04:57:02PM +0530, Ajay Singh wrote:
> Fix below warning reported for PowerPC arch compilation
> 
> include/uapi/linux/byteorder/big_endian.h:95:37: warning: passing
> argument 1 of '__swab32s' makes pointer from integer without a cast
> [-Wint-conversion]
> 
> Fixes: 02211edc9a1f ("staging: wilc1000: fix endianness warnings
> reported by sparse")
> 
> Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
> ---

You forgot the reported-by: line :(

I'll go add it, but be more careful in the future please.

greg k-h

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

* Re: [PATCH] staging: wilc1000: fix compilation warning for ARCH PowerPC
  2018-08-02 19:31 ` Greg KH
@ 2018-08-03  4:29   ` Ajay Singh
  0 siblings, 0 replies; 3+ messages in thread
From: Ajay Singh @ 2018-08-03  4:29 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-wireless, devel, ganesh.krishna, venkateswara.kaja,
	aditya.shankar, claudiu.beznea, adham.abozaeid

Hi Greg,

On Thu, 2 Aug 2018 21:31:16 +0200
Greg KH <gregkh@linuxfoundation.org> wrote:

> On Thu, Aug 02, 2018 at 04:57:02PM +0530, Ajay Singh wrote:
> > Fix below warning reported for PowerPC arch compilation
> > 
> > include/uapi/linux/byteorder/big_endian.h:95:37: warning: passing
> > argument 1 of '__swab32s' makes pointer from integer without a cast
> > [-Wint-conversion]
> > 
> > Fixes: 02211edc9a1f ("staging: wilc1000: fix endianness warnings
> > reported by sparse")
> > 
> > Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
> > ---  
> 
> You forgot the reported-by: line :(
> 

Sorry for the trouble.

> I'll go add it, but be more careful in the future please.
> 

Thank you for adding it up. I will take care in future patches.

Regards,
Ajay

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

end of thread, other threads:[~2018-08-03  6:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02 11:27 [PATCH] staging: wilc1000: fix compilation warning for ARCH PowerPC Ajay Singh
2018-08-02 19:31 ` Greg KH
2018-08-03  4:29   ` Ajay Singh

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.