diff options
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 16 | ||||
| -rw-r--r-- | init/do_mounts_rd.c | 2 | ||||
| -rw-r--r-- | init/initramfs.c | 2 | ||||
| -rw-r--r-- | init/main.c | 25 |
4 files changed, 15 insertions, 30 deletions
diff --git a/init/Kconfig b/init/Kconfig index 5236dc562a36..009a797dd242 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -284,7 +284,7 @@ config AUDIT | |||
| 284 | 284 | ||
| 285 | config AUDITSYSCALL | 285 | config AUDITSYSCALL |
| 286 | bool "Enable system-call auditing support" | 286 | bool "Enable system-call auditing support" |
| 287 | depends on AUDIT && (X86 || PARISC || PPC || S390 || IA64 || UML || SPARC64 || SUPERH || (ARM && AEABI && !OABI_COMPAT)) | 287 | depends on AUDIT && (X86 || PARISC || PPC || S390 || IA64 || UML || SPARC64 || SUPERH || (ARM && AEABI && !OABI_COMPAT) || ALPHA) |
| 288 | default y if SECURITY_SELINUX | 288 | default y if SECURITY_SELINUX |
| 289 | help | 289 | help |
| 290 | Enable low-overhead system-call auditing infrastructure that | 290 | Enable low-overhead system-call auditing infrastructure that |
| @@ -854,7 +854,6 @@ config NUMA_BALANCING | |||
| 854 | 854 | ||
| 855 | menuconfig CGROUPS | 855 | menuconfig CGROUPS |
| 856 | boolean "Control Group support" | 856 | boolean "Control Group support" |
| 857 | depends on EVENTFD | ||
| 858 | help | 857 | help |
| 859 | This option adds support for grouping sets of processes together, for | 858 | This option adds support for grouping sets of processes together, for |
| 860 | use with process control subsystems such as Cpusets, CFS, memory | 859 | use with process control subsystems such as Cpusets, CFS, memory |
| @@ -921,6 +920,7 @@ config MEMCG | |||
| 921 | bool "Memory Resource Controller for Control Groups" | 920 | bool "Memory Resource Controller for Control Groups" |
| 922 | depends on RESOURCE_COUNTERS | 921 | depends on RESOURCE_COUNTERS |
| 923 | select MM_OWNER | 922 | select MM_OWNER |
| 923 | select EVENTFD | ||
| 924 | help | 924 | help |
| 925 | Provides a memory resource controller that manages both anonymous | 925 | Provides a memory resource controller that manages both anonymous |
| 926 | memory and page cache. (See Documentation/cgroups/memory.txt) | 926 | memory and page cache. (See Documentation/cgroups/memory.txt) |
| @@ -1116,8 +1116,6 @@ config IPC_NS | |||
| 1116 | 1116 | ||
| 1117 | config USER_NS | 1117 | config USER_NS |
| 1118 | bool "User namespace" | 1118 | bool "User namespace" |
| 1119 | select UIDGID_STRICT_TYPE_CHECKS | ||
| 1120 | |||
| 1121 | default n | 1119 | default n |
| 1122 | help | 1120 | help |
| 1123 | This allows containers, i.e. vservers, to use user namespaces | 1121 | This allows containers, i.e. vservers, to use user namespaces |
| @@ -1149,18 +1147,8 @@ config NET_NS | |||
| 1149 | 1147 | ||
| 1150 | endif # NAMESPACES | 1148 | endif # NAMESPACES |
| 1151 | 1149 | ||
| 1152 | config UIDGID_STRICT_TYPE_CHECKS | ||
| 1153 | bool "Require conversions between uid/gids and their internal representation" | ||
| 1154 | default n | ||
| 1155 | help | ||
| 1156 | While the nececessary conversions are being added to all subsystems this option allows | ||
| 1157 | the code to continue to build for unconverted subsystems. | ||
| 1158 | |||
| 1159 | Say Y here if you want the strict type checking enabled | ||
| 1160 | |||
| 1161 | config SCHED_AUTOGROUP | 1150 | config SCHED_AUTOGROUP |
| 1162 | bool "Automatic process group scheduling" | 1151 | bool "Automatic process group scheduling" |
| 1163 | select EVENTFD | ||
| 1164 | select CGROUPS | 1152 | select CGROUPS |
| 1165 | select CGROUP_SCHED | 1153 | select CGROUP_SCHED |
| 1166 | select FAIR_GROUP_SCHED | 1154 | select FAIR_GROUP_SCHED |
diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index 7c098ac9068a..a8227022e3a0 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <linux/minix_fs.h> | 13 | #include <linux/minix_fs.h> |
| 14 | #include <linux/ext2_fs.h> | 14 | #include <linux/ext2_fs.h> |
| 15 | #include <linux/romfs_fs.h> | 15 | #include <linux/romfs_fs.h> |
| 16 | #include <linux/cramfs_fs.h> | 16 | #include <uapi/linux/cramfs_fs.h> |
| 17 | #include <linux/initrd.h> | 17 | #include <linux/initrd.h> |
| 18 | #include <linux/string.h> | 18 | #include <linux/string.h> |
| 19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
diff --git a/init/initramfs.c b/init/initramfs.c index a67ef9dbda9d..93b61396756b 100644 --- a/init/initramfs.c +++ b/init/initramfs.c | |||
| @@ -583,7 +583,7 @@ static int __init populate_rootfs(void) | |||
| 583 | { | 583 | { |
| 584 | char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size); | 584 | char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size); |
| 585 | if (err) | 585 | if (err) |
| 586 | panic(err); /* Failed to decompress INTERNAL initramfs */ | 586 | panic("%s", err); /* Failed to decompress INTERNAL initramfs */ |
| 587 | if (initrd_start) { | 587 | if (initrd_start) { |
| 588 | #ifdef CONFIG_BLK_DEV_RAM | 588 | #ifdef CONFIG_BLK_DEV_RAM |
| 589 | int fd; | 589 | int fd; |
diff --git a/init/main.c b/init/main.c index febc511e078a..2fd9cef70ee8 100644 --- a/init/main.c +++ b/init/main.c | |||
| @@ -92,17 +92,11 @@ static int kernel_init(void *); | |||
| 92 | 92 | ||
| 93 | extern void init_IRQ(void); | 93 | extern void init_IRQ(void); |
| 94 | extern void fork_init(unsigned long); | 94 | extern void fork_init(unsigned long); |
| 95 | extern void mca_init(void); | ||
| 96 | extern void sbus_init(void); | ||
| 97 | extern void radix_tree_init(void); | 95 | extern void radix_tree_init(void); |
| 98 | #ifndef CONFIG_DEBUG_RODATA | 96 | #ifndef CONFIG_DEBUG_RODATA |
| 99 | static inline void mark_rodata_ro(void) { } | 97 | static inline void mark_rodata_ro(void) { } |
| 100 | #endif | 98 | #endif |
| 101 | 99 | ||
| 102 | #ifdef CONFIG_TC | ||
| 103 | extern void tc_init(void); | ||
| 104 | #endif | ||
| 105 | |||
| 106 | /* | 100 | /* |
| 107 | * Debug helper: via this flag we know that we are in 'early bootup code' | 101 | * Debug helper: via this flag we know that we are in 'early bootup code' |
| 108 | * where only the boot processor is running with IRQ disabled. This means | 102 | * where only the boot processor is running with IRQ disabled. This means |
| @@ -282,7 +276,7 @@ static int __init unknown_bootoption(char *param, char *val, const char *unused) | |||
| 282 | unsigned int i; | 276 | unsigned int i; |
| 283 | for (i = 0; envp_init[i]; i++) { | 277 | for (i = 0; envp_init[i]; i++) { |
| 284 | if (i == MAX_INIT_ENVS) { | 278 | if (i == MAX_INIT_ENVS) { |
| 285 | panic_later = "Too many boot env vars at `%s'"; | 279 | panic_later = "env"; |
| 286 | panic_param = param; | 280 | panic_param = param; |
| 287 | } | 281 | } |
| 288 | if (!strncmp(param, envp_init[i], val - param)) | 282 | if (!strncmp(param, envp_init[i], val - param)) |
| @@ -294,7 +288,7 @@ static int __init unknown_bootoption(char *param, char *val, const char *unused) | |||
| 294 | unsigned int i; | 288 | unsigned int i; |
| 295 | for (i = 0; argv_init[i]; i++) { | 289 | for (i = 0; argv_init[i]; i++) { |
| 296 | if (i == MAX_INIT_ARGS) { | 290 | if (i == MAX_INIT_ARGS) { |
| 297 | panic_later = "Too many boot init vars at `%s'"; | 291 | panic_later = "init"; |
| 298 | panic_param = param; | 292 | panic_param = param; |
| 299 | } | 293 | } |
| 300 | } | 294 | } |
| @@ -355,9 +349,11 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { } | |||
| 355 | */ | 349 | */ |
| 356 | static void __init setup_command_line(char *command_line) | 350 | static void __init setup_command_line(char *command_line) |
| 357 | { | 351 | { |
| 358 | saved_command_line = alloc_bootmem(strlen (boot_command_line)+1); | 352 | saved_command_line = |
| 359 | initcall_command_line = alloc_bootmem(strlen (boot_command_line)+1); | 353 | memblock_virt_alloc(strlen(boot_command_line) + 1, 0); |
| 360 | static_command_line = alloc_bootmem(strlen (command_line)+1); | 354 | initcall_command_line = |
| 355 | memblock_virt_alloc(strlen(boot_command_line) + 1, 0); | ||
| 356 | static_command_line = memblock_virt_alloc(strlen(command_line) + 1, 0); | ||
| 361 | strcpy (saved_command_line, boot_command_line); | 357 | strcpy (saved_command_line, boot_command_line); |
| 362 | strcpy (static_command_line, command_line); | 358 | strcpy (static_command_line, command_line); |
| 363 | } | 359 | } |
| @@ -476,7 +472,7 @@ static void __init mm_init(void) | |||
| 476 | mem_init(); | 472 | mem_init(); |
| 477 | kmem_cache_init(); | 473 | kmem_cache_init(); |
| 478 | percpu_init_late(); | 474 | percpu_init_late(); |
| 479 | pgtable_cache_init(); | 475 | pgtable_init(); |
| 480 | vmalloc_init(); | 476 | vmalloc_init(); |
| 481 | } | 477 | } |
| 482 | 478 | ||
| @@ -565,6 +561,7 @@ asmlinkage void __init start_kernel(void) | |||
| 565 | init_timers(); | 561 | init_timers(); |
| 566 | hrtimers_init(); | 562 | hrtimers_init(); |
| 567 | softirq_init(); | 563 | softirq_init(); |
| 564 | acpi_early_init(); | ||
| 568 | timekeeping_init(); | 565 | timekeeping_init(); |
| 569 | time_init(); | 566 | time_init(); |
| 570 | sched_clock_postinit(); | 567 | sched_clock_postinit(); |
| @@ -584,7 +581,8 @@ asmlinkage void __init start_kernel(void) | |||
| 584 | */ | 581 | */ |
| 585 | console_init(); | 582 | console_init(); |
| 586 | if (panic_later) | 583 | if (panic_later) |
| 587 | panic(panic_later, panic_param); | 584 | panic("Too many boot %s vars at `%s'", panic_later, |
| 585 | panic_param); | ||
| 588 | 586 | ||
| 589 | lockdep_info(); | 587 | lockdep_info(); |
| 590 | 588 | ||
| @@ -641,7 +639,6 @@ asmlinkage void __init start_kernel(void) | |||
| 641 | 639 | ||
| 642 | check_bugs(); | 640 | check_bugs(); |
| 643 | 641 | ||
| 644 | acpi_early_init(); /* before LAPIC and SMP init */ | ||
| 645 | sfi_init_late(); | 642 | sfi_init_late(); |
| 646 | 643 | ||
| 647 | if (efi_enabled(EFI_RUNTIME_SERVICES)) { | 644 | if (efi_enabled(EFI_RUNTIME_SERVICES)) { |
