Skip to content

Commit bd5435e

Browse files
Ingo Molnardavem330
authored andcommitted
[DCCP]: fix link error with !CONFIG_SYSCTL
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. Signed-off-by: Ingo Molnar <mingo@elte.hu> Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dc8a82a commit bd5435e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎net/dccp/input.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#include "ccid.h"
2020
#include "dccp.h"
2121

22+
/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */
23+
int sysctl_dccp_sync_ratelimit __read_mostly = HZ / 8;
24+
2225
static void dccp_fin(struct sock *sk, struct sk_buff *skb)
2326
{
2427
sk->sk_shutdown |= RCV_SHUTDOWN;

‎net/dccp/sysctl.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#error This file should not be compiled without CONFIG_SYSCTL defined
1919
#endif
2020

21-
/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */
22-
int sysctl_dccp_sync_ratelimit __read_mostly = HZ / 8;
23-
2421
static struct ctl_table dccp_default_table[] = {
2522
{
2623
.procname = "seq_window",

0 commit comments

Comments
 (0)