[PATCH net] gianfar: fix compile fail for NET_POLL=y due to struct packing

David Miller davem at davemloft.net
Mon Feb 25 04:04:58 EST 2013


From: Paul Gortmaker <paul.gortmaker at windriver.com>
Date: Sun, 24 Feb 2013 10:38:31 -0500

> Commit ee873fda3bec7c668407b837fc5519eb961fcd37 ("gianfar: Pack struct
> gfar_priv_grp into three cachelines") moved the irq number and names
> off into a separate struct and created accessors for them.  However
> it was never tested with NET_POLL enabled, and so some conversions
> that were simply overlooked went undetected until now.
> 
> Make the netpoll ones also use the gfar_irq() accessors.
> 
> Reported-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Cc: Claudiu Manoil <claudiu.manoil at freescale.com>
> Cc: Jianhua Xie <jianhua.xie at freescale.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>

Applied, thanks.


More information about the Linuxppc-dev mailing list