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 25/34] drivers/net/phy/air_en8811h.c:792:5: warning: no previous prototype for function 'en8811h_phy_modify_mmd_changed'
Date: Tue, 5 Dec 2023 18:44:00 +0800 [thread overview]
Message-ID: <202312051845.2S2wmbPy-lkp@intel.com> (raw)
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
reply other threads:[~2023-12-05 10:45 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=202312051845.2S2wmbPy-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.