sysctl: fix build breakage
Subsystems (2)
PATCH 1/1 sysctl: fix build breakage
Fix this build error when MODULES is not set:kernel/sysctl.c:545: error: 'one' undeclared here
---
kernel/sysctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sysctl.c +1 -1
@@ -91,7 +91,7 @@ extern int rcutorture_runnable;#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ /* Constants used for minimum and maximum */ -#if defined(CONFIG_DETECT_HUNG_TASK ) || defined(CONFIG_DETECT_SOFTLOCKUP ) || defined(CONFIG_HIGHMEM ) +#if defined(CONFIG_DETECT_HUNG_TASK ) || defined(CONFIG_DETECT_SOFTLOCKUP ) || defined(CONFIG_HIGHMEM ) || defined(CONFIG_MODULES )static int one =1 ;#endif #ifdef CONFIG_DETECT_SOFTLOCKUP
Hi Alexander,
Quoted 3 lines · On Mon, 6 Apr 2009 11:01:52 +0400 Alexander Beregalov <[email protected]>…
Fix this build error when MODULES is not set:
kernel/sysctl.c:545: error: 'one' undeclared here
Thanks for this.
This is a result of the automated merge of the security-testing tree into the linux-next tree getting it wrong (but it is unreasonable to expect it to get it right). I will fix this up tomorrow if it is still necessary.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 11 lines · On Mon, 6 Apr 2009 17:11:12 +1000 Stephen Rothwell <[email protected]> wrote:
Quoted 3 lines · On Mon, 6 Apr 2009 11:01:52 +0400 Alexander Beregalov <[email protected]>…
Fix this build error when MODULES is not set:
kernel/sysctl.c:545: error: 'one' undeclared hereThanks for this.
This is a result of the automated merge of the security-testing tree into the linux-next tree getting it wrong (but it is unreasonable to expect it to get it right). I will fix this up tomorrow if it is still necessary.
One of the changes that caused this has been removed.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/