From patchwork Sun Apr 28 21:09:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rientjes X-Patchwork-Id: 2498421 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 51407DF2E5 for ; Sun, 28 Apr 2013 21:09:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 00ED6E5F1B for ; Sun, 28 Apr 2013 14:09:38 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by gabe.freedesktop.org (Postfix) with ESMTP id 00A37E5BF0 for ; Sun, 28 Apr 2013 14:09:26 -0700 (PDT) Received: by mail-pd0-f175.google.com with SMTP id g10so419344pdj.34 for ; Sun, 28 Apr 2013 14:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:x-x-sender:to:cc:subject:message-id:user-agent :mime-version:content-type; bh=uM8a6W1Ll1pavv97siC0zmQdAomWEoT/8L+sZnVS248=; b=jNhaUAo8UuEFB3Qcwfyrth/P/8mr3UHXIR3dZpPziVY7PDvrll6i1+irCFBf9L01Ii Dld3gvy+OjKpOgwGHnOg57FbKO3WmQINF6EyjJHd31mxCrUTOD+dx4s8XDvEEggrDdUL /I34kj7W07cJvHJlo4hNsdnn0iI91+0DJn50ZZVzOUjIIIuG+t0w6CpvlrSzCMUrfEpw R0FILMtvsw+82aglI9IqTGSXG6aowpTxgAGaaIgwEe6L7USmyQGP9gy14w4yROixnzyS PHh+Lm645xoGWGILlGmH7G/7n41DQM7760gYscz/3NuG634S4Amw+wQqKXOk4MZ3GHGr tAGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:x-x-sender:to:cc:subject:message-id:user-agent :mime-version:content-type:x-gm-message-state; bh=uM8a6W1Ll1pavv97siC0zmQdAomWEoT/8L+sZnVS248=; b=Fr4TUF9qNdc7iRSvZIKEzm7UtAvk66QDQ8SA0hmW9AHf+wKVI54tDt1tYjFyw+0TAx qI01/SmBh2itFcqnuHLJVs4Mv1EhRA+NCafi1caD2dvccWr8oQmnqZOWyZ/sBMpfkPjE 0QDMyMQUNa0yYJa1atc/YM6KjZc5rb8yma8J8alqdUFLwVTimbAo+9YLEg0CzU5//k+e Ec2tdqN86fApgGqB9gLcmXMGzfq5itGc3I1t0e0gK1x2r3NCjRV9QNcz2PlqXZWCjM8X q1B0kCoQrF2WS4rSKPldWu3/lAMbCFSLzajMhFkQE8grvqPbaxzoaCG7Qc2eXLs7Fc7M twkg== X-Received: by 10.66.248.68 with SMTP id yk4mr34682961pac.137.1367183366883; Sun, 28 Apr 2013 14:09:26 -0700 (PDT) Received: from [2620:0:1008:1101:be30:5bff:fed8:5e64] ([2620:0:1008:1101:be30:5bff:fed8:5e64]) by mx.google.com with ESMTPSA id ih1sm21028056pbb.44.2013.04.28.14.09.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Apr 2013 14:09:26 -0700 (PDT) Date: Sun, 28 Apr 2013 14:09:25 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: David Airlie Subject: [patch] drivers, drm: fix qxl build error when debugfs is disabled Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnf21UAYFAXs0PK0RD59jxrziOzO16M/BVRJLPWftxjmOoFg6FxKg0qeSUeZ/sUvGHSG1n2n5VtchSpiOsJBWRHGgj78yJowkg1RAuZcppmtRD/P61Apef57JE9FLxIed7Nz6UkSSzhNhvxgSOTIdF9yFbmnf4F4Slf3yK/qRa4zi8wPZ4MxlrApfiGdM+fMjyjL7cSV3/v8RyHAqyXbEiKVzoCFg== Cc: Dave Airlie , Alon Levy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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 Fix build error when CONFIG_DEBUG_FS is disabled: drivers/gpu/drm/qxl/qxl_debugfs.c: In function 'qxl_debugfs_init': drivers/gpu/drm/qxl/qxl_debugfs.c:76:2: error: implicit declaration of function 'drm_debugfs_create_files' drivers/gpu/drm/qxl/qxl_debugfs.c: In function 'qxl_debugfs_takedown': drivers/gpu/drm/qxl/qxl_debugfs.c:84:2: error: implicit declaration of function 'drm_debugfs_remove_files' Signed-off-by: David Rientjes --- drivers/gpu/drm/qxl/qxl_debugfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_debugfs.c b/drivers/gpu/drm/qxl/qxl_debugfs.c --- a/drivers/gpu/drm/qxl/qxl_debugfs.c +++ b/drivers/gpu/drm/qxl/qxl_debugfs.c @@ -35,6 +35,7 @@ #include "qxl_object.h" +#if defined(CONFIG_DEBUG_FS) static int qxl_debugfs_irq_received(struct seq_file *m, void *data) { @@ -69,20 +70,25 @@ static struct drm_info_list qxl_debugfs_list[] = { { "qxl_buffers", qxl_debugfs_buffers_info, 0, NULL }, }; #define QXL_DEBUGFS_ENTRIES ARRAY_SIZE(qxl_debugfs_list) +#endif int qxl_debugfs_init(struct drm_minor *minor) { +#if defined(CONFIG_DEBUG_FS) drm_debugfs_create_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES, minor->debugfs_root, minor); +#endif return 0; } void qxl_debugfs_takedown(struct drm_minor *minor) { +#if defined(CONFIG_DEBUG_FS) drm_debugfs_remove_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES, minor); +#endif } int qxl_debugfs_add_files(struct qxl_device *qdev,