Hi Zong,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on v5.16]
[cannot apply to robh/for-next next-20220114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Zong-Li/Determine-the-number-of-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
config: riscv-allmodconfig
(
https://download.01.org/0day-ci/archive/20220115/202201150140.AnHdUdow-lk...)
compiler: riscv64-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
#
https://github.com/0day-ci/linux/commit/efa33512fd463fd6e29750992df1d4051...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Zong-Li/Determine-the-number-of-DMA-channels-by-dma-channels-property/20220114-172017
git checkout efa33512fd463fd6e29750992df1d40513eb5a7c
# 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=riscv SHELL=/bin/bash
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 >>):
In file included from include/linux/compiler_types.h:85,
from <command-line>:
arch/riscv/include/asm/jump_label.h: In function 'vchan_cookie_complete':
> include/linux/compiler-gcc.h:86:38: warning: 'asm'
operand 0 probably does not match constraints
86 | #define
asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^~~
arch/riscv/include/asm/jump_label.h:20:9: note: in expansion of macro
'asm_volatile_goto'
20 | asm_volatile_goto(
| ^~~~~~~~~~~~~~~~~
include/linux/compiler-gcc.h:86:38: error: impossible constraint in 'asm'
86 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while
(0)
| ^~~
arch/riscv/include/asm/jump_label.h:20:9: note: in expansion of macro
'asm_volatile_goto'
20 | asm_volatile_goto(
| ^~~~~~~~~~~~~~~~~
vim +/asm +86 include/linux/compiler-gcc.h
313dd1b629219d Kees Cook 2017-05-05 76
cb984d101b30eb Joe Perches 2015-06-25 77 /*
cb984d101b30eb Joe Perches 2015-06-25 78 * GCC 'asm goto' miscompiles certain
code sequences:
cb984d101b30eb Joe Perches 2015-06-25 79 *
cb984d101b30eb Joe Perches 2015-06-25 80 *
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670
cb984d101b30eb Joe Perches 2015-06-25 81 *
cb984d101b30eb Joe Perches 2015-06-25 82 * Work it around via a compiler barrier quirk
suggested by Jakub Jelinek.
cb984d101b30eb Joe Perches 2015-06-25 83 *
cb984d101b30eb Joe Perches 2015-06-25 84 * (asm goto is automatically volatile - the
naming reflects this.)
cb984d101b30eb Joe Perches 2015-06-25 85 */
cb984d101b30eb Joe Perches 2015-06-25 @86 #define asm_volatile_goto(x...) do { asm
goto(x); asm (""); } while (0)
cb984d101b30eb Joe Perches 2015-06-25 87
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org