mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [lunn:v5.17-rc8-mdio-c45 1/12] drivers/net/phy/mdio_bus.c:904:5: warning: no previous prototype for function '__mdiobus_c45_modify_changed'
Date: Sun, 3 Apr 2022 09:14:00 +0800	[thread overview]
Message-ID: <202204030949.IjI3mpYp-lkp@intel.com> (raw)

tree:   https://github.com/lunn/linux.git v5.17-rc8-mdio-c45
head:   21ffc4381ec731f5e9521dec8925c0089b14920b
commit: 0e5fe1025245189f58a0321314592b6c8a9090e9 [1/12] net: mdio: Add dedicates C45 API to MDIO bus drivers
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220403/202204030949.IjI3mpYp-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/lunn/linux/commit/0e5fe1025245189f58a0321314592b6c8a9090e9
        git remote add lunn https://github.com/lunn/linux.git
        git fetch --no-tags lunn v5.17-rc8-mdio-c45
        git checkout 0e5fe1025245189f58a0321314592b6c8a9090e9
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/phy/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/net/phy/mdio_bus.c:904:5: warning: no previous prototype for function '__mdiobus_c45_modify_changed' [-Wmissing-prototypes]
   int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad,
       ^
   drivers/net/phy/mdio_bus.c:904:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad,
   ^
   static 
   1 warning generated.


vim +/__mdiobus_c45_modify_changed +904 drivers/net/phy/mdio_bus.c

   889	
   890	/**
   891	 * __mdiobus_c45_modify_changed - Unlocked version of the mdiobus_modify function
   892	 * @bus: the mii_bus struct
   893	 * @addr: the phy address
   894	 * @devad: device address to read
   895	 * @regnum: register number to modify
   896	 * @mask: bit mask of bits to clear
   897	 * @set: bit mask of bits to set
   898	 *
   899	 * Read, modify, and if any change, write the register value back to the
   900	 * device. Any error returns a negative number.
   901	 *
   902	 * NOTE: MUST NOT be called from interrupt context.
   903	 */
 > 904	int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad,
   905					 u32 regnum, u16 mask, u16 set)
   906	{
   907		int new, ret;
   908	
   909		ret = __mdiobus_c45_read(bus, addr, devad, regnum);
   910		if (ret < 0)
   911			return ret;
   912	
   913		new = (ret & ~mask) | set;
   914		if (new == ret)
   915			return 0;
   916	
   917		ret = __mdiobus_c45_write(bus, addr, devad, regnum, new);
   918	
   919		return ret < 0 ? ret : 1;
   920	}
   921	EXPORT_SYMBOL_GPL(__mdiobus_c45_modify_changed);
   922	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-03  1:14 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=202204030949.IjI3mpYp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®