]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix build issues in 4.19 patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2019 13:49:52 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2019 13:50:08 +0000 (15:50 +0200)
queue-4.19/modules-fix-compile-error-if-don-t-have-strict-module-rwx.patch

index 1b04ae94cd877a3e2f3acbfec0160f6b93f3f44d..16fe786e52e9cbcb077ef4eb304208cf0533d53e 100644 (file)
@@ -23,8 +23,8 @@ Signed-off-by: Jessica Yu <jeyu@kernel.org>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
- kernel/module.c |   1++++++++---
- 1 file changed, 8 insertions(+), 3 deletions(-)
+ kernel/module.c |   13 ++++++++++---
+ 1 file changed, 10 insertions(+), 3 deletions(-)
 
 --- a/kernel/module.c
 +++ b/kernel/module.c
@@ -45,7 +45,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  static void frob_rodata(const struct module_layout *layout,
                        int (*set_memory)(unsigned long start, int num_pages))
  {
-@@ -2039,17 +2040,21 @@ static void disable_ro_nx(const struct m
+@@ -2039,17 +2040,23 @@ static void disable_ro_nx(const struct m
        frob_writable_data(layout, set_memory_x);
  }
  
@@ -63,7 +63,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        frob_text(&mod->init_layout, set_memory_x);
  }
 +#else /* !CONFIG_ARCH_HAS_STRICT_MODULE_RWX */
++static void disable_ro_nx(const struct module_layout *layout) { }
 +static void module_enable_nx(const struct module *mod) { }
++static void module_disable_nx(const struct module *mod) { }
 +static void module_enable_x(const struct module *mod) { }
 +#endif /* CONFIG_ARCH_HAS_STRICT_MODULE_RWX */