diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 15 | ||||
-rw-r--r-- | init/main.c | 5 |
2 files changed, 8 insertions, 12 deletions
diff --git a/init/Kconfig b/init/Kconfig index 6199d1120900..a50bdfed2df7 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -856,8 +856,8 @@ config MODULE_UNLOAD | |||
856 | help | 856 | help |
857 | Without this option you will not be able to unload any | 857 | Without this option you will not be able to unload any |
858 | modules (note that some modules may not be unloadable | 858 | modules (note that some modules may not be unloadable |
859 | anyway), which makes your kernel slightly smaller and | 859 | anyway), which makes your kernel smaller, faster |
860 | simpler. If unsure, say Y. | 860 | and simpler. If unsure, say Y. |
861 | 861 | ||
862 | config MODULE_FORCE_UNLOAD | 862 | config MODULE_FORCE_UNLOAD |
863 | bool "Forced module unloading" | 863 | bool "Forced module unloading" |
@@ -893,16 +893,11 @@ config MODULE_SRCVERSION_ALL | |||
893 | will be created for all modules. If unsure, say N. | 893 | will be created for all modules. If unsure, say N. |
894 | 894 | ||
895 | config KMOD | 895 | config KMOD |
896 | bool "Automatic kernel module loading" | 896 | def_bool y |
897 | depends on MODULES | 897 | depends on MODULES |
898 | help | 898 | help |
899 | Normally when you have selected some parts of the kernel to | 899 | This is being removed soon. These days, CONFIG_MODULES |
900 | be created as kernel modules, you must load them (using the | 900 | implies CONFIG_KMOD, so use that instead. |
901 | "modprobe" command) before you can use them. If you say Y | ||
902 | here, some parts of the kernel will be able to load modules | ||
903 | automatically: when a part of the kernel needs a module, it | ||
904 | runs modprobe with the appropriate arguments, thereby | ||
905 | loading the module if it is available. If unsure, say Y. | ||
906 | 901 | ||
907 | config STOP_MACHINE | 902 | config STOP_MACHINE |
908 | bool | 903 | bool |
diff --git a/init/main.c b/init/main.c index dd25259530ea..2769dc031c62 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -637,9 +637,10 @@ asmlinkage void __init start_kernel(void) | |||
637 | 637 | ||
638 | #ifdef CONFIG_BLK_DEV_INITRD | 638 | #ifdef CONFIG_BLK_DEV_INITRD |
639 | if (initrd_start && !initrd_below_start_ok && | 639 | if (initrd_start && !initrd_below_start_ok && |
640 | initrd_start < min_low_pfn << PAGE_SHIFT) { | 640 | page_to_pfn(virt_to_page(initrd_start)) < min_low_pfn) { |
641 | printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " | 641 | printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " |
642 | "disabling it.\n",initrd_start,min_low_pfn << PAGE_SHIFT); | 642 | "disabling it.\n", |
643 | page_to_pfn(virt_to_page(initrd_start)), min_low_pfn); | ||
643 | initrd_start = 0; | 644 | initrd_start = 0; |
644 | } | 645 | } |
645 | #endif | 646 | #endif |