linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] missing dependency for drivers/net/tun.c
@ 2005-01-11 21:06 Steve French
  2005-01-12 21:44 ` Max Krasnyansky
  0 siblings, 1 reply; 2+ messages in thread
From: Steve French @ 2005-01-11 21:06 UTC (permalink / raw)
  To: maxk, linux-kernel; +Cc: underley

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

drivers/net/tun.c has a missing dependency on enabling the crc32
libraries in kernel config.   With tun enabled and crc32 disabled "make
bzImage" (the linking step) fails. For example:

drivers/built-in.o(.text+0x656f1): In function `add_multi':
linux-2.5cifs/drivers/net/tun.c:112: undefined reference to `crc32_le'
drivers/built-in.o(.text+0x656f9):linux-2.5cifs/drivers/net/tun.c:112:
undefined reference to `bitreverse'

Line 112:

	        int bit_nr = ether_crc(ETH_ALEN, addr) >> 26;

is a call to the ether_crc macro which maps to the bitreverse function
which is only exported if you enable:
	library functions -> CRC32 functions 
in kernel config.  The following would fix it.




[-- Attachment #2: tun-config.patch --]
[-- Type: text/plain, Size: 400 bytes --]

--- drivers/net/Kconfig.old	2005-01-11 14:59:51.540023800 -0600
+++ drivers/net/Kconfig	2005-01-11 15:00:48.126421360 -0600
@@ -84,6 +84,7 @@
 config TUN
 	tristate "Universal TUN/TAP device driver support"
 	depends on NETDEVICES
+	select CRC32
 	---help---
 	  TUN/TAP provides packet reception and transmission for user space
 	  programs.  It can be viewed as a simple Point-to-Point or Ethernet

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

* Re: [PATCH] missing dependency for drivers/net/tun.c
  2005-01-11 21:06 [PATCH] missing dependency for drivers/net/tun.c Steve French
@ 2005-01-12 21:44 ` Max Krasnyansky
  0 siblings, 0 replies; 2+ messages in thread
From: Max Krasnyansky @ 2005-01-12 21:44 UTC (permalink / raw)
  To: Steve French; +Cc: linux-kernel

Hi Steve,

Applied. Thanks.

btw BK tree with latest TUN updates is at
	bk://maxk.bkbits.net/tun-2.6

Max

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

end of thread, other threads:[~2005-01-12 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-11 21:06 [PATCH] missing dependency for drivers/net/tun.c Steve French
2005-01-12 21:44 ` Max Krasnyansky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).