From: Eli Billauer <eli.billauer@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xillybus: XILLYBUS_OF should depend on HAS_DMA
Date: Fri, 24 Apr 2015 15:42:32 +0300 [thread overview]
Message-ID: <553A3A38.5040103@gmail.com> (raw)
In-Reply-To: <1429812330-9477-1-git-send-email-geert@linux-m68k.org>
Hello Geert,
Thanks for this. The dependency on HAS_DMA is obviously missing (is
there any real platform that uses OF but has HAS_DMA off? Sounds a bit
esoteric to me).
And if we're at it, I now realize that XILLYBUS_PCIE maybe also should
depend on HAS_DMA, in case PCI is enabled but HAS_DMA isn't...?
I don't maintain a git repository of my own -- Greg applies my patches
into char-next when I have any (doesn't happen very often). So I suppose
this should be Cced to the maintainers of "CHAR and MISC DRIVERS" (that
is, Greg and Arnd). Preferably with a "char: xillybus:" prefix in the
title, I guess.
Thanks & regards,
Eli
On 23/04/15 21:05, Geert Uytterhoeven wrote:
> If NO_DMA=y:
>
> drivers/built-in.o: In function `xilly_of_unmap':
> xillybus_of.c:(.text+0xa860e): undefined reference to `dma_unmap_single'
> drivers/built-in.o: In function `xilly_map_single_of':
> xillybus_of.c:(.text+0xa8668): undefined reference to `dma_map_single'
> xillybus_of.c:(.text+0xa8676): undefined reference to `dma_mapping_error'
> xillybus_of.c:(.text+0xa86ca): undefined reference to `dma_unmap_single'
> drivers/built-in.o: In function `xilly_dma_sync_single_for_device_of':
> xillybus_of.c:(.text+0xa8700): undefined reference to `dma_sync_single_for_cpu'
> drivers/built-in.o: In function `xilly_dma_sync_single_for_cpu_of':
> xillybus_of.c:(.text+0xa8726): undefined reference to `dma_sync_single_for_cpu'
>
> Signed-off-by: Geert Uytterhoeven<geert@linux-m68k.org>
> ---
> drivers/char/xillybus/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/xillybus/Kconfig b/drivers/char/xillybus/Kconfig
> index b53bdf12da0d0fe3..b302684d86c14c06 100644
> --- a/drivers/char/xillybus/Kconfig
> +++ b/drivers/char/xillybus/Kconfig
> @@ -24,7 +24,7 @@ config XILLYBUS_PCIE
>
> config XILLYBUS_OF
> tristate "Xillybus over Device Tree"
> - depends on OF_ADDRESS&& OF_IRQ
> + depends on OF_ADDRESS&& OF_IRQ&& HAS_DMA
> help
> Set to M if you want Xillybus to find its resources from the
> Open Firmware Flattened Device Tree. If the target is an embedded
>
next prev parent reply other threads:[~2015-04-24 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-23 18:05 [PATCH] xillybus: XILLYBUS_OF should depend on HAS_DMA Geert Uytterhoeven
2015-04-24 12:42 ` Eli Billauer [this message]
2015-04-24 12:58 ` Geert Uytterhoeven
2015-04-24 13:12 ` Eli Billauer
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=553A3A38.5040103@gmail.com \
--to=eli.billauer@gmail.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.