Commit d77bc737 authored by Zheng Zengkai's avatar Zheng Zengkai Committed by Yang Yingliang
Browse files

iommu: smmuv2: fix compile error when CONFIG_ARCH_PHYTIUM is off

phytium inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I41AUQ



--------------------------------------

Disabling CONFIG_ARCH_PHYTIUM results in following compile errors:

drivers/iommu/arm-smmu.c: In function ‘phytium_smmu_def_domain_type’:
drivers/iommu/arm-smmu.c:1641:6: error: implicit declaration of function ‘typeof_ft2000plus’ [-Werror=implicit-function-declaration]
 1641 |  if (typeof_ft2000plus() || typeof_s2500()) {
      |      ^~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1641:29: error: implicit declaration of function ‘typeof_s2500’ [-Werror=implicit-function-declaration]
 1641 |  if (typeof_ft2000plus() || typeof_s2500()) {
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors

Fix it by using CONFIG_ARCH_PHYTIUM to control phytium related code.

Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent c89f49b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment