[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202504071003.NtmGvvqC-lkp@intel.com>
Date: Mon, 7 Apr 2025 10:10:02 +0800
From: kernel test robot <lkp@...el.com>
To: Charles Keepax <ckeepax@...nsource.cirrus.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: sound/soc/soc-ops-test.c:520:1: warning: the frame size of 1304
bytes is larger than 1280 bytes
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0af2f6be1b4281385b618cb86ad946eded089ac8
commit: 7a24b876ad8cdd56457e881d384a038922b508c3 ASoC: ops-test: Add some basic kunit tests for soc-ops
date: 3 weeks ago
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20250407/202504071003.NtmGvvqC-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250407/202504071003.NtmGvvqC-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504071003.NtmGvvqC-lkp@intel.com/
All warnings (new ones prefixed by >>):
sound/soc/soc-ops-test.c: In function 'soc_ops_test_access':
>> sound/soc/soc-ops-test.c:520:1: warning: the frame size of 1304 bytes is larger than 1280 bytes [-Wframe-larger-than=]
520 | }
| ^
vim +520 sound/soc/soc-ops-test.c
475
476 static void soc_ops_test_access(struct kunit *test)
477 {
478 struct soc_ops_test_priv *priv = test->priv;
479 const struct access_test_param *param = test->param_value;
480 struct snd_kcontrol kctl = {
481 .private_data = &priv->component,
482 .private_value = (unsigned long)¶m->mc,
483 };
484 struct snd_ctl_elem_value result;
485 unsigned int val;
486 int ret;
487
488 ret = regmap_write(priv->component.regmap, 0x0, param->init);
489 KUNIT_ASSERT_FALSE(test, ret);
490 ret = regmap_write(priv->component.regmap, 0x1, param->init);
491 KUNIT_ASSERT_FALSE(test, ret);
492
493 result.value.integer.value[0] = param->lctl;
494 result.value.integer.value[1] = param->rctl;
495
496 ret = param->put(&kctl, &result);
497 KUNIT_ASSERT_EQ(test, ret, param->ret);
498 if (ret < 0)
499 return;
500
501 ret = regmap_read(priv->component.regmap, 0x0, &val);
502 KUNIT_ASSERT_FALSE(test, ret);
503 KUNIT_EXPECT_EQ(test, val, (param->init & ~param->lmask) | param->lreg);
504
505 ret = regmap_read(priv->component.regmap, 0x1, &val);
506 KUNIT_ASSERT_FALSE(test, ret);
507 KUNIT_EXPECT_EQ(test, val, (param->init & ~param->rmask) | param->rreg);
508
509 result.value.integer.value[0] = 0;
510 result.value.integer.value[1] = 0;
511
512 ret = param->get(&kctl, &result);
513 KUNIT_ASSERT_GE(test, ret, 0);
514
515 KUNIT_EXPECT_EQ(test, result.value.integer.value[0], param->lctl);
516 if (param->layout != SOC_OPS_TEST_SINGLE)
517 KUNIT_EXPECT_EQ(test, result.value.integer.value[1], param->rctl);
518 else
519 KUNIT_EXPECT_EQ(test, result.value.integer.value[1], 0);
> 520 }
521
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists