Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

taint: add reminder about updating docs and scripts

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

Link: https://lkml.kernel.org/r/20251015221626.1126156-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Cc: David Gow <davidgow@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Randy Dunlap and committed by
Andrew Morton
ed4bbe7e adc15829

+6
+6
kernel/panic.c
··· 638 638 /* 639 639 * TAINT_FORCED_RMMOD could be a per-module flag but the module 640 640 * is being removed anyway. 641 + * 642 + * NOTE: if you modify the taint_flags or TAINT_FLAGS_COUNT, 643 + * please also modify tools/debugging/kernel-chktaint and 644 + * Documentation/admin-guide/tainted-kernels.rst, including its 645 + * small shell script that prints the TAINT_FLAGS_COUNT bits of 646 + * /proc/sys/kernel/tainted. 641 647 */ 642 648 const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = { 643 649 TAINT_FLAG(PROPRIETARY_MODULE, 'P', 'G', true),