[PATCH] staging: ced1401: fix sparse warning for ced1401

Dan Carpenter dan.carpenter at oracle.com
Mon Jun 16 08:17:19 UTC 2014


On Sat, Jun 14, 2014 at 02:04:38PM +0900, Seunghun Lee wrote:
> 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 at gmail.com>

No.  This silences the warning by disabling Sparse.

Fix the annotations instead.

regards,
dan carpenter



More information about the devel mailing list