[intel-tdx:guest 36/136] arch/x86/mm/mem_encrypt_common.c:14:6: warning: no previous prototype for function 'force_dma_unencrypted'

From: kernel test robot
Date: Fri Nov 05 2021 - 07:38:50 EST


tree: https://github.com/intel/tdx.git guest
head: 12f4800ff5dbe89a642744796008f89f23b2e446
commit: 4854b54059ba1fe30c22ee2eba9813eefb9446e4 [36/136] x86/mm: Move force_dma_unencrypted() to common code
config: x86_64-buildonly-randconfig-r001-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
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/4854b54059ba1fe30c22ee2eba9813eefb9446e4
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 4854b54059ba1fe30c22ee2eba9813eefb9446e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> arch/x86/mm/mem_encrypt_common.c:14:6: warning: no previous prototype for function 'force_dma_unencrypted' [-Wmissing-prototypes]
bool force_dma_unencrypted(struct device *dev)
^
arch/x86/mm/mem_encrypt_common.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool force_dma_unencrypted(struct device *dev)
^
static
1 warning generated.


vim +/force_dma_unencrypted +14 arch/x86/mm/mem_encrypt_common.c

12
13 /* Override for DMA direct allocation check - ARCH_HAS_FORCE_DMA_UNENCRYPTED */
> 14 bool force_dma_unencrypted(struct device *dev)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip