[ammarfaizi2-block:palmer/linux/riscv-zicbom 5/5] arch/riscv/mm/dma-noncoherent.c:25:3: error: expected ')'

From: kernel test robot
Date: Fri Jul 29 2022 - 02:20:36 EST


tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-zicbom
head: 1631ba1259d6d7f49b6028f2a1a0fa02be1c522a
commit: 1631ba1259d6d7f49b6028f2a1a0fa02be1c522a [5/5] riscv: Add support for non-coherent devices using zicbom extension
config: riscv-randconfig-r004-20220728 (https://download.01.org/0day-ci/archive/20220729/202207291449.lbTs6gOb-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 8dfaecc4c24494337933aff9d9166486ca0949f1)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/1631ba1259d6d7f49b6028f2a1a0fa02be1c522a
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-zicbom
git checkout 1631ba1259d6d7f49b6028f2a1a0fa02be1c522a
# 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=riscv SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> arch/riscv/mm/dma-noncoherent.c:25:3: error: expected ')'
ALT_CMO_OP(clean, vaddr, size, riscv_cbom_block_size);
^
arch/riscv/include/asm/errata_list.h:99:2: note: expanded from macro 'ALT_CMO_OP'
__nops(5), \
^
arch/riscv/mm/dma-noncoherent.c:28:3: error: expected ')'
ALT_CMO_OP(clean, vaddr, size, riscv_cbom_block_size);
^
arch/riscv/include/asm/errata_list.h:99:2: note: expanded from macro 'ALT_CMO_OP'
__nops(5), \
^
arch/riscv/mm/dma-noncoherent.c:31:3: error: expected ')'
ALT_CMO_OP(flush, vaddr, size, riscv_cbom_block_size);
^
arch/riscv/include/asm/errata_list.h:99:2: note: expanded from macro 'ALT_CMO_OP'
__nops(5), \
^
arch/riscv/mm/dma-noncoherent.c:48:3: error: expected ')'
ALT_CMO_OP(flush, vaddr, size, riscv_cbom_block_size);
^
arch/riscv/include/asm/errata_list.h:99:2: note: expanded from macro 'ALT_CMO_OP'
__nops(5), \
^
arch/riscv/mm/dma-noncoherent.c:59:2: error: expected ')'
ALT_CMO_OP(flush, flush_addr, size, riscv_cbom_block_size);
^
arch/riscv/include/asm/errata_list.h:99:2: note: expanded from macro 'ALT_CMO_OP'
__nops(5), \
^
5 errors generated.


vim +25 arch/riscv/mm/dma-noncoherent.c

17
18 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
19 enum dma_data_direction dir)
20 {
21 void *vaddr = phys_to_virt(paddr);
22
23 switch (dir) {
24 case DMA_TO_DEVICE:
> 25 ALT_CMO_OP(clean, vaddr, size, riscv_cbom_block_size);
26 break;
27 case DMA_FROM_DEVICE:
28 ALT_CMO_OP(clean, vaddr, size, riscv_cbom_block_size);
29 break;
30 case DMA_BIDIRECTIONAL:
31 ALT_CMO_OP(flush, vaddr, size, riscv_cbom_block_size);
32 break;
33 default:
34 break;
35 }
36 }
37

--
0-DAY CI Kernel Test Service
https://01.org/lkp