All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kyle Switch <kyle.switch@motor-comm.com>,
	andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	mmyangfl@gmail.com, horms@kernel.org, linux@armlinux.org.uk,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	ming.xu@motor-comm.com, xiaolin.xu@motor-comm.com,
	jianmin.wang@motor-comm.com, wei.zhang@gl-inet.com,
	sijia.huang@gl-inet.com
Subject: Re: [PATCH net-next v15 5/5] net: dsa: motorcomm: Add support for Motorcomm YT922x
Date: Tue, 20 Oct 2026 10:17:37 +0800	[thread overview]
Message-ID: <202610200942.aPmEAZ8C-lkp@intel.com> (raw)
In-Reply-To: <20261019110543.2999419-6-kyle.switch@motor-comm.com>

Hi Kyle,

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/Kyle-Switch/net-dsa-motorcomm-initialize-dsa_switch-based-on-chipid/20261019-190539
base:   net-next/main
patch link:    https://lore.kernel.org/r/20261019110543.2999419-6-kyle.switch%40motor-comm.com
patch subject: [PATCH net-next v15 5/5] net: dsa: motorcomm: Add support for Motorcomm YT922x
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20261020/202610200942.aPmEAZ8C-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261020/202610200942.aPmEAZ8C-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/202610200942.aPmEAZ8C-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/dsa/motorcomm/chip.c:2755:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
    2755 |         default:
         |         ^
   drivers/net/dsa/motorcomm/chip.c:2755:2: note: insert '__attribute__((fallthrough));' to silence this warning
    2755 |         default:
         |         ^
         |         __attribute__((fallthrough)); 
   drivers/net/dsa/motorcomm/chip.c:2755:2: note: insert 'break;' to avoid fall-through
    2755 |         default:
         |         ^
         |         break; 
   1 warning generated.


vim +2755 drivers/net/dsa/motorcomm/chip.c

  2730	
  2731	static int
  2732	yt922x_port_config(struct yt921x_priv *priv, int port, unsigned int mode,
  2733			   phy_interface_t interface)
  2734	{
  2735		struct device *dev = yt921x_priv_to_device(priv);
  2736		const struct yt921x_info *info = priv->info;
  2737		struct yt921x_port *pp = &priv->ports[port];
  2738	
  2739		if (BIT(port) & info->internal_mask) {
  2740			if (interface != PHY_INTERFACE_MODE_INTERNAL)
  2741				goto err;
  2742			return 0;
  2743		}
  2744	
  2745		switch (interface) {
  2746		/* SERDES */
  2747		case PHY_INTERFACE_MODE_SGMII:
  2748		case PHY_INTERFACE_MODE_100BASEX:
  2749		case PHY_INTERFACE_MODE_1000BASEX:
  2750		case PHY_INTERFACE_MODE_2500BASEX:
  2751		case PHY_INTERFACE_MODE_USXGMII:
  2752			if (!(BIT(port) & info->serdes_mask))
  2753				goto err;
  2754			pp->serdes = true;
> 2755		default:
  2756			goto err;
  2757		}
  2758	
  2759		return 0;
  2760	
  2761	err:
  2762		dev_err(dev, "Wrong mode %d on port %d\n", interface, port);
  2763		return -EINVAL;
  2764	}
  2765	

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

      parent reply	other threads:[~2026-10-20  2:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 11:05 [PATCH net-next v15 0/5] net: dsa: motorcomm: add support yt922x driver Kyle Switch
2026-10-19 11:05 ` [PATCH net-next v15 1/5] net: dsa: motorcomm: initialize dsa_switch based on chipid Kyle Switch
2026-10-19 11:05 ` [PATCH net-next v15 2/5] net: dsa: motorcomm: use max_ports in series for port bounds checking Kyle Switch
2026-10-19 11:05 ` [PATCH net-next v15 3/5] net: dsa: motorcomm: use fixed-width GENMASK_U*() helpers Kyle Switch
2026-10-19 11:05 ` [PATCH net-next v15 4/5] net: dsa: tag_yt922x: add support for Motorcomm YT922x tags Kyle Switch
2026-10-19 11:05 ` [PATCH net-next v15 5/5] net: dsa: motorcomm: Add support for Motorcomm YT922x Kyle Switch
2026-10-19 12:07   ` Andrew Lunn
2026-10-20  2:17   ` 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=202610200942.aPmEAZ8C-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jianmin.wang@motor-comm.com \
    --cc=kuba@kernel.org \
    --cc=kyle.switch@motor-comm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=llvm@lists.linux.dev \
    --cc=ming.xu@motor-comm.com \
    --cc=mmyangfl@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=sijia.huang@gl-inet.com \
    --cc=wei.zhang@gl-inet.com \
    --cc=xiaolin.xu@motor-comm.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.