* [PATCH] staging: pi433: fixed signedness of 4th argument to kfifo_from_user
@ 2017-11-16 19:45 Stefano Manni
0 siblings, 0 replies; only message in thread
From: Stefano Manni @ 2017-11-16 19:45 UTC (permalink / raw)
To: Greg Kroah-Hartman, Marcus Wolf, devel; +Cc: linux-kernel, stefano.manni
sparse warning:
incorrect type in initializer (different signedness)
expected unsigned int *__copied, got int *<noident>
Signed-off-by: Stefano Manni <stefano.manni@gmail.com>
---
drivers/staging/pi433/pi433_if.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 2a205c6..6f9ab37 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -716,7 +716,8 @@ pi433_write(struct file *filp, const char __user *buf,
{
struct pi433_instance *instance;
struct pi433_device *device;
- int copied, retval;
+ int retval;
+ unsigned int copied;
instance = filp->private_data;
device = instance->device;
--
2.5.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-16 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-16 19:45 [PATCH] staging: pi433: fixed signedness of 4th argument to kfifo_from_user Stefano Manni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®