[PATCH 2/2] drivers: char: mem: Fix Missing blank line issues

2014-12-20 Thread robert . ward114
From: Rob Ward Fixes "Missing a blank line after declarations" reported by checkpatch. This patch introduces no functional changes. Signed-off-by: Rob Ward --- drivers/char/mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/char/mem.c b/drivers/char/mem.c index a04ce78..6029d

[PATCH 1/2] drivers: char: mem: Replace usage of asm include

2014-12-20 Thread robert . ward114
From: Rob Ward Replaces the use of asm/uaccess.h with linux/uaccess.h. Signed-off-by: Rob Ward --- 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

[PATCH 0/2] checkpatch Warning fixes in drivers/char/mem.c

2014-12-20 Thread robert . ward114
From: Rob Ward 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.

[PATCH 1/3] drivers: char: mem: Make /dev/mem an optional device

2014-12-07 Thread robert . ward114
From: Rob Ward Adds Kconfig option CONFIG_DEVMEM that allows the /dev/mem device to be disabled. Option defaults to /dev/mem enabled. Signed-off-by: Rob Ward --- drivers/char/Kconfig | 9 + drivers/char/mem.c | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/d

[PATCH 0/3] /dev/mem as optional device + associated tidy up

2014-12-07 Thread robert . ward114
From: Rob Ward Makes the /dev/mem device optional using the CONFIG_DEVMEM option. This brings /dev/mem in line with /dev/kmem so it can de disabled. Disabling /dev/mem is preferable on devices that do not require direct access to memory in order to improve security. This is especially true on p

[PATCH 2/3] drivers: char: mem: Simplify DEVKMEM configuration

2014-12-07 Thread robert . ward114
From: Rob Ward Simplify the use of CONFIG_DEVKMEM by making the kmem_fops so that it is __maybe_unused. This enabled the multiple #ifdef's used for this structure to be removed and brings it in line with the use of CONFIG_DEVMEM This change should introduce no functional changes. Signed-off-by

[PATCH 3/3] drivers: char: mem: Simplify DEVPORT configuration

2014-12-07 Thread robert . ward114
From: Rob Ward Simplify the use of CONFIG_DEVPORT by making the port_fops so that it includes __maybe_unused. This enabled the multiple #ifdef's used for this structure to be removed and brings it in line with the use of CONFIG_DEVMEM This change should introduce no functional changes. Signed-