mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
iommu/rockchip: use IS_REACHABLE instead of IS_ENABLED
Fix build error with CONFIG_ROCKCHIP_IOMMU=m ld.lld: error: undefined symbol: rockchip_iommu_disable >>> referenced by mpp_iommu.c:570 (drivers/video/rockchip/mpp/mpp_iommu.c:570) >>> video/rockchip/mpp/mpp_iommu.o:(mpp_iommu_refresh) in archive drivers/built-in.a Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: If64029f606eb2dfc1f5c09a585341456d4ed9bf0
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
struct device;
|
||||
|
||||
#if IS_ENABLED(CONFIG_ROCKCHIP_IOMMU)
|
||||
#if IS_REACHABLE(CONFIG_ROCKCHIP_IOMMU)
|
||||
int rockchip_iommu_enable(struct device *dev);
|
||||
int rockchip_iommu_disable(struct device *dev);
|
||||
int rockchip_pagefault_done(struct device *master_dev);
|
||||
|
||||
Reference in New Issue
Block a user