diff --git a/repos/dde_linux/src/include/lx_emul/module.h b/repos/dde_linux/src/include/lx_emul/module.h index e21db30c31..d8e4e9276f 100644 --- a/repos/dde_linux/src/include/lx_emul/module.h +++ b/repos/dde_linux/src/include/lx_emul/module.h @@ -64,7 +64,15 @@ int try_module_get(struct module *); *************************/ #define module_param(name, type, perm) -#define module_param_named(name, value, type, perm) + +/* + * For our shenanigans to work we have to define charp (used by the + * iwlwifi module). + */ +#define charp char* +#define module_param_named(name, value, type, perm) \ + type *module_param_ ## name = &value; + #define module_param_unsafe(name, type, perm) #define module_param_named_unsafe(name, value, type, perm) #define MODULE_PARM_DESC(_parm, desc)