From: kernel test robot <lkp@intel.com>
To: Jerry Wu <w.7erry@foxmail.com>, vladimir.oltean@nxp.com
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Jerry Wu <w.7erry@foxmail.com>
Subject: Re: [PATCH] Prevent crash when adding interface under a lag
Date: Tue, 23 Dec 2025 19:58:03 +0800 [thread overview]
Message-ID: <202512231955.Jle1VCFu-lkp@intel.com> (raw)
In-Reply-To: <tencent_9E2B81D645D04DFE191C86F128212F842B05@qq.com>
Hi Jerry,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.19-rc2 next-20251219]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jerry-Wu/Prevent-crash-when-adding-interface-under-a-lag/20251221-013514
base: linus/master
patch link: https://lore.kernel.org/r/tencent_9E2B81D645D04DFE191C86F128212F842B05%40qq.com
patch subject: [PATCH] Prevent crash when adding interface under a lag
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20251223/202512231955.Jle1VCFu-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251223/202512231955.Jle1VCFu-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/202512231955.Jle1VCFu-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/bitmap.h:11,
from include/linux/cpumask.h:11,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/debugobjects.h:6,
from include/linux/timer.h:8,
from include/linux/netdevice.h:24,
from include/linux/if_bridge.h:12,
from include/linux/dsa/ocelot.h:8,
from drivers/net/ethernet/mscc/ocelot.c:7:
drivers/net/ethernet/mscc/ocelot.c: In function 'ocelot_set_aggr_pgids':
>> include/linux/find.h:586:63: error: passing argument 3 of 'find_next_bit' makes integer from pointer without a cast [-Wint-conversion]
586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^~~~~
| |
| struct ocelot_port *
drivers/net/ethernet/mscc/ocelot.c:2322:17: note: in expansion of macro 'for_each_set_bit'
2322 | for_each_set_bit(port, &bond_mask, ocelot->num_phys_ports) {
| ^~~~~~~~~~~~~~~~
include/linux/find.h:61:43: note: expected 'long unsigned int' but argument is of type 'struct ocelot_port *'
61 | unsigned long offset)
| ~~~~~~~~~~~~~~^~~~~~
>> include/linux/find.h:586:31: error: assignment to 'struct ocelot_port *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion]
586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^
drivers/net/ethernet/mscc/ocelot.c:2322:17: note: in expansion of macro 'for_each_set_bit'
2322 | for_each_set_bit(port, &bond_mask, ocelot->num_phys_ports) {
| ^~~~~~~~~~~~~~~~
include/linux/find.h:586:77: warning: comparison between pointer and integer
586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^
drivers/net/ethernet/mscc/ocelot.c:2322:17: note: in expansion of macro 'for_each_set_bit'
2322 | for_each_set_bit(port, &bond_mask, ocelot->num_phys_ports) {
| ^~~~~~~~~~~~~~~~
>> drivers/net/ethernet/mscc/ocelot.c:2323:72: error: array subscript is not an integer
2323 | struct ocelot_port *ocelot_port = ocelot->ports[port];
| ^
In file included from include/soc/mscc/ocelot_vcap.h:9,
from drivers/net/ethernet/mscc/ocelot.c:13:
>> include/soc/mscc/ocelot.h:923:55: error: invalid operands to binary * (have 'int' and 'struct ocelot_port *')
923 | __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri))
| ^
drivers/net/ethernet/mscc/ocelot.c:2329:25: note: in expansion of macro 'ocelot_write_rix'
2329 | ocelot_write_rix(ocelot, bond_mask,
| ^~~~~~~~~~~~~~~~
>> drivers/net/ethernet/mscc/ocelot.c:2333:62: error: assignment to 'u8' {aka 'unsigned char'} from 'struct ocelot_port *' makes integer from pointer without a cast [-Wint-conversion]
2333 | aggr_idx[num_active_ports++] = port;
| ^
>> drivers/net/ethernet/mscc/ocelot.c:2352:27: error: assignment to 'struct ocelot_port *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
2352 | for (port = lag; port < ocelot->num_phys_ports; port++) {
| ^
drivers/net/ethernet/mscc/ocelot.c:2352:39: warning: comparison between pointer and integer
2352 | for (port = lag; port < ocelot->num_phys_ports; port++) {
| ^
drivers/net/ethernet/mscc/ocelot.c:2353:72: error: array subscript is not an integer
2353 | struct ocelot_port *ocelot_port = ocelot->ports[port];
| ^
In file included from include/linux/bits.h:5,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:9,
from include/asm-generic/bug.h:31,
from arch/parisc/include/asm/bug.h:97,
from include/linux/ktime.h:24,
from include/linux/timer.h:6:
>> include/vdso/bits.h:7:40: error: invalid operands to binary << (have 'long unsigned int' and 'struct ocelot_port *')
7 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/net/ethernet/mscc/ocelot.c:2359:44: note: in expansion of macro 'BIT'
2359 | visited |= BIT(port);
| ^~~
vim +586 include/linux/find.h
6b8ecb84f8f6401 include/asm-generic/bitops/find.h Yury Norov 2021-08-14 584
bc9d6635c293a2a include/linux/find.h Yury Norov 2021-08-14 585 #define for_each_set_bit(bit, addr, size) \
fdae96a3fc7f70e include/linux/find.h Yury Norov 2022-09-19 @586 for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
bc9d6635c293a2a include/linux/find.h Yury Norov 2021-08-14 587
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-12-23 11:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-20 17:32 [PATCH] Prevent crash when adding interface under a lag Jerry Wu
2025-12-20 17:57 ` Vladimir Oltean
2025-12-20 18:01 ` Vladimir Oltean
2025-12-23 7:35 ` kernel test robot
2025-12-23 11:58 ` kernel test robot [this message]
2025-12-23 15:35 ` 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=202512231955.Jle1VCFu-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=vladimir.oltean@nxp.com \
--cc=w.7erry@foxmail.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