Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84626
b: refs/heads/master
c: 92dfc9d
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 8, 2008
1 parent 65c10e8 commit 7e5dc73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 6d7623943c905efae327933bc5ee0b2f78e15f56
refs/heads/master: 92dfc9dc7ba63134f721b6e745dbdcfc13ea341b
4 changes: 2 additions & 2 deletions trunk/include/linux/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static inline void __module_get(struct module *module)
/* For kallsyms to ask for address resolution. namebuf should be at
* least KSYM_NAME_LEN long: a pointer to namebuf is returned if
* found, otherwise NULL. */
char *module_address_lookup(unsigned long addr,
const char *module_address_lookup(unsigned long addr,
unsigned long *symbolsize,
unsigned long *offset,
char **modname,
Expand Down Expand Up @@ -519,7 +519,7 @@ static inline void module_put(struct module *module)
#define module_name(mod) "kernel"

/* For kallsyms to ask for address resolution. NULL means not found. */
static inline char *module_address_lookup(unsigned long addr,
static inline const char *module_address_lookup(unsigned long addr,
unsigned long *symbolsize,
unsigned long *offset,
char **modname,
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ static const char *get_ksymbol(struct module *mod,

/* For kallsyms to ask for address resolution. NULL means not found. Careful
* not to lock to avoid deadlock on oopses, simply disable preemption. */
char *module_address_lookup(unsigned long addr,
const char *module_address_lookup(unsigned long addr,
unsigned long *size,
unsigned long *offset,
char **modname,
Expand All @@ -2278,7 +2278,7 @@ char *module_address_lookup(unsigned long addr,
ret = namebuf;
}
preempt_enable();
return (char *)ret;
return ret;
}

int lookup_module_symbol_name(unsigned long addr, char *symname)
Expand Down

0 comments on commit 7e5dc73

Please sign in to comment.