Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146014
b: refs/heads/master
c: 61f919a
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 15, 2009
1 parent 943683e commit 8bf2b52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 6d723736e472f7a0cd5b62c84152fceead241328
refs/heads/master: 61f919a12fbdc3fd20f980a34a118d597198a392
12 changes: 10 additions & 2 deletions trunk/kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ event_create_dir(struct ftrace_event_call *call, struct dentry *d_events)
(unsigned long)event < (unsigned long)end; \
event++)

#ifdef CONFIG_MODULES
static void trace_module_add_events(struct module *mod)
{
struct ftrace_event_call *call, *start, *end;
Expand Down Expand Up @@ -840,8 +841,8 @@ static void trace_module_remove_events(struct module *mod)
}
}

int trace_module_notify(struct notifier_block *self,
unsigned long val, void *data)
static int trace_module_notify(struct notifier_block *self,
unsigned long val, void *data)
{
struct module *mod = data;

Expand All @@ -858,6 +859,13 @@ int trace_module_notify(struct notifier_block *self,

return 0;
}
#else
static int trace_module_notify(struct notifier_block *self,
unsigned long val, void *data)
{
return 0;
}
#endif /* CONFIG_MODULES */

struct notifier_block trace_module_nb = {
.notifier_call = trace_module_notify,
Expand Down

0 comments on commit 8bf2b52

Please sign in to comment.