[PATCH 2/3] fsl_pq_mdio: Fix compiler/sparse warnings (part 2)

David Miller davem at davemloft.net
Sun Nov 8 19:43:51 EST 2009


From: Anton Vorontsov <avorontsov at ru.mvista.com>
Date: Thu, 5 Nov 2009 01:52:57 +0300

> This patch fixes following warnings:
> 
> fsl_pq_mdio.c:112:38: warning: cast adds address space to expression (<asn:2>)
> fsl_pq_mdio.c:124:38: warning: cast adds address space to expression (<asn:2>)
> fsl_pq_mdio.c:133:38: warning: cast adds address space to expression (<asn:2>)
> fsl_pq_mdio.c:414:11: warning: cast adds address space to expression (<asn:2>)
> 
> Instead of adding __force all over the place, introduce convenient
> fsl_pq_mdio_get_regs() call that does the ugly casting just once.
> 
> Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>

Applied.


More information about the Linuxppc-dev mailing list