tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 87241c08286384feb3ddc57d4cb0daca4be1e384
commit: 6db3546e9e4811b396273585711d79de67ec2707 [206/9195] net: stmmac: Add support for
VLAN promiscuous mode
config: parisc-randconfig-r021-20200811 (attached as .config)
compiler: hppa-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 6db3546e9e4811b396273585711d79de67ec2707
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:15:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro
'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c: In function
'dwmac4_vlan_promisc_enable':
> drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:548:6: warning:
variable 'hash' set but not used [-Wunused-but-set-variable]
548 | u32
hash;
| ^~~~
vim +/hash +548 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
542
543 static void dwmac4_vlan_promisc_enable(struct net_device *dev,
544 struct mac_device_info *hw)
545 {
546 void __iomem *ioaddr = hw->pcsr;
547 u32 value;
548 u32 hash;
549 u32 val;
550 int i;
551
552 /* Single Rx VLAN Filter */
553 if (hw->num_vlan == 1) {
554 dwmac4_write_single_vlan(dev, 0);
555 return;
556 }
557
558 /* Extended Rx VLAN Filter Enable */
559 for (i = 0; i < hw->num_vlan; i++) {
560 if (hw->vlan_filter[i] & GMAC_VLAN_TAG_DATA_VEN) {
561 val = hw->vlan_filter[i] & ~GMAC_VLAN_TAG_DATA_VEN;
562 dwmac4_write_vlan_filter(dev, hw, i, val);
563 }
564 }
565
566 hash = readl(ioaddr + GMAC_VLAN_HASH_TABLE);
567 value = readl(ioaddr + GMAC_VLAN_TAG);
568 if (value & GMAC_VLAN_VTHM) {
569 value &= ~GMAC_VLAN_VTHM;
570 writel(value, ioaddr + GMAC_VLAN_TAG);
571 }
572 }
573
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org