printk: add CONFIG_PRINTK dependency for netconsole
Subsystems (2)
PATCH 1/1 printk: add CONFIG_PRINTK dependency for netconsole
From: Arnd Bergmann <[email protected]>
The 'select PRINTK_EXECUTION_CTX' line now causes a harmless warning when NETCONSOLE_DYNAMIC is enabled but PRINTK is not:
WARNING: unmet direct dependencies detected for PRINTK_EXECUTION_CTX
Depends on [n]: PRINTK [=n]
Selected by [y]:
- NETCONSOLE_DYNAMIC [=y] && NETDEVICES [=y] && NET_CORE [=y] && NETCONSOLE [=y] && SYSFS [=y] && CONFIGFS_FS [=y] && (NETCONSOLE [=y]!=y [=y] || CONFIGFS_FS [=y]!=m [=m])
In that configuration, the netconsole driver is useless anyway, so avoid this with an added dependency that prevents CONFIG_NETCONSOLE to be enabled without CONFIG_PRINTK.
--- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/Kconfig +1 -0
@@ -333,6 +333,7 @@ config MACSEC config NETCONSOLE tristate "Network console logging support" + depends on PRINTK help If you want to log kernel messages over the network, enable this. See <file:Documentation/networking/netconsole.rst> for details.
Signature · 1 line
2.39.5
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The 'select
PRINTK_EXECUTION_CTX' line now causes a harmless warning whenNETCONSOLE_DYNAMICis enabled but PRINTK is not:WARNING: unmet direct dependencies detected for
PRINTK_EXECUTION_CTX
Depends on [n]: PRINTK [=n]
Selected by [y]:
-NETCONSOLE_DYNAMIC[=y] && NETDEVICES [=y] &&NET_CORE[=y] && NETCONSOLE [=y] && SYSFS [=y] &&CONFIGFS_FS[=y] && (NETCONSOLE [=y]!=y [=y] ||CONFIGFS_FS[=y]!=m [=m])
Quoted 6 lines
In that configuration, the netconsole driver is useless anyway, so avoid this with an added dependency that prevents
CONFIG_NETCONSOLEto be enabled withoutCONFIG_PRINTK.Fixes 60325c27d3cf ("printk: Add execution context (task name/CPU) to printk_info")Signed-off-by Arnd Bergmann <[email protected]>
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 11 lines · On Fri, 13 Feb 2026 08:44:00 +0100 you wrote:
From: Arnd Bergmann <[email protected]>
The 'select
PRINTK_EXECUTION_CTX' line now causes a harmless warning whenNETCONSOLE_DYNAMICis enabled but PRINTK is not:WARNING: unmet direct dependencies detected for
PRINTK_EXECUTION_CTX
Depends on [n]: PRINTK [=n]
Selected by [y]:
-NETCONSOLE_DYNAMIC[=y] && NETDEVICES [=y] &&NET_CORE[=y] && NETCONSOLE [=y] && SYSFS [=y] &&CONFIGFS_FS[=y] && (NETCONSOLE [=y]!=y [=y] ||CONFIGFS_FS[=y]!=m [=m])[...]
Here is the summary with links:
- printk: add CONFIG_PRINTK dependency for netconsole
https://git.kernel.org/netdev/net/c/636fd32d4015
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html