* [PATCH 0/2] checkpatch Warning fixes in drivers/char/mem.c
@ 2014-12-20 18:28 robert.ward114
2014-12-20 18:28 ` [PATCH 1/2] drivers: char: mem: Replace usage of asm include robert.ward114
2014-12-20 18:28 ` [PATCH 2/2] drivers: char: mem: Fix Missing blank line issues robert.ward114
0 siblings, 2 replies; 3+ messages in thread
From: robert.ward114 @ 2014-12-20 18:28 UTC (permalink / raw)
To: arnd, gregkh, linux-kernel; +Cc: Rob Ward
From: Rob Ward <robert.ward114@googlemail.com>
Couple of changes to remove warnings reported by checkpatch.pl within
drivers/char/mem.c
Neither of these patches introduce functional changes.
Rob Ward (2):
drivers: char: mem: Replace usage of asm include
drivers: char: mem: Fix Missing blank line issues
drivers/char/mem.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--
2.0.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] drivers: char: mem: Replace usage of asm include
2014-12-20 18:28 [PATCH 0/2] checkpatch Warning fixes in drivers/char/mem.c robert.ward114
@ 2014-12-20 18:28 ` robert.ward114
2014-12-20 18:28 ` [PATCH 2/2] drivers: char: mem: Fix Missing blank line issues robert.ward114
1 sibling, 0 replies; 3+ messages in thread
From: robert.ward114 @ 2014-12-20 18:28 UTC (permalink / raw)
To: arnd, gregkh, linux-kernel; +Cc: Rob Ward
From: Rob Ward <robert.ward114@googlemail.com>
Replaces the use of asm/uaccess.h with linux/uaccess.h.
Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
---
drivers/char/mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 4c58333..a04ce78 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -28,7 +28,7 @@
#include <linux/io.h>
#include <linux/aio.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
#ifdef CONFIG_IA64
# include <linux/efi.h>
--
2.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] drivers: char: mem: Fix Missing blank line issues
2014-12-20 18:28 [PATCH 0/2] checkpatch Warning fixes in drivers/char/mem.c robert.ward114
2014-12-20 18:28 ` [PATCH 1/2] drivers: char: mem: Replace usage of asm include robert.ward114
@ 2014-12-20 18:28 ` robert.ward114
1 sibling, 0 replies; 3+ messages in thread
From: robert.ward114 @ 2014-12-20 18:28 UTC (permalink / raw)
To: arnd, gregkh, linux-kernel; +Cc: Rob Ward
From: Rob Ward <robert.ward114@googlemail.com>
Fixes "Missing a blank line after declarations" reported by
checkpatch.
This patch introduces no functional changes.
Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
---
drivers/char/mem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index a04ce78..6029d1f 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -575,6 +575,7 @@ static ssize_t write_port(struct file *file, const char __user *buf,
return -EFAULT;
while (count-- > 0 && i < 65536) {
char c;
+
if (__get_user(c, tmp)) {
if (tmp > buf)
break;
@@ -631,6 +632,7 @@ static ssize_t read_iter_zero(struct kiocb *iocb, struct iov_iter *iter)
while (iov_iter_count(iter)) {
size_t chunk = iov_iter_count(iter), n;
+
if (chunk > PAGE_SIZE)
chunk = PAGE_SIZE; /* Just for latency reasons */
n = iov_iter_zero(chunk, iter);
--
2.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-20 18:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-20 18:28 [PATCH 0/2] checkpatch Warning fixes in drivers/char/mem.c robert.ward114
2014-12-20 18:28 ` [PATCH 1/2] drivers: char: mem: Replace usage of asm include robert.ward114
2014-12-20 18:28 ` [PATCH 2/2] drivers: char: mem: Fix Missing blank line issues robert.ward114
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).