* [frank-w-bpi-r2-4.14:6.6-r3mini 17/19] drivers/net/phy/air_en8811h.c:898:13: warning: unused variable 'mask'
@ 2023-11-09 8:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-09 8:39 UTC (permalink / raw)
To: Frank Wunderlich; +Cc: oe-kbuild-all
tree: https://github.com/frank-w/BPI-R2-4.14 6.6-r3mini
head: 796143376b6d67cadd89f7466e25a56b6ee48f34
commit: a9fdd653cabc7df77cd5a88e21797d7c677035bb [17/19] prepare interrupt for 2g5 phy
config: openrisc-allyesconfig (https://download.01.org/0day-ci/archive/20231109/202311091624.ifBP2fk6-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/202311091624.ifBP2fk6-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/202311091624.ifBP2fk6-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/phy/air_en8811h.c:792:5: warning: no previous prototype for 'en8811h_phy_modify_mmd_changed' [-Wmissing-prototypes]
792 | int en8811h_phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/air_en8811h.c: In function 'airoha_config_intr':
>> drivers/net/phy/air_en8811h.c:898:13: warning: unused variable 'mask' [-Wunused-variable]
898 | u16 mask = 0;
| ^~~~
drivers/net/phy/air_en8811h.c: At top level:
drivers/net/phy/air_en8811h.c:952:12: warning: no previous prototype for 'en8811h_phy_driver_register' [-Wmissing-prototypes]
952 | int __init en8811h_phy_driver_register(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/air_en8811h.c:963:13: warning: no previous prototype for 'en8811h_phy_driver_unregister' [-Wmissing-prototypes]
963 | void __exit en8811h_phy_driver_unregister(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/air_en8811h.c: In function 'airoha_config_intr':
>> drivers/net/phy/air_en8811h.c:916:16: warning: 'err' is used uninitialized [-Wuninitialized]
916 | return err;
| ^~~
drivers/net/phy/air_en8811h.c:899:13: note: 'err' was declared here
899 | int err;
| ^~~
vim +/mask +898 drivers/net/phy/air_en8811h.c
895
896 static int airoha_config_intr(struct phy_device *phydev)
897 {
> 898 u16 mask = 0;
899 int err;
900
901 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
902 /*err = airoha_ack_interrupt(phydev);
903 if (err)
904 return err;
905
906 mask = XWAY_MDIO_INIT_MASK;
907 err = phy_write(phydev, XWAY_MDIO_IMASK, mask);*/
908 } else {
909 /*err = phy_write(phydev, XWAY_MDIO_IMASK, mask);
910 if (err)
911 return err;
912
913 err = airoha_ack_interrupt(phydev);*/
914 }
915
> 916 return err;
917 }
918
--
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-11-09 8:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-09 8:39 [frank-w-bpi-r2-4.14:6.6-r3mini 17/19] drivers/net/phy/air_en8811h.c:898:13: warning: unused variable 'mask' 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.