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: 2130271 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id DE8143FD4F for ; Tue, 12 Feb 2013 17:50:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B1AFAE639C for ; Tue, 12 Feb 2013 09:50:20 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by gabe.freedesktop.org (Postfix) with ESMTP id CA473E5C60 for ; Tue, 12 Feb 2013 09:50:08 -0800 (PST) Received: by mail-vc0-f173.google.com with SMTP id fy7so214375vcb.32 for ; Tue, 12 Feb 2013 09:50:08 -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 Cc: linux-arm-kernel@lists.infradead.org, =?UTF-8?B?TWFyZWsgVmHFoXV0?= , pawel.moll@arm.com, DRI mailing list X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.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