*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
[oweals/busybox.git] / modutils / depmod.c
index 09d31f4c061b6d2c9b5d7231985315b828f845b3..4fba537516f9c3de18368f0823b4dc7f7e5a02e9 100644 (file)
@@ -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;
@@ -174,14 +174,14 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv)
        /* Fixup the module names in the depends list */
        while (mods) {
                llist_t *deps = NULL, *old_deps = mods->dependencies;
-               
+
                while (old_deps) {
                        dep_lst_t *all = G.lst;
                        char *longname = NULL;
                        char *shortname = llist_pop(&old_deps);
 
                        while (all) {
-                               char *nam = 
+                               char *nam =
                                        xstrdup(bb_get_last_path_component_nostrip(all->name));
                                char *tmp = strrstr(nam, ".ko");
 
@@ -221,7 +221,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv)
                                if (!strcmp(all->name, deps->data)) {
                                        llist_t *implied = all->dependencies;
                                        while (implied) {
-                                               /* erm, nicer would be to just
+                                               /* XXX:FIXME: erm, it would be nicer to just
                                                 * llist_unlink(&mods->dependencies, implied)  */
                                                llist_t *prune = mods->dependencies;
                                                while (prune) {
@@ -262,7 +262,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv)
                        char *tmp = strrstr(shortname, ".ko");
 
                        *tmp = '\0';
-               
+
                        while (mods->aliases) {
                                fprintf(filedes, "alias %s %s\n",
                                        (char*)llist_pop(&mods->aliases),