tree:
https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-testing.git
master
head: d17be7f7503bf9492198a242779a68af93fd92de
commit: 96c03618031bae5e9068b16f9e437b79f98f6482 [4/5] Merge remote-tracking
branch 'mac80211-next/master'
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 96c03618031bae5e9068b16f9e437b79f98f6482
# save the attached .config to linux build tree
make.cross ARCH=ia64
All errors (new ones prefixed by >>):
drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_port_probe':
>> drivers/net/ethernet/marvell/mvpp2.c:7618:49: error: passing argument 4 of
>> 'mvpp2_port_copy_mac_addr' from incompatible pointer type
>> [-Werror=incompatible-pointer-types]
mvpp2_port_copy_mac_addr(dev, priv, port_node, _from);
^
drivers/net/ethernet/marvell/mvpp2.c:7468:13: note: expected 'char **' but
argument is of type 'const char **'
static void mvpp2_port_copy_mac_addr(struct net_device *dev, struct mvpp2
*priv,
^~~~
drivers/net/ethernet/marvell/mvpp2.c:7509:7: warning: unused variable
'hw_mac_addr' [-Wunused-variable]
char hw_mac_addr[ETH_ALEN] = {0};
^~~
drivers/net/ethernet/marvell/mvpp2.c:7507:14: warning: unused variable
'dt_mac_addr' [-Wunused-variable]
const char *dt_mac_addr;
^~~
cc1: some warnings being treated as errors
vim +/mvpp2_port_copy_mac_addr +7618 drivers/net/ethernet/marvell/mvpp2.c
3ba8c81e1 Antoine Tenart 2017-09-02 7495
3f518509d Marcin Wojtas2014-07-10 7496 /* Ports initialization */
3f518509d Marcin Wojtas2014-07-10 7497 static int mvpp2_port_probe(struct
platform_device *pdev,
3f518509d Marcin Wojtas2014-07-10 7498 struct
device_node *port_node,
59b9a31ed Thomas Petazzoni 2017-03-07 7499 struct
mvpp2 *priv)
3f518509d Marcin Wojtas2014-07-10 7500 {
3f518509d Marcin Wojtas2014-07-10 7501 struct device_node *phy_node;
542897d98 Antoine Tenart 2017-08-30 7502 struct phy *comphy;
3f518509d Marcin Wojtas2014-07-10 7503 struct mvpp2_port *port;
edc660fa0 Marcin Wojtas2015-08-06 7504 struct mvpp2_port_pcpu
*port_pcpu;
3f518509d Marcin Wojtas2014-07-10 7505 struct net_device *dev;
3f518509d Marcin Wojtas2014-07-10 7506 struct resource *res;
3f518509d Marcin Wojtas2014-07-10 7507 const char *dt_mac_addr;
96c036180 Bob Copeland 2017-09-04 7508 const char *mac_from = "";
4c2286826 Antoine Tenart 2017-08-25 7509 char hw_mac_addr[ETH_ALEN] =
{0};
09f839755 Thomas Petazzoni 2017-08-03 7510 unsigned int ntxqs, nrxqs;
213f428f5 Thomas Petazzoni 2017-08-03 7511 bool has_tx_irqs;
3f518509d Marcin Wojtas2014-07-10 7512 u32 id;
3f518509d Marcin Wojtas2014-07-10 7513 int features;
3f518509d Marcin Wojtas2014-07-10 7514 int phy_mode;
edc660fa0 Marcin Wojtas2015-08-06 7515 int err, i, cpu;
3f518509d Marcin Wojtas2014-07-10 7516
213f428f5 Thomas Petazzoni 2017-08-03 7517 has_tx_irqs =
mvpp2_port_has_tx_irqs(priv, port_node);
213f428f5 Thomas Petazzoni 2017-08-03 7518
213f428f5 Thomas Petazzoni 2017-08-03 7519 if (!has_tx_irqs)
213f428f5 Thomas Petazzoni 2017-08-03 7520 queue_mode =
MVPP2_QDIST_SINGLE_MODE;
213f428f5 Thomas Petazzoni 2017-08-03 7521
09f839755 Thomas Petazzoni 2017-08-03 7522 ntxqs = MVPP2_MAX_TXQ;
213f428f5 Thomas Petazzoni 2017-08-03 7523 if (priv->hw_version == MVPP22
&& queue_mode == MVPP2_QDIST_MULTI_MODE)
213f428f5 Thomas Petazzoni 2017-08-03 7524 nrxqs =
MVPP2_DEFAULT_RXQ * num_possible_cpus();
213f428f5 Thomas Petazzoni 2017-08-03 7525 else
09f839755 Thomas Petazzoni 2017-08-03 7526 nrxqs =
MVPP2_DEFAULT_RXQ;
09f839755 Thomas Petazzoni 2017-08-03 7527
09f839755 Thomas Petazzoni 2017-08-03 7528 dev =
alloc_etherdev_mqs(sizeof(*port), ntxqs, nrxqs);
3f518509d Marcin Wojtas2014-07-10 7529 if (!dev)
3f518509d Marcin Wojtas2014-07-10 7530 return -ENOMEM;
3f518509d Marcin Wojtas2014-07-10 7531
3f518509d Marcin Wojtas2014-07-10 7532 phy_node =
of_parse_phandle(port_node, "phy", 0);
3f518509d Marcin Wojtas2014-07-10 7533 phy_mode =
of_get_phy_mode(port_node);
3f518509d Marcin Wojtas2014-07-10 7534 if (phy_mode < 0) {
3f518509d Marcin Wojtas2014-07-10 7535 dev_err(>dev,
"incorrect phy mode\n");
3f518509d Marcin Wojtas2014-07-10 7536 err = phy_mode;
3f518509d Marcin Wojtas2014-07-10 7537 goto err_free_netdev;
3f518509d Marcin Wojtas2014-07-10 7538 }
3f518509d Marcin