mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: sound/soc/soc-ops-test.c:520:1: warning: the frame size of 1304 bytes is larger than 1280 bytes
Date: Mon, 7 Apr 2025 10:10:02 +0800	[thread overview]
Message-ID: <202504071003.NtmGvvqC-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-04-07  2:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202504071003.NtmGvvqC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@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 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®