mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiaxin Yu <jiaxin.yu@mediatek.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>
Subject: sound/soc/mediatek/mt8192/mt8192-afe-pcm.c:2368:32: warning: unused variable 'mt8192_afe_pm_ops'
Date: Sun, 21 Nov 2021 01:16:14 +0800	[thread overview]
Message-ID: <202111210105.IEGJcm57-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a90af8f15bdc9449ee2d24e1d73fa3f7e8633f81
commit: 125ab5d588b0b3b842064c4d53a666ca74521ae8 ASoC: mediatek: mt8192: add platform driver
date:   1 year, 1 month ago
config: arm64-randconfig-r024-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=125ab5d588b0b3b842064c4d53a666ca74521ae8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 125ab5d588b0b3b842064c4d53a666ca74521ae8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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/mediatek/mt8192/mt8192-afe-pcm.c:70:5: warning: no previous prototype for function 'mt8192_get_memif_pbuf_size' [-Wmissing-prototypes]
   int mt8192_get_memif_pbuf_size(struct snd_pcm_substream *substream)
       ^
   sound/soc/mediatek/mt8192/mt8192-afe-pcm.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int mt8192_get_memif_pbuf_size(struct snd_pcm_substream *substream)
   ^
   static 
>> sound/soc/mediatek/mt8192/mt8192-afe-pcm.c:2368:32: warning: unused variable 'mt8192_afe_pm_ops' [-Wunused-const-variable]
   static const struct dev_pm_ops mt8192_afe_pm_ops = {
                                  ^
   2 warnings generated.


vim +/mt8192_afe_pm_ops +2368 sound/soc/mediatek/mt8192/mt8192-afe-pcm.c

  2367	
> 2368	static const struct dev_pm_ops mt8192_afe_pm_ops = {
  2369		SET_RUNTIME_PM_OPS(mt8192_afe_runtime_suspend,
  2370				   mt8192_afe_runtime_resume, NULL)
  2371	};
  2372	

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

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

                 reply	other threads:[~2021-11-20 17:17 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=202111210105.IEGJcm57-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=jiaxin.yu@mediatek.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@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®