Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=70d8abf5df857ca7befe02e5d61fde807420a54c Commit: 70d8abf5df857ca7befe02e5d61fde807420a54c Parent: f7775016c66c2f45125f22968c351c88868ee7a3 Author: H. Peter Anvin <[EMAIL PROTECTED]> AuthorDate: Wed Jan 30 13:33:03 2008 +0100 Committer: Ingo Molnar <[EMAIL PROTECTED]> CommitDate: Wed Jan 30 13:33:03 2008 +0100
x86 setup: add missing prototype; formatting fix Add prototype for cmdline_find_option_bool() missing from: x86 setup: early cmdline parser handle boolean options Also, fix up a minor formatting error in that patch. Signed-off-by: H. Peter Anvin <[EMAIL PROTECTED]> Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]> --- arch/x86/boot/boot.h | 1 + arch/x86/boot/cmdline.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index 8ec5752..7822a49 100644 --- a/arch/x86/boot/boot.h +++ b/arch/x86/boot/boot.h @@ -241,6 +241,7 @@ int query_apm_bios(void); /* cmdline.c */ int cmdline_find_option(const char *option, char *buffer, int bufsize); +int cmdline_find_option_bool(const char *option); /* cpu.c, cpucheck.c */ int check_cpu(int *cpu_level_ptr, int *req_level_ptr, u32 **err_flags_ptr); diff --git a/arch/x86/boot/cmdline.c b/arch/x86/boot/cmdline.c index cc65a33..680408a 100644 --- a/arch/x86/boot/cmdline.c +++ b/arch/x86/boot/cmdline.c @@ -107,7 +107,7 @@ int cmdline_find_option_bool(const char *option) u32 cmdline_ptr = boot_params.hdr.cmd_line_ptr; addr_t cptr; char c; - int pos =0 , wstart = 0; + int pos = 0, wstart = 0; const char *opptr = NULL; enum { st_wordstart, /* Start of word/after whitespace */ - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html