]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
netconsole: add target_state enum
authorBreno Leitao <leitao@debian.org>
Sun, 18 Jan 2026 11:00:21 +0000 (11:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:09:10 +0000 (19:09 -0800)
Introduces a enum to track netconsole target state which is going to
replace the enabled boolean.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Andre Carvalho <asantostc@gmail.com>
Tested-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260118-netcons-retrigger-v11-1-4de36aebcf48@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c

index 9cb4dfc242f5f797d89e546675e161b737bd0dee..e2ec09f238a00df6a8b8a2bbc18ff60317fac336 100644 (file)
@@ -119,6 +119,11 @@ enum sysdata_feature {
        MAX_SYSDATA_ITEMS = 4,
 };
 
+enum target_state {
+       STATE_DISABLED,
+       STATE_ENABLED,
+};
+
 /**
  * struct netconsole_target - Represents a configured netconsole target.
  * @list:      Links this target into the target_list.