From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennert Buytenhek Subject: Re: [PATCH] netdev: mv643xx_eth: Prevent build on PPC32 Date: Wed, 6 Jun 2012 05:02:49 +0200 Message-ID: <20120606030249.GH725@wantstofly.org> References: <20120605192820.GC7683@zod.bos.redhat.com> <20120606004907.GG725@wantstofly.org> <20120606024013.GE7683@zod.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Lunn , Olof Johansson , Jamie Lentin , Mike Turquette , netdev@vger.kernel.org To: Josh Boyer Return-path: Received: from fw.wantstofly.org ([80.101.37.227]:62186 "EHLO mail.wantstofly.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040Ab2FFDCy (ORCPT ); Tue, 5 Jun 2012 23:02:54 -0400 Content-Disposition: inline In-Reply-To: <20120606024013.GE7683@zod.bos.redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jun 05, 2012 at 10:40:14PM -0400, Josh Boyer wrote: > > > Commit 452503ebc (ARM: Orion: Eth: Add clk/clkdev support.) added use of > > > the clk driver API which results in compile errors on architectures that > > > don't implement the clk API. > > > > > > ERROR: "clk_enable" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! > > > ERROR: "clk_disable" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! > > > ERROR: "clk_put" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! > > > ERROR: "clk_get_rate" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! > > > ERROR: "clk_get" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined! > > > > > > Selecting CLKDEV_LOOKUP doesn't fix this either, as the build then fails with: > > > > > > In file included from drivers/clk/clkdev.c:21:0: > > > include/linux/clkdev.h:15:24: fatal error: asm/clkdev.h: No such file or directory > > > > > > So we just prevent this from building at all on PPC32. > > > > If the PPC32 dependency is no longer relevant (e.g. if Pegasos platform > > support was removed from the kernel), then the commit message should > > mention that -- the above reasoning is a poor sole justification for > > this change. > > You are correct. As it stands, it's no better than just breaking it > outright with commit 452503ebc. ACK. If I'd have seen that commit ("ARM: Orion: Eth: Add clk/clkdev support.") come by I would have said something about it, but noone bothered to CC me on it -- and it doesn't seem that it was CCed to netdev@ either...?