tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 860461e4fcaa76200d2d1a53523e0ff7be92e6e8
commit: 8f6b6d0606023c8403ac04ba42177ecbb55769f6 [6537/8629] dmaengine: sf-pdma: Fix an
error that calls callback twice
config: mips-randconfig-r014-20200917 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
1321160a26e7e489baf9b10d6de90a342f898960)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout 8f6b6d0606023c8403ac04ba42177ecbb55769f6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 >>):
> drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable
'desc'
struct sf_pdma_desc = chan->desc;
^
fatal error: error in backend: Nested variants found in inline asm string: '.if (
0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data
__attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch")))
__if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h",
.line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set
mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
clang-12: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 12.0.0 (git://gitmirror/llvm_project
1321160a26e7e489baf9b10d6de90a342f898960)
Target: mips-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-1321160a26/bin
clang-12: note: diagnostic msg:
Makefile arch drivers include kernel scripts source usr
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 8f6b6d0606023c8403ac04ba42177ecbb55769f6
vim +/desc +287 drivers/dma/sf-pdma/sf-pdma.c
6973886ad58e6b4 Green Wan 2019-11-07 283
6973886ad58e6b4 Green Wan 2019-11-07 284 static void sf_pdma_donebh_tasklet(unsigned
long arg)
6973886ad58e6b4 Green Wan 2019-11-07 285 {
6973886ad58e6b4 Green Wan 2019-11-07 286 struct sf_pdma_chan *chan = (struct
sf_pdma_chan *)arg;
6973886ad58e6b4 Green Wan 2019-11-07 @287 struct sf_pdma_desc *desc = chan->desc;
6973886ad58e6b4 Green Wan 2019-11-07 288 unsigned long flags;
6973886ad58e6b4 Green Wan 2019-11-07 289
6973886ad58e6b4 Green Wan 2019-11-07 290 spin_lock_irqsave(&chan->lock, flags);
6973886ad58e6b4 Green Wan 2019-11-07 291 if (chan->xfer_err) {
6973886ad58e6b4 Green Wan 2019-11-07 292 chan->retries = MAX_RETRY;
6973886ad58e6b4 Green Wan 2019-11-07 293 chan->status = DMA_COMPLETE;
6973886ad58e6b4 Green Wan 2019-11-07 294 chan->xfer_err = false;
6973886ad58e6b4 Green Wan 2019-11-07 295 }
6973886ad58e6b4 Green Wan 2019-11-07 296 spin_unlock_irqrestore(&chan->lock,
flags);
6973886ad58e6b4 Green Wan 2019-11-07 297
8f6b6d0606023c8 Brad Kim 2020-09-03 298 spin_lock_irqsave(&chan->vchan.lock,
flags);
8f6b6d0606023c8 Brad Kim 2020-09-03 299 list_del(&chan->desc->vdesc.node);
8f6b6d0606023c8 Brad Kim 2020-09-03 300
vchan_cookie_complete(&chan->desc->vdesc);
8f6b6d0606023c8 Brad Kim 2020-09-03 301
spin_unlock_irqrestore(&chan->vchan.lock, flags);
6973886ad58e6b4 Green Wan 2019-11-07 302 }
6973886ad58e6b4 Green Wan 2019-11-07 303
:::::: The code at line 287 was first introduced by commit
:::::: 6973886ad58e6b4988813331abb76ae0b364a9c2 dmaengine: sf-pdma: add platform DMA
support for HiFive Unleashed A00
:::::: TO: Green Wan <green.wan(a)sifive.com>
:::::: CC: Vinod Koul <vkoul(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org