Add casts to squelch the following sparse warnings so we can see the ones that matter when they occur. stmmac_platform.c:260:20: warning: incorrect type in argument 1 (different address spaces) stmmac_platform.c:260:20: expected void const *static extern [signed] [long] [typedef] [tls] inline [safe] ptr stmmac_platform.c:260:20: got void [noderef] <asn:2>*[assigned] addr stmmac_platform.c:261:32: warning: incorrect type in argument 1 (different address spaces) stmmac_platform.c:261:32: expected void const *static extern [signed] [long] [typedef] [tls] inline [safe] ptr stmmac_platform.c:261:32: got void [noderef] <asn:2>*[assigned] addr Signed-off-by: Vince Bridgers <vbridgers2013@xxxxxxxxx> --- V3: Add minor sparse warning correction as part of series V2: Not present in prior submissions --- .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index bb524a9..228003b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -257,8 +257,8 @@ static int stmmac_pltfr_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); addr = devm_ioremap_resource(dev, res); - if (IS_ERR(addr)) - return PTR_ERR(addr); + if (IS_ERR((void __force *)addr)) + return PTR_ERR((void __force *)addr); plat_dat = dev_get_platdata(&pdev->dev); if (pdev->dev.of_node) { -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html