TO: Ludovic Desroches <[email protected]>
CC: Maxime Ripard <[email protected]>
tree: git://github.com/mripard/linux dmaengine-generic-caps
head: d49e9ec6df0243b89641d9c966f448cd3798533a
commit: a0d7f2291bd47b1a39ace988f36eb1d737632304 [13/60] dmaengine: at_xdmac:
split device_control
reproduce:
# apt-get install sparse
git checkout a0d7f2291bd47b1a39ace988f36eb1d737632304
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
drivers/dma/at_xdmac.c:873:1: sparse: context imbalance in
'at_xdmac_tx_status' - different lock contexts for basic block
>> drivers/dma/at_xdmac.c:1130:12: sparse: context imbalance in
>> 'at_xdmac_device_resume' - different lock contexts for basic block
In file included from include/linux/printk.h:260:0,
from include/linux/kernel.h:13,
from include/linux/clk.h:16,
from drivers/dma/at_xdmac.c:23:
drivers/dma/at_xdmac.c: In function 'at_xdmac_prep_dma_memcpy':
include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument
of type 'unsigned int', but argument 6 has type 'dma_addr_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:84:2: note: in expansion of macro
'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1107:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/dma/at_xdmac.c:852:4: note: in expansion of macro 'dev_dbg'
dev_dbg(chan2dev(chan),
^
git remote add sunxi git://github.com/mripard/linux
git remote update sunxi
git checkout a0d7f2291bd47b1a39ace988f36eb1d737632304
vim +/at_xdmac_device_resume +1130 drivers/dma/at_xdmac.c
e1f7c9ee Ludovic Desroches 2014-10-22 1114
a0d7f229 Ludovic Desroches 2014-11-13 1115 static int
at_xdmac_device_pause(struct dma_chan *chan)
a0d7f229 Ludovic Desroches 2014-11-13 1116 {
a0d7f229 Ludovic Desroches 2014-11-13 1117 struct at_xdmac_chan *atchan
= to_at_xdmac_chan(chan);
a0d7f229 Ludovic Desroches 2014-11-13 1118 struct at_xdmac
*atxdmac = to_at_xdmac(atchan->chan.device);
a0d7f229 Ludovic Desroches 2014-11-13 1119
a0d7f229 Ludovic Desroches 2014-11-13 1120 dev_dbg(chan2dev(chan), "%s\n",
__func__);
a0d7f229 Ludovic Desroches 2014-11-13 1121
a0d7f229 Ludovic Desroches 2014-11-13 1122 spin_lock_bh(&atchan->lock);
e1f7c9ee Ludovic Desroches 2014-10-22 1123 at_xdmac_write(atxdmac,
AT_XDMAC_GRWS, atchan->mask);
e1f7c9ee Ludovic Desroches 2014-10-22 1124
set_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status);
a0d7f229 Ludovic Desroches 2014-11-13 1125 spin_unlock_bh(&atchan->lock);
a0d7f229 Ludovic Desroches 2014-11-13 1126
a0d7f229 Ludovic Desroches 2014-11-13 1127 return 0;
a0d7f229 Ludovic Desroches 2014-11-13 1128 }
e1f7c9ee Ludovic Desroches 2014-10-22 1129
a0d7f229 Ludovic Desroches 2014-11-13 @1130 static int
at_xdmac_device_resume(struct dma_chan *chan)
a0d7f229 Ludovic Desroches 2014-11-13 1131 {
a0d7f229 Ludovic Desroches 2014-11-13 1132 struct at_xdmac_chan *atchan
= to_at_xdmac_chan(chan);
a0d7f229 Ludovic Desroches 2014-11-13 1133 struct at_xdmac
*atxdmac = to_at_xdmac(atchan->chan.device);
a0d7f229 Ludovic Desroches 2014-11-13 1134
a0d7f229 Ludovic Desroches 2014-11-13 1135 dev_dbg(chan2dev(chan), "%s\n",
__func__);
a0d7f229 Ludovic Desroches 2014-11-13 1136
a0d7f229 Ludovic Desroches 2014-11-13 1137 spin_lock_bh(&atchan->lock);
e1f7c9ee Ludovic Desroches 2014-10-22 1138 if
(!at_xdmac_chan_is_paused(atchan))
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
_______________________________________________
kbuild mailing list
[email protected]
https://lists.01.org/mailman/listinfo/kbuild