Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752488AbbF2Hwy (ORCPT ); Mon, 29 Jun 2015 03:52:54 -0400 Received: from pegasos-out.vodafone.de ([80.84.1.38]:45760 "EHLO pegasos-out.vodafone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752938AbbF2Hwq (ORCPT ); Mon, 29 Jun 2015 03:52:46 -0400 X-Spam-Flag: NO X-Spam-Score: 0.201 Authentication-Results: rohrpostix1.prod.vfnet.de (amavisd-new); dkim=pass header.i=@vodafone.de X-DKIM: OpenDKIM Filter v2.6.8 pegasos-out.vodafone.de F0C3B26069E Message-ID: <5590F946.8040507@vodafone.de> Date: Mon, 29 Jun 2015 09:52:38 +0200 From: =?UTF-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Alexander Kuleshov , David Airlie , =?UTF-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= , Alex Deucher , Jammy Zhou , "monk.liu" , =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= CC: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] gpu/drm/amdgpu: Fix build when CONFIG_DEBUG_FS is not set References: <1435389365-1594-1-git-send-email-kuleshovmail@gmail.com> In-Reply-To: <1435389365-1594-1-git-send-email-kuleshovmail@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1709 Lines: 46 On 27.06.2015 09:16, Alexander Kuleshov wrote: > 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 Reviewed-by: Christian König > --- > 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 > > _______________________________________________ > 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/