The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] taint: add reminder about updating docs and scripts
@ 2025-10-15 22:16 Randy Dunlap
  2025-10-16 16:30 ` Jason Gunthorpe
  2025-10-18  7:21 ` David Gow
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2025-10-15 22:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Jason Gunthorpe, Andrew Morton, David Gow,
	Jonathan Corbet, linux-doc

Sometimes people update taint-related pieces of the kernel without
updating the supporting documentation or scripts. Add a reminder
to do this.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Gow <davidgow@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
 kernel/panic.c |    6 ++++++
 1 file changed, 6 insertions(+)

--- linux-next-20251014.orig/kernel/panic.c
+++ linux-next-20251014/kernel/panic.c
@@ -638,6 +638,12 @@ EXPORT_SYMBOL(panic);
 /*
  * TAINT_FORCED_RMMOD could be a per-module flag but the module
  * is being removed anyway.
+ *
+ * NOTE: if you modify the taint_flags or TAINT_FLAGS_COUNT,
+ * please also modify tools/debugging/kernel-chktaint and
+ * Documentation/admin-guide/tainted-kernels.rst, including its
+ * small shell script that prints the TAINT_FLAGS_COUNT bits of
+ * /proc/sys/kernel/tainted.
  */
 const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = {
 	TAINT_FLAG(PROPRIETARY_MODULE,		'P', 'G', true),

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-18  7:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15 22:16 [PATCH] taint: add reminder about updating docs and scripts Randy Dunlap
2025-10-16 16:30 ` Jason Gunthorpe
2025-10-18  7:21 ` David Gow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox