]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iommu/iova: Fix module config properly
authorRobin Murphy <robin.murphy@arm.com>
Tue, 13 Sep 2022 11:47:20 +0000 (12:47 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 24 Nov 2022 13:24:49 +0000 (14:24 +0100)
commit6ebe7ed89370a5e9dcc6304d837f0e631fa4958b
tree479c8c351ed92cf1549f16070582df7f79521538
parent014c8311a4fc9c64bc68bd15fcebdbfb255ac0ac
iommu/iova: Fix module config properly

BugLink: https://bugs.launchpad.net/bugs/1996825
[ Upstream commit 4f58330fcc8482aa90674e1f40f601e82f18ed4a ]

IOMMU_IOVA is intended to be an optional library for users to select as
and when they desire. Since it can be a module now, this means that
built-in code which has chosen not to select it should not fail to link
if it happens to have selected as a module by someone else. Replace
IS_ENABLED() with IS_REACHABLE() to do the right thing.

CC: Thierry Reding <thierry.reding@gmail.com>
Reported-by: John Garry <john.garry@huawei.com>
Fixes: 15bbdec3931e ("iommu: Make the iova library a module")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/548c2f683ca379aface59639a8f0cccc3a1ac050.1663069227.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/iova.h