All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH net-next v2 06/10] net: ethtool: Introduce a command to list PHYs on an interface
Date: Sat, 18 Nov 2023 12:44:40 +0800	[thread overview]
Message-ID: <202311181249.7bUVFYez-lkp@intel.com> (raw)
In-Reply-To: <20231117162323.626979-7-maxime.chevallier@bootlin.com>

Hi Maxime,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Maxime-Chevallier/net-phy-Introduce-ethernet-link-topology-representation/20231117-234210
base:   net-next/main
patch link:    https://lore.kernel.org/r/20231117162323.626979-7-maxime.chevallier%40bootlin.com
patch subject: [RFC PATCH net-next v2 06/10] net: ethtool: Introduce a command to list PHYs on an interface
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231118/202311181249.7bUVFYez-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/20231118/202311181249.7bUVFYez-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/202311181249.7bUVFYez-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> net/ethtool/phy.c:216:5: warning: no previous prototype for function 'ethnl_phy_dump_one_dev' [-Wmissing-prototypes]
   int ethnl_phy_dump_one_dev(struct sk_buff *skb, struct net_device *dev,
       ^
   net/ethtool/phy.c:216:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int ethnl_phy_dump_one_dev(struct sk_buff *skb, struct net_device *dev,
   ^
   static 
   1 warning generated.


vim +/ethnl_phy_dump_one_dev +216 net/ethtool/phy.c

   215	
 > 216	int ethnl_phy_dump_one_dev(struct sk_buff *skb, struct net_device *dev,
   217				   struct netlink_callback *cb)
   218	{
   219		struct ethnl_phy_dump_ctx *ctx = (void *)cb->ctx;
   220		struct phy_req_info *pri = PHY_REQINFO(&ctx->req_info);
   221		struct phy_device_node *pdn;
   222		unsigned long index = 1;
   223		void *ehdr;
   224		int ret;
   225	
   226		ctx->req_info.dev = dev;
   227	
   228		xa_for_each(&dev->link_topo.phys, index, pdn) {
   229			ehdr = ethnl_dump_put(skb, cb,
   230					      ETHTOOL_MSG_PHY_GET_REPLY);
   231			if (!ehdr) {
   232				ret = -EMSGSIZE;
   233				break;
   234			}
   235	
   236			ret = ethnl_fill_reply_header(skb, dev,
   237						      ETHTOOL_A_PHY_HEADER);
   238			if (ret < 0) {
   239				genlmsg_cancel(skb, ehdr);
   240				break;
   241			}
   242	
   243			memcpy(&pri->pdn, pdn, sizeof(*pdn));
   244			ret = ethnl_phy_fill_reply(&ctx->req_info, skb);
   245	
   246			genlmsg_end(skb, ehdr);
   247		}
   248	
   249		ctx->req_info.dev = NULL;
   250	
   251		return ret;
   252	}
   253	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2023-11-18  4:55 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17 16:23 [RFC PATCH net-next v2 00/10] Introduce PHY listing and link_topology tracking Maxime Chevallier
2023-11-17 16:23 ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 01/10] net: phy: Introduce ethernet link topology representation Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-21  0:24   ` Andrew Lunn
2023-11-21  0:24     ` Andrew Lunn
2023-11-23 13:34     ` Maxime Chevallier
2023-11-23 13:34       ` Maxime Chevallier
2023-11-23 13:44     ` Maxime Chevallier
2023-11-23 13:44       ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 02/10] net: sfp: pass the phy_device when disconnecting an sfp module's PHY Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 03/10] net: phy: add helpers to handle sfp phy connect/disconnect Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-21  0:57   ` Andrew Lunn
2023-11-21  0:57     ` Andrew Lunn
2023-11-21 10:08     ` Russell King (Oracle)
2023-11-21 10:08       ` Russell King (Oracle)
2023-11-21 14:35       ` Andrew Lunn
2023-11-21 14:35         ` Andrew Lunn
2023-11-17 16:23 ` [RFC PATCH net-next v2 04/10] net: sfp: Add helper to return the SFP bus name Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-18  4:44   ` kernel test robot
2023-11-21  1:00   ` Andrew Lunn
2023-11-21  1:00     ` Andrew Lunn
2023-11-21 10:20     ` Russell King (Oracle)
2023-11-21 10:20       ` Russell King (Oracle)
2023-11-23 13:35       ` Maxime Chevallier
2023-11-23 13:35         ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 05/10] net: ethtool: Allow passing a phy index for some commands Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-21  1:08   ` Andrew Lunn
2023-11-21  1:08     ` Andrew Lunn
2023-11-23 13:36     ` Maxime Chevallier
2023-11-23 13:36       ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 06/10] net: ethtool: Introduce a command to list PHYs on an interface Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-18  4:44   ` kernel test robot [this message]
2023-11-18  5:34   ` kernel test robot
2023-11-21  1:34   ` Andrew Lunn
2023-11-21  1:34     ` Andrew Lunn
2023-11-21  1:40   ` Andrew Lunn
2023-11-21  1:40     ` Andrew Lunn
2023-11-23 13:40     ` Maxime Chevallier
2023-11-23 13:40       ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 07/10] net: ethtool: plca: Target the command to the requested PHY Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 08/10] net: ethtool: pse-pd: " Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 09/10] net: ethtool: cable-test: " Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier
2023-11-17 16:23 ` [RFC PATCH net-next v2 10/10] net: ethtool: strset: Allow querying phy stats by index Maxime Chevallier
2023-11-17 16:23   ` Maxime Chevallier

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=202311181249.7bUVFYez-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=maxime.chevallier@bootlin.com \
    --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.