[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507200739.pd0Gkp22-lkp@intel.com>
Date: Sun, 20 Jul 2025 07:22:05 +0800
From: kernel test robot <lkp@...el.com>
To: Mihai Moldovan <ionic@...ic.de>, linux-arm-msm@...r.kernel.org,
Manivannan Sadhasivam <mani@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, Denis Kenzior <denkenz@...il.com>,
Eric Dumazet <edumazet@...gle.com>,
Kuniyuki Iwashima <kuniyu@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Willem de Bruijn <willemb@...gle.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Simon Horman <horms@...nel.org>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH v2 03/10] net: qrtr: support identical node ids
Hi Mihai,
kernel test robot noticed the following build warnings:
[auto build test WARNING on mani-mhi/mhi-next]
[also build test WARNING on net-next/main net/main linus/master v6.16-rc6 next-20250718]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mihai-Moldovan/net-qrtr-ns-validate-msglen-before-ctrl_pkt-use/20250720-030426
base: https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git mhi-next
patch link: https://lore.kernel.org/r/4d0fe1eab4b38fb85e2ec53c07289bc0843611a2.1752947108.git.ionic%40ionic.de
patch subject: [PATCH v2 03/10] net: qrtr: support identical node ids
config: arc-randconfig-002-20250720 (https://download.01.org/0day-ci/archive/20250720/202507200739.pd0Gkp22-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250720/202507200739.pd0Gkp22-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507200739.pd0Gkp22-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/qrtr/af_qrtr.c: In function 'qrtr_node_assign':
>> net/qrtr/af_qrtr.c:429:36: warning: left shift count >= width of type [-Wshift-count-overflow]
key = (unsigned long)node->ep->id << 32 | nid;
^~
vim +429 net/qrtr/af_qrtr.c
412
413 /* Assign node id to node.
414 *
415 * This is mostly useful for automatic node id assignment, based on
416 * the source id in the incoming packet.
417 */
418 static void qrtr_node_assign(struct qrtr_node *node, unsigned int nid)
419 {
420 unsigned long flags;
421 unsigned long key;
422
423 if (nid == QRTR_EP_NID_AUTO)
424 return;
425
426 spin_lock_irqsave(&qrtr_nodes_lock, flags);
427
428 /* Always insert with the endpoint_id + node_id */
> 429 key = (unsigned long)node->ep->id << 32 | nid;
430 radix_tree_insert(&qrtr_nodes, key, node);
431
432 if (!radix_tree_lookup(&qrtr_nodes, nid))
433 radix_tree_insert(&qrtr_nodes, nid, node);
434
435 if (node->nid == QRTR_EP_NID_AUTO)
436 node->nid = nid;
437 spin_unlock_irqrestore(&qrtr_nodes_lock, flags);
438 }
439
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists