mbox series

[net-next,v5,0/2] netconsole: Enable compile time configuration

Message ID 20230810095452.3171106-1-leitao@debian.org (mailing list archive)
Headers show
Series netconsole: Enable compile time configuration | expand

Message

Breno Leitao Aug. 10, 2023, 9:54 a.m. UTC
Enable netconsole features to be set at compilation time. Create two
Kconfig options that allow users to set extended logs and release
prepending features at compilation time.

The first patch de-duplicates the initialization code, and the second
patch adds the support in the de-duplicated code, avoiding touching two
different functions with the same change.

  v1 -> v2:
	* Improvements in the Kconfig help section.

  v2 -> v3:
	* Honour the Kconfig settings when creating sysfs targets
	* Add "by default" in a Kconfig help.

  v3 -> v4:
	* Create an additional patch, de-duplicating the initialization
	  code for netconsole_target, and just patching it.

  v4 -> v5:
	* Remove complex code in the variable initialization.


Breno Leitao (2):
  netconsole: Create a allocation helper
  netconsole: Enable compile time configuration

 drivers/net/Kconfig      | 22 +++++++++++++++++++
 drivers/net/netconsole.c | 47 +++++++++++++++++++++++-----------------
 2 files changed, 49 insertions(+), 20 deletions(-)