Skip to content

Commit d15bd10

Browse files
Justin P. Mattocksravnborg
authored andcommitted
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>
1 parent 559595a commit d15bd10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/unifdef.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void done(void);
206206
static void error(const char *);
207207
static int findsym(const char *);
208208
static void flushline(bool);
209-
static Linetype getline(void);
209+
static Linetype get_line(void);
210210
static Linetype ifeval(const char **);
211211
static void ignoreoff(void);
212212
static void ignoreon(void);
@@ -512,7 +512,7 @@ process(void)
512512

513513
for (;;) {
514514
linenum++;
515-
lineval = getline();
515+
lineval = get_line();
516516
trans_table[ifstate[depth]][lineval]();
517517
debug("process %s -> %s depth %d",
518518
linetype_name[lineval],
@@ -526,7 +526,7 @@ process(void)
526526
* help from skipcomment().
527527
*/
528528
static Linetype
529-
getline(void)
529+
get_line(void)
530530
{
531531
const char *cp;
532532
int cursym;

0 commit comments

Comments
 (0)