tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: bb74bc369fd2ab5f41a32c4ddc2e23bc76c3c550 commit: ef20808db09987137fba30519fb94a6b12b63ee7 [9620/9669] Add kh40000_iommu_dma_ops for KH-40000 platform config: x86_64-buildonly-randconfig-001-20240520 (https://download.01.org/0day-ci/archive/20240520/202405202228.Trf7bvHA-lkp@i...) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240520/202405202228.Trf7bvHA-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202405202228.Trf7bvHA-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/x86/kernel/zhaoxin_kh40000.c:47:30: warning: bitwise or with non-zero value always evaluates to true [-Wtautological-bitwise-compare] 47 | if (ZHAOXIN_P2CW_NODE_CHECK | zhaoxin_patch_code) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ arch/x86/kernel/zhaoxin_kh40000.c:87:33: error: call to undeclared function 'iommu_get_dma_domain'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | struct iommu_domain *domain = iommu_get_dma_domain(dev); | ^ arch/x86/kernel/zhaoxin_kh40000.c:87:33: note: did you mean 'iommu_is_dma_domain'? include/linux/iommu.h:273:20: note: 'iommu_is_dma_domain' declared here 273 | static inline bool iommu_is_dma_domain(struct iommu_domain *domain) | ^ arch/x86/kernel/zhaoxin_kh40000.c:87:24: error: incompatible integer to pointer conversion initializing 'struct iommu_domain *' with an expression of type 'int' [-Wint-conversion] 87 | struct iommu_domain *domain = iommu_get_dma_domain(dev); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/zhaoxin_kh40000.c:348:11: error: no member named 'dma_ops' in 'struct device'
348 | if (dev->dma_ops) { | ~~~ ^ arch/x86/kernel/zhaoxin_kh40000.c:349:24: error: no member named 'dma_ops' in 'struct device' 349 | iommu_dma_ops = dev->dma_ops; | ~~~ ^ 1 warning and 4 errors generated.
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for CRYPTO_CRC32C_INTEL Depends on [n]: CRYPTO [=y] && !KMSAN [=y] && X86 [=y] Selected by [y]: - ISCSI_TARGET [=y] && TARGET_CORE [=y] && INET [=y] && X86 [=y]
vim +348 arch/x86/kernel/zhaoxin_kh40000.c
345 346 void kh40000_set_iommu_dma_ops(struct device *dev) 347 {
348 if (dev->dma_ops) {