diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-12-29 04:15:13 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-12-29 04:15:13 +0000 |
commit | 6d13964714c36ef6ea8d698b64fd7caea77969f9 (patch) | |
tree | 990a3b43146d01d2d2f3fc8a26be849de6438880 /modutils/insmod.c | |
parent | e7dd383f67fae51d470fca63d4835ea61b10f7de (diff) | |
download | busybox-w32-6d13964714c36ef6ea8d698b64fd7caea77969f9.tar.gz busybox-w32-6d13964714c36ef6ea8d698b64fd7caea77969f9.tar.bz2 busybox-w32-6d13964714c36ef6ea8d698b64fd7caea77969f9.zip |
Silence some silly warnings
-Erik
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r-- | modutils/insmod.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 63500cc8f..2fa48083b 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -133,7 +133,7 @@ | |||
133 | #ifndef MODUTILS_MODULE_H | 133 | #ifndef MODUTILS_MODULE_H |
134 | static const int MODUTILS_MODULE_H = 1; | 134 | static const int MODUTILS_MODULE_H = 1; |
135 | 135 | ||
136 | #ident "$Id: insmod.c,v 1.77 2001/12/20 23:13:08 kraai Exp $" | 136 | #ident "$Id: insmod.c,v 1.78 2001/12/29 04:15:13 andersen Exp $" |
137 | 137 | ||
138 | /* This file contains the structures used by the 2.0 and 2.1 kernels. | 138 | /* This file contains the structures used by the 2.0 and 2.1 kernels. |
139 | We do not use the kernel headers directly because we do not wish | 139 | We do not use the kernel headers directly because we do not wish |
@@ -350,7 +350,7 @@ int delete_module(const char *); | |||
350 | #ifndef MODUTILS_OBJ_H | 350 | #ifndef MODUTILS_OBJ_H |
351 | static const int MODUTILS_OBJ_H = 1; | 351 | static const int MODUTILS_OBJ_H = 1; |
352 | 352 | ||
353 | #ident "$Id: insmod.c,v 1.77 2001/12/20 23:13:08 kraai Exp $" | 353 | #ident "$Id: insmod.c,v 1.78 2001/12/29 04:15:13 andersen Exp $" |
354 | 354 | ||
355 | /* The relocatable object is manipulated using elfin types. */ | 355 | /* The relocatable object is manipulated using elfin types. */ |
356 | 356 | ||
@@ -582,8 +582,10 @@ static void *obj_extend_section (struct obj_section *sec, unsigned long more); | |||
582 | static int obj_string_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, | 582 | static int obj_string_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, |
583 | const char *string); | 583 | const char *string); |
584 | 584 | ||
585 | #ifdef CONFIG_FEATURE_NEW_MODULE_INTERFACE | ||
585 | static int obj_symbol_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, | 586 | static int obj_symbol_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, |
586 | struct obj_symbol *sym); | 587 | struct obj_symbol *sym); |
588 | #endif | ||
587 | 589 | ||
588 | static int obj_check_undefineds(struct obj_file *f); | 590 | static int obj_check_undefineds(struct obj_file *f); |
589 | 591 | ||
@@ -613,7 +615,9 @@ static enum obj_reloc arch_apply_relocation (struct obj_file *f, | |||
613 | 615 | ||
614 | static int arch_create_got (struct obj_file *f); | 616 | static int arch_create_got (struct obj_file *f); |
615 | 617 | ||
618 | #ifdef CONFIG_FEATURE_NEW_MODULE_INTERFACE | ||
616 | static int arch_init_module (struct obj_file *f, struct new_module *); | 619 | static int arch_init_module (struct obj_file *f, struct new_module *); |
620 | #endif | ||
617 | 621 | ||
618 | #endif /* obj.h */ | 622 | #endif /* obj.h */ |
619 | //---------------------------------------------------------------------------- | 623 | //---------------------------------------------------------------------------- |
@@ -1276,11 +1280,12 @@ static int arch_create_got(struct obj_file *f) | |||
1276 | return 1; | 1280 | return 1; |
1277 | } | 1281 | } |
1278 | 1282 | ||
1283 | #ifdef CONFIG_FEATURE_NEW_MODULE_INTERFACE | ||
1279 | static int arch_init_module(struct obj_file *f, struct new_module *mod) | 1284 | static int arch_init_module(struct obj_file *f, struct new_module *mod) |
1280 | { | 1285 | { |
1281 | return 1; | 1286 | return 1; |
1282 | } | 1287 | } |
1283 | 1288 | #endif | |
1284 | 1289 | ||
1285 | /*======================================================================*/ | 1290 | /*======================================================================*/ |
1286 | 1291 | ||
@@ -2639,6 +2644,7 @@ obj_string_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, | |||
2639 | return 1; | 2644 | return 1; |
2640 | } | 2645 | } |
2641 | 2646 | ||
2647 | #ifdef CONFIG_FEATURE_NEW_MODULE_INTERFACE | ||
2642 | static int | 2648 | static int |
2643 | obj_symbol_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, | 2649 | obj_symbol_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, |
2644 | struct obj_symbol *sym) | 2650 | struct obj_symbol *sym) |
@@ -2654,6 +2660,7 @@ obj_symbol_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, | |||
2654 | 2660 | ||
2655 | return 1; | 2661 | return 1; |
2656 | } | 2662 | } |
2663 | #endif | ||
2657 | 2664 | ||
2658 | static int obj_check_undefineds(struct obj_file *f) | 2665 | static int obj_check_undefineds(struct obj_file *f) |
2659 | { | 2666 | { |