Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757126Ab1FFUGg (ORCPT ); Mon, 6 Jun 2011 16:06:36 -0400 Received: from shards.monkeyblade.net ([198.137.202.13]:45894 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756453Ab1FFUGe (ORCPT ); Mon, 6 Jun 2011 16:06:34 -0400 Date: Mon, 06 Jun 2011 13:06:20 -0700 (PDT) Message-Id: <20110606.130620.1866725220563870006.davem@davemloft.net> To: randy.dunlap@oracle.com Cc: sfr@canb.auug.org.au, linux-sctp@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: linux-next: Tree for June 6 (sctp) From: David Miller In-Reply-To: <20110606125532.793b3cfd.randy.dunlap@oracle.com> References: <20110606132036.aebd73a4.sfr@canb.auug.org.au> <20110606125532.793b3cfd.randy.dunlap@oracle.com> X-Mailer: Mew version 6.3 on Emacs 23.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (shards.monkeyblade.net [198.137.202.13]); Mon, 06 Jun 2011 13:06:22 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1712 Lines: 59 From: Randy Dunlap Date: Mon, 6 Jun 2011 12:55:32 -0700 > On Mon, 6 Jun 2011 13:20:36 +1000 Stephen Rothwell wrote: > >> Hi all, >> >> Changes since 20110603: > > > when CONFIG_IPV6 is not enabled: > > ERROR: "ipv6_chk_addr" [net/sctp/sctp.ko] undefined! I'll push the following after some build testing, thanks. -------------------- sctp: Guard IPV6 specific code properly. Outside of net/sctp/ipv6.c, IPV6 specific code needs to be ifdef guarded. This fixes build failures with IPV6 disabled. Reported-by: Randy Dunlap Signed-off-by: David S. Miller --- net/sctp/protocol.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index af0a6b0..ab5ded2 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -637,6 +637,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg) " for cmd %d at entry %p\n", &sctp_addr_waitq, &addrw->a, addrw->state, addrw); +#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) /* Now we send an ASCONF for each association */ /* Note. we currently don't handle link local IPv6 addressees */ if (addrw->a.sa.sa_family == AF_INET6) { @@ -659,7 +660,7 @@ void sctp_addr_wq_timeout_handler(unsigned long arg) break; } } - +#endif list_for_each_entry(sp, &sctp_auto_asconf_splist, auto_asconf_list) { struct sock *sk; -- 1.7.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/