Skip to content

Commit

Permalink
softlockup: move 'one' to the softlockup section in sysctl.c
Browse files Browse the repository at this point in the history
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: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Feb 12, 2009
1 parent 871cafc commit 9f8d979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ 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)
static int one = 1;
#endif
#ifdef CONFIG_DETECT_SOFTLOCKUP
static int sixty = 60;
static int neg_one = -1;
Expand All @@ -100,7 +103,6 @@ static int two = 2;
#endif

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

Expand Down

0 comments on commit 9f8d979

Please sign in to comment.