[PATCH 1/1] net: ethernet: cpsw: fix build warnings for CPSW when CPTS not selected

David Miller davem at davemloft.net
Wed Nov 28 17:51:34 EST 2012


From: Mugunthan V N <mugunthanvnm at ti.com>
Date: Tue, 27 Nov 2012 23:23:40 +0530

>   CC      drivers/net/ethernet/ti/cpsw.o
> drivers/net/ethernet/ti/cpsw.c: In function 'cpsw_ndo_ioctl':
> drivers/net/ethernet/ti/cpsw.c:881:20: warning: unused variable 'priv'
> 
> The build warning is generated when CPTS is not selected in Kernel Build.
> Fixing by passing the net_device pointer to cpts IOCTL instead of passing priv
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>

Applied.



More information about the linux-arm-kernel mailing list