public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IPv6 can't be built as module additionally
@ 2004-05-20 22:16 Jirka Kosina
  2004-05-20 22:50 ` David S. Miller
  2004-05-21 23:36 ` Valdis.Kletnieks
  0 siblings, 2 replies; 5+ messages in thread
From: Jirka Kosina @ 2004-05-20 22:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: pekkas, davem

Hi,

It is not possible to build ipv6 for already compiled and running kernel, 
recompilation of whole kernel, even if building as a module, is typically 
a must. This is because ipv6-specific functions in drivers/char/random.c 
are inside #ifdefs, and as random.c is almost always built directly into 
kernel, recompilation of whole kernel can't be avoided. The corresponding 
functions for IPv4 in random.c are not inside those ifdefs, and I think 
that IPv6 shouldn't be either. Recompiling whole kernel just because I 
want to build ipv6 module is quite annoying. The following patch removes 
those ifdefs and makes additional compilation of ipv6 module possible.

--- drivers/char/random.c.old	Mon May 10 04:32:00 2004
+++ drivers/char/random.c	Thu May 20 23:58:27 2004
@@ -2146,8 +2146,6 @@
 	/* Alternative: return sum of all words? */
 }
 
-#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
-
 static __u32 twothirdsMD4Transform (__u32 const buf[4], __u32 const in[12])
 {
 	__u32	a = buf[0], b = buf[1], c = buf[2], d = buf[3];
@@ -2197,7 +2195,6 @@
 	return buf[1] + b;	/* "most hashed" word */
 	/* Alternative: return sum of all words? */
 }
-#endif
 
 #undef ROUND
 #undef F
@@ -2271,7 +2268,6 @@
 	return keyptr;
 }
 
-#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 __u32 secure_tcpv6_sequence_number(__u32 *saddr, __u32 *daddr,
 				   __u16 sport, __u16 dport)
 {
@@ -2309,7 +2305,6 @@
 }
 
 EXPORT_SYMBOL(secure_ipv6_id);
-#endif
 
 
 __u32 secure_tcp_sequence_number(__u32 saddr, __u32 daddr,

-- 
JiKos.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-21 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-20 22:16 [PATCH] IPv6 can't be built as module additionally Jirka Kosina
2004-05-20 22:50 ` David S. Miller
2004-05-20 23:30   ` Andy Isaacson
2004-05-20 23:37     ` David S. Miller
2004-05-21 23:36 ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox