[PATCH 02/26] xlat: Add values for MODULE_INIT_* constants

Eugene Syromyatnikov evgsyr at gmail.com
Mon Oct 24 02:59:55 UTC 2016


* bjm.c (MODULE_INIT_IGNORE_MODVERSIONS, MODULE_INIT_IGNORE_VERMAGIC):
Remove.
* xlat/module_init_flags.in: Add values for
MODULE_INIT_IGNORE_MODVERSIONS and MODULE_INIT_IGNORE_VERMAGIC records.
---
 bjm.c                     |    3 ---
 xlat/module_init_flags.in |    4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/bjm.c b/bjm.c
index d7e241e..e77b73d 100644
--- a/bjm.c
+++ b/bjm.c
@@ -51,9 +51,6 @@ SYS_FUNC(init_module)
 	return RVAL_DECODED;
 }
 
-#define MODULE_INIT_IGNORE_MODVERSIONS  1
-#define MODULE_INIT_IGNORE_VERMAGIC     2
-
 #include "xlat/module_init_flags.h"
 
 SYS_FUNC(finit_module)
diff --git a/xlat/module_init_flags.in b/xlat/module_init_flags.in
index e672a59..1547189 100644
--- a/xlat/module_init_flags.in
+++ b/xlat/module_init_flags.in
@@ -1,2 +1,2 @@
-MODULE_INIT_IGNORE_MODVERSIONS
-MODULE_INIT_IGNORE_VERMAGIC
+MODULE_INIT_IGNORE_MODVERSIONS (1 << 0)
+MODULE_INIT_IGNORE_VERMAGIC    (1 << 1)
-- 
1.7.10.4





More information about the Strace-devel mailing list