remove CONFIG_KMOD from fs · github-ivan/linux-2.6@5f4123b · GitHub
Skip to content

Commit 5f4123b

Browse files
jmbergrustyrussell
authored andcommitted
remove CONFIG_KMOD from fs
Just always compile the code when the kernel is modular. Convert load_nls to use try_then_request_module to tidy up the code. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent a65e5d7 commit 5f4123b

3 files changed

Lines changed: 4 additions & 29 deletions

File tree

fs/char_dev.c

Lines changed: 0 additions & 3 deletions

fs/exec.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,12 @@
5050
#include <linux/cn_proc.h>
5151
#include <linux/audit.h>
5252
#include <linux/tracehook.h>
53+
#include <linux/kmod.h>
5354

5455
#include <asm/uaccess.h>
5556
#include <asm/mmu_context.h>
5657
#include <asm/tlb.h>
5758

58-
#ifdef CONFIG_KMOD
59-
#include <linux/kmod.h>
60-
#endif
61-
6259
#ifdef __alpha__
6360
/* for /sbin/loader handling in search_binary_handler() */
6461
#include <linux/a.out.h>
@@ -1247,8 +1244,8 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
12471244
read_unlock(&binfmt_lock);
12481245
if (retval != -ENOEXEC || bprm->mm == NULL) {
12491246
break;
1250-
#ifdef CONFIG_KMOD
1251-
}else{
1247+
#ifdef CONFIG_MODULES
1248+
} else {
12521249
#define printable(c) (((c)=='\t') || ((c)=='\n') || (0x20<=(c) && (c)<=0x7e))
12531250
if (printable(bprm->buf[0]) &&
12541251
printable(bprm->buf[1]) &&

fs/nls/nls_base.c

Lines changed: 1 addition & 20 deletions

0 commit comments

Comments
 (0)