netpoll: move netpoll_print_options to netconsole
authorBreno Leitao <leitao@debian.org>
Fri, 13 Jun 2025 11:31:33 +0000 (04:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Jun 2025 22:18:33 +0000 (15:18 -0700)
commitccc7edf0ada83d395b634506eff9616360a99b5a
treeb28b63f601a49f68aa3aef8f420983009b480a5c
parent5a34c9a8536511b6bd43d85bb0211077226c6fdb
netpoll: move netpoll_print_options to netconsole

Move netpoll_print_options() from net/core/netpoll.c to
drivers/net/netconsole.c and make it static. This function is only used
by netconsole, so there's no need to export it or keep it in the public
netpoll API.

This reduces the netpoll API surface and improves code locality
by keeping netconsole-specific functionality within the netconsole
driver.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250613-rework-v3-4-0752bf2e6912@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c
include/linux/netpoll.h
net/core/netpoll.c