[PATCH 1/1] net: ethernet: cpsw: fix build warnings for CPSW when CPTS not selected
Richard Cochran
richardcochran at gmail.com
Tue Nov 27 13:31:30 EST 2012
On Tue, Nov 27, 2012 at 11:23:40PM +0530, Mugunthan V N wrote:
> 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>
Thanks for this fix.
Acked-by: Richard Cochran <richardcochran at gmail.com>
More information about the linux-arm-kernel
mailing list