All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [frank-w-bpi-r2-4.14:7.2-rc 95/160] drivers/net/dsa/mxl862xx/mxl862xx-api.h:2154:6: error: nested redefinition of 'enum mxl862xx_port_type'
Date: Tue, 30 Jun 2026 12:46:33 +0800	[thread overview]
Message-ID: <202606301223.B3ESUnM6-lkp@intel.com> (raw)

tree:   https://github.com/frank-w/BPI-R2-4.14 7.2-rc
head:   39cd8d05e83250c6294b8e0da3ca69359eff8a3c
commit: 78b80c34a4169c4e258421dd004ea2fc640a8b4f [95/160] net: dsa: mxl862xx: trap link-local and multicast snooping frames to CPU
config: arm-randconfig-004-20260630 (https://download.01.org/0day-ci/archive/20260630/202606301223.B3ESUnM6-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/202606301223.B3ESUnM6-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/202606301223.B3ESUnM6-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/dsa/mxl862xx/mxl862xx.c:23:
>> drivers/net/dsa/mxl862xx/mxl862xx-api.h:2154:6: error: nested redefinition of 'enum mxl862xx_port_type'
    enum mxl862xx_port_type {
         ^~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2154:6: error: redeclaration of 'enum mxl862xx_port_type'
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1206:6: note: originally defined here
    enum mxl862xx_port_type {
         ^~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2155:2: error: redeclaration of enumerator 'MXL862XX_LOGICAL_PORT'
     MXL862XX_LOGICAL_PORT = 0,
     ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1207:2: note: previous definition of 'MXL862XX_LOGICAL_PORT' was here
     MXL862XX_LOGICAL_PORT = 0,
     ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2156:2: error: redeclaration of enumerator 'MXL862XX_PHYSICAL_PORT'
     MXL862XX_PHYSICAL_PORT,
     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1208:2: note: previous definition of 'MXL862XX_PHYSICAL_PORT' was here
     MXL862XX_PHYSICAL_PORT,
     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2157:2: error: redeclaration of enumerator 'MXL862XX_CTP_PORT'
     MXL862XX_CTP_PORT,
     ^~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1209:2: note: previous definition of 'MXL862XX_CTP_PORT' was here
     MXL862XX_CTP_PORT,
     ^~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2158:2: error: redeclaration of enumerator 'MXL862XX_BRIDGE_PORT'
     MXL862XX_BRIDGE_PORT,
     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1210:2: note: previous definition of 'MXL862XX_BRIDGE_PORT' was here
     MXL862XX_BRIDGE_PORT,
     ^~~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/net/dsa/mxl862xx/mxl862xx-phylink.c:16:
>> drivers/net/dsa/mxl862xx/mxl862xx-api.h:2154:6: error: nested redefinition of 'enum mxl862xx_port_type'
    enum mxl862xx_port_type {
         ^~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2154:6: error: redeclaration of 'enum mxl862xx_port_type'
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1206:6: note: originally defined here
    enum mxl862xx_port_type {
         ^~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2155:2: error: redeclaration of enumerator 'MXL862XX_LOGICAL_PORT'
     MXL862XX_LOGICAL_PORT = 0,
     ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1207:2: note: previous definition of 'MXL862XX_LOGICAL_PORT' was here
     MXL862XX_LOGICAL_PORT = 0,
     ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2156:2: error: redeclaration of enumerator 'MXL862XX_PHYSICAL_PORT'
     MXL862XX_PHYSICAL_PORT,
     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1208:2: note: previous definition of 'MXL862XX_PHYSICAL_PORT' was here
     MXL862XX_PHYSICAL_PORT,
     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2157:2: error: redeclaration of enumerator 'MXL862XX_CTP_PORT'
     MXL862XX_CTP_PORT,
     ^~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1209:2: note: previous definition of 'MXL862XX_CTP_PORT' was here
     MXL862XX_CTP_PORT,
     ^~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:2158:2: error: redeclaration of enumerator 'MXL862XX_BRIDGE_PORT'
     MXL862XX_BRIDGE_PORT,
     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-api.h:1210:2: note: previous definition of 'MXL862XX_BRIDGE_PORT' was here
     MXL862XX_BRIDGE_PORT,
     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mxl862xx/mxl862xx-phylink.c: In function 'mxl862xx_serdes_get_stats':
   drivers/net/dsa/mxl862xx/mxl862xx-phylink.c:502:14: error: implicit declaration of function 'mxl862xx_xpcs_port_id'; did you mean 'mxl862xx_pcs_config'? [-Werror=implicit-function-declaration]
      .port_id = mxl862xx_xpcs_port_id(port),
                 ^~~~~~~~~~~~~~~~~~~~~
                 mxl862xx_pcs_config
   cc1: some warnings being treated as errors


vim +2154 drivers/net/dsa/mxl862xx/mxl862xx-api.h

23794bec1cb606f Daniel Golle 2026-02-07  2146  
e6295d124644b14 Daniel Golle 2026-04-12  2147  /**
e6295d124644b14 Daniel Golle 2026-04-12  2148   * enum mxl862xx_port_type - Port Type
e6295d124644b14 Daniel Golle 2026-04-12  2149   * @MXL862XX_LOGICAL_PORT: Logical Port
e6295d124644b14 Daniel Golle 2026-04-12  2150   * @MXL862XX_PHYSICAL_PORT: Physical Port
e6295d124644b14 Daniel Golle 2026-04-12  2151   * @MXL862XX_CTP_PORT: Connectivity Termination Port (CTP)
e6295d124644b14 Daniel Golle 2026-04-12  2152   * @MXL862XX_BRIDGE_PORT: Bridge Port
e6295d124644b14 Daniel Golle 2026-04-12  2153   */
e6295d124644b14 Daniel Golle 2026-04-12 @2154  enum mxl862xx_port_type {
e6295d124644b14 Daniel Golle 2026-04-12  2155  	MXL862XX_LOGICAL_PORT = 0,
e6295d124644b14 Daniel Golle 2026-04-12  2156  	MXL862XX_PHYSICAL_PORT,
e6295d124644b14 Daniel Golle 2026-04-12  2157  	MXL862XX_CTP_PORT,
e6295d124644b14 Daniel Golle 2026-04-12  2158  	MXL862XX_BRIDGE_PORT,
e6295d124644b14 Daniel Golle 2026-04-12  2159  };
e6295d124644b14 Daniel Golle 2026-04-12  2160  

:::::: The code at line 2154 was first introduced by commit
:::::: e6295d124644b14a12b55edf5d3e89cf86a4a2ce net: dsa: mxl862xx: add ethtool statistics support

:::::: TO: Daniel Golle <daniel@makrotopia.org>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

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

                 reply	other threads:[~2026-06-30  4:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202606301223.B3ESUnM6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=frank-w@public-files.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.