diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-12-29 04:15:13 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-12-29 04:15:13 +0000 |
| commit | 4cfb9ec990bbf22709c5bc9c8477559eb3b47110 (patch) | |
| tree | 990a3b43146d01d2d2f3fc8a26be849de6438880 /modutils | |
| parent | c83eeeec3845238527fc12f55d1eae81e60db52d (diff) | |
| download | busybox-w32-4cfb9ec990bbf22709c5bc9c8477559eb3b47110.tar.gz busybox-w32-4cfb9ec990bbf22709c5bc9c8477559eb3b47110.tar.bz2 busybox-w32-4cfb9ec990bbf22709c5bc9c8477559eb3b47110.zip | |
Silence some silly warnings
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@3963 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils')
| -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 | { |
