diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-16 10:46:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-16 10:46:34 -0400 |
commit | 6b7b352f2102e21f9d8f38e932f01d9c5705c073 (patch) | |
tree | 189dc171c0de4754d6dcf96c1c68ce300b80e687 /kernel | |
parent | a3eb51ecfa1d7be689f05c9f12cb0fcf862c516e (diff) | |
parent | cb684b5bcd6a79ae7e2360c6b158c4aa7b0a293a (diff) |
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
block: fix linkage problem with blk_iopoll and !CONFIG_BLOCK
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 6bb59f707402..1a631ba684a4 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -91,7 +91,9 @@ extern int sysctl_nr_trim_pages; | |||
91 | #ifdef CONFIG_RCU_TORTURE_TEST | 91 | #ifdef CONFIG_RCU_TORTURE_TEST |
92 | extern int rcutorture_runnable; | 92 | extern int rcutorture_runnable; |
93 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | 93 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ |
94 | #ifdef CONFIG_BLOCK | ||
94 | extern int blk_iopoll_enabled; | 95 | extern int blk_iopoll_enabled; |
96 | #endif | ||
95 | 97 | ||
96 | /* Constants used for minimum and maximum */ | 98 | /* Constants used for minimum and maximum */ |
97 | #ifdef CONFIG_DETECT_SOFTLOCKUP | 99 | #ifdef CONFIG_DETECT_SOFTLOCKUP |
@@ -998,6 +1000,7 @@ static struct ctl_table kern_table[] = { | |||
998 | .proc_handler = &proc_dointvec, | 1000 | .proc_handler = &proc_dointvec, |
999 | }, | 1001 | }, |
1000 | #endif | 1002 | #endif |
1003 | #ifdef CONFIG_BLOCK | ||
1001 | { | 1004 | { |
1002 | .ctl_name = CTL_UNNUMBERED, | 1005 | .ctl_name = CTL_UNNUMBERED, |
1003 | .procname = "blk_iopoll", | 1006 | .procname = "blk_iopoll", |
@@ -1006,6 +1009,7 @@ static struct ctl_table kern_table[] = { | |||
1006 | .mode = 0644, | 1009 | .mode = 0644, |
1007 | .proc_handler = &proc_dointvec, | 1010 | .proc_handler = &proc_dointvec, |
1008 | }, | 1011 | }, |
1012 | #endif | ||
1009 | /* | 1013 | /* |
1010 | * NOTE: do not add new entries to this table unless you have read | 1014 | * NOTE: do not add new entries to this table unless you have read |
1011 | * Documentation/sysctl/ctl_unnumbered.txt | 1015 | * Documentation/sysctl/ctl_unnumbered.txt |