From patchwork Tue Feb 12 21:20:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 219991 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 030C42C0085 for ; Wed, 13 Feb 2013 08:24:31 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5NHJ-0000cm-Fm; Tue, 12 Feb 2013 21:20:37 +0000 Received: from mail-vc0-f170.google.com ([209.85.220.170]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5NHF-0000by-PM for linux-arm-kernel@lists.infradead.org; Tue, 12 Feb 2013 21:20:34 +0000 Received: by mail-vc0-f170.google.com with SMTP id p16so352865vcq.29 for ; Tue, 12 Feb 2013 13:20:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=sQLDZEN8F8BDhf1kMbhr3JBCeRpATGyvKNg0vkWJ3Fo=; b=jj6GvUu8cv3189nT7NyhRIFf+VHJW/ewfqnDZYnus0B5QKwWtGYokOlyYbpSyAG5yE BKjnwcbbwFQUyB/3OI7oZonBmuNqQ+qljc87/F5tqA+7idzAV0eZzvsJYHsJ2vvkLxJk 141tKZBhGOY/BiMiwpHujaIt82UhLz0mDanq693OkydfCiNR6vpekTjDudrUpUMOIyrD LbwaiCP8qUY9Fb5P3toSt2KCZqyb6q+o+pxrqGoeTaxLfInV0OnUsSaaD+B6LZeWaYw5 dRSK184EhfmqJezSKIA1td1A0mDPdo6xgB1o9iMJVDjZH3L1XfmKqM4NESKIFscGsDuD kDJw== MIME-Version: 1.0 X-Received: by 10.220.152.76 with SMTP id f12mr26250052vcw.51.1360704030217; Tue, 12 Feb 2013 13:20:30 -0800 (PST) Received: by 10.58.210.3 with HTTP; Tue, 12 Feb 2013 13:20:30 -0800 (PST) In-Reply-To: References: Date: Tue, 12 Feb 2013 19:20:30 -0200 Message-ID: Subject: Re: Building DRM for i.MX fails with linux-next 20130212 From: Fabio Estevam To: Sascha Hauer , airlied@linux.ie, bhelgaas@google.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130212_162034_038682_DBF4DD35 X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.170 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux-arm-kernel@lists.infradead.org, =?UTF-8?B?TWFyZWsgVmHFoXV0?= , Shawn Guo , pawel.moll@arm.com, DRI mailing list X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Dave/Bjorn, On Tue, Feb 12, 2013 at 3:50 PM, Fabio Estevam wrote: > Hi, > > Building imx_v6_v7_defconfig on linux-next 20130212 gives me the > following build error: > > CC drivers/gpu/drm/drm_pci.o > drivers/gpu/drm/drm_pci.c: In function ‘drm_pcie_get_speed_cap_mask’: > drivers/gpu/drm/drm_pci.c:485:2: error: implicit declaration of > function ‘pcie_capability_read_dword’ > [-Werror=implicit-function-declaration] ,and it is caused by commit: commit dd66cc2e1f4765d0e6f39eb1e7d8d64d3f1cc522 Author: Bjorn Helgaas Date: Fri Jan 4 19:10:42 2013 +0000 drm/pci: Use PCI Express Capability accessors Use PCI Express Capability access functions to simplify this code a bit. For non-PCIe devices or pre-PCIe 3.0 devices that don't implement the Link Capabilities 2 register, pcie_capability_read_dword() reads a zero. Since we're only testing whether the bits we care about are set, there's no need to mask out the other bits we *don't* care about. Signed-off-by: Bjorn Helgaas Signed-off-by: Dave Airlie The patch below fixes the build on imx_v6_v7_defconfig (which has CONFIG_PCI unselected): struct pci_dev *root; @@ -503,3 +504,4 @@ int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *mask) return 0; } EXPORT_SYMBOL(drm_pcie_get_speed_cap_mask); +#endif If this looks good I can submit it formally. diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 86102a0..93ec85d 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -466,6 +466,7 @@ void drm_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver) } EXPORT_SYMBOL(drm_pci_exit); +#ifdef CONFIG_PCI int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *mask) {