All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared
@ 2026-10-06 11:30 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-06 11:30 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Kyle-Switch/net-dsa-motorcomm-initialize-dsa_switch-based-on-chipid/20260929-105407, commit: 6487dda010cebf1838d44e9ef59cdf8dbcf6a47d"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Kyle Switch <kyle.switch@motor-comm.com>
CC: 0day robot <lkp@intel.com>

tree:   https://github.com/intel-lab-lkp/linux/commits/Kyle-Switch/net-dsa-motorcomm-initialize-dsa_switch-based-on-chipid/20260929-105407
head:   17230188d88553553a3648a5296554ff1e98926a
commit: 6487dda010cebf1838d44e9ef59cdf8dbcf6a47d net: dsa: motorcomm: move mib stop from remove() to teardown()
date:   7 days ago
:::::: branch date: 7 days ago
:::::: commit date: 7 days ago
config: s390-randconfig-1001-20261006 (https://download.01.org/0day-ci/archive/20261006/202610061956.2FNvr49S-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261006/202610061956.2FNvr49S-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/r/202610061956.2FNvr49S-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:16,
                    from include/linux/skbuff.h:13,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/dsa/motorcomm/chip.c:12:
   drivers/net/dsa/motorcomm/chip.c: In function 'yt921x_dsa_teardown':
>> drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared (first use in this function)
    3928 |         for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
         |                                    ^~~~
   include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                 ^~~
   drivers/net/dsa/motorcomm/chip.c:3928:36: note: each undeclared identifier is reported only once for each function it appears in
    3928 |         for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
         |                                    ^~~~
   include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                 ^~~
   In file included from include/linux/array_size.h:5,
                    from include/linux/kernel.h:16,
                    from include/linux/skbuff.h:13,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/dsa/motorcomm/chip.c:12:
   include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/net/dsa/motorcomm/chip.c:3928:25: note: in expansion of macro 'ARRAY_SIZE'
    3928 |         for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
         |                         ^~~~~~~~~~


vim +/priv +3928 drivers/net/dsa/motorcomm/chip.c

6487dda010cebf1 Kyle Switch 2026-09-29  3927  
6487dda010cebf1 Kyle Switch 2026-09-29 @3928  	for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
6487dda010cebf1 Kyle Switch 2026-09-29  3929  		struct yt921x_port *pp = &priv->ports[i];
6487dda010cebf1 Kyle Switch 2026-09-29  3930  
6487dda010cebf1 Kyle Switch 2026-09-29  3931  		disable_delayed_work_sync(&pp->mib_read);
6487dda010cebf1 Kyle Switch 2026-09-29  3932  	}
9af9a816821365e David Yang  2026-08-31  3933  }
9af9a816821365e David Yang  2026-08-31  3934  

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared
@ 2026-10-06 12:02 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-06 12:02 UTC (permalink / raw)
  To: Kyle Switch; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Kyle-Switch/net-dsa-motorcomm-initialize-dsa_switch-based-on-chipid/20260929-105407
head:   17230188d88553553a3648a5296554ff1e98926a
commit: 6487dda010cebf1838d44e9ef59cdf8dbcf6a47d net: dsa: motorcomm: move mib stop from remove() to teardown()
config: s390-randconfig-1001-20261006 (https://download.01.org/0day-ci/archive/20261006/202610061956.2FNvr49S-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261006/202610061956.2FNvr49S-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/r/202610061956.2FNvr49S-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:16,
                    from include/linux/skbuff.h:13,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/dsa/motorcomm/chip.c:12:
   drivers/net/dsa/motorcomm/chip.c: In function 'yt921x_dsa_teardown':
>> drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared (first use in this function)
    3928 |         for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
         |                                    ^~~~
   include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                 ^~~
   drivers/net/dsa/motorcomm/chip.c:3928:36: note: each undeclared identifier is reported only once for each function it appears in
    3928 |         for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
         |                                    ^~~~
   include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                 ^~~
   In file included from include/linux/array_size.h:5,
                    from include/linux/kernel.h:16,
                    from include/linux/skbuff.h:13,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/dsa/motorcomm/chip.c:12:
   include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/net/dsa/motorcomm/chip.c:3928:25: note: in expansion of macro 'ARRAY_SIZE'
    3928 |         for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
         |                         ^~~~~~~~~~


vim +/priv +3928 drivers/net/dsa/motorcomm/chip.c

6487dda010cebf1 Kyle Switch 2026-09-29  3927  
6487dda010cebf1 Kyle Switch 2026-09-29 @3928  	for (size_t i = ARRAY_SIZE(priv->ports); i-- > 0; ) {
6487dda010cebf1 Kyle Switch 2026-09-29  3929  		struct yt921x_port *pp = &priv->ports[i];
6487dda010cebf1 Kyle Switch 2026-09-29  3930  
6487dda010cebf1 Kyle Switch 2026-09-29  3931  		disable_delayed_work_sync(&pp->mib_read);
6487dda010cebf1 Kyle Switch 2026-09-29  3932  	}
9af9a816821365e David Yang  2026-08-31  3933  }
9af9a816821365e David Yang  2026-08-31  3934  

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-06 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 11:30 drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-10-06 12:02 kernel test robot

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.