diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-02 04:51:29 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-02 04:51:29 +0000 |
commit | b8e653bfbfeee7797e631d6d47cd9cddb7658e4b (patch) | |
tree | 7a0553a4184856af422e57dabbaec68bbe271502 /modutils/insmod.c | |
parent | cd2663f15e74274619dd97dc382bb858ac255872 (diff) | |
download | busybox-w32-b8e653bfbfeee7797e631d6d47cd9cddb7658e4b.tar.gz busybox-w32-b8e653bfbfeee7797e631d6d47cd9cddb7658e4b.tar.bz2 busybox-w32-b8e653bfbfeee7797e631d6d47cd9cddb7658e4b.zip |
Reinstate CONFIG_CROSS_COMPILE_PREFIX
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r-- | modutils/insmod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 3a8201feb..f45a59465 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -452,7 +452,7 @@ enum { | |||
452 | /* The system calls unchanged between 2.0 and 2.1. */ | 452 | /* The system calls unchanged between 2.0 and 2.1. */ |
453 | 453 | ||
454 | unsigned long create_module(const char *, size_t); | 454 | unsigned long create_module(const char *, size_t); |
455 | int delete_module(const char *); | 455 | int delete_module(const char *module, unsigned int flags); |
456 | 456 | ||
457 | 457 | ||
458 | #endif /* module.h */ | 458 | #endif /* module.h */ |
@@ -4141,18 +4141,18 @@ int insmod_main(int argc, char **argv) | |||
4141 | * now we can load them directly into the kernel memory | 4141 | * now we can load them directly into the kernel memory |
4142 | */ | 4142 | */ |
4143 | if (!obj_load_progbits(fp, f, (char*)m_addr)) { | 4143 | if (!obj_load_progbits(fp, f, (char*)m_addr)) { |
4144 | delete_module(m_name); | 4144 | delete_module(m_name, 0); |
4145 | goto out; | 4145 | goto out; |
4146 | } | 4146 | } |
4147 | #endif | 4147 | #endif |
4148 | 4148 | ||
4149 | if (!obj_relocate(f, m_addr)) { | 4149 | if (!obj_relocate(f, m_addr)) { |
4150 | delete_module(m_name); | 4150 | delete_module(m_name, 0); |
4151 | goto out; | 4151 | goto out; |
4152 | } | 4152 | } |
4153 | 4153 | ||
4154 | if (!new_init_module(m_name, f, m_size)) { | 4154 | if (!new_init_module(m_name, f, m_size)) { |
4155 | delete_module(m_name); | 4155 | delete_module(m_name, 0); |
4156 | goto out; | 4156 | goto out; |
4157 | } | 4157 | } |
4158 | 4158 | ||