mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [arnd-playground:compat-alloc-user-space-10 35/40] drivers/net/ethernet/intel/ice/ice_main.c:6567: warning: expecting prototype for ice_do_ioctl(). Prototype was for ice_eth_ioctl() instead
Date: Wed, 21 Jul 2021 09:38:37 +0800	[thread overview]
Message-ID: <202107210932.FjxQI8SG-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4041 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git compat-alloc-user-space-10
head:   62f24dbc07a07cc9ed7b4c817d4c6e94bbc94b48
commit: d662de8f2059807144906f19d332121b3073b621 [35/40] dev_ioctl: split out ndo_eth_ioctl
config: x86_64-randconfig-a012-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=d662de8f2059807144906f19d332121b3073b621
        git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
        git fetch --no-tags arnd-playground compat-alloc-user-space-10
        git checkout d662de8f2059807144906f19d332121b3073b621
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/intel/ice/

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/ethernet/intel/ice/ice_main.c:6567: warning: expecting prototype for ice_do_ioctl(). Prototype was for ice_eth_ioctl() instead

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
   Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
   Selected by
   - SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM && OF


vim +6567 drivers/net/ethernet/intel/ice/ice_main.c

e94d4478669357 Anirudh Venkataramanan 2018-03-20  6559  
77a781155a6590 Jacob Keller           2021-06-09  6560  /**
77a781155a6590 Jacob Keller           2021-06-09  6561   * ice_do_ioctl - Access the hwtstamp interface
77a781155a6590 Jacob Keller           2021-06-09  6562   * @netdev: network interface device structure
77a781155a6590 Jacob Keller           2021-06-09  6563   * @ifr: interface request data
77a781155a6590 Jacob Keller           2021-06-09  6564   * @cmd: ioctl command
77a781155a6590 Jacob Keller           2021-06-09  6565   */
d662de8f205980 Arnd Bergmann          2020-11-06  6566  static int ice_eth_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
77a781155a6590 Jacob Keller           2021-06-09 @6567  {
77a781155a6590 Jacob Keller           2021-06-09  6568  	struct ice_netdev_priv *np = netdev_priv(netdev);
77a781155a6590 Jacob Keller           2021-06-09  6569  	struct ice_pf *pf = np->vsi->back;
77a781155a6590 Jacob Keller           2021-06-09  6570  
77a781155a6590 Jacob Keller           2021-06-09  6571  	switch (cmd) {
77a781155a6590 Jacob Keller           2021-06-09  6572  	case SIOCGHWTSTAMP:
77a781155a6590 Jacob Keller           2021-06-09  6573  		return ice_ptp_get_ts_config(pf, ifr);
77a781155a6590 Jacob Keller           2021-06-09  6574  	case SIOCSHWTSTAMP:
77a781155a6590 Jacob Keller           2021-06-09  6575  		return ice_ptp_set_ts_config(pf, ifr);
77a781155a6590 Jacob Keller           2021-06-09  6576  	default:
77a781155a6590 Jacob Keller           2021-06-09  6577  		return -EOPNOTSUPP;
77a781155a6590 Jacob Keller           2021-06-09  6578  	}
77a781155a6590 Jacob Keller           2021-06-09  6579  }
77a781155a6590 Jacob Keller           2021-06-09  6580  

:::::: The code at line 6567 was first introduced by commit
:::::: 77a781155a659053f3b7e81a0ab115d27ff151cd ice: enable receive hardware timestamping

:::::: TO: Jacob Keller <jacob.e.keller@intel.com>
:::::: CC: Tony Nguyen <anthony.l.nguyen@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42329 bytes --]

                 reply	other threads:[~2021-07-21  1: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=202107210932.FjxQI8SG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®