From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared
Date: Tue, 06 Oct 2026 19:30:16 +0800 [thread overview]
Message-ID: <202610061956.2FNvr49S-lkp@intel.com> (raw)
::::::
:::::: 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
next reply other threads:[~2026-10-06 11:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 11:30 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-10-06 12:02 drivers/net/dsa/motorcomm/chip.c:3928:36: error: 'priv' undeclared kernel test robot
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=202610061956.2FNvr49S-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@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.