]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa: mlx5: fix vdpa/vhost dependencies
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 28 Nov 2020 21:39:05 +0000 (13:39 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Dec 2020 09:09:56 +0000 (04:09 -0500)
commit3fde888665000999e7dd5b5c681a1190778e1b03
treefb7ce00d9f634c86cccb5aa4c55f6e0a75afd2fd
parentd2f33873683e348b75ec5de64ccbd8fe13841557
vdpa: mlx5: fix vdpa/vhost dependencies

drivers/vdpa/mlx5/ uses vhost_iotlb*() interfaces, so select
VHOST_IOTLB to make them be built.

However, if VHOST_IOTLB is the only VHOST symbol that is
set/enabled, the object file still won't be built because
drivers/Makefile won't descend into drivers/vhost/ to build it,
so make drivers/Makefile build the needed binary whenever
VHOST_IOTLB is set, like it does for VHOST_RING.

Fixes these build errors:
ERROR: modpost: "vhost_iotlb_itree_next" [drivers/vdpa/mlx5/mlx5_vdpa.ko] undefined!
ERROR: modpost: "vhost_iotlb_itree_first" [drivers/vdpa/mlx5/mlx5_vdpa.ko] undefined!

Fixes: ce866aa34fff ("vdpa/mlx5: Add support library for mlx5 VDPA implementation")
Fixes: a6b68e425bd6 ("vdpa/mlx5: Fix dependency on MLX5_CORE")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Eli Cohen <eli@mellanox.com>
Cc: Parav Pandit <parav@mellanox.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: Leon Romanovsky <leonro@nvidia.com>
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20201128213905.27409-1-rdunlap@infradead.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/Makefile
drivers/vdpa/Kconfig