All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michael Dege <michael.dege@renesas.com>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Michael Dege <michael.dege@renesas.com>
Subject: Re: [PATCH net-next 13/13] net: renesas: rswitch: add vlan aware switching
Date: Thu, 19 Mar 2026 09:29:25 +0800	[thread overview]
Message-ID: <202603190927.5oLw58VC-lkp@intel.com> (raw)
In-Reply-To: <20260317-rswitch_add_vlans-v1-13-3a57bfa0f2d1@renesas.com>

Hi Michael,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681]

url:    https://github.com/intel-lab-lkp/linux/commits/Michael-Dege/net-renesas-rswitch-improve-port-change-mode-functions/20260318-221709
base:   1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
patch link:    https://lore.kernel.org/r/20260317-rswitch_add_vlans-v1-13-3a57bfa0f2d1%40renesas.com
patch subject: [PATCH net-next 13/13] net: renesas: rswitch: add vlan aware switching
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260319/202603190927.5oLw58VC-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 4abb927bacf37f18f6359a41639a6d1b3bffffb5)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260319/202603190927.5oLw58VC-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/202603190927.5oLw58VC-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/renesas/rswitch_l2.c:268:7: warning: variable 'err' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
     268 |         case SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED:
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/renesas/rswitch_l2.c:275:6: note: uninitialized use occurs here
     275 |         if (err < 0)
         |             ^~~
   drivers/net/ethernet/renesas/rswitch_l2.c:264:7: warning: variable 'err' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
     264 |         case SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING:
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/renesas/rswitch_l2.c:275:6: note: uninitialized use occurs here
     275 |         if (err < 0)
         |             ^~~
   drivers/net/ethernet/renesas/rswitch_l2.c:251:9: note: initialize the variable 'err' to silence this warning
     251 |         int err;
         |                ^
         |                 = 0
   2 warnings generated.


vim +/err +268 drivers/net/ethernet/renesas/rswitch_l2.c

   244	
   245	static int rswitch_handle_port_attr_set(struct net_device *ndev,
   246						struct notifier_block *nb,
   247						struct switchdev_notifier_port_attr_info *info)
   248	{
   249		const struct switchdev_attr *attr = info->attr;
   250		struct rswitch_private *priv;
   251		int err;
   252	
   253		priv = container_of(nb, struct rswitch_private, rswitch_switchdev_blocking_nb);
   254	
   255		switch (attr->id) {
   256		case SWITCHDEV_ATTR_ID_PORT_STP_STATE:
   257			err = rswitch_port_update_stp_state(ndev, attr->u.stp_state);
   258	
   259			break;
   260		case SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME:
   261			err = rswitch_update_ageing_time(priv, attr->u.ageing_time);
   262	
   263			break;
   264		case SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING:
   265			rswitch_update_vlan_filtering(priv, attr->u.vlan_filtering);
   266	
   267			break;
 > 268		case SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED:
   269	
   270			break;
   271		default:
   272			return -EOPNOTSUPP;
   273		}
   274	
   275		if (err < 0)
   276			return err;
   277	
   278		info->handled = true;
   279	
   280		return NOTIFY_DONE;
   281	}
   282	

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

      reply	other threads:[~2026-03-19  1:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-17  9:41 [net-next PATCH 00/13] net: renesas: rswitch: R-Car S4 add VLAN aware switching Michael Dege
2026-03-17  9:41 ` [PATCH net-next 01/13] net: renesas: rswitch: improve port change mode functions Michael Dege
2026-03-17  9:41 ` [PATCH net-next 02/13] net: renesas: rswitch: use device instead of net_device Michael Dege
2026-03-17  9:41 ` [PATCH net-next 03/13] net: renesas: rswitch: fix FWPC2 register access macros Michael Dege
2026-03-17  9:41 ` [PATCH net-next 04/13] net: renesas: rswitch: add register definitions for vlan support Michael Dege
2026-03-17  9:41 ` [PATCH net-next 05/13] net: renesas: rswitch: add exception path for packets with unknown dst MAC Michael Dege
2026-03-17  9:41 ` [PATCH net-next 06/13] net: renesas: rswitch: add forwarding rules for gwca Michael Dege
2026-03-17 16:15   ` Geert Uytterhoeven
2026-03-18  6:15     ` Michael Dege
2026-03-17  9:42 ` [PATCH net-next 07/13] net: renesas: rswitch: make helper functions available to whole driver Michael Dege
2026-03-17  9:42 ` [PATCH net-next 08/13] net: renesas: rswitch: add basic vlan init to rswitch_fwd_init Michael Dege
2026-03-17  9:42 ` [PATCH net-next 09/13] net: renesas: rswitch: update port HW init Michael Dege
2026-03-17  9:42 ` [PATCH net-next 10/13] net: renesas: rswitch: clean up is_rdev rswitch_device checking Michael Dege
2026-03-17  9:42 ` [PATCH net-next 11/13] net: renesas: rswitch: add passing of rswitch_private into notifiers Michael Dege
2026-03-17  9:42 ` [PATCH net-next 12/13] net: renesas: rswitch: add handler for FDB notification Michael Dege
2026-03-17  9:42 ` [PATCH net-next 13/13] net: renesas: rswitch: add vlan aware switching Michael Dege
2026-03-19  1:29   ` kernel test robot [this message]

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=202603190927.5oLw58VC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=michael.dege@renesas.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=yoshihiro.shimoda.uh@renesas.com \
    /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.