From c26eec98e34e18bcfa494869d334c1610a2cc7a4 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Tue, 17 Jul 2018 22:06:28 +0200 Subject: [PATCH 1/2] Add module.h it is missing in the 3.16 kernel --- UPDATE.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPDATE.sh b/UPDATE.sh index 3907b7b..154c452 100755 --- a/UPDATE.sh +++ b/UPDATE.sh @@ -20,7 +20,7 @@ do done # these headers are missing from headers_install_all -cp -a $1/include/uapi/linux/{a.out,kvm,kvm_para}.h generic/include/linux/ +cp -a $1/include/uapi/linux/{a.out,kvm,kvm_para,module}.h generic/include/linux/ find generic -name '..install.cmd' | xargs rm find generic -name '.install' | xargs rm From d510ae5c1fe24d510e8493357c4224bd1b3a911a Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Tue, 17 Jul 2018 22:32:37 +0200 Subject: [PATCH 2/2] add missing module.h header The header defines constants needed for module loading and unloading It is installed in 4.x kernel but seems to be missing in 3.x --- generic/include/linux/module.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 generic/include/linux/module.h diff --git a/generic/include/linux/module.h b/generic/include/linux/module.h new file mode 100644 index 0000000..38da425 --- /dev/null +++ b/generic/include/linux/module.h @@ -0,0 +1,8 @@ +#ifndef _UAPI_LINUX_MODULE_H +#define _UAPI_LINUX_MODULE_H + +/* Flags for sys_finit_module: */ +#define MODULE_INIT_IGNORE_MODVERSIONS 1 +#define MODULE_INIT_IGNORE_VERMAGIC 2 + +#endif /* _UAPI_LINUX_MODULE_H */