public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [mmotm] change "getline" to "get_line" to avoid C library  confusion
@ 2009-09-14  3:59 Nitin Gupta
  2009-09-14 22:24 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Nitin Gupta @ 2009-09-14  3:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: justinmattock, linux-kernel

Reintroduce this change to fix compilation error on mmotm.
(Original change by Justin P. Mattock)

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
---
 scripts/unifdef.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/unifdef.c b/scripts/unifdef.c
index 552025e..05a31a6 100644
--- a/scripts/unifdef.c
+++ b/scripts/unifdef.c
@@ -206,7 +206,7 @@ static void             done(void);
 static void             error(const char *);
 static int              findsym(const char *);
 static void             flushline(bool);
-static Linetype         getline(void);
+static Linetype         get_line(void);
 static Linetype         ifeval(const char **);
 static void             ignoreoff(void);
 static void             ignoreon(void);
@@ -512,7 +512,7 @@ process(void)

 	for (;;) {
 		linenum++;
-		lineval = getline();
+		lineval = get_line();
 		trans_table[ifstate[depth]][lineval]();
 		debug("process %s -> %s depth %d",
 		    linetype_name[lineval],
@@ -526,7 +526,7 @@ process(void)
  * help from skipcomment().
  */
 static Linetype
-getline(void)
+get_line(void)
 {
 	const char *cp;
 	int cursym;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] [mmotm] change "getline" to "get_line" to avoid C library  confusion
  2009-09-14  3:59 [PATCH] [mmotm] change "getline" to "get_line" to avoid C library confusion Nitin Gupta
@ 2009-09-14 22:24 ` Andrew Morton
  2009-09-15  2:57   ` Nitin Gupta
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2009-09-14 22:24 UTC (permalink / raw)
  To: Nitin Gupta; +Cc: justinmattock, linux-kernel

On Mon, 14 Sep 2009 09:29:30 +0530
Nitin Gupta <ngupta@vflare.org> wrote:

> Reintroduce this change to fix compilation error on mmotm.
> (Original change by Justin P. Mattock)
> 
> Signed-off-by: Nitin Gupta <ngupta@vflare.org>
> ---
>  scripts/unifdef.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/scripts/unifdef.c b/scripts/unifdef.c
> index 552025e..05a31a6 100644
> --- a/scripts/unifdef.c
> +++ b/scripts/unifdef.c
> @@ -206,7 +206,7 @@ static void             done(void);
>  static void             error(const char *);
>  static int              findsym(const char *);
>  static void             flushline(bool);
> -static Linetype         getline(void);
> +static Linetype         get_line(void);
>  static Linetype         ifeval(const char **);
>  static void             ignoreoff(void);
>  static void             ignoreon(void);
> @@ -512,7 +512,7 @@ process(void)
> 
>  	for (;;) {
>  		linenum++;
> -		lineval = getline();
> +		lineval = get_line();
>  		trans_table[ifstate[depth]][lineval]();
>  		debug("process %s -> %s depth %d",
>  		    linetype_name[lineval],
> @@ -526,7 +526,7 @@ process(void)
>   * help from skipcomment().
>   */
>  static Linetype
> -getline(void)
> +get_line(void)
>  {
>  	const char *cp;


I'm all confused again.  This:

commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7
Author:     Justin P. Mattock <justinmattock@gmail.com>
AuthorDate: Sat Mar 7 13:31:29 2009 +0100
Commit:     Sam Ravnborg <sam@ravnborg.org>
CommitDate: Sat Mar 7 13:31:29 2009 +0100

    kbuild: fix C libary confusion in unifdef.c due to getline()

went into mainline months ago and afaict nothing has subsequently
changed in that area?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [mmotm] change "getline" to "get_line" to avoid C library confusion
  2009-09-14 22:24 ` Andrew Morton
@ 2009-09-15  2:57   ` Nitin Gupta
  0 siblings, 0 replies; 3+ messages in thread
From: Nitin Gupta @ 2009-09-15  2:57 UTC (permalink / raw)
  To: Andrew Morton; +Cc: justinmattock, linux-kernel

On 09/15/2009 03:54 AM, Andrew Morton wrote:
> On Mon, 14 Sep 2009 09:29:30 +0530
> Nitin Gupta<ngupta@vflare.org>  wrote:
>
>> Reintroduce this change to fix compilation error on mmotm.
>> (Original change by Justin P. Mattock)


>
> I'm all confused again.  This:
>
> commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7
> Author:     Justin P. Mattock<justinmattock@gmail.com>
> AuthorDate: Sat Mar 7 13:31:29 2009 +0100
> Commit:     Sam Ravnborg<sam@ravnborg.org>
> CommitDate: Sat Mar 7 13:31:29 2009 +0100
>
>      kbuild: fix C libary confusion in unifdef.c due to getline()
>
> went into mainline months ago and afaict nothing has subsequently
> changed in that area?
>
>

This is already fixed in mainline but this patch is for mmotm. On mmotm,
this change is not present. So, I'm now having compilation error while
compiling mmotm tree (not mainline):

mmotm/scripts/unifdef.c:209: error: conflicting types for ‘getline’
/usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here
make[3]: *** [scripts/unifdef] Error 1
make[2]: *** [__headers] Error 2
make[1]: *** [vmlinux] Error 2
make: *** [sub-make] Error 2


Thanks,
Nitin





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-15  2:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14  3:59 [PATCH] [mmotm] change "getline" to "get_line" to avoid C library confusion Nitin Gupta
2009-09-14 22:24 ` Andrew Morton
2009-09-15  2:57   ` Nitin Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox