public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Patch to include/linux/kernel.h breaks 3rd party modules.
@ 2016-12-21 20:42 Valdis Kletnieks
  2016-12-21 21:23 ` Jessica Yu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Valdis Kletnieks @ 2016-12-21 20:42 UTC (permalink / raw)
  To: Petr Mladek, Jessica Yu; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

Yes, I know that usually out-of-tree modules are on their own.
However, this one may require a rethink..

(Sorry for not catching this sooner, I hadn't tried to deal with the
affected module since this patch hit linux-next in next-20161128)

commit 7fd8329ba502ef76dd91db561c7aed696b2c7720
Author: Petr Mladek <pmladek@suse.com>
Date:   Wed Sep 21 13:47:22 2016 +0200

    taint/module: Clean up global and module taint flags handling

Contains this chunk:

--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -506,6 +506,15 @@ extern enum system_states {
 #define TAINT_UNSIGNED_MODULE          13
 #define TAINT_SOFTLOCKUP               14
 #define TAINT_LIVEPATCH                        15
+#define TAINT_FLAGS_COUNT              16
+
+struct taint_flag {
+       char true;      /* character printed when tainted */
+       char false;     /* character printed when not tainted */
+       bool module;    /* also show as a per-module taint flag */
+};

and hilarity ensues when an out-of-tree module has this:

# ifndef true
#  define true  (1)
# endif
# ifndef false
#  define false (0)
# endif

My proposed fix: change true/false to tainted/untainted.  If this
is agreeable, I'll code and submit the fix.



[-- Attachment #2: Type: application/pgp-signature, Size: 484 bytes --]

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

end of thread, other threads:[~2016-12-22 10:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-21 20:42 Patch to include/linux/kernel.h breaks 3rd party modules Valdis Kletnieks
2016-12-21 21:23 ` Jessica Yu
2016-12-22  0:53 ` Al Viro
2016-12-22  6:29 ` Christoph Hellwig
2016-12-22 10:40 ` Petr Mladek

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