All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC v6 net-next 4/9] net: mdio: mscc-miim: add ability to externally register phy reset control
Date: Sun, 30 Jan 2022 08:40:02 +0800	[thread overview]
Message-ID: <202201300816.otBEl4st-lkp@intel.com> (raw)
In-Reply-To: <20220129220221.2823127-5-colin.foster@in-advantage.com>

[-- Attachment #1: Type: text/plain, Size: 8575 bytes --]

Hi Colin,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Colin-Foster/add-support-for-VSC7512-control-over-SPI/20220130-060423
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git ff58831fa02deb42fd731f830d8d9ec545573c7c
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220130/202201300816.otBEl4st-lkp(a)intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.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
        # https://github.com/0day-ci/linux/commit/a2baa4676bc7943f3647a80f27a236960ef85dfb
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Colin-Foster/add-support-for-VSC7512-control-over-SPI/20220130-060423
        git checkout a2baa4676bc7943f3647a80f27a236960ef85dfb
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/mfd/ drivers/net/mdio/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/net/mdio/mdio-mscc-miim.c: In function 'mscc_miim_probe':
>> drivers/net/mdio/mdio-mscc-miim.c:228:31: warning: variable 'miim' set but not used [-Wunused-but-set-variable]
     228 |         struct mscc_miim_dev *miim;
         |                               ^~~~


vim +/miim +228 drivers/net/mdio/mdio-mscc-miim.c

a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  222  
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  223  static int mscc_miim_probe(struct platform_device *pdev)
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  224  {
c448c898ae890d9 drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-11-30  225  	struct regmap *mii_regmap, *phy_regmap = NULL;
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  226  	struct device *dev = &pdev->dev;
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  227  	void __iomem *regs, *phy_regs;
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28 @228  	struct mscc_miim_dev *miim;
c448c898ae890d9 drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-11-30  229  	struct resource *res;
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  230  	struct mii_bus *bus;
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  231  	int ret;
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  232  
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  233  	regs = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  234  	if (IS_ERR(regs)) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  235  		dev_err(dev, "Unable to map MIIM registers\n");
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  236  		return PTR_ERR(regs);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  237  	}
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  238  
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  239  	mii_regmap = devm_regmap_init_mmio(dev, regs, &mscc_miim_regmap_config);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  240  
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  241  	if (IS_ERR(mii_regmap)) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  242  		dev_err(dev, "Unable to create MIIM regmap\n");
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  243  		return PTR_ERR(mii_regmap);
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  244  	}
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  245  
c448c898ae890d9 drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-11-30  246  	/* This resource is optional */
c448c898ae890d9 drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-11-30  247  	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
c448c898ae890d9 drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-11-30  248  	if (res) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  249  		phy_regs = devm_ioremap_resource(dev, res);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  250  		if (IS_ERR(phy_regs)) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  251  			dev_err(dev, "Unable to map internal phy registers\n");
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  252  			return PTR_ERR(phy_regs);
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  253  		}
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  254  
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  255  		phy_regmap = devm_regmap_init_mmio(dev, phy_regs,
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  256  						   &mscc_miim_regmap_config);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  257  		if (IS_ERR(phy_regmap)) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  258  			dev_err(dev, "Unable to create phy register regmap\n");
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  259  			return PTR_ERR(phy_regmap);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  260  		}
c448c898ae890d9 drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-11-30  261  	}
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  262  
a2baa4676bc7943 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  263  	ret = mscc_miim_setup(&pdev->dev, &bus, "mscc_miim", mii_regmap, 0,
a2baa4676bc7943 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  264  			      phy_regmap, 0);
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  265  	if (ret < 0) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  266  		dev_err(dev, "Unable to setup the MDIO bus\n");
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  267  		return ret;
c6995117b60ef3f drivers/net/mdio/mdio-mscc-miim.c Horatiu Vultur    2021-09-28  268  	}
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  269  
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  270  	miim = bus->priv;
a27a762828375a2 drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2021-11-28  271  
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  272  	ret = of_mdiobus_register(bus, dev->of_node);
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  273  	if (ret < 0) {
89454d686e04b3d drivers/net/mdio/mdio-mscc-miim.c Colin Foster      2022-01-29  274  		dev_err(dev, "Cannot register MDIO bus (%d)\n", ret);
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  275  		return ret;
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  276  	}
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  277  
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  278  	platform_set_drvdata(pdev, bus);
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  279  
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  280  	return 0;
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  281  }
542671fe4d86ad4 drivers/net/phy/mdio-mscc-miim.c  Alexandre Belloni 2018-05-14  282  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

  reply	other threads:[~2022-01-30  0:40 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 22:02 [RFC v6 net-next 0/9] add support for VSC7512 control over SPI Colin Foster
2022-01-29 22:02 ` Colin Foster
2022-01-29 22:02 ` [RFC v6 net-next 1/9] pinctrl: ocelot: allow pinctrl-ocelot to be loaded as a module Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-30  0:30   ` Linus Walleij
2022-01-30  0:30     ` Linus Walleij
2022-01-30 21:30     ` Colin Foster
2022-01-30 21:30       ` Colin Foster
2022-01-31 23:11   ` Florian Fainelli
2022-01-31 23:11     ` Florian Fainelli
2022-01-29 22:02 ` [RFC v6 net-next 2/9] pinctrl: microchip-sgpio: allow sgpio driver to be used " Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-30  0:31   ` Linus Walleij
2022-01-30  0:31     ` Linus Walleij
2022-01-31 23:11   ` Florian Fainelli
2022-01-31 23:11     ` Florian Fainelli
2022-01-31 23:14     ` Colin Foster
2022-01-31 23:14       ` Colin Foster
2022-01-29 22:02 ` [RFC v6 net-next 3/9] net: mdio: mscc-miim: add local dev variable to cleanup probe function Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-31 17:07   ` Vladimir Oltean
2022-01-31 17:07     ` Vladimir Oltean
2022-01-31 23:12   ` Florian Fainelli
2022-01-31 23:12     ` Florian Fainelli
2022-01-29 22:02 ` [RFC v6 net-next 4/9] net: mdio: mscc-miim: add ability to externally register phy reset control Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-30  0:40   ` kernel test robot [this message]
2022-01-31 17:13   ` Vladimir Oltean
2022-01-31 17:13     ` Vladimir Oltean
2022-01-31 17:32     ` Colin Foster
2022-01-31 17:32       ` Colin Foster
2022-01-29 22:02 ` [RFC v6 net-next 5/9] mfd: add interface to check whether a device is mfd Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-31  8:47   ` Lee Jones
2022-01-31  8:47     ` Lee Jones
2022-01-29 22:02 ` [RFC v6 net-next 6/9] mfd: ocelot: add support for external mfd control over SPI for the VSC7512 Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-30  2:11   ` kernel test robot
2022-01-30  3:02   ` kernel test robot
2022-01-30  3:02     ` kernel test robot
2022-01-30  3:33   ` kernel test robot
2022-01-31  9:29   ` Lee Jones
2022-01-31  9:29     ` Lee Jones
2022-01-31 17:29     ` Colin Foster
2022-01-31 17:29       ` Colin Foster
2022-02-01  7:36       ` Lee Jones
2022-02-01  7:36         ` Lee Jones
2022-02-01 17:27         ` Colin Foster
2022-02-01 17:27           ` Colin Foster
2022-01-29 22:02 ` [RFC v6 net-next 7/9] net: mscc: ocelot: expose ocelot wm functions Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-29 22:02 ` [RFC v6 net-next 8/9] net: dsa: felix: add configurable device quirks Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-31 18:15   ` Vladimir Oltean
2022-01-31 18:15     ` Vladimir Oltean
2022-01-29 22:02 ` [RFC v6 net-next 9/9] net: dsa: ocelot: add external ocelot switch control Colin Foster
2022-01-29 22:02   ` Colin Foster
2022-01-31 18:50   ` Vladimir Oltean
2022-01-31 18:50     ` Vladimir Oltean
2022-03-06  0:28     ` Colin Foster
2022-03-06  0:28       ` Colin Foster
2022-03-07 21:51       ` Vladimir Oltean
2022-03-07 21:51         ` Vladimir Oltean
2022-03-08  1:31         ` Colin Foster
2022-03-08  1:31           ` Colin Foster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201300816.otBEl4st-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.