From: kernel test robot <lkp@intel.com>
To: Guo Ren <guoren@linux.alibaba.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [csky-linux:linux-5.13-riscv-dma-coherent-D1-v2-of-delay-cpu-available 3/9] arch/riscv/mm/dma-mapping.c:21:29: warning: implicit conversion from 'enum dma_data_direction' to 'enum sbi_dma_sync_data_direction'
Date: Thu, 5 Aug 2021 10:05:42 +0800 [thread overview]
Message-ID: <202108051035.r8gOXIE1-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2274 bytes --]
tree: https://github.com/c-sky/csky-linux linux-5.13-riscv-dma-coherent-D1-v2-of-delay-cpu-available
head: d8e92b2777156e87a83f4cb71f5587ad924ad215
commit: 791a7ed07822caea9dcbb7ed0e4c28c3a4ce3674 [3/9] riscv: Add SYNC_DMA_FOR_CPU/DEVICE for DMA_COHERENT
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 10.3.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
# https://github.com/c-sky/csky-linux/commit/791a7ed07822caea9dcbb7ed0e4c28c3a4ce3674
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux linux-5.13-riscv-dma-coherent-D1-v2-of-delay-cpu-available
git checkout 791a7ed07822caea9dcbb7ed0e4c28c3a4ce3674
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
arch/riscv/mm/dma-mapping.c: In function 'arch_sync_dma_for_device':
>> arch/riscv/mm/dma-mapping.c:21:29: warning: implicit conversion from 'enum dma_data_direction' to 'enum sbi_dma_sync_data_direction' [-Wenum-conversion]
21 | sbi_dma_sync(paddr, size, dir);
| ^~~
arch/riscv/mm/dma-mapping.c: In function 'arch_sync_dma_for_cpu':
arch/riscv/mm/dma-mapping.c:36:29: warning: implicit conversion from 'enum dma_data_direction' to 'enum sbi_dma_sync_data_direction' [-Wenum-conversion]
36 | sbi_dma_sync(paddr, size, dir);
| ^~~
vim +21 arch/riscv/mm/dma-mapping.c
13
14 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
15 enum dma_data_direction dir)
16 {
17 switch (dir) {
18 case DMA_TO_DEVICE:
19 case DMA_FROM_DEVICE:
20 case DMA_BIDIRECTIONAL:
> 21 sbi_dma_sync(paddr, size, dir);
22 break;
23 default:
24 BUG();
25 }
26 }
27
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69693 bytes --]
reply other threads:[~2021-08-05 2:06 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 \
--in-reply-to=202108051035.r8gOXIE1-lkp@intel.com \
--to=lkp@intel.com \
--cc=guoren@linux.alibaba.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®