Re: Re: [PATCH v2] media:v4l2-async:add debugfs under CONFIG_DEBUG_FS
From: Sakari Ailus
Date: Wed Mar 11 2026 - 05:15:26 EST
On Wed, Mar 11, 2026 at 04:58:26PM +0800, luo.liu.linux wrote:
>
> Hi Sakari,
>
> Thank you very much for your reply and reminder.
>
> I think two latter #if's is useful,While modern compilers (such as GCC and Clang) possess "Dead Code Elimination" (DCE) capabilities and can optimize away function calls when CONFIG_DEBUG_FS is disabled,
>
> explicitly wrapping the relevant code blocks with #ifdef CONFIG_DEBUG_FS remains a standard and necessary practice in Linux kernel development.
Just fix it, please?
--
Sakari Ailus