l30013671 / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
94b6bd
patch-i686-taintflags-7_9.patch
94b6bd
  Submitted by Pablo Greco <pablo@fliagreco.com.ar>
94b6bd
94b6bd
--- a/include/linux/kernel.h	2020-08-18 15:24:23.000000000 -0300
94b6bd
+++ b/include/linux/kernel.h	2020-10-01 15:34:52.981717751 -0300
94b6bd
@@ -540,7 +540,11 @@ extern enum system_states {
94b6bd
 #define TAINT_RESERVED30		30
94b6bd
 #define TAINT_RESERVED31		31
94b6bd
 #define TAINT_FLAGS_COUNT		32
94b6bd
+#ifdef CONFIG_X86_32
94b6bd
+#define TAINT_FLAGS_MAX			((unsigned long)((1ULL << TAINT_FLAGS_COUNT) - 1))
94b6bd
+#else
94b6bd
 #define TAINT_FLAGS_MAX			((1UL << TAINT_FLAGS_COUNT) - 1)
94b6bd
+#endif
94b6bd
 
94b6bd
 struct taint_flag {
94b6bd
 	char c_true;	/* character printed when tainted */