From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754271AbbJUPL2 (ORCPT ); Wed, 21 Oct 2015 11:11:28 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:44921 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbbJUPL1 (ORCPT ); Wed, 21 Oct 2015 11:11:27 -0400 Date: Wed, 21 Oct 2015 08:27:48 -0700 (PDT) Message-Id: <20151021.082748.806093800519617316.davem@davemloft.net> To: linux@roeck-us.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de Subject: Re: [PATCH -next] net: hisilicon: Never build on SPARC From: David Miller In-Reply-To: <1445437773-23261-1-git-send-email-linux@roeck-us.net> References: <1445437773-23261-1-git-send-email-linux@roeck-us.net> X-Mailer: Mew version 6.4 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 21 Oct 2015 08:11:26 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck 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 > Signed-off-by: Guenter Roeck 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.