Skip to content

Commit

Permalink
[PATCH] abandon gcc 295x main.c tidy
Browse files Browse the repository at this point in the history
After abandon-gcc-295x.patch, this relocates the error-out-early comment.

Signed-off-by: Coywolf Qi Hunt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Coywolf Qi Hunt authored and Linus Torvalds committed Jan 15, 2006
1 parent 3135806 commit 69c99ac
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,18 @@
#include <asm/sections.h>
#include <asm/cacheflush.h>

/*
* This is one of the first .c files built. Error out early
* if we have compiler trouble..
*/

#ifdef CONFIG_X86_LOCAL_APIC
#include <asm/smp.h>
#endif

/*
* Versions of gcc older than that listed below may actually compile
* and link okay, but the end product can have subtle run time bugs.
* To avoid associated bogus bug reports, we flatly refuse to compile
* with a gcc that is known to be too old from the very beginning.
* This is one of the first .c files built. Error out early if we have compiler
* trouble.
*
* Versions of gcc older than that listed below may actually compile and link
* okay, but the end product can have subtle run time bugs. To avoid associated
* bogus bug reports, we flatly refuse to compile with a gcc that is known to be
* too old from the very beginning.
*/
#if (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 2)
#error Sorry, your GCC is too old. It builds incorrect kernels.
Expand Down

0 comments on commit 69c99ac

Please sign in to comment.