All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [android-common:android-4.19-stable 15309/19507] sound/soc/intel/skylake/skl-messages.c:108:12: warning: stack frame size of 2072 bytes in function 'skl_dsp_prepare'
Date: Thu, 19 Nov 2020 00:49:33 +0800	[thread overview]
Message-ID: <202011190030.8HM7eY64-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4338 bytes --]

Hi Karthikeyan,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android-4.19-stable
head:   7f0c07bea50da99ebb98f126b9537225268f176e
commit: 8c62976a01249b4da610adc1d4d2ead9185a6131 [15309/19507] ANDROID: GKI: ALSA: pcm: add locks for accessing runtime resource
config: x86_64-randconfig-a012-20201118 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android-4.19-stable
        git checkout 8c62976a01249b4da610adc1d4d2ead9185a6131
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/soc/intel/skylake/skl-messages.c:108:12: warning: stack frame size of 2072 bytes in function 'skl_dsp_prepare' [-Wframe-larger-than=]
   static int skl_dsp_prepare(struct device *dev, unsigned int format,
              ^
   1 warning generated.

vim +/skl_dsp_prepare +108 sound/soc/intel/skylake/skl-messages.c

92eb4f62cbac02 Jeeja KP       2016-03-11  107  
92eb4f62cbac02 Jeeja KP       2016-03-11 @108  static int skl_dsp_prepare(struct device *dev, unsigned int format,
92eb4f62cbac02 Jeeja KP       2016-03-11  109  			unsigned int size, struct snd_dma_buffer *dmab)
92eb4f62cbac02 Jeeja KP       2016-03-11  110  {
76f56fae1cf904 Rakesh Ughreja 2018-06-01  111  	struct hdac_bus *bus = dev_get_drvdata(dev);
92eb4f62cbac02 Jeeja KP       2016-03-11  112  	struct hdac_ext_stream *estream;
92eb4f62cbac02 Jeeja KP       2016-03-11  113  	struct hdac_stream *stream;
92eb4f62cbac02 Jeeja KP       2016-03-11  114  	struct snd_pcm_substream substream;
92eb4f62cbac02 Jeeja KP       2016-03-11  115  	int ret;
92eb4f62cbac02 Jeeja KP       2016-03-11  116  
92eb4f62cbac02 Jeeja KP       2016-03-11  117  	if (!bus)
92eb4f62cbac02 Jeeja KP       2016-03-11  118  		return -ENODEV;
92eb4f62cbac02 Jeeja KP       2016-03-11  119  
92eb4f62cbac02 Jeeja KP       2016-03-11  120  	memset(&substream, 0, sizeof(substream));
92eb4f62cbac02 Jeeja KP       2016-03-11  121  	substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
92eb4f62cbac02 Jeeja KP       2016-03-11  122  
76f56fae1cf904 Rakesh Ughreja 2018-06-01  123  	estream = snd_hdac_ext_stream_assign(bus, &substream,
92eb4f62cbac02 Jeeja KP       2016-03-11  124  					HDAC_EXT_STREAM_TYPE_HOST);
92eb4f62cbac02 Jeeja KP       2016-03-11  125  	if (!estream)
92eb4f62cbac02 Jeeja KP       2016-03-11  126  		return -ENODEV;
92eb4f62cbac02 Jeeja KP       2016-03-11  127  
92eb4f62cbac02 Jeeja KP       2016-03-11  128  	stream = hdac_stream(estream);
92eb4f62cbac02 Jeeja KP       2016-03-11  129  
92eb4f62cbac02 Jeeja KP       2016-03-11  130  	/* assign decouple host dma channel */
92eb4f62cbac02 Jeeja KP       2016-03-11  131  	ret = snd_hdac_dsp_prepare(stream, format, size, dmab);
92eb4f62cbac02 Jeeja KP       2016-03-11  132  	if (ret < 0)
92eb4f62cbac02 Jeeja KP       2016-03-11  133  		return ret;
92eb4f62cbac02 Jeeja KP       2016-03-11  134  
92eb4f62cbac02 Jeeja KP       2016-03-11  135  	skl_dsp_setup_spib(dev, size, stream->stream_tag, true);
92eb4f62cbac02 Jeeja KP       2016-03-11  136  
92eb4f62cbac02 Jeeja KP       2016-03-11  137  	return stream->stream_tag;
92eb4f62cbac02 Jeeja KP       2016-03-11  138  }
92eb4f62cbac02 Jeeja KP       2016-03-11  139  

:::::: The code at line 108 was first introduced by commit
:::::: 92eb4f62cbac0211e43ee4a6715ee2ea43167e88 ASoC: Intel: Bxtn: Add Broxton DSP support

:::::: TO: Jeeja KP <jeeja.kp@intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32892 bytes --]

                 reply	other threads:[~2020-11-18 16:49 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=202011190030.8HM7eY64-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.