drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c:587:2: warning: 'strncpy' specified bound 8 equals destination size
From: kernel test robot
Date: Wed Jun 17 2020 - 04:09:12 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 riscv: Add KASAN support
date: 5 months ago
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.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
git checkout 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h:24,
from drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c:26:
drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h:786:1: warning: alignment 1 of 'struct d11txh' is less than 2 [-Wpacked-not-aligned]
786 | } __packed;
| ^
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c: In function 'dma_attach':
<< from drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c:26:
>> drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c:587:2: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation]
587 | strncpy(di->name, name, MAXNAMEL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +587 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 547
e041f65d5f0001 drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 548 struct dma_pub *dma_attach(char *name, struct brcms_c_info *wlc,
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 549 uint txregbase, uint rxregbase, uint ntxd, uint nrxd,
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 550 uint rxbufsize, int rxextheadroom,
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 551 uint nrxpost, uint rxoffset)
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 552 {
e041f65d5f0001 drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 553 struct si_pub *sih = wlc->hw->sih;
e041f65d5f0001 drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 554 struct bcma_device *core = wlc->hw->d11core;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 555 struct dma_info *di;
3b758a68402fc5 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-12 556 u8 rev = core->id.rev;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 557 uint size;
ec5ab1dd73a4b2 drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 558 struct si_info *sii = container_of(sih, struct si_info, pub);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 559
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 560 /* allocate private info structure */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 561 di = kzalloc(sizeof(struct dma_info), GFP_ATOMIC);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 562 if (di == NULL)
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 563 return NULL;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 564
a8779e4a8e7f0f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 565 di->dma64 =
3b758a68402fc5 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-12 566 ((bcma_aread32(core, BCMA_IOST) & SISF_DMA64) == SISF_DMA64);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 567
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 568 /* init dma reg info */
3b758a68402fc5 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-12 569 di->core = core;
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 570 di->d64txregbase = txregbase;
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 571 di->d64rxregbase = rxregbase;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 572
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 573 /*
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 574 * Default flags (which can be changed by the driver calling
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 575 * dma_ctrlflags before enable): For backwards compatibility
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 576 * both Rx Overflow Continue and Parity are DISABLED.
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 577 */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 578 _dma_ctrlflags(di, DMA_CTRL_ROC | DMA_CTRL_PEN, 0);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 579
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 580 brcms_dbg_dma(di->core, "%s: %s flags 0x%x ntxd %d nrxd %d "
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 581 "rxbufsize %d rxextheadroom %d nrxpost %d rxoffset %d "
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 582 "txregbase %u rxregbase %u\n", name, "DMA64",
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 583 di->dma.dmactrlflags, ntxd, nrxd, rxbufsize,
e81da6501b433f drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-08 584 rxextheadroom, nrxpost, rxoffset, txregbase, rxregbase);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 585
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 586 /* make a private copy of our callers name */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 @587 strncpy(di->name, name, MAXNAMEL);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 588 di->name[MAXNAMEL - 1] = '\0';
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 589
3b758a68402fc5 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-12 590 di->dmadev = core->dma_dev;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 591
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 592 /* save tunables */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 593 di->ntxd = (u16) ntxd;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 594 di->nrxd = (u16) nrxd;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 595
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 596 /* the actual dma size doesn't include the extra headroom */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 597 di->rxextrahdrroom =
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 598 (rxextheadroom == -1) ? BCMEXTRAHDROOM : rxextheadroom;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 599 if (rxbufsize > BCMEXTRAHDROOM)
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 600 di->rxbufsize = (u16) (rxbufsize - di->rxextrahdrroom);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 601 else
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 602 di->rxbufsize = (u16) rxbufsize;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 603
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 604 di->nrxpost = (u16) nrxpost;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 605 di->rxoffset = (u8) rxoffset;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 606
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 607 /*
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 608 * figure out the DMA physical address offset for dd and data
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 609 * PCI/PCIE: they map silicon backplace address to zero
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 610 * based memory, need offset
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 611 * Other bus: use zero SI_BUS BIGENDIAN kludge: use sdram
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 612 * swapped region for data buffer, not descriptor
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 613 */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 614 di->ddoffsetlow = 0;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 615 di->dataoffsetlow = 0;
ec5ab1dd73a4b2 drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 616 /* for pci bus, add offset */
ec5ab1dd73a4b2 drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 617 if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 618 /* add offset for pcie with DMA64 bus */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 619 di->ddoffsetlow = 0;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 620 di->ddoffsethigh = SI_PCIE_DMA_H32;
ec5ab1dd73a4b2 drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 621 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 622 di->dataoffsetlow = di->ddoffsetlow;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 623 di->dataoffsethigh = di->ddoffsethigh;
ec5ab1dd73a4b2 drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 624
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 625 /* WAR64450 : DMACtl.Addr ext fields are not supported in SDIOD core. */
780b9c4644616f drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 626 if ((core->id.id == BCMA_CORE_SDIO_DEV)
3b758a68402fc5 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-12 627 && ((rev > 0) && (rev <= 2)))
3db1cd5c05f35f drivers/net/wireless/brcm80211/brcmsmac/dma.c Rusty Russell 2011-12-19 628 di->addrext = false;
780b9c4644616f drivers/net/wireless/brcm80211/brcmsmac/dma.c Hauke Mehrtens 2012-06-30 629 else if ((core->id.id == BCMA_CORE_I2S) &&
3b758a68402fc5 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-12-12 630 ((rev == 0) || (rev == 1)))
3db1cd5c05f35f drivers/net/wireless/brcm80211/brcmsmac/dma.c Rusty Russell 2011-12-19 631 di->addrext = false;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 632 else
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 633 di->addrext = _dma_isaddrext(di);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 634
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 635 /* does the descriptor need to be aligned and if yes, on 4K/8K or not */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 636 di->aligndesc_4k = _dma_descriptor_align(di);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 637 if (di->aligndesc_4k) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 638 di->dmadesc_align = D64RINGALIGN_BITS;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 639 if ((ntxd < D64MAXDD / 2) && (nrxd < D64MAXDD / 2))
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 640 /* for smaller dd table, HW relax alignment reqmnt */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 641 di->dmadesc_align = D64RINGALIGN_BITS - 1;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 642 } else {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 643 di->dmadesc_align = 4; /* 16 byte alignment */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 644 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 645
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 646 brcms_dbg_dma(di->core, "DMA descriptor align_needed %d, align %d\n",
8505a7e652c8a3 drivers/net/wireless/brcm80211/brcmsmac/dma.c Joe Perches 2011-11-13 647 di->aligndesc_4k, di->dmadesc_align);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 648
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 649 /* allocate tx packet pointer vector */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 650 if (ntxd) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 651 size = ntxd * sizeof(void *);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 652 di->txp = kzalloc(size, GFP_ATOMIC);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 653 if (di->txp == NULL)
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 654 goto fail;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 655 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 656
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 657 /* allocate rx packet pointer vector */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 658 if (nrxd) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 659 size = nrxd * sizeof(void *);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 660 di->rxp = kzalloc(size, GFP_ATOMIC);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 661 if (di->rxp == NULL)
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 662 goto fail;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 663 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 664
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 665 /*
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 666 * allocate transmit descriptor ring, only need ntxd descriptors
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 667 * but it must be aligned
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 668 */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 669 if (ntxd) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 670 if (!_dma_alloc(di, DMA_TX))
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 671 goto fail;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 672 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 673
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 674 /*
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 675 * allocate receive descriptor ring, only need nrxd descriptors
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 676 * but it must be aligned
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 677 */
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 678 if (nrxd) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 679 if (!_dma_alloc(di, DMA_RX))
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 680 goto fail;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 681 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 682
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 683 if ((di->ddoffsetlow != 0) && !di->addrext) {
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 684 if (di->txdpa > SI_PCI_DMA_SZ) {
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 685 brcms_dbg_dma(di->core,
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 686 "%s: txdpa 0x%x: addrext not supported\n",
8505a7e652c8a3 drivers/net/wireless/brcm80211/brcmsmac/dma.c Joe Perches 2011-11-13 687 di->name, (u32)di->txdpa);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 688 goto fail;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 689 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 690 if (di->rxdpa > SI_PCI_DMA_SZ) {
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 691 brcms_dbg_dma(di->core,
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 692 "%s: rxdpa 0x%x: addrext not supported\n",
8505a7e652c8a3 drivers/net/wireless/brcm80211/brcmsmac/dma.c Joe Perches 2011-11-13 693 di->name, (u32)di->rxdpa);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 694 goto fail;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 695 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 696 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 697
e041f65d5f0001 drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 698 /* Initialize AMPDU session */
e041f65d5f0001 drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 699 brcms_c_ampdu_reset_session(&di->ampdu_session, wlc);
e041f65d5f0001 drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 700
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 701 brcms_dbg_dma(di->core,
90123e045cac4c drivers/net/wireless/brcm80211/brcmsmac/dma.c Seth Forshee 2012-11-15 702 "ddoffsetlow 0x%x ddoffsethigh 0x%x dataoffsetlow 0x%x dataoffsethigh 0x%x addrext %d\n",
8505a7e652c8a3 drivers/net/wireless/brcm80211/brcmsmac/dma.c Joe Perches 2011-11-13 703 di->ddoffsetlow, di->ddoffsethigh,
8505a7e652c8a3 drivers/net/wireless/brcm80211/brcmsmac/dma.c Joe Perches 2011-11-13 704 di->dataoffsetlow, di->dataoffsethigh,
8505a7e652c8a3 drivers/net/wireless/brcm80211/brcmsmac/dma.c Joe Perches 2011-11-13 705 di->addrext);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 706
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 707 return (struct dma_pub *) di;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 708
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 709 fail:
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 710 dma_detach((struct dma_pub *)di);
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 711 return NULL;
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 712 }
5b435de0d78686 drivers/net/wireless/brcm80211/brcmsmac/dma.c Arend van Spriel 2011-10-05 713
:::::: The code at line 587 was first introduced by commit
:::::: 5b435de0d786869c95d1962121af0d7df2542009 net: wireless: add brcm80211 drivers
:::::: TO: Arend van Spriel <arend@xxxxxxxxxxxx>
:::::: CC: John W. Linville <linville@xxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip