OSDN Git Service

misc/habanalabs: adjust Kconfig to fix build errors
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 26 Feb 2019 16:42:35 +0000 (08:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 15:02:19 +0000 (16:02 +0100)
commitb39e557b7762498c7038ccd49dbdee88b2d00043
tree1d3c07af6364c2e583a75f6aadf976d5f6f47936
parent9b6dba70021d5c65529863acd6171573a12a4eeb
misc/habanalabs: adjust Kconfig to fix build errors

Several places in the habanalabs driver use gen_alloc functions,
so select GENERIC_ALLOCATOR to make those functions available.

Fixes these build errors:

ERROR: "gen_pool_alloc" [drivers/misc/habanalabs/habanalabs.ko] undefined!
ERROR: "gen_pool_add_virt" [drivers/misc/habanalabs/habanalabs.ko] undefined!
ERROR: "gen_pool_destroy" [drivers/misc/habanalabs/habanalabs.ko] undefined!
ERROR: "gen_pool_create" [drivers/misc/habanalabs/habanalabs.ko] undefined!
ERROR: "gen_pool_free" [drivers/misc/habanalabs/habanalabs.ko] undefined!

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/Kconfig