]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libie: depend on DEBUG_FS when building LIBIE_FWLOG
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tue, 4 Nov 2025 17:23:31 +0000 (09:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Nov 2025 01:38:03 +0000 (17:38 -0800)
commitb1d16f7c0063b7209fd3251ce40c77d37b477b83
treeddb200bd271b2ee3b8e92254c9c35f5310142980
parent327c20c21d80e0d87834b392d83ae73c955ad8ff
libie: depend on DEBUG_FS when building LIBIE_FWLOG

LIBIE_FWLOG is unusable without DEBUG_FS. Mark it in Kconfig.

Fix build error on ixgbe when DEBUG_FS is not set. To not add another
layer of #if IS_ENABLED(LIBIE_FWLOG) in ixgbe fwlog code define debugfs
dentry even when DEBUG_FS isn't enabled. In this case the dummy
functions of LIBIE_FWLOG will be used, so not initialized dentry isn't a
problem.

Fixes: 641585bc978e ("ixgbe: fwlog support for e610")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/lkml/f594c621-f9e1-49f2-af31-23fbcb176058@roeck-us.net/
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20251104172333.752445-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/Kconfig
drivers/net/ethernet/intel/ixgbe/ixgbe.h
include/linux/net/intel/libie/fwlog.h