[PATCH] x86_64: Avoid a obnoxious warning during build.
Linux Kernel Mailing List <[email protected]> Thu, 07 Apr 2005 12:09:04 +0000
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1501, 2005/04/07 09:09:04-03:00, [email protected] [PATCH] x86_64: Avoid a obnoxious warning during build. Avoid a obnoxious warning during build. gcc predeclares exit() as extern, so follow this for the inline too. Index: linux/include/asm-x86_64/unistd.h =================================================================== unistd.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/include/asm-x86_64/unistd.h b/include/asm-x86_64/unistd.h --- a/include/asm-x86_64/unistd.h 2005-04-07 11:04:11 -07:00 +++ b/include/asm-x86_64/unistd.h 2005-04-07 11:04:11 -07:00 @@ -673,7 +673,7 @@ } extern long sys_exit(int) __attribute__((noreturn)); -static inline void exit(int error_code) +extern inline void exit(int error_code) { sys_exit(error_code); }