Skip to content

Commit 17660f8

Browse files
mstsirkindavem330
authored andcommitted
vhost: fix TUN=m VHOST_NET=y
drivers/built-in.o: In function `get_tun_socket': net.c:(.text+0x15436e): undefined reference to `tun_get_socket' If tun is a module, vhost must be a module, too. If tun is built-in or disabled, vhost can be built-in. Note: TUN || !TUN might look a bit strange until you realize that boolean logic rules do not apply for tristate variables. Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4b25846 commit 17660f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vhost/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config VHOST_NET
22
tristate "Host kernel accelerator for virtio net (EXPERIMENTAL)"
3-
depends on NET && EVENTFD && EXPERIMENTAL
3+
depends on NET && EVENTFD && (TUN || !TUN) && EXPERIMENTAL
44
---help---
55
This kernel module can be loaded in host kernel to accelerate
66
guest networking with virtio_net. Not to be confused with virtio_net

0 commit comments

Comments
 (0)