Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1173298

[PATCH] gpu/drm/amdgpu: Fix build when CONFIG_DEBUG_FS is not set

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Alexander Kuleshov <kuleshovmail@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] gpu/drm/amdgpu: Fix build when CONFIG_DEBUG_FS is not set
Date Sat, 27 Jun 2015 09:20:01 +0200
Message-ID <pFSz7-7c4-1@gated-at.bofh.it> (permalink)
X-Original-To David Airlie <airlied@linux.ie>, Christian König <christian.koenig@amd.com>, Alex Deucher <alexander.deucher@amd.com>, Jammy Zhou <Jammy.Zhou@amd.com>, "monk.liu" <monk.liu@amd.com>, Marek Olšák <marek.olsak@amd.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=m398A2TRN315U5BloAfFwXss/c/EDI7N7ujEl9gh2QQ=; b=qXycX9mpb4sqrneKTTaYttFrc+RcB3Ytyrv70inHuOj+h3+qaGBCnMltVVb3yApYwh mqwFuqLi8Tzk7pL+u6T0Xi3sr0DteGMIoAQ5cHwl8Ad8ReDbKgX9Ouf9E9RypEcFXeDC VLtDw/HUcGmWkB1tneeJgIiikx/8Pvf6zXyXDrntZ4Qh8JEjUGJgsUIK+6NOy43Z9WBy nShkEuT5wkU9pzM49/JxMqm2EYxdRac6/4Ljx/xu03quifVuoBh4fRdCdK7PoqPLxOiF xJIuj/CuDodj1thNmRdJh01uxHyAb+YWucXaVtGJK2s8s3Rjwzp8Gg1BJmZ2L/4/r61A U/Vg==
X-Received by 10.152.36.102 with SMTP id p6mr4950253laj.19.1435389378176; Sat, 27 Jun 2015 00:16:18 -0700 (PDT)
X-Mailer git-send-email 2.4.4.410.gc71d752
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 37
Organization linux.* mail to news gateway
X-Original-Cc dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alexander Kuleshov <kuleshovmail@gmail.com>
X-Original-Date Sat, 27 Jun 2015 13:16:05 +0600
X-Original-Message-ID <1435389365-1594-1-git-send-email-kuleshovmail@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1173298

Show key headers only | View raw


If the CONFIG_DEBUG_FS is not selected, compilation of the
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c provides two warnings that
amdgpu_debugfs_regs_init and amdgpu_debugfs_regs_cleanup are used but
never defined. And as result:

ERROR: "amdgpu_debugfs_regs_cleanup" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "amdgpu_debugfs_regs_init" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
            ^

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index fec487d..6896798 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2000,5 +2000,10 @@ int amdgpu_debugfs_init(struct drm_minor *minor)
 void amdgpu_debugfs_cleanup(struct drm_minor *minor)
 {
 }
+#else
+static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev)
+{
+	return 0;
+}
+static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev) { }
 #endif
--
2.4.4.410.gc71d752

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] gpu/drm/amdgpu: Fix build when CONFIG_DEBUG_FS is not set Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-06-27 09:20 +0200

csiph-web