Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54647
b: refs/heads/master
c: ae84e32
h: refs/heads/master
i:
  54645: bcbc085
  54643: 5d3c62f
  54639: b543c73
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed May 8, 2007
1 parent 6f410ac commit 3e9c99d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: 55955aad7c09e4d93029d0cf2d360b41891f2fe4
refs/heads/master: ae84e324709d6320ed8c1fd7b1736fcbaf26df95
5 changes: 2 additions & 3 deletions trunk/include/linux/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ int is_module_address(unsigned long addr);
/* Returns module and fills in value, defined and namebuf, or NULL if
symnum out of range. */
struct module *module_get_kallsym(unsigned int symnum, unsigned long *value,
char *type, char *name, size_t namelen);
char *type, char *name);

/* Look for this name: can be of form module:name. */
unsigned long module_kallsyms_lookup_name(const char *name);
Expand Down Expand Up @@ -529,8 +529,7 @@ static inline const char *module_address_lookup(unsigned long addr,

static inline struct module *module_get_kallsym(unsigned int symnum,
unsigned long *value,
char *type, char *name,
size_t namelen)
char *type, char *name)
{
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static int get_ksymbol_mod(struct kallsym_iter *iter)
{
iter->owner = module_get_kallsym(iter->pos - kallsyms_num_syms,
&iter->value, &iter->type,
iter->name, sizeof(iter->name));
iter->name);
if (iter->owner == NULL)
return 0;

Expand Down
5 changes: 3 additions & 2 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/module.h>
#include <linux/moduleloader.h>
#include <linux/init.h>
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
Expand Down Expand Up @@ -2124,7 +2125,7 @@ const char *module_address_lookup(unsigned long addr,
}

struct module *module_get_kallsym(unsigned int symnum, unsigned long *value,
char *type, char *name, size_t namelen)
char *type, char *name)
{
struct module *mod;

Expand All @@ -2134,7 +2135,7 @@ struct module *module_get_kallsym(unsigned int symnum, unsigned long *value,
*value = mod->symtab[symnum].st_value;
*type = mod->symtab[symnum].st_info;
strlcpy(name, mod->strtab + mod->symtab[symnum].st_name,
namelen);
KSYM_NAME_LEN + 1);
mutex_unlock(&module_mutex);
return mod;
}
Expand Down

0 comments on commit 3e9c99d

Please sign in to comment.