mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
#ifndef _LINUX_MODULE_H
|
|
#define _LINUX_MODULE_H
|
|
|
|
#include <linux/stat.h>
|
|
#include <linux/compiler.h>
|
|
#include <linux/export.h>
|
|
|
|
struct module;
|
|
|
|
#define module_init(initfn) \
|
|
__attribute__((constructor(120))) \
|
|
static void __call_##initfn(void) { BUG_ON(initfn()); }
|
|
|
|
#if 0
|
|
#define module_exit(exitfn) \
|
|
__attribute__((destructor(109))) \
|
|
static void __call_##exitfn(void) { exitfn(); }
|
|
#endif
|
|
|
|
#define module_exit(exitfn) \
|
|
__attribute__((unused)) \
|
|
static void __call_##exitfn(void) { exitfn(); }
|
|
|
|
#define MODULE_INFO(tag, info)
|
|
#define MODULE_ALIAS(_alias)
|
|
#define MODULE_SOFTDEP(_softdep)
|
|
#define MODULE_LICENSE(_license)
|
|
#define MODULE_AUTHOR(_author)
|
|
#define MODULE_DESCRIPTION(_description)
|
|
#define MODULE_VERSION(_version)
|
|
|
|
static inline void __module_get(struct module *module)
|
|
{
|
|
}
|
|
|
|
static inline int try_module_get(struct module *module)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static inline void module_put(struct module *module)
|
|
{
|
|
}
|
|
|
|
#define module_param_named(name, value, type, perm)
|
|
#define MODULE_PARM_DESC(_parm, desc)
|
|
|
|
#endif /* _LINUX_MODULE_H */
|