1
#include <linux/module.h>
3
MODULE_AUTHOR("Luis R. Rodriguez");
4
MODULE_DESCRIPTION("Kernel compatibility module");
8
#error "You need a COMPAT_BASE"
11
#ifndef COMPAT_BASE_TREE
12
#error "You need a COMPAT_BASE_TREE"
15
#ifndef COMPAT_BASE_TREE_VERSION
16
#error "You need a COMPAT_BASE_TREE_VERSION"
19
#ifndef COMPAT_VERSION
20
#error "You need a COMPAT_VERSION"
23
static char *compat_base = COMPAT_BASE;
24
static char *compat_base_tree = COMPAT_BASE_TREE;
25
static char *compat_base_tree_version = COMPAT_BASE_TREE_VERSION;
26
static char *compat_version = COMPAT_VERSION;
28
module_param(compat_base, charp, 0400);
29
MODULE_PARM_DESC(compat_base_tree,
30
"The upstream verion of compat.git used");
32
module_param(compat_base_tree, charp, 0400);
33
MODULE_PARM_DESC(compat_base_tree,
34
"The upstream tree used as base for this backport");
36
module_param(compat_base_tree_version, charp, 0400);
37
MODULE_PARM_DESC(compat_base_tree_version,
38
"The git-describe of the upstream base tree");
40
module_param(compat_version, charp, 0400);
41
MODULE_PARM_DESC(compat_version,
42
"Version of the kernel compat backport work");
44
void compat_dependency_symbol(void)
47
EXPORT_SYMBOL_GPL(compat_dependency_symbol);
50
static int __init compat_init(void)
52
compat_pm_qos_power_init();
53
compat_system_workqueue_create();
54
init_compat_mmc_pm_flags();
57
COMPAT_PROJECT " backport release: "
60
printk(KERN_INFO "Backport based on "
61
COMPAT_BASE_TREE " " COMPAT_BASE_TREE_VERSION
63
printk(KERN_INFO "compat.git: "
64
COMPAT_BASE_TREE "\n");
68
module_init(compat_init);
70
static void __exit compat_exit(void)
72
compat_pm_qos_power_deinit();
73
compat_system_workqueue_destroy();
77
module_exit(compat_exit);