Skip to content

Commit

Permalink
add missing module.h header
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bachp authored and rofl0r committed Jul 18, 2018
1 parent e839542 commit 9b7ef77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions generic/include/linux/module.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 9b7ef77

Please sign in to comment.