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 PATCH v2 net-next 2/8] net: dsa: ocelot: felix: move MDIO access to a common location
Date: Sun, 11 Jul 2021 05:05:45 +0800	[thread overview]
Message-ID: <202107110439.zRFw0cHC-lkp@intel.com> (raw)
In-Reply-To: <20210710192602.2186370-3-colin.foster@in-advantage.com>

[-- Attachment #1: Type: text/plain, Size: 3500 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-VSC7511-7514-chips-over-SPI/20210711-032838
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5e437416ff66981d8154687cfdf7de50b1d82bfc
config: microblaze-buildonly-randconfig-r006-20210711 (attached as .config)
compiler: microblaze-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
        # https://github.com/0day-ci/linux/commit/68d3578b85be193a45003b797fef9a8ee3d1832b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Colin-Foster/Add-support-for-VSC7511-7514-chips-over-SPI/20210711-032838
        git checkout 68d3578b85be193a45003b797fef9a8ee3d1832b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

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/dsa/ocelot/felix_mdio.c:100:5: warning: no previous prototype for 'felix_mdio_register' [-Wmissing-prototypes]
     100 | int felix_mdio_register(struct ocelot *ocelot)
         |     ^~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/ocelot/felix_mdio.c:116:5: warning: no previous prototype for 'felix_mdio_bus_alloc' [-Wmissing-prototypes]
     116 | int felix_mdio_bus_alloc(struct ocelot *ocelot)
         |     ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/ocelot/felix_mdio.c:138:6: warning: no previous prototype for 'felix_mdio_bus_free' [-Wmissing-prototypes]
     138 | void felix_mdio_bus_free(struct ocelot *ocelot)
         |      ^~~~~~~~~~~~~~~~~~~


vim +/felix_mdio_register +100 drivers/net/dsa/ocelot/felix_mdio.c

    99	
 > 100	int felix_mdio_register(struct ocelot *ocelot)
   101	{
   102		struct felix *felix = ocelot_to_felix(ocelot);
   103		struct device *dev = ocelot->dev;
   104		int rc;
   105	
   106		/* Needed in order to initialize the bus mutex lock */
   107		rc = mdiobus_register(felix->imdio);
   108		if (rc < 0) {
   109			dev_err(dev, "failed to register MDIO bus\n");
   110			felix->imdio = NULL;
   111		}
   112	
   113		return rc;
   114	}
   115	
 > 116	int felix_mdio_bus_alloc(struct ocelot *ocelot)
   117	{
   118		struct felix *felix = ocelot_to_felix(ocelot);
   119		struct device *dev = ocelot->dev;
   120		struct mii_bus *bus;
   121	
   122		bus = devm_mdiobus_alloc(dev);
   123		if (!bus)
   124			return -ENOMEM;
   125	
   126		bus->name = "Felix internal MDIO bus";
   127		bus->read = felix_mdio_read;
   128		bus->write = felix_mdio_write;
   129		bus->parent = dev;
   130		bus->priv = ocelot;
   131		snprintf(bus->id, MII_BUS_ID_SIZE, "%s-imdio", dev_name(dev));
   132	
   133		felix->imdio = bus;
   134	
   135		return 0;
   136	}
   137	
 > 138	void felix_mdio_bus_free(struct ocelot *ocelot)
   139	{
   140		struct felix *felix = ocelot_to_felix(ocelot);
   141	
   142		if (felix->imdio)
   143			mdiobus_unregister(felix->imdio);
   144	}
   145	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27008 bytes --]

  parent reply	other threads:[~2021-07-10 21:05 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-10 19:25 [RFC PATCH v2 net-next 0/8] Add support for VSC7511-7514 chips over SPI Colin Foster
2021-07-10 19:25 ` [RFC PATCH v2 net-next 1/8] net: dsa: ocelot: remove unnecessary pci_bar variables Colin Foster
2021-07-10 19:53   ` Vladimir Oltean
2021-07-11 16:36     ` Colin Foster
2021-07-10 19:25 ` [RFC PATCH v2 net-next 2/8] net: dsa: ocelot: felix: move MDIO access to a common location Colin Foster
2021-07-10 19:59   ` Vladimir Oltean
2021-07-10 20:02     ` Alexandre Belloni
2021-07-11 16:41     ` Colin Foster
2021-07-10 21:05   ` kernel test robot [this message]
2021-07-10 19:25 ` [RFC PATCH v2 net-next 3/8] net: dsa: ocelot: felix: NULL check on variable Colin Foster
2021-07-10 20:06   ` Vladimir Oltean
2021-07-11 16:47     ` Colin Foster
2021-07-10 19:25 ` [RFC PATCH v2 net-next 4/8] net: dsa: ocelot: felix: add interface for custom regmaps Colin Foster
2021-07-10 19:25 ` [RFC PATCH v2 net-next 5/8] net: mscc: ocelot: split register definitions to a separate file Colin Foster
2021-07-10 19:26 ` [RFC PATCH v2 net-next 6/8] net: mscc: ocelot: expose ocelot wm functions Colin Foster
2021-07-10 20:36   ` Vladimir Oltean
2021-07-10 19:26 ` [RFC PATCH v2 net-next 7/8] net: dsa: ocelot: felix: add support for VSC75XX control over SPI Colin Foster
2021-07-10 20:52   ` Vladimir Oltean
2021-07-11 17:09     ` Colin Foster
2021-07-11 22:13       ` Alexandre Belloni
2021-07-10 21:51   ` kernel test robot
2021-07-10 19:26 ` [RFC PATCH v2 net-next 8/8] Update documentation for the VSC7512 SPI device Colin Foster
2021-07-10 20:34   ` Vladimir Oltean
2021-07-11 16:58     ` Colin Foster
2021-07-10 19:47 ` [RFC PATCH v2 net-next 0/8] Add support for VSC7511-7514 chips over SPI Vladimir Oltean
2021-07-11 16:32   ` Colin Foster
2021-07-10 20:01 ` Alexandre Belloni
2021-07-11 16:44   ` 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=202107110439.zRFw0cHC-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.