linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: wlan-ng: silence incorrect type in argument 1 (different address spaces) warning
@ 2021-04-20  9:01 Ashish Kalra
  2021-04-22  8:43 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: Ashish Kalra @ 2021-04-20  9:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Abheek Dhawan, Johannes Weiner,
	Romain Perier, Waiman Long, Allen Pais, Ivan Safonov,
	Ashish Kalra, linux-staging, linux-kernel
  Cc: eashishkalra

Upon running sparse, "warning: incorrect type in argument 1 (different address spaces)
is brought to notice for this file.let's add correct typecast to make it cleaner and
silence the Sparse warning.

Signed-off-by: Ashish Kalra <eashishkalra@gmail.com>
---
 drivers/staging/wlan-ng/p80211netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 6f9666dc0277..70570e8a5ad2 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -569,7 +569,7 @@ static int p80211knetdev_do_ioctl(struct net_device *dev,
 		goto bail;
 	}
 
-	msgbuf = memdup_user(req->data, req->len);
+	msgbuf = memdup_user((void __user *)req->data, req->len);
 	if (IS_ERR(msgbuf)) {
 		result = PTR_ERR(msgbuf);
 		goto bail;
-- 
2.25.1


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

end of thread, other threads:[~2021-04-27 12:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20  9:01 [PATCH] staging: wlan-ng: silence incorrect type in argument 1 (different address spaces) warning Ashish Kalra
2021-04-22  8:43 ` Greg Kroah-Hartman
2021-04-23 15:26   ` Ashish Kalra
2021-04-24  5:59     ` Greg Kroah-Hartman
2021-04-24  6:00     ` Greg Kroah-Hartman
2021-04-24  6:11       ` Joe Perches
2021-04-24  8:15         ` Ashish Kalra
2021-04-24  8:28           ` Greg Kroah-Hartman
2021-04-27 12:23             ` ashish
2021-04-27 12:39               ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).