Commit 0e85663b authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller

net: mvneta: select GENERIC_ALLOCATOR

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: a0627f77 ("net: marvell: Allow drivers to be built with COMPILE_TEST")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fa1bd57a
...@@ -76,6 +76,7 @@ config MVNETA_BM ...@@ -76,6 +76,7 @@ config MVNETA_BM
default y if MVNETA=y && MVNETA_BM_ENABLE!=n default y if MVNETA=y && MVNETA_BM_ENABLE!=n
default MVNETA_BM_ENABLE default MVNETA_BM_ENABLE
select HWBM select HWBM
select GENERIC_ALLOCATOR
help help
MVNETA_BM must not be 'm' if MVNETA=y, so this symbol ensures MVNETA_BM must not be 'm' if MVNETA=y, so this symbol ensures
that all dependencies are met. that all dependencies are met.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment