From patchwork Tue Aug 26 17:25:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 36043 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8B36020551 for ; Tue, 26 Aug 2014 17:25:41 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id s7sf43552554qap.2 for ; Tue, 26 Aug 2014 10:25:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:date :message-id:subject:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=w1Hon9P7HEhg6rcju9eAOBCOLdQI9pg6BbzLqETe6Qg=; b=JxAbbDwJxu6MAiDJ6pr7V7F746070fxgrDRxYXhAtNUuARk2CU7W+3MiyPnXw7sF9F u1yV0awS2DyrKmCMNxmKVgFC4Mlw4+D31fQkNwJzpTKwqLyskFiRUCKBGwkT5g+xxW4Q hqFxhQc4JH6nT3c9nF8rlOql9hFK5bv4pmYtLjTl7QcOzri4+d8Nv8qSk7ZlVXLDOt6O ZPog0+o6fE3JfOZg8gPiC4Ln72oBBNmOIupO700uGCTLySJjYAmWkWmxQBerSA3K8jVa cyILYnqu63iS8cq1bDUQLMZmQ6ATOagU8aA+qBeD5aslOxZcZA49AmqIeSvqVDn2QyCe VdwQ== X-Gm-Message-State: ALoCoQlepgMla01Bc1ffJk/qmnHbaVF5P8f3NK8SoUPx09SYbi5n7gHwurGIcQNcPLa+GEUUPG+i X-Received: by 10.236.105.197 with SMTP id k45mr5837049yhg.19.1409073941404; Tue, 26 Aug 2014 10:25:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.6 with SMTP id s6ls2628616qgd.22.gmail; Tue, 26 Aug 2014 10:25:41 -0700 (PDT) X-Received: by 10.236.202.40 with SMTP id c28mr3515467yho.120.1409073941302; Tue, 26 Aug 2014 10:25:41 -0700 (PDT) Received: from mail-yh0-f48.google.com (mail-yh0-f48.google.com [209.85.213.48]) by mx.google.com with ESMTPS id 3si3021744yhw.113.2014.08.26.10.25.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 10:25:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.213.48 as permitted sender) client-ip=209.85.213.48; Received: by mail-yh0-f48.google.com with SMTP id i57so12066461yha.7 for ; Tue, 26 Aug 2014 10:25:41 -0700 (PDT) X-Received: by 10.220.59.138 with SMTP id l10mr1468991vch.59.1409073941222; Tue, 26 Aug 2014 10:25:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp216776vcb; Tue, 26 Aug 2014 10:25:40 -0700 (PDT) X-Received: by 10.70.137.1 with SMTP id qe1mr15207605pdb.159.1409073940370; Tue, 26 Aug 2014 10:25:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rt2si5588771pbc.18.2014.08.26.10.25.40 for ; Tue, 26 Aug 2014 10:25:40 -0700 (PDT) Received-SPF: none (google.com: linux-media-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752626AbaHZRZi (ORCPT + 1 other); Tue, 26 Aug 2014 13:25:38 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:34391 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435AbaHZRZh (ORCPT ); Tue, 26 Aug 2014 13:25:37 -0400 Received: from cpc11-sgyl31-2-0-cust672.sgyl.cable.virginm.net ([94.175.94.161] helo=debutante) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XMKUl-0004fD-Q7; Tue, 26 Aug 2014 17:25:24 +0000 Received: from broonie by debutante with local (Exim 4.84) (envelope-from ) id 1XMKUi-00077f-Tj; Tue, 26 Aug 2014 18:25:20 +0100 From: Mark Brown To: Peter Foley , Randy Dunlap , Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-doc@vger.kernel.org, linaro-kernel@lists.linaro.org, Mark Brown Date: Tue, 26 Aug 2014 18:25:19 +0100 Message-Id: <1409073919-27336-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.1.0.rc1 X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mezzanine.sirena.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Subject: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-media-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: broonie@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.213.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mark Brown 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 --- 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 + ---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