Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f8d979f authored by Ingo Molnar's avatar Ingo Molnar
Browse files

softlockup: move 'one' to the softlockup section in sysctl.c



CONFIG_SOFTLOCKUP=y || CONFIG_DETECT_HUNG_TASKS=y is now the only user
of the 'one' constant in kernel/sysctl.c. Move it to the softlockup
block of constants.

This fixes a GCC warning.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 871cafcc
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -90,6 +90,9 @@ extern int rcutorture_runnable;
#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */
#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */


/* Constants used for minimum and  maximum */
/* Constants used for minimum and  maximum */
#if defined(CONFIG_DETECT_HUNG_TASK) || defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM)
static int one = 1;
#endif
#ifdef CONFIG_DETECT_SOFTLOCKUP
#ifdef CONFIG_DETECT_SOFTLOCKUP
static int sixty = 60;
static int sixty = 60;
static int neg_one = -1;
static int neg_one = -1;
@@ -100,7 +103,6 @@ static int two = 2;
#endif
#endif


static int zero;
static int zero;
static int one = 1;
static unsigned long one_ul = 1;
static unsigned long one_ul = 1;
static int one_hundred = 100;
static int one_hundred = 100;