public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Golle <daniel@makrotopia.org>,
	Hauke Mehrtens <hauke@hauke-m.de>, Andrew Lunn <andrew@lunn.ch>,
	Vladimir Oltean <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Russell King <linux@armlinux.org.uk>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org, Chen Minqiang <ptpt52@gmail.com>,
	Xinfa Deng <xinfa.deng@gl-inet.com>
Subject: Re: [PATCH net-next v4 3/6] net: dsa: lantiq: allow arbitrary MII registers
Date: Sat, 17 Jan 2026 19:15:51 +0800	[thread overview]
Message-ID: <202601171803.vxrrhXdF-lkp@intel.com> (raw)
In-Reply-To: <d5cbb8c5917197d44b62d39c9799212d1b3fe390.1768612113.git.daniel@makrotopia.org>

Hi Daniel,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Golle/dt-bindings-net-dsa-lantiq-gswip-use-correct-node-name/20260117-092406
base:   net-next/main
patch link:    https://lore.kernel.org/r/d5cbb8c5917197d44b62d39c9799212d1b3fe390.1768612113.git.daniel%40makrotopia.org
patch subject: [PATCH net-next v4 3/6] net: dsa: lantiq: allow arbitrary MII registers
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260117/202601171803.vxrrhXdF-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/20260117/202601171803.vxrrhXdF-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/202601171803.vxrrhXdF-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/dsa/lantiq/mxl-gsw1xx.c:708:28: error: array designator index (7) exceeds array bounds (7)
     708 |                 [GSW1XX_MII_PORT + 1 ... GSWIP_MAX_PORTS] = -1,
         |                                          ^~~~~~~~~~~~~~~
   drivers/net/dsa/lantiq/lantiq_gswip.h:246:26: note: expanded from macro 'GSWIP_MAX_PORTS'
     246 | #define GSWIP_MAX_PORTS         7
         |                                 ^
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:713:28: error: array designator index (7) exceeds array bounds (7)
     713 |                 [GSW1XX_MII_PORT + 1 ... GSWIP_MAX_PORTS] = -1,
         |                                          ^~~~~~~~~~~~~~~
   drivers/net/dsa/lantiq/lantiq_gswip.h:246:26: note: expanded from macro 'GSWIP_MAX_PORTS'
     246 | #define GSWIP_MAX_PORTS         7
         |                                 ^
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:749:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     749 |                 [GSW1XX_MII_PORT] = GSWIP_MII_CFGp(0),
         |                                     ^~~~~~~~~~~~~~~~~
   drivers/net/dsa/lantiq/lantiq_gswip.h:60:28: note: expanded from macro 'GSWIP_MII_CFGp'
      60 | #define GSWIP_MII_CFGp(p)               (0x2 * (p))
         |                                         ^~~~~~~~~~~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:748:33: note: previous initialization is here
     748 |                 [0 ... GSWIP_MAX_PORTS - 1] = -1,
         |                                               ^~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:750:51: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     750 |                 [GSW1XX_MII_PORT + 1 ... GSWIP_MAX_PORTS - 1] = -1,
         |                                                                 ^~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:748:33: note: previous initialization is here
     748 |                 [0 ... GSWIP_MAX_PORTS - 1] = -1,
         |                                               ^~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:754:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     754 |                 [GSW1XX_MII_PORT] = GSWIP_MII_PCDU0,
         |                                     ^~~~~~~~~~~~~~~
   drivers/net/dsa/lantiq/lantiq_gswip.h:80:27: note: expanded from macro 'GSWIP_MII_PCDU0'
      80 | #define GSWIP_MII_PCDU0                 0x01
         |                                         ^~~~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:753:33: note: previous initialization is here
     753 |                 [0 ... GSWIP_MAX_PORTS - 1] = -1,
         |                                               ^~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:755:51: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
     755 |                 [GSW1XX_MII_PORT + 1 ... GSWIP_MAX_PORTS - 1] = -1,
         |                                                                 ^~
   drivers/net/dsa/lantiq/mxl-gsw1xx.c:753:33: note: previous initialization is here
     753 |                 [0 ... GSWIP_MAX_PORTS - 1] = -1,
         |                                               ^~
   4 warnings and 2 errors generated.


vim +708 drivers/net/dsa/lantiq/mxl-gsw1xx.c

   701	
   702	static const struct gswip_hw_info gsw12x_data = {
   703		.max_ports		= GSW1XX_PORTS,
   704		.allowed_cpu_ports	= BIT(GSW1XX_MII_PORT) | BIT(GSW1XX_SGMII_PORT),
   705		.mii_cfg = {
   706			[0 ... GSW1XX_MII_PORT - 1] = -1,
   707			[GSW1XX_MII_PORT] = GSWIP_MII_CFGp(0),
 > 708			[GSW1XX_MII_PORT + 1 ... GSWIP_MAX_PORTS] = -1,
   709		},
   710		.mii_pcdu = {
   711			[0 ... GSW1XX_MII_PORT - 1] = -1,
   712			[GSW1XX_MII_PORT] = GSWIP_MII_PCDU0,
   713			[GSW1XX_MII_PORT + 1 ... GSWIP_MAX_PORTS] = -1,
   714		},
   715		.mac_select_pcs		= gsw1xx_phylink_mac_select_pcs,
   716		.phylink_get_caps	= &gsw1xx_phylink_get_caps,
   717		.supports_2500m		= true,
   718		.pce_microcode		= &gsw1xx_pce_microcode,
   719		.pce_microcode_size	= ARRAY_SIZE(gsw1xx_pce_microcode),
   720		.tag_protocol		= DSA_TAG_PROTO_MXL_GSW1XX,
   721	};
   722	

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

  reply	other threads:[~2026-01-17 11:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-17  1:15 [PATCH net-next v4 0/6] net: dsa: lantiq: add support for Intel GSW150 Daniel Golle
2026-01-17  1:16 ` [PATCH net-next v4 1/6] dt-bindings: net: dsa: lantiq,gswip: use correct node name Daniel Golle
2026-01-17  1:16 ` [PATCH net-next v4 2/6] dt-bindings: net: dsa: lantiq,gswip: add Intel GSW150 Daniel Golle
2026-01-17  1:19 ` [PATCH net-next v4 3/6] net: dsa: lantiq: allow arbitrary MII registers Daniel Golle
2026-01-17 11:15   ` kernel test robot [this message]
2026-01-17 20:05   ` kernel test robot
2026-01-17  1:20 ` [PATCH net-next v4 4/6] net: dsa: lantiq: clean up phylink_get_caps switch statement Daniel Golle
2026-01-17  1:20 ` [PATCH net-next v4 5/6] net: dsa: mxl-gsw1xx: only setup SerDes PCS if it exists Daniel Golle
2026-01-17  1:21 ` [PATCH net-next v4 6/6] net: dsa: mxl-gsw1xx: add support for Intel GSW150 Daniel Golle

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=202601171803.vxrrhXdF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=daniel@makrotopia.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=hauke@hauke-m.de \
    --cc=krzk@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=llvm@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=ptpt52@gmail.com \
    --cc=robh@kernel.org \
    --cc=xinfa.deng@gl-inet.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox