[kbuild] [ulf.hansson-mmc:next 96/98] drivers/mmc/host/toshsd.c:159:20: sparse: context imbalance in 'toshsd_thread_irq' - different lock contexts for basic block

2014-11-12 Thread kbuild test robot
TO: Ondrej Zary li...@rainbow-software.org
CC: Ulf Hansson ulf.hans...@linaro.org

tree:   https://git.linaro.org/people/ulf.hansson/mmc next
head:   91a0b64971f6abc6a1bb19f457bbaf9df71d0aa2
commit: 36b2de044cdf3e3dfc2402a48008aa5ef0849a2b [96/98] mmc: add Toshiba PCI 
SD controller driver
reproduce:
  # apt-get install sparse
  git checkout 36b2de044cdf3e3dfc2402a48008aa5ef0849a2b
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__
:: branch date: 2 hours ago
:: commit date: 2 hours ago

 drivers/mmc/host/toshsd.c:159:20: sparse: context imbalance in 
 'toshsd_thread_irq' - different lock contexts for basic block

git remote add ulf.hansson-mmc https://git.linaro.org/people/ulf.hansson/mmc
git remote update ulf.hansson-mmc
git checkout 36b2de044cdf3e3dfc2402a48008aa5ef0849a2b
vim +/toshsd_thread_irq +159 drivers/mmc/host/toshsd.c

36b2de04 Ondrej Zary 2014-11-11  143iowrite16(state, host-ioaddr + 
SDIO_BASE + SDIO_LEDCTRL);
36b2de04 Ondrej Zary 2014-11-11  144  }
36b2de04 Ondrej Zary 2014-11-11  145  
36b2de04 Ondrej Zary 2014-11-11  146  static void toshsd_finish_request(struct 
toshsd_host *host)
36b2de04 Ondrej Zary 2014-11-11  147  {
36b2de04 Ondrej Zary 2014-11-11  148struct mmc_request *mrq = host-mrq;
36b2de04 Ondrej Zary 2014-11-11  149  
36b2de04 Ondrej Zary 2014-11-11  150/* Write something to end the command */
36b2de04 Ondrej Zary 2014-11-11  151host-mrq = NULL;
36b2de04 Ondrej Zary 2014-11-11  152host-cmd = NULL;
36b2de04 Ondrej Zary 2014-11-11  153host-data = NULL;
36b2de04 Ondrej Zary 2014-11-11  154  
36b2de04 Ondrej Zary 2014-11-11  155toshsd_set_led(host, 0);
36b2de04 Ondrej Zary 2014-11-11  156mmc_request_done(host-mmc, mrq);
36b2de04 Ondrej Zary 2014-11-11  157  }
36b2de04 Ondrej Zary 2014-11-11  158  
36b2de04 Ondrej Zary 2014-11-11 @159  static irqreturn_t toshsd_thread_irq(int 
irq, void *dev_id)
36b2de04 Ondrej Zary 2014-11-11  160  {
36b2de04 Ondrej Zary 2014-11-11  161struct toshsd_host *host = dev_id;
36b2de04 Ondrej Zary 2014-11-11  162struct mmc_data *data = host-data;
36b2de04 Ondrej Zary 2014-11-11  163struct sg_mapping_iter *sg_miter = 
host-sg_miter;
36b2de04 Ondrej Zary 2014-11-11  164unsigned short *buf;
36b2de04 Ondrej Zary 2014-11-11  165int count;
36b2de04 Ondrej Zary 2014-11-11  166unsigned long flags;
36b2de04 Ondrej Zary 2014-11-11  167  

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [PATCH] dmaengine: at_xdmac: fix platform_no_drv_owner.cocci warnings

2014-11-12 Thread kbuild test robot
TO: Ludovic Desroches ludovic.desroc...@atmel.com
CC: Vinod Koul vinod.k...@intel.com

drivers/dma/at_xdmac.c:1496:3-8: No need to set .owner here. The core will do 
it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Ludovic Desroches ludovic.desroc...@atmel.com
Signed-off-by: Fengguang Wu fengguang...@intel.com
---

Please take the patch only if it's a positive warning. Thanks!

 at_xdmac.c |1 -
 1 file changed, 1 deletion(-)

--- a/drivers/dma/at_xdmac.c
+++ b/drivers/dma/at_xdmac.c
@@ -1493,7 +1493,6 @@ static struct platform_driver at_xdmac_d
.remove = at_xdmac_remove,
.driver = {
.name   = at_xdmac,
-   .owner  = THIS_MODULE,
.of_match_table = of_match_ptr(atmel_xdmac_dt_ids),
.pm = atmel_xdmac_dev_pm_ops,
}
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [slave-dma:for-linus 1/37] drivers/dma/at_xdmac.c:1496:3-8: No need to set .owner here. The core will do it.

2014-11-12 Thread kbuild test robot
TO: Ludovic Desroches ludovic.desroc...@atmel.com
CC: Vinod Koul vinod.k...@intel.com

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git 
for-linus
head:   0005e0d58cee6b4c48416a44619df24214aa8670
commit: e1f7c9eee70730d7e6ec77f7ecc76f936e262cf0 [1/37] dmaengine: at_xdmac: 
creation of the atmel eXtended DMA Controller driver
:: branch date: 30 minutes ago
:: commit date: 6 days ago

 drivers/dma/at_xdmac.c:1496:3-8: No need to set .owner here. The core will 
 do it.

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [next:master 5859/6262] drivers/usb/gadget/udc/dummy_hcd.c:380:25: sparse: context imbalance in 'set_link_state' - unexpected unlock

2014-11-12 Thread kbuild test robot
TO: Alan Stern st...@rowland.harvard.edu
CC: Felipe Balbi ba...@ti.com
CC: Peter chen peter.c...@freescale.com

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ebc7163fafb29c390519378897c201748acc2756
commit: 8480484d6f4a5b7d50262702db082b0fd13e7df5 [5859/6262] usb: gadget: 
dummy-hcd: use udc-core's reset notifier
reproduce:
  # apt-get install sparse
  git checkout 8480484d6f4a5b7d50262702db082b0fd13e7df5
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__
:: branch date: 6 hours ago
:: commit date: 2 days ago

   drivers/usb/gadget/udc/dummy_hcd.c:1931:36: sparse: incorrect type in 
assignment (different base types)
   drivers/usb/gadget/udc/dummy_hcd.c:1931:36:expected restricted __le16 
[usertype] DeviceRemovable
   drivers/usb/gadget/udc/dummy_hcd.c:1931:36:got int
 drivers/usb/gadget/udc/dummy_hcd.c:380:25: sparse: context imbalance in 
 'set_link_state' - unexpected unlock

git remote add next 
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update next
git checkout 8480484d6f4a5b7d50262702db082b0fd13e7df5
vim +/set_link_state +380 drivers/usb/gadget/udc/dummy_hcd.c

1cd8fd28 drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  364
set_link_state_by_speed(dum_hcd);
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  365  
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  366
if ((dum_hcd-port_status  USB_PORT_STAT_ENABLE) == 0 ||
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  367
 dum_hcd-active)
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  368
dum_hcd-resuming = 0;
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  369  
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  370
/* Currently !connected or in reset */
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  371
if ((dum_hcd-port_status  USB_PORT_STAT_CONNECTION) == 0 ||
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  372
(dum_hcd-port_status  USB_PORT_STAT_RESET) != 0) {
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  373
unsigned disconnect = USB_PORT_STAT_CONNECTION 
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  374
dum_hcd-old_status  (~dum_hcd-port_status);
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  375
unsigned reset = USB_PORT_STAT_RESET 
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  376
(~dum_hcd-old_status)  dum_hcd-port_status;
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  377  
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  378
/* Report reset and disconnect events to the driver */
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  379
if (dum-driver  (disconnect || reset)) {
f1c39fad drivers/usb/gadget/dummy_hcd.c Alan Stern   2005-05-03 @380
stop_activity(dum);
f1c39fad drivers/usb/gadget/dummy_hcd.c Alan Stern   2005-05-03  381
spin_unlock(dum-lock);
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  382
if (reset)
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  383
usb_gadget_udc_reset(dum-gadget, dum-driver);
8480484d drivers/usb/gadget/udc/dummy_hcd.c Alan Stern   2014-11-06  384
else
f1c39fad drivers/usb/gadget/dummy_hcd.c Alan Stern   2005-05-03  385
dum-driver-disconnect(dum-gadget);
f1c39fad drivers/usb/gadget/dummy_hcd.c Alan Stern   2005-05-03  386
spin_lock(dum-lock);
f1c39fad drivers/usb/gadget/dummy_hcd.c Alan Stern   2005-05-03  387
}
cdfcbd2c drivers/usb/gadget/dummy_hcd.c Tatyana Brokhman 2011-06-29  388
} else if (dum_hcd-active != dum_hcd-old_active) {

:: The code at line 380 was first introduced by commit
:: f1c39fad7d1bbea31744138cd3a532ff346cd4ab [PATCH] USB dummy_hcd: 
Centralize link state computations

:: TO: Alan Stern st...@rowland.harvard.edu
:: CC: Greg Kroah-Hartman gre...@suse.de

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [slave-dma:for-linus 1/37] drivers/dma/at_xdmac.c:933 at_xdmac_tx_status() warn: inconsistent returns 'spin_lock:atchan-lock'.

2014-11-12 Thread kbuild test robot
TO: Ludovic Desroches ludovic.desroc...@atmel.com
CC: Vinod Koul vinod.k...@intel.com

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git 
for-linus
head:   0005e0d58cee6b4c48416a44619df24214aa8670
commit: e1f7c9eee70730d7e6ec77f7ecc76f936e262cf0 [1/37] dmaengine: at_xdmac: 
creation of the atmel eXtended DMA Controller driver
:: branch date: 4 hours ago
:: commit date: 6 days ago

drivers/dma/at_xdmac.c:933 at_xdmac_tx_status() warn: inconsistent returns 
'spin_lock:atchan-lock'.
drivers/dma/at_xdmac.c:933 at_xdmac_tx_status() warn: inconsistent returns 
'bottom_half:'.

git remote add slave-dma 
git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git
git remote update slave-dma
git checkout e1f7c9eee70730d7e6ec77f7ecc76f936e262cf0
vim +933 drivers/dma/at_xdmac.c

e1f7c9ee Ludovic Desroches 2014-10-22  917  descs_list = desc-descs_list;
e1f7c9ee Ludovic Desroches 2014-10-22  918  list_for_each_entry_safe(desc, 
_desc, descs_list, desc_node) {
e1f7c9ee Ludovic Desroches 2014-10-22  919  residue -= 
(desc-lld.mbr_ubc  0xff)  dwidth;
e1f7c9ee Ludovic Desroches 2014-10-22  920  if ((desc-lld.mbr_nda 
 0xfffc) == cur_nda)
e1f7c9ee Ludovic Desroches 2014-10-22  921  break;
e1f7c9ee Ludovic Desroches 2014-10-22  922  }
e1f7c9ee Ludovic Desroches 2014-10-22  923  residue += 
at_xdmac_chan_read(atchan, AT_XDMAC_CUBC)  dwidth;
e1f7c9ee Ludovic Desroches 2014-10-22  924  
e1f7c9ee Ludovic Desroches 2014-10-22  925  spin_unlock_bh(atchan-lock);
e1f7c9ee Ludovic Desroches 2014-10-22  926  
e1f7c9ee Ludovic Desroches 2014-10-22  927  dma_set_residue(txstate, 
residue);
e1f7c9ee Ludovic Desroches 2014-10-22  928  
e1f7c9ee Ludovic Desroches 2014-10-22  929  dev_dbg(chan2dev(chan),
e1f7c9ee Ludovic Desroches 2014-10-22  930   %s: desc=0x%p, 
tx_dma_desc.phys=0x%08x, tx_status=%d, cookie=%d, residue=%d\n,
e1f7c9ee Ludovic Desroches 2014-10-22  931   __func__, desc, 
desc-tx_dma_desc.phys, ret, cookie, residue);
e1f7c9ee Ludovic Desroches 2014-10-22  932  
e1f7c9ee Ludovic Desroches 2014-10-22 @933  return ret;
e1f7c9ee Ludovic Desroches 2014-10-22  934  }
e1f7c9ee Ludovic Desroches 2014-10-22  935  
e1f7c9ee Ludovic Desroches 2014-10-22  936  /* Call must be protected by lock. 
*/
e1f7c9ee Ludovic Desroches 2014-10-22  937  static void 
at_xdmac_remove_xfer(struct at_xdmac_chan *atchan,
e1f7c9ee Ludovic Desroches 2014-10-22  938  
struct at_xdmac_desc *desc)
e1f7c9ee Ludovic Desroches 2014-10-22  939  {
e1f7c9ee Ludovic Desroches 2014-10-22  940  
dev_dbg(chan2dev(atchan-chan), %s: desc 0x%p\n, __func__, desc);
e1f7c9ee Ludovic Desroches 2014-10-22  941  

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [ulf.hansson-mmc:next 96/99] drivers/mmc/host/toshsd.c:389 toshsd_irq() error: we previously assumed 'host-cmd' could be null (see line 349)

2014-11-12 Thread Dan Carpenter
tree:   https://git.linaro.org/people/ulf.hansson/mmc next
head:   edd9918aa24ccee14f80d0c6e87e89b59223e807
commit: 36b2de044cdf3e3dfc2402a48008aa5ef0849a2b [96/99] mmc: add Toshiba PCI 
SD controller driver

drivers/mmc/host/toshsd.c:389 toshsd_irq() error: we previously assumed 
'host-cmd' could be null (see line 349)

git remote add ulf.hansson-mmc https://git.linaro.org/people/ulf.hansson/mmc
git remote update ulf.hansson-mmc
git checkout 36b2de044cdf3e3dfc2402a48008aa5ef0849a2b
vim +389 drivers/mmc/host/toshsd.c

36b2de04 Ondrej Zary 2014-11-11  343detail  
SD_ERR1_TIMEOUT_CRS_STATUS ? CRS_STATUS_TIMEOUT  : ,
36b2de04 Ondrej Zary 2014-11-11  344detail  
SD_ERR1_TIMEOUT_CRC_BUSY ? CRC_BUSY_TIMEOUT  : );
36b2de04 Ondrej Zary 2014-11-11  345error = -EIO;
36b2de04 Ondrej Zary 2014-11-11  346}
36b2de04 Ondrej Zary 2014-11-11  347  
36b2de04 Ondrej Zary 2014-11-11  348if (error) {
36b2de04 Ondrej Zary 2014-11-11 @349if (host-cmd)
36b2de04 Ondrej Zary 2014-11-11  350host-cmd-error = 
error;
36b2de04 Ondrej Zary 2014-11-11  351  
36b2de04 Ondrej Zary 2014-11-11  352if (error == -ETIMEDOUT) {
36b2de04 Ondrej Zary 2014-11-11  353iowrite32(int_status 
36b2de04 Ondrej Zary 2014-11-11  354  
~(SD_BUF_CMD_TIMEOUT | SD_CARD_RESP_END),
36b2de04 Ondrej Zary 2014-11-11  355  host-ioaddr 
+ SD_CARDSTATUS);
36b2de04 Ondrej Zary 2014-11-11  356} else {
36b2de04 Ondrej Zary 2014-11-11  357toshsd_init(host);
36b2de04 Ondrej Zary 2014-11-11  358
__toshsd_set_ios(host-mmc, host-mmc-ios);
36b2de04 Ondrej Zary 2014-11-11  359goto irq_end;
36b2de04 Ondrej Zary 2014-11-11  360}
36b2de04 Ondrej Zary 2014-11-11  361}
36b2de04 Ondrej Zary 2014-11-11  362  
36b2de04 Ondrej Zary 2014-11-11  363/* Card insert/remove. The mmc 
controlling code is stateless. */
36b2de04 Ondrej Zary 2014-11-11  364if (int_reg  (SD_CARD_CARD_INSERTED_0 
| SD_CARD_CARD_REMOVED_0)) {
36b2de04 Ondrej Zary 2014-11-11  365iowrite32(int_status 
36b2de04 Ondrej Zary 2014-11-11  366  
~(SD_CARD_CARD_REMOVED_0 | SD_CARD_CARD_INSERTED_0),
36b2de04 Ondrej Zary 2014-11-11  367  host-ioaddr + 
SD_CARDSTATUS);
36b2de04 Ondrej Zary 2014-11-11  368  
36b2de04 Ondrej Zary 2014-11-11  369if (int_reg  
SD_CARD_CARD_INSERTED_0)
36b2de04 Ondrej Zary 2014-11-11  370toshsd_init(host);
36b2de04 Ondrej Zary 2014-11-11  371  
36b2de04 Ondrej Zary 2014-11-11  372mmc_detect_change(host-mmc, 1);
36b2de04 Ondrej Zary 2014-11-11  373}
36b2de04 Ondrej Zary 2014-11-11  374  
36b2de04 Ondrej Zary 2014-11-11  375/* Data transfer */
36b2de04 Ondrej Zary 2014-11-11  376if (int_reg  (SD_BUF_READ_ENABLE | 
SD_BUF_WRITE_ENABLE)) {
36b2de04 Ondrej Zary 2014-11-11  377iowrite32(int_status 
36b2de04 Ondrej Zary 2014-11-11  378  ~(SD_BUF_WRITE_ENABLE 
| SD_BUF_READ_ENABLE),
36b2de04 Ondrej Zary 2014-11-11  379  host-ioaddr + 
SD_CARDSTATUS);
36b2de04 Ondrej Zary 2014-11-11  380  
36b2de04 Ondrej Zary 2014-11-11  381ret = IRQ_WAKE_THREAD;
36b2de04 Ondrej Zary 2014-11-11  382goto irq_end;
36b2de04 Ondrej Zary 2014-11-11  383}
36b2de04 Ondrej Zary 2014-11-11  384  
36b2de04 Ondrej Zary 2014-11-11  385/* Command completion */
36b2de04 Ondrej Zary 2014-11-11  386if (int_reg  SD_CARD_RESP_END) {
36b2de04 Ondrej Zary 2014-11-11  387iowrite32(int_status  
~(SD_CARD_RESP_END),
36b2de04 Ondrej Zary 2014-11-11  388  host-ioaddr + 
SD_CARDSTATUS);
36b2de04 Ondrej Zary 2014-11-11 @389toshsd_cmd_irq(host);
36b2de04 Ondrej Zary 2014-11-11  390}
36b2de04 Ondrej Zary 2014-11-11  391  
36b2de04 Ondrej Zary 2014-11-11  392/* Data transfer completion */

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [slave-dma:for-linus 1/37] drivers/dma/at_xdmac.c:933 at_xdmac_tx_status() warn: inconsistent returns 'spin_lock:atchan-lock'.

2014-11-12 Thread Dan Carpenter
[ missing unlock on line 902 - dan]

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git 
for-linus
head:   0005e0d58cee6b4c48416a44619df24214aa8670
commit: e1f7c9eee70730d7e6ec77f7ecc76f936e262cf0 [1/37] dmaengine: at_xdmac: 
creation of the atmel eXtended DMA Controller driver

drivers/dma/at_xdmac.c:933 at_xdmac_tx_status() warn: inconsistent returns 
'spin_lock:atchan-lock'.
  Locked on:   line 902
  Unlocked on: line 887
   line 890
   line 933
drivers/dma/at_xdmac.c:933 at_xdmac_tx_status() warn: inconsistent returns 
'bottom_half:'.
  Locked on:   line 902
  Unlocked on: line 887
   line 890
   line 933

git remote add slave-dma 
git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git
git remote update slave-dma
git checkout e1f7c9eee70730d7e6ec77f7ecc76f936e262cf0
vim +933 drivers/dma/at_xdmac.c

e1f7c9ee Ludovic Desroches 2014-10-22  917  descs_list = desc-descs_list;
e1f7c9ee Ludovic Desroches 2014-10-22  918  list_for_each_entry_safe(desc, 
_desc, descs_list, desc_node) {
e1f7c9ee Ludovic Desroches 2014-10-22  919  residue -= 
(desc-lld.mbr_ubc  0xff)  dwidth;
e1f7c9ee Ludovic Desroches 2014-10-22  920  if ((desc-lld.mbr_nda 
 0xfffc) == cur_nda)
e1f7c9ee Ludovic Desroches 2014-10-22  921  break;
e1f7c9ee Ludovic Desroches 2014-10-22  922  }
e1f7c9ee Ludovic Desroches 2014-10-22  923  residue += 
at_xdmac_chan_read(atchan, AT_XDMAC_CUBC)  dwidth;
e1f7c9ee Ludovic Desroches 2014-10-22  924  
e1f7c9ee Ludovic Desroches 2014-10-22  925  spin_unlock_bh(atchan-lock);
e1f7c9ee Ludovic Desroches 2014-10-22  926  
e1f7c9ee Ludovic Desroches 2014-10-22  927  dma_set_residue(txstate, 
residue);
e1f7c9ee Ludovic Desroches 2014-10-22  928  
e1f7c9ee Ludovic Desroches 2014-10-22  929  dev_dbg(chan2dev(chan),
e1f7c9ee Ludovic Desroches 2014-10-22  930   %s: desc=0x%p, 
tx_dma_desc.phys=0x%08x, tx_status=%d, cookie=%d, residue=%d\n,
e1f7c9ee Ludovic Desroches 2014-10-22  931   __func__, desc, 
desc-tx_dma_desc.phys, ret, cookie, residue);
e1f7c9ee Ludovic Desroches 2014-10-22  932  
e1f7c9ee Ludovic Desroches 2014-10-22 @933  return ret;
e1f7c9ee Ludovic Desroches 2014-10-22  934  }
e1f7c9ee Ludovic Desroches 2014-10-22  935  
e1f7c9ee Ludovic Desroches 2014-10-22  936  /* Call must be protected by lock. 
*/
e1f7c9ee Ludovic Desroches 2014-10-22  937  static void 
at_xdmac_remove_xfer(struct at_xdmac_chan *atchan,
e1f7c9ee Ludovic Desroches 2014-10-22  938  
struct at_xdmac_desc *desc)
e1f7c9ee Ludovic Desroches 2014-10-22  939  {
e1f7c9ee Ludovic Desroches 2014-10-22  940  
dev_dbg(chan2dev(atchan-chan), %s: desc 0x%p\n, __func__, desc);
e1f7c9ee Ludovic Desroches 2014-10-22  941  

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild


[kbuild] [next:master 3753/6262] arch/x86/lguest/boot.c:848 lguest_init_IRQ() error: buffer overflow 'interrupt' 207 = 223

2014-11-12 Thread kbuild test robot
TO: Jan Beulich jbeul...@suse.com
CC: Thomas Gleixner t...@linutronix.de

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ebc7163fafb29c390519378897c201748acc2756
commit: 8c66877ee65ec4e6974e9aa69bc53abe4a603f10 [3753/6262] x86: Avoid 
building unused IRQ entry stubs
:: branch date: 16 hours ago
:: commit date: 8 days ago

arch/x86/lguest/boot.c:848 lguest_init_IRQ() error: buffer overflow 'interrupt' 
207 = 223
arch/x86/lguest/boot.c:848 lguest_init_IRQ() error: buffer overflow 'interrupt' 
207 = 223

git remote add next 
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update next
git checkout 8c66877ee65ec4e6974e9aa69bc53abe4a603f10
vim +/interrupt +848 arch/x86/lguest/boot.c

07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  832  };
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  833  
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  834  /*
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  835   * This sets up 
the Interrupt Descriptor Table (IDT) entry for each hardware
b2b47c21 drivers/lguest/lguest.c Rusty Russell 2007-07-26  836   * interrupt 
(except 128, which is used for system calls), and then tells the
b2b47c21 drivers/lguest/lguest.c Rusty Russell 2007-07-26  837   * Linux 
infrastructure that each interrupt is controlled by our level-based
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  838   * lguest 
interrupt controller.
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  839   */
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  840  static void 
__init lguest_init_IRQ(void)
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  841  {
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  842  
unsigned int i;
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  843  
1028375e arch/x86/lguest/boot.c  Rusty Russell 2009-06-12  844  for (i 
= FIRST_EXTERNAL_VECTOR; i  NR_VECTORS; i++) {
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  845  
/* Some systems map vectors to interrupts weirdly.  Not us! */
ced05dd7 arch/x86/lguest/boot.c  Rusty Russell 2011-01-20  846  
__this_cpu_write(vector_irq[i], i - FIRST_EXTERNAL_VECTOR);
1028375e arch/x86/lguest/boot.c  Rusty Russell 2009-06-12  847  
if (i != SYSCALL_VECTOR)
1028375e arch/x86/lguest/boot.c  Rusty Russell 2009-06-12 @848  
set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  849  }
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  850  
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  851  /*
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  852   * This 
call is required to set up for 4k stacks, where we have
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  853   * 
separate stacks for hard and soft interrupts.
2e04ef76 arch/x86/lguest/boot.c  Rusty Russell 2009-07-30  854   */
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  855  
irq_ctx_init(smp_processor_id());
07ad157f drivers/lguest/lguest.c Rusty Russell 2007-07-19  856  }

:: The code at line 848 was first introduced by commit
:: 1028375e93a7aa4dbe466947d1c65f368b1f61c1 lguest: clean up lguest_init_IRQ

:: TO: Rusty Russell ru...@rustcorp.com.au
:: CC: Rusty Russell ru...@rustcorp.com.au

---
0-DAY kernel test infrastructureOpen Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
___
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild