aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/module.h6
-rw-r--r--kernel/module.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index a860a2c1f379..fce15ebd0e1c 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -288,10 +288,10 @@ struct module
288 void *module_core; 288 void *module_core;
289 289
290 /* Here are the sizes of the init and core sections */ 290 /* Here are the sizes of the init and core sections */
291 unsigned long init_size, core_size; 291 unsigned int init_size, core_size;
292 292
293 /* The size of the executable code in each section. */ 293 /* The size of the executable code in each section. */
294 unsigned long init_text_size, core_text_size; 294 unsigned int init_text_size, core_text_size;
295 295
296 /* The handle returned from unwind_add_table. */ 296 /* The handle returned from unwind_add_table. */
297 void *unwind_info; 297 void *unwind_info;
@@ -311,7 +311,7 @@ struct module
311#ifdef CONFIG_KALLSYMS 311#ifdef CONFIG_KALLSYMS
312 /* We keep the symbol and string tables for kallsyms. */ 312 /* We keep the symbol and string tables for kallsyms. */
313 Elf_Sym *symtab; 313 Elf_Sym *symtab;
314 unsigned long num_symtab; 314 unsigned int num_symtab;
315 char *strtab; 315 char *strtab;
316 316
317 /* Section attributes */ 317 /* Section attributes */
diff --git a/kernel/module.c b/kernel/module.c
index ea9580521eb1..5c7eb0695b3c 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1567,7 +1567,7 @@ static int simplify_symbols(Elf_Shdr *sechdrs,
1567} 1567}
1568 1568
1569/* Update size with this section: return offset. */ 1569/* Update size with this section: return offset. */
1570static long get_offset(unsigned long *size, Elf_Shdr *sechdr) 1570static long get_offset(unsigned int *size, Elf_Shdr *sechdr)
1571{ 1571{
1572 long ret; 1572 long ret;
1573 1573
@@ -2562,7 +2562,7 @@ static int m_show(struct seq_file *m, void *p)
2562 struct module *mod = list_entry(p, struct module, list); 2562 struct module *mod = list_entry(p, struct module, list);
2563 char buf[8]; 2563 char buf[8];
2564 2564
2565 seq_printf(m, "%s %lu", 2565 seq_printf(m, "%s %u",
2566 mod->name, mod->init_size + mod->core_size); 2566 mod->name, mod->init_size + mod->core_size);
2567 print_unload_info(m, mod); 2567 print_unload_info(m, mod);
2568 2568