From: Randy Dunlap <rdunlap@infradead.org>
To: Mark Brown <broonie@kernel.org>,
Peter Foley <pefoley2@pefoley.com>,
Mauro Carvalho Chehab <m.chehab@samsung.com>,
Hans Verkuil <hans.verkuil@cisco.com>
Cc: linux-media@vger.kernel.org, linux-doc@vger.kernel.org,
linaro-kernel@lists.linaro.org, Mark Brown <broonie@linaro.org>
Subject: Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available
Date: Tue, 26 Aug 2014 12:20:54 -0700 [thread overview]
Message-ID: <53FCDE16.1000205@infradead.org> (raw)
In-Reply-To: <1409073919-27336-1-git-send-email-broonie@kernel.org>
On 08/26/14 10:25, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> Currently arm64 does not support PCI but it does support v4l2. Since the
> PCI skeleton driver is built unconditionally as a module with no dependency
> on PCI this causes build failures for arm64 allmodconfig. Fix this by
> defining a symbol VIDEO_PCI_SKELETON for the skeleton and conditionalising
> the build on that.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
>
> The patch adding the Makefile was added to the Documentation tree,
> either it should be reverted or something like this added on top.
>
> Documentation/video4linux/Makefile | 2 +-
> drivers/media/v4l2-core/Kconfig | 7 +++++++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/video4linux/Makefile b/Documentation/video4linux/Makefile
> index d58101e788fc..65a351d75c95 100644
> --- a/Documentation/video4linux/Makefile
> +++ b/Documentation/video4linux/Makefile
> @@ -1 +1 @@
> -obj-m := v4l2-pci-skeleton.o
> +obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
> diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig
> index 9ca0f8d59a14..2b368f711c9e 100644
> --- a/drivers/media/v4l2-core/Kconfig
> +++ b/drivers/media/v4l2-core/Kconfig
> @@ -25,6 +25,13 @@ config VIDEO_FIXED_MINOR_RANGES
>
> When in doubt, say N.
>
> +config VIDEO_PCI_SKELETON
> + tristate "Skeleton PCI V4L2 driver"
> + depends on PCI && COMPILE_TEST
&& ?? No, don't require COMPILE_TEST.
However, PCI || COMPILE_TEST would allow it to build on arm64
if COMPILE_TEST is enabled, guaranteeing build errors.
Is that what should happen? I suppose so...
> + ---help---
> + Enable build of the skeleton PCI driver, used as a reference
> + when developign new drivers.
> +
> # Used by drivers that need tuner.ko
> config VIDEO_TUNER
> tristate
>
--
~Randy
next prev parent reply other threads:[~2014-08-26 19:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 17:25 [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available Mark Brown
2014-08-26 18:58 ` Randy Dunlap
2014-08-26 19:20 ` Randy Dunlap [this message]
2014-08-26 19:26 ` Mark Brown
2014-08-26 19:59 ` Randy Dunlap
2014-08-26 20:08 ` Randy Dunlap
2014-08-27 7:09 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2014-08-26 16:38 Mark Brown
2014-08-26 16:56 ` Hans Verkuil
2014-08-26 17:22 ` Mark Brown
2014-08-26 21:01 ` Hans Verkuil
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=53FCDE16.1000205@infradead.org \
--to=rdunlap@infradead.org \
--cc=broonie@kernel.org \
--cc=broonie@linaro.org \
--cc=hans.verkuil@cisco.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
--cc=pefoley2@pefoley.com \
/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).