aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts_initrd.c1
-rw-r--r--init/initramfs.c4
-rw-r--r--init/main.c4
3 files changed, 9 insertions, 0 deletions
diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index 919a80cb322e..2cfd7cb36e79 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -6,6 +6,7 @@
6#include <linux/romfs_fs.h> 6#include <linux/romfs_fs.h>
7#include <linux/initrd.h> 7#include <linux/initrd.h>
8#include <linux/sched.h> 8#include <linux/sched.h>
9#include <linux/freezer.h>
9 10
10#include "do_mounts.h" 11#include "do_mounts.h"
11 12
diff --git a/init/initramfs.c b/init/initramfs.c
index d28c1094d7e5..85f04037ade1 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -182,6 +182,10 @@ static int __init do_collect(void)
182 182
183static int __init do_header(void) 183static int __init do_header(void)
184{ 184{
185 if (memcmp(collected, "070707", 6)==0) {
186 error("incorrect cpio method used: use -H newc option");
187 return 1;
188 }
185 if (memcmp(collected, "070701", 6)) { 189 if (memcmp(collected, "070701", 6)) {
186 error("no cpio magic"); 190 error("no cpio magic");
187 return 1; 191 return 1;
diff --git a/init/main.c b/init/main.c
index 985c9ed86050..1174ae3aec8c 100644
--- a/init/main.c
+++ b/init/main.c
@@ -74,6 +74,10 @@
74#error Sorry, your GCC is too old. It builds incorrect kernels. 74#error Sorry, your GCC is too old. It builds incorrect kernels.
75#endif 75#endif
76 76
77#if __GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 0
78#warning gcc-4.1.0 is known to miscompile the kernel. A different compiler version is recommended.
79#endif
80
77static int init(void *); 81static int init(void *);
78 82
79extern void init_IRQ(void); 83extern void init_IRQ(void);