diff options
author | Jon Masters <jcm@jonmasters.org> | 2011-06-01 17:44:40 -0400 |
---|---|---|
committer | Jon Masters <jcm@jonmasters.org> | 2011-06-01 17:44:40 -0400 |
commit | 3d9a98e65ba483c552c1226858302f9f5e8e7b9f (patch) | |
tree | d68e3adca30bfe0dc03be85faf2559b827160bee | |
parent | cd4f8360fd511252cbe691b630cb68369817f05b (diff) | |
download | module-init-tools-3d9a98e65ba483c552c1226858302f9f5e8e7b9f.tar.gz |
depmod: cleanup source, Free Software Foundation mailing address.
The FSF GPLv2 boilerplate has needed updating for a long, long time.
Signed-off-by: Jon Masters <jcm@jonmasters.org>
-rw-r--r-- | depmod.c | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -1,9 +1,23 @@ /* - * New simplified depmod without backwards compat stuff and not - * requiring ksyms. + * depmod.c: generate module dependency meta-data (aliases, etc.) * - * (C) 2010 Jon Masters <jcm@jonmasters.org>, and others. * (C) 2002 Rusty Russell IBM Corporation + * (C) 2006-2011 Jon Masters <jcm@jonmasters.org>, and others. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #define _GNU_SOURCE /* asprintf */ @@ -435,6 +449,7 @@ static struct module *grab_module(const char *dirname, const char *filename) return new; } +/* We use this on-stack structure to track recursive calls to has_dep_loop */ struct module_traverse { struct module_traverse *prev; @@ -1328,6 +1343,7 @@ struct depfile { int map_file; }; +/* The possible output files - those with map_file unset typically not made */ static const struct depfile depfiles[] = { { "modules.dep", output_deps, 0 }, /* This is what we check for '-A'. */ { "modules.dep.bin", output_deps_bin, 0 }, |