Skip to contentSkip to conversation

net/devlink/rate.c:382:1: warning: the frame size of 1472 bytes is larger than 1024 bytes

PATCH kernel test robot 1 participant 1 message Jul 17, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e8352908bdcd2d0bcf0aca8c69fae85fd5ea5edb
commit: 566e8f108fc7847f2a8676ec6a101d37b7dd0fb4 [5827/10441] devlink: Extend devlink rate API with traffic classes bandwidth management
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20250717/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250717/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

net/devlink/rate.c: In function 'devlink_nl_rate_tc_bw_parse':

>> net/devlink/rate.c:382:1: warning: the frame size of 1472 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     382 | }
         | ^

vim +382 net/devlink/rate.c

344
345 static int devlink_nl_rate_tc_bw_parse(struct nlattr *parent_nest, u32 *tc_bw,
346 unsigned long *bitmap,
347 struct netlink_ext_ack *extack)
348 {
349 struct nlattr *tb[DEVLINK_ATTR_MAX + 1];
350 u8 tc_index;
351 int err;
352
353 err = nla_parse_nested(tb, DEVLINK_ATTR_MAX, parent_nest,
354 devlink_dl_rate_tc_bws_nl_policy, extack);
355 if (err)
356 return err;
357
358 if (!tb[DEVLINK_ATTR_RATE_TC_INDEX]) {
359 NL_SET_ERR_ATTR_MISS(extack, parent_nest,
360 DEVLINK_ATTR_RATE_TC_INDEX);
361 return -EINVAL;
362 }
363
364 tc_index = nla_get_u8(tb[DEVLINK_ATTR_RATE_TC_INDEX]);
365
366 if (!tb[DEVLINK_ATTR_RATE_TC_BW]) {
367 NL_SET_ERR_ATTR_MISS(extack, parent_nest,
368 DEVLINK_ATTR_RATE_TC_BW);
369 return -EINVAL;
370 }
371
372 if (test_and_set_bit(tc_index, bitmap)) {
373 NL_SET_ERR_MSG_FMT(extack,
374 "Duplicate traffic class index specified (%u)",
375 tc_index);
376 return -EINVAL;
377 }
378
379 tc_bw[tc_index] = nla_get_u32(tb[DEVLINK_ATTR_RATE_TC_BW]);
380
381 return 0;

 > 382	}

383

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