[Intel-gfx] [PATCH 11/20] drm/i915/fbc: Move FBC debugfs stuff into intel_fbc.c

Jani Nikula jani.nikula at linux.intel.com
Fri Dec 3 10:47:37 UTC 2021


On Fri, 03 Dec 2021, Ville Syrjälä <ville.syrjala at linux.intel.com> wrote:
> On Fri, Dec 03, 2021 at 11:55:43AM +0200, Jani Nikula wrote:
>> I think an insteresting question is, with all the debugfs stuff being
>> static in intel_fbc.c, is the compiler actually smart enough to optimize
>> the static code and data away when CONFIG_DEBUG_FS=n, even without
>> #ifdefs? Or is that something you're already claiming above?
>
> Yes it all disappeared from the binary when I tried it.
> Only thing left was an empty intel_fbc_debugfs_register().

\o/

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-gfx mailing list