diff options
Diffstat (limited to 'scripts/basic/fixdep.c')
| -rw-r--r-- | scripts/basic/fixdep.c | 30 | 
1 files changed, 14 insertions, 16 deletions
| diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 72c15205bb2..6bf21f83837 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -16,8 +16,7 @@   * tells make when to remake a file.   *   * To use this list as-is however has the drawback that virtually - * every file in the kernel includes <linux/config.h> which then again - * includes <linux/autoconf.h> + * every file in the kernel includes <linux/autoconf.h>.   *   * If the user re-runs make *config, linux/autoconf.h will be   * regenerated.  make notices that and will rebuild every file which @@ -125,8 +124,7 @@ char *target;  char *depfile;  char *cmdline; -void usage(void) - +static void usage(void)  {  	fprintf(stderr, "Usage: fixdep <depfile> <target> <cmdline>\n");  	exit(1); @@ -135,7 +133,7 @@ void usage(void)  /*   * Print out the commandline prefixed with cmd_<target filename> :=   */ -void print_cmdline(void) +static void print_cmdline(void)  {  	printf("cmd_%s := %s\n\n", target, cmdline);  } @@ -148,7 +146,7 @@ int    len_config  = 0;   * Grow the configuration string to a desired length.   * Usually the first growth is plenty.   */ -void grow_config(int len) +static void grow_config(int len)  {  	while (len_config + len > size_config) {  		if (size_config == 0) @@ -164,7 +162,7 @@ void grow_config(int len)  /*   * Lookup a value in the configuration string.   */ -int is_defined_config(const char * name, int len) +static int is_defined_config(const char * name, int len)  {  	const char * pconfig;  	const char * plast = str_config + len_config - len; @@ -180,7 +178,7 @@ int is_defined_config(const char * name, int len)  /*   * Add a new value to the configuration string.   */ -void define_config(const char * name, int len) +static void define_config(const char * name, int len)  {  	grow_config(len + 1); @@ -192,7 +190,7 @@ void define_config(const char * name, int len)  /*   * Clear the set of configuration strings.   */ -void clear_config(void) +static void clear_config(void)  {  	len_config = 0;  	define_config("", 0); @@ -201,7 +199,7 @@ void clear_config(void)  /*   * Record the use of a CONFIG_* word.   */ -void use_config(char *m, int slen) +static void use_config(char *m, int slen)  {  	char s[PATH_MAX];  	char *p; @@ -222,7 +220,7 @@ void use_config(char *m, int slen)  	printf("    $(wildcard include/config/%s.h) \\\n", s);  } -void parse_config_file(char *map, size_t len) +static void parse_config_file(char *map, size_t len)  {  	int *end = (int *) (map + len);  	/* start at +1, so that p can never be < map */ @@ -256,7 +254,7 @@ void parse_config_file(char *map, size_t len)  }  /* test is s ends in sub */ -int strrcmp(char *s, char *sub) +static int strrcmp(char *s, char *sub)  {  	int slen = strlen(s);  	int sublen = strlen(sub); @@ -267,7 +265,7 @@ int strrcmp(char *s, char *sub)  	return memcmp(s + slen - sublen, sub, sublen);  } -void do_config_file(char *filename) +static void do_config_file(char *filename)  {  	struct stat st;  	int fd; @@ -298,7 +296,7 @@ void do_config_file(char *filename)  	close(fd);  } -void parse_dep_file(void *map, size_t len) +static void parse_dep_file(void *map, size_t len)  {  	char *m = map;  	char *end = m + len; @@ -338,7 +336,7 @@ void parse_dep_file(void *map, size_t len)  	printf("$(deps_%s):\n", target);  } -void print_deps(void) +static void print_deps(void)  {  	struct stat st;  	int fd; @@ -370,7 +368,7 @@ void print_deps(void)  	close(fd);  } -void traps(void) +static void traps(void)  {  	static char test[] __attribute__((aligned(sizeof(int)))) = "CONF";  	int *p = (int *)test; | 
