]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/module.c
kernel/module.c: use linux/set_memory.h
[karo-tx-linux.git] / kernel / module.c
index 4a3665f8f8372aab68b658c24c30678806823eee..8f883d86cedc0227eca1f3328117d82dde8bc496 100644 (file)
@@ -49,9 +49,7 @@
 #include <linux/rculist.h>
 #include <linux/uaccess.h>
 #include <asm/cacheflush.h>
-#ifdef CONFIG_STRICT_MODULE_RWX
-#include <asm/set_memory.h>
-#endif
+#include <linux/set_memory.h>
 #include <asm/mmu_context.h>
 #include <linux/license.h>
 #include <asm/sections.h>
@@ -1202,10 +1200,7 @@ static ssize_t store_uevent(struct module_attribute *mattr,
                            struct module_kobject *mk,
                            const char *buffer, size_t count)
 {
-       enum kobject_action action;
-
-       if (kobject_action_type(buffer, count, &action) == 0)
-               kobject_uevent(&mk->kobj, action);
+       kobject_synth_uevent(&mk->kobj, buffer, count);
        return count;
 }