|
@@ -545,9 +545,9 @@ static void setup_modinfo_##field(struct module *mod, const char *s) \
|
|
mod->field = kstrdup(s, GFP_KERNEL); \
|
|
mod->field = kstrdup(s, GFP_KERNEL); \
|
|
} \
|
|
} \
|
|
static ssize_t show_modinfo_##field(struct module_attribute *mattr, \
|
|
static ssize_t show_modinfo_##field(struct module_attribute *mattr, \
|
|
- struct module *mod, char *buffer) \
|
|
|
|
|
|
+ struct module_kobject *mk, char *buffer) \
|
|
{ \
|
|
{ \
|
|
- return sprintf(buffer, "%s\n", mod->field); \
|
|
|
|
|
|
+ return sprintf(buffer, "%s\n", mk->mod->field); \
|
|
} \
|
|
} \
|
|
static int modinfo_##field##_exists(struct module *mod) \
|
|
static int modinfo_##field##_exists(struct module *mod) \
|
|
{ \
|
|
{ \
|
|
@@ -902,9 +902,9 @@ void symbol_put_addr(void *addr)
|
|
EXPORT_SYMBOL_GPL(symbol_put_addr);
|
|
EXPORT_SYMBOL_GPL(symbol_put_addr);
|
|
|
|
|
|
static ssize_t show_refcnt(struct module_attribute *mattr,
|
|
static ssize_t show_refcnt(struct module_attribute *mattr,
|
|
- struct module *mod, char *buffer)
|
|
|
|
|
|
+ struct module_kobject *mk, char *buffer)
|
|
{
|
|
{
|
|
- return sprintf(buffer, "%u\n", module_refcount(mod));
|
|
|
|
|
|
+ return sprintf(buffer, "%u\n", module_refcount(mk->mod));
|
|
}
|
|
}
|
|
|
|
|
|
static struct module_attribute refcnt = {
|
|
static struct module_attribute refcnt = {
|
|
@@ -952,11 +952,11 @@ static inline int module_unload_init(struct module *mod)
|
|
#endif /* CONFIG_MODULE_UNLOAD */
|
|
#endif /* CONFIG_MODULE_UNLOAD */
|
|
|
|
|
|
static ssize_t show_initstate(struct module_attribute *mattr,
|
|
static ssize_t show_initstate(struct module_attribute *mattr,
|
|
- struct module *mod, char *buffer)
|
|
|
|
|
|
+ struct module_kobject *mk, char *buffer)
|
|
{
|
|
{
|
|
const char *state = "unknown";
|
|
const char *state = "unknown";
|
|
|
|
|
|
- switch (mod->state) {
|
|
|
|
|
|
+ switch (mk->mod->state) {
|
|
case MODULE_STATE_LIVE:
|
|
case MODULE_STATE_LIVE:
|
|
state = "live";
|
|
state = "live";
|
|
break;
|
|
break;
|
|
@@ -1187,7 +1187,7 @@ struct module_sect_attrs
|
|
};
|
|
};
|
|
|
|
|
|
static ssize_t module_sect_show(struct module_attribute *mattr,
|
|
static ssize_t module_sect_show(struct module_attribute *mattr,
|
|
- struct module *mod, char *buf)
|
|
|
|
|
|
+ struct module_kobject *mk, char *buf)
|
|
{
|
|
{
|
|
struct module_sect_attr *sattr =
|
|
struct module_sect_attr *sattr =
|
|
container_of(mattr, struct module_sect_attr, mattr);
|
|
container_of(mattr, struct module_sect_attr, mattr);
|