Hi David, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/David-Yang/net-dsa-motorcomm-Remove-local-cpu_ports_mask/20261206-102032 base: net-next/main patch link: https://lore.kernel.org/r/2026…%40gmail.com patch subject: [PATCH net-next v5 7/7] net: dsa: motorcomm: Recompute redirect rules on bridge changes config: parisc-randconfig-1000-20261206 (https://download.01.org/0day-ci/archive/20261206/2026…@intel.com/config) compiler: hppa-linux-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261206/2026…@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 <l…@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/2026…@intel.com/ All warnings (new ones prefixed by >>): drivers/net/dsa/motorcomm/chip.c: In function 'yt921x_acl_refresh_extack':
>> drivers/net/dsa/motorcomm/chip.c:1516:17: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
1516 | else if (res > 0) | ^ vim +/else +1516 drivers/net/dsa/motorcomm/chip.c 1498 1499 static void 1500 yt921x_acl_refresh_extack(struct yt921x_priv *priv, int port, int res, int res2, 1501 struct netlink_ext_ack *extack) 1502 { 1503 struct device *dev = yt921x_priv_to_device(priv); 1504 1505 if (!res || (res > 0 && res2 < 0)) 1506 res = res2; 1507 1508 if (res < 0) 1509 if (extack) 1510 NL_SET_ERR_MSG_FMT_MOD(extack, 1511 "Failed to refresh ACL rules: %i", 1512 res); 1513 else 1514 dev_err(dev, "Failed to refresh ACL rules for port %d: %i\n", 1515 port, res);
> 1516 else if (res > 0)
1517 if (extack) 1518 NL_SET_ERR_MSG_MOD(extack, 1519 "Could not reload some redirect rules due to skip_sw, they no longer work as expected"); 1520 else 1521 dev_warn(dev, "Could not reload some redirect rules for port %d due to skip_sw, they no longer work as expected\n", 1522 port); 1523 } 1524
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki