mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sound/soc/soc-ops-test.c:520:1: warning: the frame size of 1304 bytes is larger than 1280 bytes
@ 2025-04-07  2:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-07  2:10 UTC (permalink / raw)
  To: Charles Keepax; +Cc: oe-kbuild-all, linux-kernel, Mark Brown

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@intel.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)&param->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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-04-07  2:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-07  2:10 sound/soc/soc-ops-test.c:520:1: warning: the frame size of 1304 bytes is larger than 1280 bytes kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®