All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sean Anderson <sean.anderson@seco.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC net-next PATCH 07/16] net: phylink: Add helpers for c22 registers without MDIO
Date: Tue, 5 Oct 2021 13:50:44 +0800	[thread overview]
Message-ID: <202110051325.wXMuS5UO-lkp@intel.com> (raw)
In-Reply-To: <20211004191527.1610759-8-sean.anderson@seco.com>

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

Hi Sean,

[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/Sean-Anderson/Add-support-for-Xilinx-PCS/20211005-035032
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git b05173028cc52384be42dcf81abdb4133caccfa5
config: hexagon-randconfig-r041-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c0039de2953d15815448b4b3c3bafb45607781e0)
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/5513e28755a3b4bb2616959fd5e8533211a9ac3c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Sean-Anderson/Add-support-for-Xilinx-PCS/20211005-035032
        git checkout 5513e28755a3b4bb2616959fd5e8533211a9ac3c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

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/phy/phylink.c:2786:14: warning: variable 'adv' is uninitialized when used here [-Wuninitialized]
                                                          adv);
                                                          ^~~
   drivers/net/phy/phylink.c:2779:9: note: initialize the variable 'adv' to silence this warning
           u16 adv;
                  ^
                   = 0
   1 warning generated.


vim +/adv +2786 drivers/net/phy/phylink.c

  2754	
  2755	/**
  2756	 * phylink_mii_c22_pcs_set_advertisement() - configure the clause 37 PCS
  2757	 *	advertisement
  2758	 * @pcs: a pointer to a &struct mdio_device.
  2759	 * @interface: the PHY interface mode being configured
  2760	 * @advertising: the ethtool advertisement mask
  2761	 *
  2762	 * Helper for MAC PCS supporting the 802.3 clause 22 register set for
  2763	 * clause 37 negotiation and/or SGMII control.
  2764	 *
  2765	 * Configure the clause 37 PCS advertisement as specified by @state. This
  2766	 * does not trigger a renegotiation; phylink will do that via the
  2767	 * mac_an_restart() method of the struct phylink_mac_ops structure.
  2768	 *
  2769	 * Returns negative error code on failure to configure the advertisement,
  2770	 * zero if no change has been made, or one if the advertisement has changed.
  2771	 */
  2772	int phylink_mii_c22_pcs_set_advertisement(struct mdio_device *pcs,
  2773						  phy_interface_t interface,
  2774						  const unsigned long *advertising)
  2775	{
  2776		struct mii_bus *bus = pcs->bus;
  2777		int addr = pcs->addr;
  2778		int val, ret;
  2779		u16 adv;
  2780	
  2781		val = mdiobus_read(bus, addr, MII_ADVERTISE);
  2782		if (val < 0)
  2783			return val;
  2784	
  2785		adv = phylink_mii_c22_pcs_encode_advertisement(interface, advertising,
> 2786							       adv);
  2787		if (adv == val)
  2788			return 0;
  2789	
  2790		ret = mdiobus_write(bus, addr, MII_ADVERTISE, adv);
  2791		return ret < 0 ? ret : 1;
  2792	}
  2793	EXPORT_SYMBOL_GPL(phylink_mii_c22_pcs_set_advertisement);
  2794	

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC net-next PATCH 07/16] net: phylink: Add helpers for c22 registers without MDIO
Date: Tue, 05 Oct 2021 13:50:44 +0800	[thread overview]
Message-ID: <202110051325.wXMuS5UO-lkp@intel.com> (raw)
In-Reply-To: <20211004191527.1610759-8-sean.anderson@seco.com>

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

Hi Sean,

[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/Sean-Anderson/Add-support-for-Xilinx-PCS/20211005-035032
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git b05173028cc52384be42dcf81abdb4133caccfa5
config: hexagon-randconfig-r041-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c0039de2953d15815448b4b3c3bafb45607781e0)
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/5513e28755a3b4bb2616959fd5e8533211a9ac3c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Sean-Anderson/Add-support-for-Xilinx-PCS/20211005-035032
        git checkout 5513e28755a3b4bb2616959fd5e8533211a9ac3c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

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/phy/phylink.c:2786:14: warning: variable 'adv' is uninitialized when used here [-Wuninitialized]
                                                          adv);
                                                          ^~~
   drivers/net/phy/phylink.c:2779:9: note: initialize the variable 'adv' to silence this warning
           u16 adv;
                  ^
                   = 0
   1 warning generated.


vim +/adv +2786 drivers/net/phy/phylink.c

  2754	
  2755	/**
  2756	 * phylink_mii_c22_pcs_set_advertisement() - configure the clause 37 PCS
  2757	 *	advertisement
  2758	 * @pcs: a pointer to a &struct mdio_device.
  2759	 * @interface: the PHY interface mode being configured
  2760	 * @advertising: the ethtool advertisement mask
  2761	 *
  2762	 * Helper for MAC PCS supporting the 802.3 clause 22 register set for
  2763	 * clause 37 negotiation and/or SGMII control.
  2764	 *
  2765	 * Configure the clause 37 PCS advertisement as specified by @state. This
  2766	 * does not trigger a renegotiation; phylink will do that via the
  2767	 * mac_an_restart() method of the struct phylink_mac_ops structure.
  2768	 *
  2769	 * Returns negative error code on failure to configure the advertisement,
  2770	 * zero if no change has been made, or one if the advertisement has changed.
  2771	 */
  2772	int phylink_mii_c22_pcs_set_advertisement(struct mdio_device *pcs,
  2773						  phy_interface_t interface,
  2774						  const unsigned long *advertising)
  2775	{
  2776		struct mii_bus *bus = pcs->bus;
  2777		int addr = pcs->addr;
  2778		int val, ret;
  2779		u16 adv;
  2780	
  2781		val = mdiobus_read(bus, addr, MII_ADVERTISE);
  2782		if (val < 0)
  2783			return val;
  2784	
  2785		adv = phylink_mii_c22_pcs_encode_advertisement(interface, advertising,
> 2786							       adv);
  2787		if (adv == val)
  2788			return 0;
  2789	
  2790		ret = mdiobus_write(bus, addr, MII_ADVERTISE, adv);
  2791		return ret < 0 ? ret : 1;
  2792	}
  2793	EXPORT_SYMBOL_GPL(phylink_mii_c22_pcs_set_advertisement);
  2794	

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

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

  reply	other threads:[~2021-10-05  5:51 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04 19:15 [RFC net-next PATCH 00/16] Add support for Xilinx PCS Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 01/16] dt-bindings: net: Add pcs property Sean Anderson
2021-10-05  9:39   ` Russell King (Oracle)
2021-10-05 16:18     ` Sean Anderson
2021-10-12 13:16     ` Rob Herring
2021-10-12 16:18       ` Sean Anderson
2021-10-12 16:44         ` Rob Herring
2021-10-12 17:01           ` Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 02/16] dt-bindings: net: Add binding for Xilinx PCS Sean Anderson
2021-10-05 12:26   ` Rob Herring
2021-10-04 19:15 ` [RFC net-next PATCH 03/16] net: sfp: Fix typo in state machine debug string Sean Anderson
2021-10-04 21:31   ` Andrew Lunn
2021-10-04 19:15 ` [RFC net-next PATCH 04/16] net: phylink: Move phylink_set_pcs before phylink_create Sean Anderson
2021-10-05  9:43   ` Russell King (Oracle)
2021-10-04 19:15 ` [RFC net-next PATCH 05/16] net: phylink: Automatically attach PCS devices Sean Anderson
2021-10-05  9:48   ` Russell King (Oracle)
2021-10-05 16:42     ` Sean Anderson
2021-10-07 10:23       ` Russell King (Oracle)
2021-10-08  0:14         ` Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 06/16] net: phylink: Add function for optionally adding a PCS Sean Anderson
2021-10-05  9:51   ` Russell King (Oracle)
2021-10-05 13:43     ` Andrew Lunn
2021-10-05 16:17       ` Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 07/16] net: phylink: Add helpers for c22 registers without MDIO Sean Anderson
2021-10-05  5:50   ` kernel test robot [this message]
2021-10-05  5:50     ` kernel test robot
2021-10-22 12:33   ` Russell King (Oracle)
2021-10-04 19:15 ` [RFC net-next PATCH 08/16] net: macb: Clean up macb_validate Sean Anderson
2021-10-04 23:04   ` Russell King (Oracle)
2021-10-04 23:09     ` Sean Anderson
2021-10-07 13:22   ` Nicolas Ferre
2021-10-08  0:20     ` Sean Anderson
2021-10-08  8:12       ` Nicolas Ferre
2021-10-04 19:15 ` [RFC net-next PATCH 09/16] net: macb: Move most of mac_prepare to mac_config Sean Anderson
2021-10-04 23:05   ` Russell King (Oracle)
2021-10-04 23:09     ` Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 10/16] net: macb: Move PCS settings to PCS callbacks Sean Anderson
2021-10-05 10:06   ` Russell King (Oracle)
2021-10-05 16:03     ` Sean Anderson
2021-10-05 18:53       ` Russell King (Oracle)
2021-10-05 21:44         ` Sean Anderson
2021-10-05 22:19           ` Russell King (Oracle)
2021-10-07 10:34             ` Russell King (Oracle)
2021-10-07 11:29               ` Russell King (Oracle)
2021-10-07 16:23                 ` Russell King (Oracle)
2021-10-07 17:04                   ` Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 11/16] net: macb: Support restarting PCS autonegotiation Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 12/16] net: macb: Support external PCSs Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 13/16] net: phy: Export get_phy_c22_id Sean Anderson
2021-10-05 10:12   ` Russell King (Oracle)
2021-10-04 19:15 ` [RFC net-next PATCH 14/16] net: mdio: Add helper functions for accessing MDIO devices Sean Anderson
2021-10-04 19:15 ` [RFC net-next PATCH 15/16] net: pcs: Add Xilinx PCS driver Sean Anderson
2021-10-05  6:10   ` kernel test robot
2021-10-04 19:15 ` [RFC net-next PATCH 16/16] net: sfp: Add quirk to ignore PHYs Sean Anderson
2021-10-04 22:01   ` Andrew Lunn
2021-10-05 10:33   ` Russell King (Oracle)
2021-10-05 16:45     ` Sean Anderson
2021-10-05 18:10       ` Sean Anderson
2021-10-05 19:12       ` Russell King (Oracle)
2021-10-05 20:38         ` Sean Anderson
2021-10-05 22:17           ` Russell King (Oracle)
2021-10-05 23:16             ` Sean Anderson

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=202110051325.wXMuS5UO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@lists.linux.dev \
    --cc=sean.anderson@seco.com \
    /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.