public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Daniel Borkmann <daniel@iogearbox.net>,
	David Wei <dw@davidwei.uk>,
	Nikolay Aleksandrov <razor@blackwall.org>
Subject: [cilium:pr/netkit-iouring7 2/12] net/core/netdev_queues.c:75:28: error: passing 'const struct net_device *' to parameter of type 'struct net_device *' discards qualifiers
Date: Sun, 7 Dec 2025 01:30:17 +0800	[thread overview]
Message-ID: <202512070112.EoZMs8hu-lkp@intel.com> (raw)

tree:   https://github.com/cilium/linux.git pr/netkit-iouring7
head:   49e30646c2932aa37daeb4edc45b82d3e0c72bf3
commit: 3064e035c5cf344cbcc324173a049f464cd6e69e [2/12] net: Implement netdev_nl_queue_create_doit
config: x86_64-randconfig-001-20251206 (https://download.01.org/0day-ci/archive/20251207/202512070112.EoZMs8hu-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251207/202512070112.EoZMs8hu-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/202512070112.EoZMs8hu-lkp@intel.com/

All errors (new ones prefixed by >>):

>> net/core/netdev_queues.c:75:28: error: passing 'const struct net_device *' to parameter of type 'struct net_device *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
      75 |         if (xsk_get_pool_from_qid(dev, idx)) {
         |                                   ^~~
   include/net/xdp_sock_drv.h:299:42: note: passing argument to parameter 'dev' here
     299 | xsk_get_pool_from_qid(struct net_device *dev, u16 queue_id)
         |                                          ^
   1 error generated.


vim +75 net/core/netdev_queues.c

    67	
    68	bool netdev_queue_busy(const struct net_device *dev, int idx,
    69			       struct netlink_ext_ack *extack)
    70	{
    71		if (netdev_rx_queue_leased(dev, idx)) {
    72			NL_SET_ERR_MSG(extack, "Lease device queue is already leased");
    73			return true;
    74		}
  > 75		if (xsk_get_pool_from_qid(dev, idx)) {

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

                 reply	other threads:[~2025-12-06 17:30 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=202512070112.EoZMs8hu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@iogearbox.net \
    --cc=dw@davidwei.uk \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=razor@blackwall.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