lkml.org 
[lkml]   [2021]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsound/soc/mediatek/mt8192/mt8192-afe-pcm.c:2368:32: warning: unused variable 'mt8192_afe_pm_ops'
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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-20 18:17    [W:0.193 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site