[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20151021.082748.806093800519617316.davem@davemloft.net>
Date: Wed, 21 Oct 2015 08:27:48 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: linux@...ck-us.net
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org, arnd@...db.de
Subject: Re: [PATCH -next] net: hisilicon: Never build on SPARC
From: Guenter Roeck <linux@...ck-us.net>
Date: Wed, 21 Oct 2015 07:29:33 -0700
> The Hisilicon network driver does not build for Sparc. Enabling
> COMPILE_TEST for it causes Sparc allmodconfig/allyesconfig builds
> to fail with
>
> drivers/net/ethernet/hisilicon/hns_mdio.c: In function 'hns_mdio_bus_name':
> drivers/net/ethernet/hisilicon/hns_mdio.c:409:3: error:
> implicit declaration of function 'of_translate_address'
>
> Fixes: 876133d3161d ("net: hisilicon: add OF dependency")
> Cc: Arnd Bergmann <arnd@...db.de>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>
I wish we would really resolve this properly instead of hacking crap
like this all the time, it's stupid.
SPARC simply never needs to "translate" OF addresses, since all OF
resources are fully translated already at boot time during OF tree
import.
All IRQs are fully resolved as well.
So we could simply make of_translate_address() a NOP.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists