Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/: fix warnings from -Wmissing-prototypes in HOSTCFLAGS

Fix up -Wmissing-prototypes in compileable userspace code, mainly under
Documentation/.

Signed-off-by: Ladinu Chandrasinghe <ladinu.pub@gmail.com>
Signed-off-by: Trevor Keith <tsrk@tsrk.net>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Ladinu Chandrasinghe and committed by
Linus Torvalds
b7ed698c 912e837a

+90 -90
+6 -6
Documentation/accounting/getdelays.c
··· 116 116 } 117 117 118 118 119 - int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, 119 + static int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, 120 120 __u8 genl_cmd, __u16 nla_type, 121 121 void *nla_data, int nla_len) 122 122 { ··· 160 160 * Probe the controller in genetlink to find the family id 161 161 * for the TASKSTATS family 162 162 */ 163 - int get_family_id(int sd) 163 + static int get_family_id(int sd) 164 164 { 165 165 struct { 166 166 struct nlmsghdr n; ··· 190 190 return id; 191 191 } 192 192 193 - void print_delayacct(struct taskstats *t) 193 + static void print_delayacct(struct taskstats *t) 194 194 { 195 195 printf("\n\nCPU %15s%15s%15s%15s\n" 196 196 " %15llu%15llu%15llu%15llu\n" ··· 216 216 (unsigned long long)t->freepages_delay_total); 217 217 } 218 218 219 - void task_context_switch_counts(struct taskstats *t) 219 + static void task_context_switch_counts(struct taskstats *t) 220 220 { 221 221 printf("\n\nTask %15s%15s\n" 222 222 " %15llu%15llu\n", ··· 224 224 (unsigned long long)t->nvcsw, (unsigned long long)t->nivcsw); 225 225 } 226 226 227 - void print_cgroupstats(struct cgroupstats *c) 227 + static void print_cgroupstats(struct cgroupstats *c) 228 228 { 229 229 printf("sleeping %llu, blocked %llu, running %llu, stopped %llu, " 230 230 "uninterruptible %llu\n", (unsigned long long)c->nr_sleeping, ··· 235 235 } 236 236 237 237 238 - void print_ioacct(struct taskstats *t) 238 + static void print_ioacct(struct taskstats *t) 239 239 { 240 240 printf("%s: read=%llu, write=%llu, cancelled_write=%llu\n", 241 241 t->ac_comm,
+11 -11
Documentation/auxdisplay/cfag12864b-example.c
··· 62 62 * Unable to open: return = -1 63 63 * Unable to mmap: return = -2 64 64 */ 65 - int cfag12864b_init(char *path) 65 + static int cfag12864b_init(char *path) 66 66 { 67 67 cfag12864b_fd = open(path, O_RDWR); 68 68 if (cfag12864b_fd == -1) ··· 81 81 /* 82 82 * exit a cfag12864b framebuffer device 83 83 */ 84 - void cfag12864b_exit(void) 84 + static void cfag12864b_exit(void) 85 85 { 86 86 munmap(cfag12864b_mem, CFAG12864B_SIZE); 87 87 close(cfag12864b_fd); ··· 90 90 /* 91 91 * set (x, y) pixel 92 92 */ 93 - void cfag12864b_set(unsigned char x, unsigned char y) 93 + static void cfag12864b_set(unsigned char x, unsigned char y) 94 94 { 95 95 if (CFAG12864B_CHECK(x, y)) 96 96 cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] |= ··· 100 100 /* 101 101 * unset (x, y) pixel 102 102 */ 103 - void cfag12864b_unset(unsigned char x, unsigned char y) 103 + static void cfag12864b_unset(unsigned char x, unsigned char y) 104 104 { 105 105 if (CFAG12864B_CHECK(x, y)) 106 106 cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] &= ··· 113 113 * Pixel off: return = 0 114 114 * Pixel on: return = 1 115 115 */ 116 - unsigned char cfag12864b_isset(unsigned char x, unsigned char y) 116 + static unsigned char cfag12864b_isset(unsigned char x, unsigned char y) 117 117 { 118 118 if (CFAG12864B_CHECK(x, y)) 119 119 if (cfag12864b_buffer[CFAG12864B_ADDRESS(x, y)] & ··· 126 126 /* 127 127 * not (x, y) pixel 128 128 */ 129 - void cfag12864b_not(unsigned char x, unsigned char y) 129 + static void cfag12864b_not(unsigned char x, unsigned char y) 130 130 { 131 131 if (cfag12864b_isset(x, y)) 132 132 cfag12864b_unset(x, y); ··· 137 137 /* 138 138 * fill (set all pixels) 139 139 */ 140 - void cfag12864b_fill(void) 140 + static void cfag12864b_fill(void) 141 141 { 142 142 unsigned short i; 143 143 ··· 148 148 /* 149 149 * clear (unset all pixels) 150 150 */ 151 - void cfag12864b_clear(void) 151 + static void cfag12864b_clear(void) 152 152 { 153 153 unsigned short i; 154 154 ··· 162 162 * Pixel off: src[i] = 0 163 163 * Pixel on: src[i] > 0 164 164 */ 165 - void cfag12864b_format(unsigned char * matrix) 165 + static void cfag12864b_format(unsigned char * matrix) 166 166 { 167 167 unsigned char i, j, n; 168 168 ··· 182 182 /* 183 183 * blit buffer to lcd 184 184 */ 185 - void cfag12864b_blit(void) 185 + static void cfag12864b_blit(void) 186 186 { 187 187 memcpy(cfag12864b_mem, cfag12864b_buffer, CFAG12864B_SIZE); 188 188 } ··· 198 198 199 199 #define EXAMPLES 6 200 200 201 - void example(unsigned char n) 201 + static void example(unsigned char n) 202 202 { 203 203 unsigned short i, j; 204 204 unsigned char matrix[CFAG12864B_WIDTH * CFAG12864B_HEIGHT];
+4 -4
Documentation/ia64/aliasing-test.c
··· 24 24 25 25 int sum; 26 26 27 - int map_mem(char *path, off_t offset, size_t length, int touch) 27 + static int map_mem(char *path, off_t offset, size_t length, int touch) 28 28 { 29 29 int fd, rc; 30 30 void *addr; ··· 62 62 return 0; 63 63 } 64 64 65 - int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) 65 + static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) 66 66 { 67 67 struct dirent **namelist; 68 68 char *name, *path2; ··· 119 119 120 120 char buf[1024]; 121 121 122 - int read_rom(char *path) 122 + static int read_rom(char *path) 123 123 { 124 124 int fd, rc; 125 125 size_t size = 0; ··· 146 146 return size; 147 147 } 148 148 149 - int scan_rom(char *path, char *file) 149 + static int scan_rom(char *path, char *file) 150 150 { 151 151 struct dirent **namelist; 152 152 char *name, *path2;
+1 -1
Documentation/pcmcia/crc32hash.c
··· 8 8 #include <ctype.h> 9 9 #include <stdlib.h> 10 10 11 - unsigned int crc32(unsigned char const *p, unsigned int len) 11 + static unsigned int crc32(unsigned char const *p, unsigned int len) 12 12 { 13 13 int i; 14 14 unsigned int crc = 0;
+2 -2
Documentation/spi/spidev_test.c
··· 69 69 puts(""); 70 70 } 71 71 72 - void print_usage(const char *prog) 72 + static void print_usage(const char *prog) 73 73 { 74 74 printf("Usage: %s [-DsbdlHOLC3]\n", prog); 75 75 puts(" -D --device device to use (default /dev/spidev1.1)\n" ··· 85 85 exit(1); 86 86 } 87 87 88 - void parse_opts(int argc, char *argv[]) 88 + static void parse_opts(int argc, char *argv[]) 89 89 { 90 90 while (1) { 91 91 static const struct option lopts[] = {
+1 -1
Documentation/video4linux/v4lgrab.c
··· 89 89 } \ 90 90 } 91 91 92 - int get_brightness_adj(unsigned char *image, long size, int *brightness) { 92 + static int get_brightness_adj(unsigned char *image, long size, int *brightness) { 93 93 long i, tot = 0; 94 94 for (i=0;i<size*3;i++) 95 95 tot += image[i];
+26 -26
Documentation/vm/page-types.c
··· 158 158 type __min2 = (y); \ 159 159 __min1 < __min2 ? __min1 : __min2; }) 160 160 161 - unsigned long pages2mb(unsigned long pages) 161 + static unsigned long pages2mb(unsigned long pages) 162 162 { 163 163 return (pages * page_size) >> 20; 164 164 } 165 165 166 - void fatal(const char *x, ...) 166 + static void fatal(const char *x, ...) 167 167 { 168 168 va_list ap; 169 169 ··· 178 178 * page flag names 179 179 */ 180 180 181 - char *page_flag_name(uint64_t flags) 181 + static char *page_flag_name(uint64_t flags) 182 182 { 183 183 static char buf[65]; 184 184 int present; ··· 197 197 return buf; 198 198 } 199 199 200 - char *page_flag_longname(uint64_t flags) 200 + static char *page_flag_longname(uint64_t flags) 201 201 { 202 202 static char buf[1024]; 203 203 int i, n; ··· 221 221 * page list and summary 222 222 */ 223 223 224 - void show_page_range(unsigned long offset, uint64_t flags) 224 + static void show_page_range(unsigned long offset, uint64_t flags) 225 225 { 226 226 static uint64_t flags0; 227 227 static unsigned long index; ··· 241 241 count = 1; 242 242 } 243 243 244 - void show_page(unsigned long offset, uint64_t flags) 244 + static void show_page(unsigned long offset, uint64_t flags) 245 245 { 246 246 printf("%lu\t%s\n", offset, page_flag_name(flags)); 247 247 } 248 248 249 - void show_summary(void) 249 + static void show_summary(void) 250 250 { 251 251 int i; 252 252 ··· 272 272 * page flag filters 273 273 */ 274 274 275 - int bit_mask_ok(uint64_t flags) 275 + static int bit_mask_ok(uint64_t flags) 276 276 { 277 277 int i; 278 278 ··· 289 289 return 1; 290 290 } 291 291 292 - uint64_t expand_overloaded_flags(uint64_t flags) 292 + static uint64_t expand_overloaded_flags(uint64_t flags) 293 293 { 294 294 /* SLOB/SLUB overload several page flags */ 295 295 if (flags & BIT(SLAB)) { ··· 308 308 return flags; 309 309 } 310 310 311 - uint64_t well_known_flags(uint64_t flags) 311 + static uint64_t well_known_flags(uint64_t flags) 312 312 { 313 313 /* hide flags intended only for kernel hacker */ 314 314 flags &= ~KPF_HACKERS_BITS; ··· 325 325 * page frame walker 326 326 */ 327 327 328 - int hash_slot(uint64_t flags) 328 + static int hash_slot(uint64_t flags) 329 329 { 330 330 int k = HASH_KEY(flags); 331 331 int i; ··· 352 352 exit(EXIT_FAILURE); 353 353 } 354 354 355 - void add_page(unsigned long offset, uint64_t flags) 355 + static void add_page(unsigned long offset, uint64_t flags) 356 356 { 357 357 flags = expand_overloaded_flags(flags); 358 358 ··· 371 371 total_pages++; 372 372 } 373 373 374 - void walk_pfn(unsigned long index, unsigned long count) 374 + static void walk_pfn(unsigned long index, unsigned long count) 375 375 { 376 376 unsigned long batch; 377 377 unsigned long n; ··· 404 404 } 405 405 } 406 406 407 - void walk_addr_ranges(void) 407 + static void walk_addr_ranges(void) 408 408 { 409 409 int i; 410 410 ··· 428 428 * user interface 429 429 */ 430 430 431 - const char *page_flag_type(uint64_t flag) 431 + static const char *page_flag_type(uint64_t flag) 432 432 { 433 433 if (flag & KPF_HACKERS_BITS) 434 434 return "(r)"; ··· 437 437 return " "; 438 438 } 439 439 440 - void usage(void) 440 + static void usage(void) 441 441 { 442 442 int i, j; 443 443 ··· 482 482 "(r) raw mode bits (o) overloaded bits\n"); 483 483 } 484 484 485 - unsigned long long parse_number(const char *str) 485 + static unsigned long long parse_number(const char *str) 486 486 { 487 487 unsigned long long n; 488 488 ··· 494 494 return n; 495 495 } 496 496 497 - void parse_pid(const char *str) 497 + static void parse_pid(const char *str) 498 498 { 499 499 opt_pid = parse_number(str); 500 500 } 501 501 502 - void parse_file(const char *name) 502 + static void parse_file(const char *name) 503 503 { 504 504 } 505 505 506 - void add_addr_range(unsigned long offset, unsigned long size) 506 + static void add_addr_range(unsigned long offset, unsigned long size) 507 507 { 508 508 if (nr_addr_ranges >= MAX_ADDR_RANGES) 509 509 fatal("too much addr ranges\n"); ··· 513 513 nr_addr_ranges++; 514 514 } 515 515 516 - void parse_addr_range(const char *optarg) 516 + static void parse_addr_range(const char *optarg) 517 517 { 518 518 unsigned long offset; 519 519 unsigned long size; ··· 547 547 add_addr_range(offset, size); 548 548 } 549 549 550 - void add_bits_filter(uint64_t mask, uint64_t bits) 550 + static void add_bits_filter(uint64_t mask, uint64_t bits) 551 551 { 552 552 if (nr_bit_filters >= MAX_BIT_FILTERS) 553 553 fatal("too much bit filters\n"); ··· 557 557 nr_bit_filters++; 558 558 } 559 559 560 - uint64_t parse_flag_name(const char *str, int len) 560 + static uint64_t parse_flag_name(const char *str, int len) 561 561 { 562 562 int i; 563 563 ··· 577 577 return parse_number(str); 578 578 } 579 579 580 - uint64_t parse_flag_names(const char *str, int all) 580 + static uint64_t parse_flag_names(const char *str, int all) 581 581 { 582 582 const char *p = str; 583 583 uint64_t flags = 0; ··· 596 596 return flags; 597 597 } 598 598 599 - void parse_bits_mask(const char *optarg) 599 + static void parse_bits_mask(const char *optarg) 600 600 { 601 601 uint64_t mask; 602 602 uint64_t bits; ··· 621 621 } 622 622 623 623 624 - struct option opts[] = { 624 + static struct option opts[] = { 625 625 { "raw" , 0, NULL, 'r' }, 626 626 { "pid" , 1, NULL, 'p' }, 627 627 { "file" , 1, NULL, 'f' },
+34 -34
Documentation/vm/slabinfo.c
··· 87 87 88 88 regex_t pattern; 89 89 90 - void fatal(const char *x, ...) 90 + static void fatal(const char *x, ...) 91 91 { 92 92 va_list ap; 93 93 ··· 97 97 exit(EXIT_FAILURE); 98 98 } 99 99 100 - void usage(void) 100 + static void usage(void) 101 101 { 102 102 printf("slabinfo 5/7/2007. (c) 2007 sgi.\n\n" 103 103 "slabinfo [-ahnpvtsz] [-d debugopts] [slab-regexp]\n" ··· 131 131 ); 132 132 } 133 133 134 - unsigned long read_obj(const char *name) 134 + static unsigned long read_obj(const char *name) 135 135 { 136 136 FILE *f = fopen(name, "r"); 137 137 ··· 151 151 /* 152 152 * Get the contents of an attribute 153 153 */ 154 - unsigned long get_obj(const char *name) 154 + static unsigned long get_obj(const char *name) 155 155 { 156 156 if (!read_obj(name)) 157 157 return 0; ··· 159 159 return atol(buffer); 160 160 } 161 161 162 - unsigned long get_obj_and_str(const char *name, char **x) 162 + static unsigned long get_obj_and_str(const char *name, char **x) 163 163 { 164 164 unsigned long result = 0; 165 165 char *p; ··· 178 178 return result; 179 179 } 180 180 181 - void set_obj(struct slabinfo *s, const char *name, int n) 181 + static void set_obj(struct slabinfo *s, const char *name, int n) 182 182 { 183 183 char x[100]; 184 184 FILE *f; ··· 192 192 fclose(f); 193 193 } 194 194 195 - unsigned long read_slab_obj(struct slabinfo *s, const char *name) 195 + static unsigned long read_slab_obj(struct slabinfo *s, const char *name) 196 196 { 197 197 char x[100]; 198 198 FILE *f; ··· 215 215 /* 216 216 * Put a size string together 217 217 */ 218 - int store_size(char *buffer, unsigned long value) 218 + static int store_size(char *buffer, unsigned long value) 219 219 { 220 220 unsigned long divisor = 1; 221 221 char trailer = 0; ··· 247 247 return n; 248 248 } 249 249 250 - void decode_numa_list(int *numa, char *t) 250 + static void decode_numa_list(int *numa, char *t) 251 251 { 252 252 int node; 253 253 int nr; ··· 272 272 } 273 273 } 274 274 275 - void slab_validate(struct slabinfo *s) 275 + static void slab_validate(struct slabinfo *s) 276 276 { 277 277 if (strcmp(s->name, "*") == 0) 278 278 return; ··· 280 280 set_obj(s, "validate", 1); 281 281 } 282 282 283 - void slab_shrink(struct slabinfo *s) 283 + static void slab_shrink(struct slabinfo *s) 284 284 { 285 285 if (strcmp(s->name, "*") == 0) 286 286 return; ··· 290 290 291 291 int line = 0; 292 292 293 - void first_line(void) 293 + static void first_line(void) 294 294 { 295 295 if (show_activity) 296 296 printf("Name Objects Alloc Free %%Fast Fallb O\n"); ··· 302 302 /* 303 303 * Find the shortest alias of a slab 304 304 */ 305 - struct aliasinfo *find_one_alias(struct slabinfo *find) 305 + static struct aliasinfo *find_one_alias(struct slabinfo *find) 306 306 { 307 307 struct aliasinfo *a; 308 308 struct aliasinfo *best = NULL; ··· 318 318 return best; 319 319 } 320 320 321 - unsigned long slab_size(struct slabinfo *s) 321 + static unsigned long slab_size(struct slabinfo *s) 322 322 { 323 323 return s->slabs * (page_size << s->order); 324 324 } 325 325 326 - unsigned long slab_activity(struct slabinfo *s) 326 + static unsigned long slab_activity(struct slabinfo *s) 327 327 { 328 328 return s->alloc_fastpath + s->free_fastpath + 329 329 s->alloc_slowpath + s->free_slowpath; 330 330 } 331 331 332 - void slab_numa(struct slabinfo *s, int mode) 332 + static void slab_numa(struct slabinfo *s, int mode) 333 333 { 334 334 int node; 335 335 ··· 374 374 line++; 375 375 } 376 376 377 - void show_tracking(struct slabinfo *s) 377 + static void show_tracking(struct slabinfo *s) 378 378 { 379 379 printf("\n%s: Kernel object allocation\n", s->name); 380 380 printf("-----------------------------------------------------------------------\n"); ··· 392 392 393 393 } 394 394 395 - void ops(struct slabinfo *s) 395 + static void ops(struct slabinfo *s) 396 396 { 397 397 if (strcmp(s->name, "*") == 0) 398 398 return; ··· 405 405 printf("\n%s has no kmem_cache operations\n", s->name); 406 406 } 407 407 408 - const char *onoff(int x) 408 + static const char *onoff(int x) 409 409 { 410 410 if (x) 411 411 return "On "; 412 412 return "Off"; 413 413 } 414 414 415 - void slab_stats(struct slabinfo *s) 415 + static void slab_stats(struct slabinfo *s) 416 416 { 417 417 unsigned long total_alloc; 418 418 unsigned long total_free; ··· 477 477 s->deactivate_to_tail, (s->deactivate_to_tail * 100) / total); 478 478 } 479 479 480 - void report(struct slabinfo *s) 480 + static void report(struct slabinfo *s) 481 481 { 482 482 if (strcmp(s->name, "*") == 0) 483 483 return; ··· 518 518 slab_stats(s); 519 519 } 520 520 521 - void slabcache(struct slabinfo *s) 521 + static void slabcache(struct slabinfo *s) 522 522 { 523 523 char size_str[20]; 524 524 char dist_str[40]; ··· 593 593 /* 594 594 * Analyze debug options. Return false if something is amiss. 595 595 */ 596 - int debug_opt_scan(char *opt) 596 + static int debug_opt_scan(char *opt) 597 597 { 598 598 if (!opt || !opt[0] || strcmp(opt, "-") == 0) 599 599 return 1; ··· 642 642 return 1; 643 643 } 644 644 645 - int slab_empty(struct slabinfo *s) 645 + static int slab_empty(struct slabinfo *s) 646 646 { 647 647 if (s->objects > 0) 648 648 return 0; ··· 657 657 return 1; 658 658 } 659 659 660 - void slab_debug(struct slabinfo *s) 660 + static void slab_debug(struct slabinfo *s) 661 661 { 662 662 if (strcmp(s->name, "*") == 0) 663 663 return; ··· 717 717 set_obj(s, "trace", 1); 718 718 } 719 719 720 - void totals(void) 720 + static void totals(void) 721 721 { 722 722 struct slabinfo *s; 723 723 ··· 976 976 b1, b2, b3); 977 977 } 978 978 979 - void sort_slabs(void) 979 + static void sort_slabs(void) 980 980 { 981 981 struct slabinfo *s1,*s2; 982 982 ··· 1005 1005 } 1006 1006 } 1007 1007 1008 - void sort_aliases(void) 1008 + static void sort_aliases(void) 1009 1009 { 1010 1010 struct aliasinfo *a1,*a2; 1011 1011 ··· 1030 1030 } 1031 1031 } 1032 1032 1033 - void link_slabs(void) 1033 + static void link_slabs(void) 1034 1034 { 1035 1035 struct aliasinfo *a; 1036 1036 struct slabinfo *s; ··· 1048 1048 } 1049 1049 } 1050 1050 1051 - void alias(void) 1051 + static void alias(void) 1052 1052 { 1053 1053 struct aliasinfo *a; 1054 1054 char *active = NULL; ··· 1079 1079 } 1080 1080 1081 1081 1082 - void rename_slabs(void) 1082 + static void rename_slabs(void) 1083 1083 { 1084 1084 struct slabinfo *s; 1085 1085 struct aliasinfo *a; ··· 1102 1102 } 1103 1103 } 1104 1104 1105 - int slab_mismatch(char *slab) 1105 + static int slab_mismatch(char *slab) 1106 1106 { 1107 1107 return regexec(&pattern, slab, 0, NULL, 0); 1108 1108 } 1109 1109 1110 - void read_slab_dir(void) 1110 + static void read_slab_dir(void) 1111 1111 { 1112 1112 DIR *dir; 1113 1113 struct dirent *de; ··· 1209 1209 fatal("Too many aliases\n"); 1210 1210 } 1211 1211 1212 - void output_slabs(void) 1212 + static void output_slabs(void) 1213 1213 { 1214 1214 struct slabinfo *slab; 1215 1215
+1 -1
Documentation/watchdog/src/watchdog-test.c
··· 18 18 * the PC Watchdog card to reset its internal timer so it doesn't trigger 19 19 * a computer reset. 20 20 */ 21 - void keep_alive(void) 21 + static void keep_alive(void) 22 22 { 23 23 int dummy; 24 24
+1 -1
firmware/ihex2fw.c
··· 56 56 static int sort_records = 0; 57 57 static int wide_records = 0; 58 58 59 - int usage(void) 59 + static int usage(void) 60 60 { 61 61 fprintf(stderr, "ihex2fw: Convert ihex files into binary " 62 62 "representation for use by Linux kernel\n");
+3 -3
scripts/genksyms/genksyms.c
··· 176 176 strcmp(defn->string, "{") == 0); 177 177 } 178 178 179 - struct symbol *__add_symbol(const char *name, enum symbol_type type, 179 + static struct symbol *__add_symbol(const char *name, enum symbol_type type, 180 180 struct string_list *defn, int is_extern, 181 181 int is_reference) 182 182 { ··· 265 265 return __add_symbol(name, type, defn, is_extern, 0); 266 266 } 267 267 268 - struct symbol *add_reference_symbol(const char *name, enum symbol_type type, 268 + static struct symbol *add_reference_symbol(const char *name, enum symbol_type type, 269 269 struct string_list *defn, int is_extern) 270 270 { 271 271 return __add_symbol(name, type, defn, is_extern, 1); ··· 313 313 314 314 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) 315 315 316 - struct string_list *read_node(FILE *f) 316 + static struct string_list *read_node(FILE *f) 317 317 { 318 318 char buffer[256]; 319 319 struct string_list node = {