Commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7
Committed by
Sam Ravnborg
1 parent
559595a985
Exists in
master
and in
39 other branches
kbuild: fix C libary confusion in unifdef.c due to getline()
This fixes an error when compiling the kernel. CHK include/linux/version.h HOSTCC scripts/unifdef scripts/unifdef.c:209: error: conflicting types for 'getline' /usr/include/stdio.h:651: note: previous declaration of 'getline' was here make[1]: *** [scripts/unifdef] Error 1 make: *** [__headers] Error 2 Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
scripts/unifdef.c
... | ... | @@ -206,7 +206,7 @@ |
206 | 206 | static void error(const char *); |
207 | 207 | static int findsym(const char *); |
208 | 208 | static void flushline(bool); |
209 | -static Linetype getline(void); | |
209 | +static Linetype get_line(void); | |
210 | 210 | static Linetype ifeval(const char **); |
211 | 211 | static void ignoreoff(void); |
212 | 212 | static void ignoreon(void); |
... | ... | @@ -512,7 +512,7 @@ |
512 | 512 | |
513 | 513 | for (;;) { |
514 | 514 | linenum++; |
515 | - lineval = getline(); | |
515 | + lineval = get_line(); | |
516 | 516 | trans_table[ifstate[depth]][lineval](); |
517 | 517 | debug("process %s -> %s depth %d", |
518 | 518 | linetype_name[lineval], |
... | ... | @@ -526,7 +526,7 @@ |
526 | 526 | * help from skipcomment(). |
527 | 527 | */ |
528 | 528 | static Linetype |
529 | -getline(void) | |
529 | +get_line(void) | |
530 | 530 | { |
531 | 531 | const char *cp; |
532 | 532 | int cursym; |