[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20171116194526.29791-1-stefano.manni@gmail.com>
Date: Thu, 16 Nov 2017 20:45:26 +0100
From: Stefano Manni <stefano.manni@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Marcus Wolf <linux@...f-Entwicklungen.de>,
devel@...verdev.osuosl.org
Cc: linux-kernel@...r.kernel.org, stefano.manni@...il.com
Subject: [PATCH] staging: pi433: fixed signedness of 4th argument to kfifo_from_user
sparse warning:
incorrect type in initializer (different signedness)
expected unsigned int *__copied, got int *<noident>
Signed-off-by: Stefano Manni <stefano.manni@...il.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
Powered by blists - more mailing lists