From: Josh Boyer <jwboyer@redhat.com>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Andrew Lunn <andrew@lunn.ch>, Olof Johansson <olof@lixom.net>,
netdev@vger.kernel.org
Subject: Re: [PATCH] netdev: mv643xx_eth: Prevent build on PPC32
Date: Tue, 5 Jun 2012 22:40:14 -0400 [thread overview]
Message-ID: <20120606024013.GE7683@zod.bos.redhat.com> (raw)
In-Reply-To: <20120606004907.GG725@wantstofly.org>
On Wed, Jun 06, 2012 at 02:49:07AM +0200, Lennert Buytenhek wrote:
> On Tue, Jun 05, 2012 at 03:28:21PM -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. I've described the 3 possible solutions
in my other reply.
josh
next prev parent reply other threads:[~2012-06-06 2:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 19:28 [PATCH] netdev: mv643xx_eth: Prevent build on PPC32 Josh Boyer
2012-06-05 23:30 ` Ben Hutchings
2012-06-06 2:38 ` Josh Boyer
2012-06-06 5:29 ` Andrew Lunn
2012-06-06 11:21 ` Josh Boyer
2012-06-07 23:51 ` Mark Brown
2012-06-07 23:55 ` Josh Boyer
2012-06-08 0:34 ` Mark Brown
2012-06-08 1:04 ` Josh Boyer
2012-06-09 4:01 ` Mark Brown
2012-06-06 0:49 ` Lennert Buytenhek
2012-06-06 2:40 ` Josh Boyer [this message]
2012-06-06 3:02 ` Lennert Buytenhek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120606024013.GE7683@zod.bos.redhat.com \
--to=jwboyer@redhat.com \
--cc=andrew@lunn.ch \
--cc=buytenh@wantstofly.org \
--cc=netdev@vger.kernel.org \
--cc=olof@lixom.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).