tree:
git://git.infradead.org/users/hch/misc.git swiotlb-init-cleanup
head: 3a793a9dab917734e620d2806265aff8c0228fa4
commit: ef34052a1649b34ac0d609aacd6f610f818ec5f0 [8/9] swiotlb: make the swiotlb_init
interface more useful
config: x86_64-randconfig-a005
(
https://download.01.org/0day-ci/archive/20220215/202202150231.OIUAqkov-lk...)
compiler: clang version 15.0.0 (
https://github.com/llvm/llvm-project
ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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 hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc swiotlb-init-cleanup
git checkout ef34052a1649b34ac0d609aacd6f610f818ec5f0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/ kernel/dma/
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/kernel/pci-swiotlb.c:19:1: error: pasting formed '__iommu_entry_(', an
invalid preprocessing token
IOMMU_INIT_FINISH(NULL,
^
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro
'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:53:17: note: expanded from macro
'__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
> arch/x86/kernel/pci-swiotlb.c:19:19: warning: declaration
specifier missing, defaulting to 'int'
IOMMU_INIT_FINISH(NULL,
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
arch/x86/kernel/pci-swiotlb.c:19:19: error: expected ')'
include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
arch/x86/kernel/pci-swiotlb.c:19:19: note: to match this '('
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
> arch/x86/kernel/pci-swiotlb.c:19:1: warning: 'const' type
qualifier on return type has no effect [-Wignored-qualifiers]
IOMMU_INIT_FINISH(NULL,
^
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro
'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:52:9: note: expanded from macro
'__IOMMU_INIT'
static const struct iommu_table_entry \
^
arch/x86/kernel/pci-swiotlb.c:19:1: error: illegal initializer (only variables can be
initialized)
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro
'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro
'__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro
'__iommu_entry_'
arch/x86/kernel/pci-swiotlb.c:44:5: error: use of undeclared identifier
'pci_swiotlb_detect_override'; did you mean 'pci_swiotlb_detect_4gb'?
pci_swiotlb_detect_override,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
pci_swiotlb_detect_4gb
arch/x86/include/asm/iommu_table.h:94:24: note: expanded from macro
'IOMMU_INIT'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 0)
^
arch/x86/include/asm/iommu_table.h:56:14: note: expanded from macro
'__IOMMU_INIT'
= {_detect, _depend, _early_init, _late_init, \
^
arch/x86/kernel/pci-swiotlb.c:28:12: note: 'pci_swiotlb_detect_4gb' declared
here
int __init pci_swiotlb_detect_4gb(void)
^
arch/x86/kernel/pci-swiotlb.c:43:1: error:
'__iommu_entry_pci_swiotlb_detect_4gb' causes a section type conflict with
'__iommu_entry_'
IOMMU_INIT(pci_swiotlb_detect_4gb,
^
arch/x86/include/asm/iommu_table.h:94:2: note: expanded from macro
'IOMMU_INIT'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 0)
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro
'__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
<scratch space>:175:1: note: expanded from here
__iommu_entry_pci_swiotlb_detect_4gb
^
arch/x86/kernel/pci-swiotlb.c:19:1: note: declared here
IOMMU_INIT_FINISH(NULL,
^
arch/x86/include/asm/iommu_table.h:91:2: note: expanded from macro
'IOMMU_INIT_FINISH'
__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro
'__IOMMU_INIT'
__iommu_entry_##_detect __used \
^
arch/x86/include/asm/iommu_table.h:53:3: note: expanded from macro
'__iommu_entry_'
2 warnings and 5 errors generated.
vim +/int +19 arch/x86/kernel/pci-swiotlb.c
18
19 IOMMU_INIT_FINISH(NULL,
20 pci_xen_swiotlb_detect,
21 pci_swiotlb_init,
22 pci_swiotlb_late_init);
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org