aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/sysctl.c')
-rw-r--r--net/phonet/sysctl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c
index cea1c7dbdae2..8bed7675b3f4 100644
--- a/net/phonet/sysctl.c
+++ b/net/phonet/sysctl.c
@@ -27,6 +27,10 @@
27#include <linux/errno.h> 27#include <linux/errno.h>
28#include <linux/init.h> 28#include <linux/init.h>
29 29
30#include <net/sock.h>
31#include <linux/phonet.h>
32#include <net/phonet/phonet.h>
33
30#define DYNAMIC_PORT_MIN 0x40 34#define DYNAMIC_PORT_MIN 0x40
31#define DYNAMIC_PORT_MAX 0x7f 35#define DYNAMIC_PORT_MAX 0x7f
32 36
@@ -46,7 +50,8 @@ static void set_local_port_range(int range[2])
46 50
47void phonet_get_local_port_range(int *min, int *max) 51void phonet_get_local_port_range(int *min, int *max)
48{ 52{
49 unsigned seq; 53 unsigned int seq;
54
50 do { 55 do {
51 seq = read_seqbegin(&local_port_range_lock); 56 seq = read_seqbegin(&local_port_range_lock);
52 if (min) 57 if (min)