Hi "Kirill,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/x86/core]
[also build test WARNING on kvm/linux-next hnaz-linux-mm/master v5.9]
[cannot apply to next-20201016]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Kirill-A-Shutemov/KVM-protected-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
238c91115cd05c71447ea071624a4c9fe661f970
config: x86_64-alldefconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/0bdb6c3e82c3106d720106932629f0e3a...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Kirill-A-Shutemov/KVM-protected-memory-extension/20201020-142130
git checkout 0bdb6c3e82c3106d720106932629f0e3a121fb76
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/x86/mm/mem_encrypt_common.c:16:6: warning: no previous prototype for
'force_dma_unencrypted' [-Wmissing-prototypes]
16 | bool force_dma_unencrypted(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~
> arch/x86/mm/mem_encrypt_common.c:41:13: warning: no previous
prototype for 'mem_encrypt_init' [-Wmissing-prototypes]
41 | void
__init mem_encrypt_init(void)
| ^~~~~~~~~~~~~~~~
vim +/mem_encrypt_init +41 arch/x86/mm/mem_encrypt_common.c
14
15 /* Override for DMA direct allocation check - ARCH_HAS_FORCE_DMA_UNENCRYPTED */
16 bool force_dma_unencrypted(struct device *dev)
17 {
18 /*
19 * For SEV and KVM, all DMA must be to unencrypted/shared addresses.
20 */
21 if (sev_active() || kvm_mem_protected())
22 return true;
23
24 /*
25 * For SME, all DMA must be to unencrypted addresses if the
26 * device does not support DMA to addresses that include the
27 * encryption mask.
28 */
29 if (sme_active()) {
30 u64 dma_enc_mask = DMA_BIT_MASK(__ffs64(sme_me_mask));
31 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask,
32 dev->bus_dma_limit);
33
34 if (dma_dev_mask <= dma_enc_mask)
35 return true;
36 }
37
38 return false;
39 }
40
41 void __init mem_encrypt_init(void)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org