All of lore.kernel.org
 help / color / mirror / Atom feed
* unistd.h: warning: conflicting types for built-in function '_exit'
@ 2004-05-12  0:23 Mathieu Chouquet-Stringer
  0 siblings, 0 replies; only message in thread
From: Mathieu Chouquet-Stringer @ 2004-05-12  0:23 UTC (permalink / raw)
  To: sparclinux

	Hi all,

I was trying to compile the latest 2.6 bk with gcc 3.4.0 and came across
this error. I checked the history of include/asm-i386/unistd.h and Andrew Morton
removed 2 lines in revision 1.32.

Here's his comment:
"Just remove the dang thing - nobody uses _exit().
  
Except for the vmware stub, which breaks.  So I kindly exported do_exit() to
kernel modules, just for vmware..."

Because vmware is only a i386 thing, I guess we don't need to do this so I
just replicated his work for sparc64.

Let me know if this is correct.

Cheers

--- include/asm-sparc64/unistd.h.orig	2004-05-11 20:05:11.000000000 -0400
+++ include/asm-sparc64/unistd.h	2004-05-11 20:06:58.000000000 -0400
@@ -437,7 +437,7 @@
  * won't be any messing with the stack from main(), but we define
  * some others too.
  */
-#define __NR__exit __NR_exit
+
 static __inline__ _syscall0(pid_t,setsid)
 static __inline__ _syscall3(int,write,int,fd,__const__ char *,buf,off_t,count)
 static __inline__ _syscall3(int,read,int,fd,char *,buf,off_t,count)
@@ -446,7 +446,7 @@
 static __inline__ _syscall3(int,execve,__const__ char *,file,char **,argv,char **,envp)
 static __inline__ _syscall3(int,open,__const__ char *,file,int,flag,int,mode)
 static __inline__ _syscall1(int,close,int,fd)
-static __inline__ _syscall1(int,_exit,int,exitcode)
+
 static __inline__ _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
 
 #include <linux/linkage.h>


-- 
Mathieu Chouquet-Stringer                 E-Mail: mchouque@online.fr
       Never attribute to malice that which can be adequately
                    explained by stupidity.
                     -- Hanlon's Razor --

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-12  0:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12  0:23 unistd.h: warning: conflicting types for built-in function '_exit' Mathieu Chouquet-Stringer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.