tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: e95975499c9370e3227f332445708ebb3f70a9e0
commit: 613bf95a43405d9180583f11980360b7e9862376 [9936/9999] CHROMIUM: coiommu: initialize
the DMA tracking table
config: alpha-allyesconfig
(
https://download.01.org/0day-ci/archive/20220120/202201202005.cUy94h5h-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.0
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
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 613bf95a43405d9180583f11980360b7e9862376
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=alpha SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/dma/coiommu.c: In function 'get_dtt_level':
> kernel/dma/coiommu.c:406:21: error: 'MAX_PHYSMEM_BITS'
undeclared (first use in this function)
406 | pfn_width =
MAX_PHYSMEM_BITS - PAGE_SHIFT;
| ^~~~~~~~~~~~~~~~
kernel/dma/coiommu.c:406:21: note: each undeclared identifier is reported only once for
each function it appears in
At top level:
kernel/dma/coiommu.c:381:33: warning: 'coiommu_ops' defined but not used
[-Wunused-const-variable=]
381 | static const struct dma_map_ops coiommu_ops = {
| ^~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_AMD_ACP_CONFIG
Depends on SOUND && !UML && SND && SND_SOC &&
SND_SOC_ACPI
Selected by
- SND_SOC_SOF_AMD_COMMON && SOUND && !UML && SND &&
SND_SOC && SND_SOC_SOF_TOPLEVEL && SND_SOC_SOF_AMD_TOPLEVEL
vim +/MAX_PHYSMEM_BITS +406 kernel/dma/coiommu.c
401
402 static inline unsigned int get_dtt_level(void)
403 {
404 unsigned int pfn_width;
405
406 pfn_width = MAX_PHYSMEM_BITS - PAGE_SHIFT;
407
408 if (pfn_width <= COIOMMU_PT_LEVEL_STRIDE)
409 return 1;
410
411 return DIV_ROUND_UP((pfn_width - COIOMMU_PT_LEVEL_STRIDE),
412 COIOMMU_UPPER_LEVEL_STRIDE) + 1;
413 }
414
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org