From: kernel test robot <lkp@intel.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [frank-w-bpi-r2-4.14:6.6-r3mini 17/19] drivers/net/phy/air_en8811h.c:898:13: warning: unused variable 'mask'
Date: Thu, 9 Nov 2023 16:39:05 +0800 [thread overview]
Message-ID: <202311091624.ifBP2fk6-lkp@intel.com> (raw)
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
reply other threads:[~2023-11-09 8:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202311091624.ifBP2fk6-lkp@intel.com \
--to=lkp@intel.com \
--cc=frank-w@public-files.de \
--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.