* [frank-w-bpi-r2-4.14:6.6-r3mini 25/34] drivers/net/phy/air_en8811h.c:792:5: warning: no previous prototype for function 'en8811h_phy_modify_mmd_changed'
@ 2023-12-05 10:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-05 10:44 UTC (permalink / raw)
To: Frank Wunderlich; +Cc: oe-kbuild-all
tree: https://github.com/frank-w/BPI-R2-4.14 6.6-r3mini
head: 7a4da3bc9c1a2302ba8c22503865d1bbc0cdce1d
commit: d2b5b3c2c84adce7c4a2458bdd2b3a641b155cd0 [25/34] Add the Airoha EN8811H PHY driver
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231205/202312051845.2S2wmbPy-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/20231205/202312051845.2S2wmbPy-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/202312051845.2S2wmbPy-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/phy/air_en8811h.c:792:5: warning: no previous prototype for function 'en8811h_phy_modify_mmd_changed' [-Wmissing-prototypes]
int en8811h_phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
^
drivers/net/phy/air_en8811h.c:792:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int en8811h_phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
^
static
drivers/net/phy/air_en8811h.c:920: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:920: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:931: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:931: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 generated.
vim +/en8811h_phy_modify_mmd_changed +792 drivers/net/phy/air_en8811h.c
791
> 792 int en8811h_phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
793 u16 mask, u16 set)
794 {
795 int new, ret;
796
797 ret = air_mii_cl45_read(phydev, devad, regnum);
798 if (ret < 0)
799 return ret;
800
801 new = (ret & ~mask) | set;
802 if (new == ret)
803 return 0;
804
805 ret = air_mii_cl45_write(phydev, devad, regnum, new);
806
807 return ret < 0 ? ret : 1;
808 }
809
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-05 10:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 10:44 [frank-w-bpi-r2-4.14:6.6-r3mini 25/34] drivers/net/phy/air_en8811h.c:792:5: warning: no previous prototype for function 'en8811h_phy_modify_mmd_changed' kernel test robot
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.