Re: Compile error in kernel 2.6.10-bk3 in file slhc.c

From: Cal Peake
Date: Fri Dec 31 2004 - 06:18:38 EST


On Fri, 31 Dec 2004, Ikke wrote:

> Could you point me to the patch please?

at:

http://linux.bkbits.net:8080/linux-2.5/cset@xxxxxx?nav=index.html|ChangeSet@-1d

and below.

-- Cal

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/12/30 15:21:16-08:00 acme@xxxxxxxxxxxxxxxx
# [PATCH] Fix net/core/sock.o build failure
#
# This fixes a build failure that happens when you don't select IPV6.
#
# Signed-off-by: Linus Torvalds <torvalds@xxxxxxxx>
#
# include/linux/ipv6.h
# 2004/12/29 14:22:45-08:00 acme@xxxxxxxxxxxxxxxx +1 -1
# Fix net/core/sock.o build failure
#
diff -Nru a/include/linux/ipv6.h b/include/linux/ipv6.h
--- a/include/linux/ipv6.h 2004-12-31 03:15:16 -08:00
+++ b/include/linux/ipv6.h 2004-12-31 03:15:16 -08:00
@@ -273,6 +273,7 @@
struct ipv6_pinfo inet6;
};

+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk)
{
return inet_sk(__sk)->pinet6;
@@ -283,7 +284,6 @@
return &((struct raw6_sock *)__sk)->raw6;
}

-#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
#define __ipv6_only_sock(sk) (inet6_sk(sk)->ipv6only)
#define ipv6_only_sock(sk) ((sk)->sk_family == PF_INET6 && __ipv6_only_sock(sk))
#else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/