Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753153AbbF0HQ2 (ORCPT ); Sat, 27 Jun 2015 03:16:28 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:33009 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbbF0HQT (ORCPT ); Sat, 27 Jun 2015 03:16:19 -0400 From: Alexander Kuleshov To: David Airlie , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Jammy Zhou , "monk.liu" , =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH] gpu/drm/amdgpu: Fix build when CONFIG_DEBUG_FS is not set Date: Sat, 27 Jun 2015 13:16:05 +0600 Message-Id: <1435389365-1594-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.4.4.410.gc71d752 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1368 Lines: 37 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 --- 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/