Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1539808 > unrolled thread

[PATCH net-next] net: mvneta: select GENERIC_ALLOCATOR

Started byArnd Bergmann <arnd@arndb.de>
First post2016-12-10 11:40 +0100
Last post2016-12-10 23:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net-next] net: mvneta: select GENERIC_ALLOCATOR Arnd Bergmann <arnd@arndb.de> - 2016-12-10 11:40 +0100
    Re: [PATCH net-next] net: mvneta: select GENERIC_ALLOCATOR David Miller <davem@davemloft.net> - 2016-12-10 23:30 +0100

#1539808 — [PATCH net-next] net: mvneta: select GENERIC_ALLOCATOR

FromArnd Bergmann <arnd@arndb.de>
Date2016-12-10 11:40 +0100
Subject[PATCH net-next] net: mvneta: select GENERIC_ALLOCATOR
Message-ID<sMNep-pA-7@gated-at.bofh.it>
We previously relied on GENERIC_ALLOCATOR to be selected by CONFIG_ARM,
but now we can compile-test the driver on other architectures that
don't select it:

drivers/net/built-in.o: In function `mvneta_bm_remove':
mvneta_bm.c:(.text+0x4ee35): undefined reference to `gen_pool_free'

This adds an explicit select for the part of the driver that has
the dependency.

Fixes: a0627f776a45 ("net: marvell: Allow drivers to be built with COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/ethernet/marvell/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/marvell/Kconfig b/drivers/net/ethernet/marvell/Kconfig
index 3b8f11fe5e13..f4b7cf18fb0f 100644
--- a/drivers/net/ethernet/marvell/Kconfig
+++ b/drivers/net/ethernet/marvell/Kconfig
@@ -76,6 +76,7 @@ config MVNETA_BM
 	default y if MVNETA=y && MVNETA_BM_ENABLE!=n
 	default MVNETA_BM_ENABLE
 	select HWBM
+	select GENERIC_ALLOCATOR
 	help
 	  MVNETA_BM must not be 'm' if MVNETA=y, so this symbol ensures
 	  that all dependencies are met.
-- 
2.9.0

[toc] | [next] | [standalone]


#1539923

FromDavid Miller <davem@davemloft.net>
Date2016-12-10 23:30 +0100
Message-ID<sMYjw-7Ui-15@gated-at.bofh.it>
In reply to#1539808
From: Arnd Bergmann <arnd@arndb.de>
Date: Sat, 10 Dec 2016 11:38:32 +0100

> We previously relied on GENERIC_ALLOCATOR to be selected by CONFIG_ARM,
> but now we can compile-test the driver on other architectures that
> don't select it:
> 
> drivers/net/built-in.o: In function `mvneta_bm_remove':
> mvneta_bm.c:(.text+0x4ee35): undefined reference to `gen_pool_free'
> 
> This adds an explicit select for the part of the driver that has
> the dependency.
> 
> Fixes: a0627f776a45 ("net: marvell: Allow drivers to be built with COMPILE_TEST")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web