net/DCCP: fix link error with !CONFIG_SYSCTL
PATCH 1/1 net/DCCP: fix link error with !CONFIG_SYSCTL
Subject: net/DCCP: fix link error with !CONFIG_SYSCTL
From: Ingo Molnar <[email protected]>
do not define the sysctl_dccp_sync_ratelimit sysctl variable in the CONFIG_SYSCTL dependent sysctl.c module - move it to input.c instead.
this fixes the following build bug:
net/built-in.o: In function `dccp_check_seqno':
input.c:(.text+0xbd859): undefined reference to `sysctl_dccp_sync_ratelimit' distcc[29953] ERROR: compile (null) on localhost failed
make: *** [vmlinux] Error 1
found via 'make randconfig' build testing.
--- net/dccp/input.c | 3 +++ net/dccp/sysctl.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)
net/dccp/input.c +3 -0
@@ -19,6 +19,9 @@#include "ccid.h" #include "dccp.h" +/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */ +int sysctl_dccp_sync_ratelimit__read_mostly =HZ /8 ; +static void dccp_fin (struct sock *sk,struct sk_buff *skb) { sk->sk_shutdown |=RCV_SHUTDOWN ;
net/dccp/sysctl.c +0 -3
@@ -18,9 +18,6 @@#error This file should not be compiled without CONFIG_SYSCTL defined#endif -/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */ -int sysctl_dccp_sync_ratelimit__read_mostly =HZ /8 ; -static struct ctl_table dccp_default_table[] = { { .procname ="seq_window" ,
Quoted 8 lines · Ingo Molnar
Subject: net/DCCP: fix link error with !CONFIG_SYSCTL
From: Ingo Molnar <[email protected]>do not define the
sysctl_dccp_sync_ratelimitsysctl variable in theCONFIG_SYSCTLdependentsysctl.cmodule - move it toinput.cinstead.this fixes the following build bug:
Quoted 8 lines
net/built-in.o: In function `dccp_check_seqno':
input.c:(.text+0xbd859): undefined reference to `sysctl_dccp_sync_ratelimit' distcc[29953] ERROR: compile (null) on localhost failed
make: *** [vmlinux] Error 1found via 'make randconfig' build testing.
Signed-off-by Ingo Molnar <[email protected]>
Ingo - this should go via [email protected] or [email protected] so it gets picked up by a maintainer.
Em Mon, Oct 15, 2007 at 06:11:13PM +0200, Ingo Molnar escreveu:
Quoted 8 lines
Subject: net/DCCP: fix link error with !CONFIG_SYSCTL
From: Ingo Molnar <[email protected]>do not define the
sysctl_dccp_sync_ratelimitsysctl variable in theCONFIG_SYSCTLdependentsysctl.cmodule - move it toinput.cinstead.this fixes the following build bug:
Quoted 8 lines
net/built-in.o: In function `dccp_check_seqno':
input.c:(.text+0xbd859): undefined reference to `sysctl_dccp_sync_ratelimit' distcc[29953] ERROR: compile (null) on localhost failed
make: *** [vmlinux] Error 1found via 'make randconfig' build testing.
Signed-off-by Ingo Molnar <[email protected]>
Thanks Ingo, David, please apply.
Quoted 33 lines
--- net/dccp/input.c | 3 +++ net/dccp/sysctl.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)Index:
linux/net/dccp/input.c
===================================================================net/dccp/input.c +3
-0@@ -19,6 +19,9 @@#include "ccid.h" #include "dccp.h" +/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */ +int sysctl_dccp_sync_ratelimit__read_mostly =HZ /8 ; +static void dccp_fin (struct sock *sk,struct sk_buff *skb) { sk->sk_shutdown |=RCV_SHUTDOWN ;Index:
linux/net/dccp/sysctl.c
===================================================================net/dccp/sysctl.c +0
-3@@ -18,9 +18,6 @@#error This file should not be compiled without CONFIG_SYSCTL defined#endif -/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */ -int sysctl_dccp_sync_ratelimit__read_mostly =HZ /8 ; -static struct ctl_table dccp_default_table[] = { { .procname ="seq_window" ,