tree: https://github.com/intel/tdx.git guest-attest head: 29cf51327dcbef2938acadd84f7af09d1a595839 commit: caa30fa6065f7a5ece3c51e67ab95cbf3cd69c23 [4/6] x86/coco: Add cc_decrypted_alloc/free() interfaces config: x86_64-randconfig-a013-20220815 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project aed5e3bea138ce581d682158eb61c27b3cfdd6ec) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel/tdx/commit/caa30fa6065f7a5ece3c51e67ab95cbf3cd69c23 git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx guest-attest git checkout caa30fa6065f7a5ece3c51e67ab95cbf3cd69c23 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/coco/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/coco/mem.c:27:26: warning: function 'virt_to_dma' is not needed and will not be emitted [-Wunneeded-internal-declaration] static inline dma_addr_t virt_to_dma(void *vaddr) ^ 1 warning generated. vim +/virt_to_dma +27 arch/x86/coco/mem.c 26 > 27 static inline dma_addr_t virt_to_dma(void *vaddr) 28 { 29 return phys_to_dma(&mem_pdev->dev, virt_to_phys(vaddr)); 30 } 31 -- 0-DAY CI Kernel Test Service https://01.org/lkp