public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rosen Penev <rosenp@gmail.com>, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	nabijaczleweli@nabijaczleweli.xyz, akpm@linux-foundation.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: sunvnet: use ethtool_sprintf/puts
Date: Sat, 10 Aug 2024 04:48:46 +0800	[thread overview]
Message-ID: <202408100443.OXvAtrM9-lkp@intel.com> (raw)
In-Reply-To: <20240809044502.4184-1-rosenp@gmail.com>

Hi Rosen,

kernel test robot noticed the following build errors:

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

url:    https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/net-sunvnet-use-ethtool_sprintf-puts/20240809-145830
base:   net-next/main
patch link:    https://lore.kernel.org/r/20240809044502.4184-1-rosenp%40gmail.com
patch subject: [PATCH net-next] net: sunvnet: use ethtool_sprintf/puts
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20240810/202408100443.OXvAtrM9-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240810/202408100443.OXvAtrM9-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/202408100443.OXvAtrM9-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/sun/sunvnet.c: In function 'vnet_get_strings':
>> drivers/net/ethernet/sun/sunvnet.c:120:36: error: passing argument 2 of 'ethtool_puts' from incompatible pointer type [-Wincompatible-pointer-types]
     120 |                 ethtool_puts(&buf, &ethtool_stats_keys);
         |                                    ^~~~~~~~~~~~~~~~~~~
         |                                    |
         |                                    const struct <anonymous> (*)[14]
   In file included from drivers/net/ethernet/sun/sunvnet.c:17:
   include/linux/ethtool.h:1273:49: note: expected 'const char *' but argument is of type 'const struct <anonymous> (*)[14]'
    1273 | extern void ethtool_puts(u8 **data, const char *str);
         |                                     ~~~~~~~~~~~~^~~


vim +/ethtool_puts +120 drivers/net/ethernet/sun/sunvnet.c

   112	
   113	static void vnet_get_strings(struct net_device *dev, u32 stringset, u8 *buf)
   114	{
   115		struct vnet *vp = (struct vnet *)netdev_priv(dev);
   116		struct vnet_port *port;
   117	
   118		switch (stringset) {
   119		case ETH_SS_STATS:
 > 120			ethtool_puts(&buf, &ethtool_stats_keys);
   121	
   122			rcu_read_lock();
   123			list_for_each_entry_rcu(port, &vp->port_list, list) {
   124				ethtool_sprintf(&buf, "p%u.%s-%pM", port->q_index,
   125						port->switch_port ? "s" : "q",
   126						port->raddr);
   127				ethtool_sprintf(&buf, "p%u.rx_packets", port->q_index);
   128				ethtool_sprintf(&buf, "p%u.tx_packets", port->q_index);
   129				ethtool_sprintf(&buf, "p%u.rx_bytes", port->q_index);
   130				ethtool_sprintf(&buf, "p%u.tx_bytes", port->q_index);
   131				ethtool_sprintf(&buf, "p%u.event_up", port->q_index);
   132				ethtool_sprintf(&buf, "p%u.event_reset", port->q_index);
   133			}
   134			rcu_read_unlock();
   135			break;
   136		default:
   137			WARN_ON(1);
   138			break;
   139		}
   140	}
   141	

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

      reply	other threads:[~2024-08-09 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-09  4:44 [PATCH net-next] net: sunvnet: use ethtool_sprintf/puts Rosen Penev
2024-08-09 20:48 ` kernel test robot [this message]

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=202408100443.OXvAtrM9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nabijaczleweli@nabijaczleweli.xyz \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=rosenp@gmail.com \
    /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