Re: CONFIG_VIRT_TO_BUS: what about bus_to_virt?

From: Stephen Rothwell
Date: Sat Jul 21 2007 - 06:26:51 EST


On Sat, 21 Jul 2007 11:52:18 +0200 Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> wrote:
>
> Is it sensible and safe to let a driver which uses bus_to_virt (but not
> virt_to_bus) depend on CONFIG_VIRT_TO_BUS?

If a driver depends on either bus_to_virt or virt_to_bus, then it
depend on CONFIG_VIRT_TO_BUS. The intention is to exclude the driver from
being built on achitectures that don't implement those primitives (and
architectures always implement them both or neither).

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature