aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2017-05-26 14:34:44 +0800
committerAlex Shi <alex.shi@linaro.org>2017-05-26 14:34:44 +0800
commitd3e2269a93dfccde5e3914c587148bfb7c098922 (patch)
treecf0bfe3d7ba33dc07d14f42fdade3eb3e30baa6a
parent9d92a6ee405610ce9d250307d9c81807d1bdcc33 (diff)
Revert "net: sysctl_net_core: Fix warning: 'one' defined but not used"
This reverts commit f0387a70c1323f223343d73856ef36414c86d670. The variable 'one' used again in 3.18-stable. so recover it for temporary solution. Stable kernel should picked up for long term using. b1cb59cf2e net: sysctl_net_core: check SNDBUF and RCVBUF for min length
-rw-r--r--net/core/sysctl_net_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
index d0f4b177532d..cd386d2fd039 100644
--- a/net/core/sysctl_net_core.c
+++ b/net/core/sysctl_net_core.c
@@ -23,6 +23,7 @@
#include <net/pkt_sched.h>
static int zero = 0;
+static int one = 1;
static int ushort_max = USHRT_MAX;
static int min_sndbuf = SOCK_MIN_SNDBUF;
static int min_rcvbuf = SOCK_MIN_RCVBUF;