From: Jesper Juhl <jj@chaosbits.net>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: [PATCH][rfc] Use int as return type of main in arch/x86/boot/main.c
Date: Sun, 13 Mar 2011 23:00:09 +0100 (CET) [thread overview]
Message-ID: <alpine.LNX.2.00.1103132257430.9985@swampdragon.chaosbits.net> (raw)
I believe the return type of main should always be 'int'.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c
index 40358c8..4b80da8 100644
--- a/arch/x86/boot/main.c
+++ b/arch/x86/boot/main.c
@@ -125,7 +125,7 @@ static void init_heap(void)
}
}
-void main(void)
+int main(void)
{
/* First, copy the boot header into the "zeropage" */
copy_boot_params();
@@ -175,4 +175,6 @@ void main(void)
/* Do the last things and invoke protected mode */
go_to_protected_mode();
+
+ return 0;
}
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Plain text mails only, please.
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
next reply other threads:[~2011-03-13 22:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-13 22:00 Jesper Juhl [this message]
2011-03-14 11:32 ` Harry Wei
2011-03-14 16:49 ` H. Peter Anvin
2011-03-14 19:04 ` Steven Rostedt
2011-03-14 23:35 ` Jesper Juhl
2011-03-14 19:03 ` Steven Rostedt
2011-03-14 22:50 ` H. Peter Anvin
2011-03-15 2:31 ` Steven Rostedt
2011-03-15 13:55 ` WANG Cong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1103132257430.9985@swampdragon.chaosbits.net \
--to=jj@chaosbits.net \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®