Hi Kim,
FYI, the error/warning still remains.
tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 87241c08286384feb3ddc57d4cb0daca4be1e384
commit: 41e55459e543de8850eff28ca732757370cd5da5 [192/9195] net: stmmac: Add support for
MDIO interrupts
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 41e55459e543de8850eff28ca732757370cd5da5
# 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/linux/etherdevice.h:20,
from drivers/net/ethernet/stmicro/stmmac/common.h:14,
from drivers/net/ethernet/stmicro/stmmac/hwif.c:7:
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/hwif.c: In function 'stmmac_hwif_init':
> drivers/net/ethernet/stmicro/stmmac/hwif.c:287:43: warning: the
omitted middle operand in ?: will always be 'true', suggest explicit middle
operand [-Wparentheses]
287 | mac->mdio_intr_en = mac->mdio_intr_en ? :
entry->mdio_intr_en;
| ^
vim +/true +287 drivers/net/ethernet/stmicro/stmmac/hwif.c
225
226 int stmmac_hwif_init(struct stmmac_priv *priv)
227 {
228 bool needs_xgmac = priv->plat->has_xgmac;
229 bool needs_gmac4 = priv->plat->has_gmac4;
230 bool needs_gmac = priv->plat->has_gmac;
231 const struct stmmac_hwif_entry *entry;
232 struct mac_device_info *mac;
233 bool needs_setup = true;
234 int i, ret;
235 u32 id;
236
237 if (needs_gmac) {
238 id = stmmac_get_id(priv, GMAC_VERSION);
239 } else if (needs_gmac4 || needs_xgmac) {
240 id = stmmac_get_id(priv, GMAC4_VERSION);
241 } else {
242 id = 0;
243 }
244
245 /* Save ID for later use */
246 priv->synopsys_id = id;
247
248 /* Lets assume some safe values first */
249 priv->ptpaddr = priv->ioaddr +
250 (needs_gmac4 ? PTP_GMAC4_OFFSET : PTP_GMAC3_X_OFFSET);
251 priv->mmcaddr = priv->ioaddr +
252 (needs_gmac4 ? MMC_GMAC4_OFFSET : MMC_GMAC3_X_OFFSET);
253
254 /* Check for HW specific setup first */
255 if (priv->plat->setup) {
256 mac = priv->plat->setup(priv);
257 needs_setup = false;
258 } else {
259 mac = devm_kzalloc(priv->device, sizeof(*mac), GFP_KERNEL);
260 }
261
262 if (!mac)
263 return -ENOMEM;
264
265 /* Fallback to generic HW */
266 for (i = ARRAY_SIZE(stmmac_hw) - 1; i >= 0; i--) {
267 entry = &stmmac_hw[i];
268
269 if (needs_gmac ^ entry->gmac)
270 continue;
271 if (needs_gmac4 ^ entry->gmac4)
272 continue;
273 if (needs_xgmac ^ entry->xgmac)
274 continue;
275 /* Use synopsys_id var because some setups can override this */
276 if (priv->synopsys_id < entry->min_id)
277 continue;
278
279 /* Only use generic HW helpers if needed */
280 mac->desc = mac->desc ? : entry->desc;
281 mac->dma = mac->dma ? : entry->dma;
282 mac->mac = mac->mac ? : entry->mac;
283 mac->ptp = mac->ptp ? : entry->hwtimestamp;
284 mac->mode = mac->mode ? : entry->mode;
285 mac->tc = mac->tc ? : entry->tc;
286 mac->mmc = mac->mmc ? : entry->mmc;
287 mac->mdio_intr_en = mac->mdio_intr_en ? :
entry->mdio_intr_en;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org