summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorDenis Vlasenko2008-06-27 02:52:20 +0000
committerDenis Vlasenko2008-06-27 02:52:20 +0000
commitdefc1ea34074e7882724c460260d307cdf981a70 (patch)
treefca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /modutils
parent26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff)
downloadbusybox-defc1ea34074e7882724c460260d307cdf981a70.zip
busybox-defc1ea34074e7882724c460260d307cdf981a70.tar.gz
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'modutils')
-rw-r--r--modutils/depmod.c2
-rw-r--r--modutils/insmod.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c
index fdeb7dc..4fba537 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -47,7 +47,7 @@ static char* find_keyword(void *the_module, size_t len, const char * const word)
} while (1);
return ptr;
}
-static int fileAction(const char *fname, struct stat *sb,
+static int FAST_FUNC fileAction(const char *fname, struct stat *sb,
void ATTRIBUTE_UNUSED *data, int ATTRIBUTE_UNUSED depth)
{
size_t len = sb->st_size;
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 4ac1a1e..8217629 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -791,7 +791,7 @@ static char *m_fullName;
/*======================================================================*/
-static int check_module_name_match(const char *filename,
+static int FAST_FUNC check_module_name_match(const char *filename,
struct stat *statbuf ATTRIBUTE_UNUSED,
void *userdata, int depth ATTRIBUTE_UNUSED)
{
@@ -3306,7 +3306,7 @@ static int obj_create_image(struct obj_file *f, char *image)
/*======================================================================*/
-static struct obj_file *obj_load(FILE * fp, int loadprogbits ATTRIBUTE_UNUSED)
+static struct obj_file *obj_load(FILE *fp, int loadprogbits ATTRIBUTE_UNUSED)
{
struct obj_file *f;
ElfW(Shdr) * section_headers;
@@ -3512,7 +3512,7 @@ static struct obj_file *obj_load(FILE * fp, int loadprogbits ATTRIBUTE_UNUSED)
* kernel for the module
*/
-static int obj_load_progbits(FILE * fp, struct obj_file* f, char* imagebase)
+static int obj_load_progbits(FILE *fp, struct obj_file *f, char *imagebase)
{
ElfW(Addr) base = f->baseaddr;
struct obj_section* sec;