lkml.org 
[lkml]   [2014]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch kvmtool] x86, kvmtool: Fix build when KVM_TOOL_TEST_ENABLE is set
Commit ab7db91705e9 ("virtio-net: auto-tune mergeable rx buffer size for 
improved performance") requires CONFIG_AVERAGE to be set, which is
selected by CONFIG_VIRTIO_NET, otherwise the build fails:

drivers/built-in.o: In function `virtnet_poll':
virtio_net.c:(.text+0x11d51f): undefined reference to `ewma_add'
drivers/built-in.o: In function `virtnet_probe':
virtio_net.c:(.text+0x11e668): undefined reference to `ewma_init'

CONFIG_KVM_TOOL_TEST_ENABLE selects CONFIG_VIRTIO_NET but not
CONFIG_AVERAGE so the build breaks when enabling it.

Select CONFIG_AVERAGE for CONFIG_KVMTOOL_TEST_ENABLE.

Signed-off-by: David Rientjes <rientjes@google.com>
---
Also affects tip/master.

arch/x86/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -615,6 +615,7 @@ config KVMTOOL_TEST_ENABLE
select VIRTIO_BLK
select VIRTIO_CONSOLE
select VIRTIO_NET
+ select AVERAGE
select 9P_FS
select NET_9P
select NET_9P_VIRTIO

\
 
 \ /
  Last update: 2014-02-06 22:41    [W:0.022 / U:1.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site