Re: [PATCH] printk: add CONFIG_PRINTK dependency for netconsole
From: Simon Horman
Date: Mon Feb 16 2026 - 04:48:07 EST
On Fri, Feb 13, 2026 at 08:44:00AM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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.
>
> Fixes: 60325c27d3cf ("printk: Add execution context (task name/CPU) to printk_info")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>