[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209130117.Ve8dGyqo-lkp@intel.com>
Date: Tue, 13 Sep 2022 01:02:33 +0800
From: kernel test robot <lkp@...el.com>
To: Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [intel-tdx:guest-attest 5/9] arch/x86/coco/mem.c:27:26: warning:
function 'virt_to_dma' is not needed and will not be emitted
tree: https://github.com/intel/tdx.git guest-attest
head: ef90ba1bf9a2aada5e1f9f6c27b5e2bde91a6991
commit: df7603408ff53cb1344704a728ee152672567b94 [5/9] x86/coco: Add cc_decrypted_alloc/free() interfaces
config: x86_64-randconfig-r021-20220912 (https://download.01.org/0day-ci/archive/20220913/202209130117.Ve8dGyqo-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/df7603408ff53cb1344704a728ee152672567b94
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-attest
git checkout df7603408ff53cb1344704a728ee152672567b94
# 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/ arch/x86/kernel/ lib/ net/mptcp/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
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
Powered by blists - more mailing lists