From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org,
Gerrit Renker <gerrit@erg.abdn.ac.uk>,
Ian McDonald <ian.mcdonald@jandi.co.nz>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [patch] net/DCCP: fix link error with !CONFIG_SYSCTL
Date: Tue, 16 Oct 2007 12:48:30 -0200 [thread overview]
Message-ID: <20071016144830.GA9773@ghostprotocols.net> (raw)
In-Reply-To: <20071015161113.GA569@elte.hu>
Em Mon, Oct 15, 2007 at 06:11:13PM +0200, Ingo Molnar escreveu:
> Subject: net/DCCP: fix link error with !CONFIG_SYSCTL
> From: Ingo Molnar <mingo@elte.hu>
>
> 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>
Thanks Ingo, David, please apply.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> ---
> net/dccp/input.c | 3 +++
> net/dccp/sysctl.c | 3 ---
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> Index: linux/net/dccp/input.c
> ===================================================================
> --- linux.orig/net/dccp/input.c
> +++ linux/net/dccp/input.c
> @@ -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
> ===================================================================
> --- linux.orig/net/dccp/sysctl.c
> +++ linux/net/dccp/sysctl.c
> @@ -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",
prev parent reply other threads:[~2007-10-16 14:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 16:11 [patch] net/DCCP: fix link error with !CONFIG_SYSCTL Ingo Molnar
2007-10-15 17:36 ` Ian McDonald
2007-10-16 14:48 ` Arnaldo Carvalho de Melo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071016144830.GA9773@ghostprotocols.net \
--to=acme@ghostprotocols.net \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=gerrit@erg.abdn.ac.uk \
--cc=ian.mcdonald@jandi.co.nz \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox