From: kernel test robot <[email protected]>
To: Heiko Stuebner <[email protected]>
Cc: [email protected], [email protected],
Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>,
[email protected],
Palmer Dabbelt <[email protected]>,
Christoph Hellwig <[email protected]>, Guo Ren <[email protected]>
Subject: [ammarfaizi2-block:palmer/linux/riscv-zicbom 5/5] arch/riscv/mm/dma-noncoherent.c:25:3: error: expected ')'
Date: Fri, 29 Jul 2022 14:19:56 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
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/[email protected]/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 <[email protected]>
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
reply other threads:[~2022-07-29 6:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox