Revision ca8bdaf13abbdcbb12ff12164aa2d5b522ec524d authored by Ben Dooks on 08 June 2016, 18:21:17 UTC, committed by David S. Miller on 10 June 2016, 06:39:03 UTC
The dwmac4_set_umac_addr() takes a struct mac_device_info as
the first parameter, but is being passed a ioaddr instead from
dwmac4_set_filter(). Fix the warning/bug by changing the first
parameter.

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:159:46: warning: incorrect type in argument 1 (different address spaces)
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:159:46:    expected struct mac_device_info *hw
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:159:46:    got void [noderef] <asn:2>*ioaddr

Note, only compile tested this as do not have any
hardware with it in.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8618e6e
History
File Mode Size
axs101_defconfig -rw-r--r-- 2.8 KB
axs103_defconfig -rw-r--r-- 2.8 KB
axs103_smp_defconfig -rw-r--r-- 2.8 KB
nps_defconfig -rw-r--r-- 2.2 KB
nsim_700_defconfig -rw-r--r-- 1.7 KB
nsim_hs_defconfig -rw-r--r-- 1.6 KB
nsim_hs_smp_defconfig -rw-r--r-- 1.6 KB
nsimosci_defconfig -rw-r--r-- 1.9 KB
nsimosci_hs_defconfig -rw-r--r-- 1.9 KB
nsimosci_hs_smp_defconfig -rw-r--r-- 2.4 KB
tb10x_defconfig -rw-r--r-- 2.9 KB
vdk_hs38_defconfig -rw-r--r-- 2.6 KB
vdk_hs38_smp_defconfig -rw-r--r-- 2.6 KB

back to top