Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbbGNFMB (ORCPT ); Tue, 14 Jul 2015 01:12:01 -0400 Received: from mail-yk0-f169.google.com ([209.85.160.169]:35959 "EHLO mail-yk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628AbbGNFL7 (ORCPT ); Tue, 14 Jul 2015 01:11:59 -0400 MIME-Version: 1.0 In-Reply-To: <1436785437-3457-1-git-send-email-kuleshovmail@gmail.com> References: <1436785437-3457-1-git-send-email-kuleshovmail@gmail.com> Date: Tue, 14 Jul 2015 01:11:59 -0400 Message-ID: Subject: Re: [PATCH] gpu/drm/amdgpu: Include only if CONFIG_DEBUG_FS is set From: Alex Deucher To: Alexander Kuleshov Cc: David Airlie , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , Jammy Zhou , yanyang1 , =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= , Maninder Singh , LKML , Maling list - DRI developers Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1567 Lines: 50 On Mon, Jul 13, 2015 at 7:03 AM, Alexander Kuleshov wrote: > We have no need to include if the CONFIG_DEBUG_FS option > is not set. > This patch breaks the build with debugfs enabled. Alex > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel -- 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/