diff options
| author | Seunghun Lee <waydi1@gmail.com> | 2014-06-22 23:38:04 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-26 20:35:49 -0400 |
| commit | 4b9988422a3124ed3c5c8dca73bcf2bc5ba54873 (patch) | |
| tree | c5e844f2fc1512fb07d3a9063980ea42958c605f | |
| parent | 80f8210abc5ecd5c12c31e57c46a7758396978e1 (diff) | |
staging: ced1401: fix sparse warning for ced1401
This patch fixes below warning.
drivers/staging/ced1401/ced_ioc.c:703:30: warning: incorrect type in assignment (different address spaces)
drivers/staging/ced1401/ced_ioc.c:703:30: expected void *[usertype] lpvBuff
drivers/staging/ced1401/ced_ioc.c:703:30: got char [noderef] <asn:1>*puBuf
Signed-off-by: Seunghun Lee <waydi1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/ced1401/usb1401.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ced1401/usb1401.h b/drivers/staging/ced1401/usb1401.h index ea0fe6398a01..8327e9ce93c3 100644 --- a/drivers/staging/ced1401/usb1401.h +++ b/drivers/staging/ced1401/usb1401.h @@ -101,7 +101,7 @@ typedef struct circBlk { /* A structure holding all of the information about a transfer area - an area of */ /* memory set up for use either as a source or destination in DMA transfers. */ typedef struct transarea { - void *lpvBuff; /* User address of xfer area saved for completeness */ + void __user *lpvBuff; /* User address of xfer area saved for completeness */ UINT dwBaseOffset; /* offset to start of xfer area in first page */ UINT dwLength; /* Length of xfer area, in bytes */ struct page **pPages; /* Points at array of locked down pages */ |
