Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751920AbbGMLEI (ORCPT ); Mon, 13 Jul 2015 07:04:08 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:35460 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555AbbGMLEG (ORCPT ); Mon, 13 Jul 2015 07:04:06 -0400 From: Alexander Kuleshov To: David Airlie , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Jammy Zhou , yanyang1 , =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= , Maninder Singh Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH] gpu/drm/amdgpu: Include only if CONFIG_DEBUG_FS is set Date: Mon, 13 Jul 2015 17:03:57 +0600 Message-Id: <1436785437-3457-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.5.0-rc1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1195 Lines: 39 We have no need to include if the CONFIG_DEBUG_FS option is not set. Signed-off-by: Alexander Kuleshov --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index ba46be3..23dbfa4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -27,7 +27,6 @@ */ #include #include -#include #include #include #include @@ -44,2 +43,2 @@ #include "vi.h" #include "bif/bif_4_1_d.h" +#ifdef CONFIG_DEBUG_FS +#include +#endif + static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev); static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev); -- 2.5.0-rc1 -- 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/