diff --git a/include/net/tcp.h b/include/net/tcp.h index bbad196da16c..c8bd83fcabab 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -359,7 +359,7 @@ extern int tcp_use_userconfig_sysctl_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos); extern int tcp_proc_delayed_ack_control(struct ctl_table *table, int write, - void __user *buffer, size_t *length, + void *buffer, size_t *length, loff_t *ppos); void tcp_enter_quickack_mode(struct sock *sk, unsigned int max_quickacks); diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 3b7f98ef34a4..9787b935d6cd 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -47,7 +47,7 @@ static void set_tcp_default(void) /*sysctl handler for tcp_ack realted master control */ int tcp_proc_delayed_ack_control(struct ctl_table *table, int write, - void __user *buffer, size_t *length, + void *buffer, size_t *length, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, length, ppos);