From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [linux-next:master 1843/2633] drivers/net/ethernet/airoha/airoha_ppe.c:122 airoha_ppe_set_xmit_frame_size() warn: subtract is higher precedence than shift
Date: Thu, 02 Jul 2026 12:56:48 +0800 [thread overview]
Message-ID: <202607021219.DdV9vXcX-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Paolo Abeni <pabeni@redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4f441960e691d37c880d2cc004de06bb5b6bd5e4
commit: a7c6debfec17381329b094bd75560a1e57a5533a [1843/2633] net: airoha: fix max receive size configuration
:::::: branch date: 13 hours ago
:::::: commit date: 2 days ago
config: sh-randconfig-r072-20260702 (https://download.01.org/0day-ci/archive/20260702/202607021219.DdV9vXcX-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
smatch: v0.5.0-9185-gbcc58b9c
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202607021219.DdV9vXcX-lkp@intel.com/
New smatch warnings:
drivers/net/ethernet/airoha/airoha_ppe.c:122 airoha_ppe_set_xmit_frame_size() warn: subtract is higher precedence than shift
drivers/net/ethernet/airoha/airoha_ppe.c:122 airoha_ppe_set_xmit_frame_size() warn: subtract is higher precedence than shift
drivers/net/ethernet/airoha/airoha_ppe.c:122 airoha_ppe_set_xmit_frame_size() warn: subtract is higher precedence than shift
drivers/net/ethernet/airoha/airoha_ppe.c:122 airoha_ppe_set_xmit_frame_size() warn: subtract is higher precedence than shift
Old smatch warnings:
drivers/net/ethernet/airoha/airoha_ppe.c:95 airoha_ppe_set_cpu_port() warn: subtract is higher precedence than shift
drivers/net/ethernet/airoha/airoha_ppe.c:95 airoha_ppe_set_cpu_port() warn: subtract is higher precedence than shift
drivers/net/ethernet/airoha/airoha_ppe.c:95 airoha_ppe_set_cpu_port() warn: subtract is higher precedence than shift
drivers/net/ethernet/airoha/airoha_ppe.c:95 airoha_ppe_set_cpu_port() warn: subtract is higher precedence than shift
vim +122 drivers/net/ethernet/airoha/airoha_ppe.c
f44218cd5e6a3d Lorenzo Bianconi 2026-03-17 99
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 100 void airoha_ppe_set_xmit_frame_size(struct airoha_gdm_dev *dev)
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 101 {
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 102 struct airoha_gdm_port *port = dev->port;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 103 struct airoha_eth *eth = dev->eth;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 104 int i, ppe_id, index;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 105 u32 len = 0;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 106
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 107 for (i = 0; i < ARRAY_SIZE(port->devs); i++) {
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 108 struct airoha_gdm_dev *d = port->devs[i];
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 109 struct net_device *netdev;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 110
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 111 if (!d)
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 112 continue;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 113
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 114 netdev = netdev_from_priv(d);
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 115 if (netif_running(netdev))
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 116 len = max_t(u32, len, netdev->mtu);
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 117 }
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 118 len += VLAN_ETH_HLEN;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 119
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 120 ppe_id = !airoha_is_lan_gdm_dev(dev) && airoha_ppe_is_enabled(eth, 1);
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 121 index = port->id == AIROHA_GDM4_IDX ? 7 : port->id;
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 @122 airoha_fe_rmw(eth, REG_PPE_MTU(ppe_id, index),
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 123 FP_EGRESS_MTU_MASK(index),
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 124 __field_prep(FP_EGRESS_MTU_MASK(index), len));
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 125 }
a7c6debfec1738 Lorenzo Bianconi 2026-06-25 126
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-02 4:57 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=202607021219.DdV9vXcX-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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.