All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eric Woudstra <ericwouds@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC net-next 2/2] Add the Airoha EN8811H PHY driver
Date: Tue, 19 Dec 2023 14:10:40 +0800	[thread overview]
Message-ID: <202312191343.AXWGUtmC-lkp@intel.com> (raw)
In-Reply-To: <20231216194432.18963-3-ericwouds@gmail.com>

Hi Eric,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Eric-Woudstra/Add-the-Airoha-EN8811H-PHY-driver/20231217-034635
base:   net-next/main
patch link:    https://lore.kernel.org/r/20231216194432.18963-3-ericwouds%40gmail.com
patch subject: [PATCH RFC net-next 2/2] Add the Airoha EN8811H PHY driver
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20231219/202312191343.AXWGUtmC-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231219/202312191343.AXWGUtmC-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312191343.AXWGUtmC-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/phy/air_en8811h.c:199:17: error: use of undeclared identifier 'TRIGGER_NETDEV_LINK_2500'
                                                  BIT(TRIGGER_NETDEV_LINK_2500)   |
                                                      ^
   drivers/net/phy/air_en8811h.c:587:19: error: use of undeclared identifier 'TRIGGER_NETDEV_LINK_2500'
           if (rules & (BIT(TRIGGER_NETDEV_LINK_2500) | BIT(TRIGGER_NETDEV_LINK))) {
                            ^
   drivers/net/phy/air_en8811h.c:737:23: error: use of undeclared identifier 'TRIGGER_NETDEV_LINK_2500'
           priv->led[0].rules = AIR_DEFAULT_TRIGGER_LED0;
                                ^
   drivers/net/phy/air_en8811h.c:143:39: note: expanded from macro 'AIR_DEFAULT_TRIGGER_LED0'
   #define AIR_DEFAULT_TRIGGER_LED0 (BIT(TRIGGER_NETDEV_LINK_2500) | \
                                         ^
   drivers/net/phy/air_en8811h.c:738:23: error: use of undeclared identifier 'TRIGGER_NETDEV_LINK_2500'
           priv->led[1].rules = AIR_DEFAULT_TRIGGER_LED1;
                                ^
   drivers/net/phy/air_en8811h.c:147:39: note: expanded from macro 'AIR_DEFAULT_TRIGGER_LED1'
   #define AIR_DEFAULT_TRIGGER_LED1 (BIT(TRIGGER_NETDEV_LINK_2500) | \
                                         ^
>> drivers/net/phy/air_en8811h.c:875:5: warning: no previous prototype for function 'en8811h_c45_read_link' [-Wmissing-prototypes]
   int en8811h_c45_read_link(struct phy_device *phydev)
       ^
   drivers/net/phy/air_en8811h.c:875:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int en8811h_c45_read_link(struct phy_device *phydev)
   ^
   static 
   drivers/net/phy/air_en8811h.c:1012:12: warning: no previous prototype for function 'en8811h_phy_driver_register' [-Wmissing-prototypes]
   int __init en8811h_phy_driver_register(void)
              ^
   drivers/net/phy/air_en8811h.c:1012:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __init en8811h_phy_driver_register(void)
   ^
   static 
   drivers/net/phy/air_en8811h.c:1024:13: warning: no previous prototype for function 'en8811h_phy_driver_unregister' [-Wmissing-prototypes]
   void __exit en8811h_phy_driver_unregister(void)
               ^
   drivers/net/phy/air_en8811h.c:1024:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __exit en8811h_phy_driver_unregister(void)
   ^
   static 
   3 warnings and 4 errors generated.


vim +/en8811h_c45_read_link +875 drivers/net/phy/air_en8811h.c

   874	
 > 875	int en8811h_c45_read_link(struct phy_device *phydev)
   876	{
   877		int val;
   878	
   879		/* Read link state from known reliable register (latched) */
   880	
   881		if (!phy_polling_mode(phydev) || !phydev->link) {
   882			val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_STAT1);
   883			if (val < 0)
   884				return val;
   885			phydev->link = !!(val & MDIO_STAT1_LSTATUS);
   886	
   887			if (phydev->link)
   888				return 0;
   889		}
   890	
   891		val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_STAT1);
   892		if (val < 0)
   893			return val;
   894		phydev->link = !!(val & MDIO_STAT1_LSTATUS);
   895	
   896		return 0;
   897	}
   898	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2023-12-19  6:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-16 19:44 [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml Eric Woudstra
2023-12-16 19:44 ` [PATCH RFC net-next 2/2] Add the Airoha EN8811H PHY driver Eric Woudstra
2023-12-16 20:16   ` Heiner Kallweit
2023-12-16 20:23     ` Eric Woudstra
2023-12-16 23:33   ` Andrew Lunn
2023-12-19  6:10   ` kernel test robot [this message]
2023-12-19  9:00   ` kernel test robot
2023-12-18  8:44 ` [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml Krzysztof Kozlowski

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=202312191343.AXWGUtmC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ericwouds@gmail.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.