Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204815
b: refs/heads/master
c: 36b0360
h: refs/heads/master
i:
  204813: 03074c8
  204811: b620c38
  204807: a80384a
  204799: 77a3bfc
v: v3
  • Loading branch information
Rusty Russell committed Aug 5, 2010
1 parent 40fb5ec commit abf5cde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f6d037815466cb25e7de8f00536eca71d94d4c3
refs/heads/master: 36b0360d17dc3928cc96347a18a3a1cdbb7e506d
13 changes: 6 additions & 7 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1504,11 +1504,6 @@ static void mod_sysfs_fini(struct module *mod)

#else /* !CONFIG_SYSFS */

static int mod_sysfs_init(struct module *mod)
{
return 0;
}

static int mod_sysfs_setup(struct module *mod,
const struct load_info *info,
struct kernel_param *kparam,
Expand All @@ -1521,13 +1516,17 @@ static void mod_sysfs_fini(struct module *mod)
{
}

static void module_remove_modinfo_attrs(struct module *mod)
{
}

static void del_usage_links(struct module *mod)
{
}

#endif /* CONFIG_SYSFS */

static void mod_kobject_remove(struct module *mod)
static void mod_sysfs_teardown(struct module *mod)
{
del_usage_links(mod);
module_remove_modinfo_attrs(mod);
Expand Down Expand Up @@ -1557,7 +1556,7 @@ static void free_module(struct module *mod)
mutex_lock(&module_mutex);
stop_machine(__unlink_module, mod, NULL);
mutex_unlock(&module_mutex);
mod_kobject_remove(mod);
mod_sysfs_teardown(mod);

/* Remove dynamic debug info */
ddebug_remove_module(mod->name);
Expand Down

0 comments on commit abf5cde

Please sign in to comment.