[PATCH] gpu/drm/amdgpu: Include <linux/debugfs.h> only if CONFIG_DEBUG_FS is set

Christian König christian.koenig at amd.com
Tue Jul 14 01:23:30 PDT 2015


On 14.07.2015 10:18, Alexander Kuleshov wrote:
> Hello Alex,
>
> 2015-07-14 11:11 GMT+06:00 Alex Deucher <alexdeucher at gmail.com>:
>> This patch breaks the build with debugfs enabled.
>>
> I've tried to built with CONFIG_DEBUG_FS={y/n} and it builds
> successfully. Did I miss something?
> Maybe I need to enable/disable anything else CONFIG_*?

Price question is why do you want to conditionally include this header 
in the first place?

If the kernel isn't build with CONFIG_DEBUG_FS we shouldn't use the 
defines, but otherwise they don't seem to hurt.

Regards,
Christian.

>
> Thank you.



More information about the dri-devel mailing list