[PATCH] taint: add reminder about updating docs and scripts

Randy Dunlap posted 1 patch 2 months ago
kernel/panic.c |    6 ++++++
1 file changed, 6 insertions(+)
[PATCH] taint: add reminder about updating docs and scripts
Posted by Randy Dunlap 2 months ago
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),
Re: [PATCH] taint: add reminder about updating docs and scripts
Posted by David Gow 2 months ago
On Thu, 16 Oct 2025 at 06:16, Randy Dunlap <rdunlap@infradead.org> wrote:
>
> 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(+)

Reviewed-by: David Gow <davidgow@google.com>

Cheers,
-- David
Re: [PATCH] taint: add reminder about updating docs and scripts
Posted by Jason Gunthorpe 2 months ago
On Wed, Oct 15, 2025 at 03:16:26PM -0700, Randy Dunlap wrote:
> 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(+)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason