Commit 0a81a0f7 authored by Emilio G. Cota's avatar Emilio G. Cota Committed by Greg Kroah-Hartman

staging: vme_user: remove __iomem marking from kern_buf and derivates

kern_buf is not iomem; it comes from kmalloc and is directly
dereferenced.
Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
Acked-by: default avatarMartyn Welch <martyn.welch@ge.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c9492318
...@@ -92,7 +92,7 @@ static unsigned int bus_num; ...@@ -92,7 +92,7 @@ static unsigned int bus_num;
* Structure to handle image related parameters. * Structure to handle image related parameters.
*/ */
typedef struct { typedef struct {
void __iomem *kern_buf; /* Buffer address in kernel space */ void *kern_buf; /* Buffer address in kernel space */
dma_addr_t pci_buf; /* Buffer address in PCI address space */ dma_addr_t pci_buf; /* Buffer address in PCI address space */
unsigned long long size_buf; /* Buffer size */ unsigned long long size_buf; /* Buffer size */
struct semaphore sem; /* Semaphore for locking image */ struct semaphore sem; /* Semaphore for locking image */
...@@ -277,7 +277,7 @@ static ssize_t resource_from_user(unsigned int minor, const char *buf, ...@@ -277,7 +277,7 @@ static ssize_t resource_from_user(unsigned int minor, const char *buf,
static ssize_t buffer_to_user(unsigned int minor, char __user *buf, static ssize_t buffer_to_user(unsigned int minor, char __user *buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
void __iomem *image_ptr; void *image_ptr;
ssize_t retval; ssize_t retval;
image_ptr = image[minor].kern_buf + *ppos; image_ptr = image[minor].kern_buf + *ppos;
...@@ -296,7 +296,7 @@ static ssize_t buffer_to_user(unsigned int minor, char __user *buf, ...@@ -296,7 +296,7 @@ static ssize_t buffer_to_user(unsigned int minor, char __user *buf,
static ssize_t buffer_from_user(unsigned int minor, const char *buf, static ssize_t buffer_from_user(unsigned int minor, const char *buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
void __iomem *image_ptr; void *image_ptr;
size_t retval; size_t retval;
image_ptr = image[minor].kern_buf + *ppos; image_ptr = image[minor].kern_buf + *ppos;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment