Re: [PATCH] staging: axis-fifo: Fix three real issues
From: Greg Kroah-Hartman
Date: Fri Oct 23 2026 - 02:14:24 EST
On Thu, Oct 22, 2026 at 06:53:49PM -0300, Breno Rodrigues Alves wrote:
> Fix three issues in the Xilinx AXI-Stream FIFO driver:
>
> 1. axis_fifo_debugfs_init() did not check the return value of
> debugfs_create_dir(). When CONFIG_DEBUG_FS=n, the function
> returns ERR_PTR(-ENODEV); passing it as a parent to
> debugfs_create_file() triggers a WARN in the kernel debugfs
> core. Bail out early if the directory was not created.
This is not a real issue, you should NEVER be checking the return value
of any debugfs file, and no WARN will ever fire (if so, please show me
where as that should not be happening.)
What tool told you this? Please fix it.
thanks,
greg k-h