[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202508161930.ergOga3z-lkp@intel.com>
Date: Sat, 16 Aug 2025 19:24:43 +0800
From: kernel test robot <lkp@...el.com>
To: Artur Rojek <contact@...ur-rojek.eu>, Rob Landley <rob@...dley.net>,
Jeff Dionne <jeff@...esemi.io>,
John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Artur Rojek <contact@...ur-rojek.eu>
Subject: Re: [PATCH 3/3] net: j2: Introduce J-Core EMAC
Hi Artur,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.17-rc1 next-20250815]
[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/Artur-Rojek/dt-bindings-vendor-prefixes-Document-J-Core/20250816-042354
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250815194806.1202589-4-contact%40artur-rojek.eu
patch subject: [PATCH 3/3] net: j2: Introduce J-Core EMAC
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250816/202508161930.ergOga3z-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250816/202508161930.ergOga3z-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/202508161930.ergOga3z-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/jcore_emac.c:231:2: warning: label at end of compound statement is a C2x extension [-Wc2x-extensions]
231 | }
| ^
1 warning generated.
vim +231 drivers/net/ethernet/jcore_emac.c
192
193 static void jcore_emac_set_rx_mode(struct net_device *ndev)
194 {
195 struct jcore_emac *priv = netdev_priv(ndev);
196 struct netdev_hw_addr *ha;
197 unsigned int reg, i, idx = 0, set_mask = 0, clear_mask = 0, addr = 0;
198
199 if (ndev->flags & IFF_PROMISC)
200 set_mask |= JCORE_EMAC_PROMISC;
201 else
202 clear_mask |= JCORE_EMAC_PROMISC;
203
204 if (ndev->flags & IFF_ALLMULTI)
205 set_mask |= JCORE_EMAC_MCAST;
206 else
207 clear_mask |= JCORE_EMAC_MCAST;
208
209 regmap_update_bits(priv->map, JCORE_EMAC_CONTROL, set_mask | clear_mask,
210 set_mask);
211
212 if (!(ndev->flags & IFF_MULTICAST))
213 return;
214
215 netdev_for_each_mc_addr(ha, ndev) {
216 /* Only the first 3 octets are used in a hardware mcast mask. */
217 memcpy(&addr, ha->addr, 3);
218
219 for (i = 0; i < idx; i++) {
220 regmap_read(priv->map, JCORE_EMAC_MCAST_MASK(i), ®);
221 if (reg == addr)
222 goto next_ha;
223 }
224
225 regmap_write(priv->map, JCORE_EMAC_MCAST_MASK(idx), addr);
226 if (++idx >= JCORE_EMAC_MCAST_ADDRS) {
227 netdev_warn(ndev, "Multicast list limit reached\n");
228 break;
229 }
230 next_ha:
> 231 }
232
233 /* Clear the remaining mask entries. */
234 for (i = idx; i < JCORE_EMAC_MCAST_ADDRS; i++)
235 regmap_write(priv->map, JCORE_EMAC_MCAST_MASK(i), 0);
236 }
237
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists