diff options
| author | Harvey Harrison <[email protected]> | 2008-07-03 23:40:13 -0700 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2008-07-11 14:46:22 +0100 |
| commit | 5f6928378b165c4b0d57a711e1c1eb925ad33846 (patch) | |
| tree | 905c6374d4667734689a8cb9adf6c411a32aedec /drivers/net/ibm_emac/ibm_emac_debug.c | |
| parent | 72289824423655e67993c25c91a7a86a34917209 (diff) | |
[MTD] mtdchar.c silence sparse warning
The copy_to_user was casting away the address space to get the offset of
the length member. Use offsetof() instead and add it to the void __user
*argp.
drivers/mtd/mtdchar.c:527:23: warning: cast removes address space of expression
drivers/mtd/mtdchar.c:527:23: warning: incorrect type in argument 1 (different address spaces)
drivers/mtd/mtdchar.c:527:23: expected void [noderef] <asn:1>*to
drivers/mtd/mtdchar.c:527:23: got unsigned int *<noident>
Signed-off-by: Harvey Harrison <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'drivers/net/ibm_emac/ibm_emac_debug.c')
0 files changed, 0 insertions, 0 deletions