From patchwork Tue Feb 12 17:50:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 219926 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 204E02C0085 for ; Wed, 13 Feb 2013 04:53:45 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5Jzj-0008SR-Gn; Tue, 12 Feb 2013 17:50:15 +0000 Received: from mail-vb0-f54.google.com ([209.85.212.54]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5Jzh-0008QW-6d for linux-arm-kernel@lists.infradead.org; Tue, 12 Feb 2013 17:50:13 +0000 Received: by mail-vb0-f54.google.com with SMTP id l1so217409vba.41 for ; Tue, 12 Feb 2013 09:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=s1clEQ1oZ71rsbNS6CpofXQMhaBlqKEqpMKaeOnop/A=; b=gSVfpn5Lf7K0TEXdJeCEzV/GiUP5XVZqd8x8xHBFZqMKhoyiIrz0TsMiZlzaNmcG0w XZlUyRiZIniUFVVjmORl6NS1O+f1Df87kMuJ1YyxusNFtmuQS02Ipwp9IDsL2vDTTzp4 NOq2fQmHfUg/e0KxyS4T5crSF9HignYO+Rv70bKAxSOPsckVfiyIt2X0hYALZWO95V+7 AGPa4joLPAjrMQNO8wyh2lBjJdB4cfWPR+WCrDzfYggRSrK+6mgV6NF7JI0wdUTRqbp4 VbelBRwt/LuVzhm/SKagXopKi/GzEtsjQTXn1Knn8UI5ZQrKl/6buXu4aSv/QtQOHNQe MhoQ== MIME-Version: 1.0 X-Received: by 10.52.92.225 with SMTP id cp1mr21616643vdb.41.1360691408015; Tue, 12 Feb 2013 09:50:08 -0800 (PST) Received: by 10.58.210.3 with HTTP; Tue, 12 Feb 2013 09:50:07 -0800 (PST) Date: Tue, 12 Feb 2013 15:50:07 -0200 Message-ID: Subject: Building DRM for i.MX fails with linux-next 20130212 From: Fabio Estevam To: Sascha Hauer , airlied@linux.ie X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130212_125013_274265_D795DE8A X-CRM114-Status: UNSURE ( 8.29 ) X-CRM114-Notice: Please train this message. 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.212.54 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 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] Then I tried to fix it as follows: ,which caused another issue: GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o drivers/built-in.o: In function `drm_rmmap_locked': clk-vexpress-osc.c:(.text+0x4f370): undefined reference to `__drm_pci_free' drivers/built-in.o: In function `drm_addmap_core': clk-vexpress-osc.c:(.text+0x4f4f4): undefined reference to `drm_pci_alloc' drivers/built-in.o: In function `drm_cleanup_buf_error': clk-vexpress-osc.c:(.text+0x4f920): undefined reference to `drm_pci_free' drivers/built-in.o: In function `drm_addbufs_pci': clk-vexpress-osc.c:(.text+0x4fc00): undefined reference to `drm_pci_alloc' drivers/built-in.o: In function `drm_dma_takedown': clk-vexpress-osc.c:(.text+0x51c84): undefined reference to `drm_pci_free' drivers/built-in.o: In function `drm_vm_shm_close': clk-vexpress-osc.c:(.text+0x57d60): undefined reference to `__drm_pci_free' make: *** [vmlinux] Error 1 Any ideas or suggestions? Thanks, Fabio Estevam diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index 6f58c81..6a08165 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile @@ -8,7 +8,7 @@ drm-y := drm_auth.o drm_buffer.o drm_bufs.o drm_cache.o \ drm_context.o drm_dma.o \ drm_drv.o drm_fops.o drm_gem.o drm_ioctl.o drm_irq.o \ drm_lock.o drm_memory.o drm_proc.o drm_stub.o drm_vm.o \ - drm_agpsupport.o drm_scatter.o drm_pci.o \ + drm_agpsupport.o drm_scatter.o \ drm_platform.o drm_sysfs.o drm_hashtab.o drm_mm.o \ drm_crtc.o drm_modes.o drm_edid.o \ drm_info.o drm_debugfs.o drm_encoder_slave.o \ @@ -16,7 +16,7 @@ drm-y := drm_auth.o drm_buffer.o drm_bufs.o drm_cache.o \ drm-$(CONFIG_COMPAT) += drm_ioc32.o drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o -drm-$(CONFIG_PCI) += ati_pcigart.o +drm-$(CONFIG_PCI) += ati_pcigart.o drm_pci.o drm-usb-y := drm_usb.o