[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112160704.pOSNBaTM-lkp@intel.com>
Date: Thu, 16 Dec 2021 07:18:14 +0800
From: kernel test robot <lkp@...el.com>
To: Martin PoviĊĦer <povik@...tonmail.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Hector Martin <marcan@...can.st>
Subject: [asahilinux:touchpad/wip 65/82] sound/soc/apple/mca.c:649:6:
warning: no previous prototype for 'apple_mca_release_dma_chans'
tree: https://github.com/AsahiLinux/linux touchpad/wip
head: a2281d64fdbcbab0dae68c6ea75bd5b548332e06
commit: 69522c02d34bab7ab9e5da1a294a7387e9ca5f8c [65/82] ASoC: apple-mca: Add platform driver for Apple SoCs
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20211216/202112160704.pOSNBaTM-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.2.0
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
# https://github.com/AsahiLinux/linux/commit/69522c02d34bab7ab9e5da1a294a7387e9ca5f8c
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux touchpad/wip
git checkout 69522c02d34bab7ab9e5da1a294a7387e9ca5f8c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash drivers/clk/ drivers/dma/ sound/soc/apple/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
sound/soc/apple/mca.c: In function 'mca_configure_serdes':
sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
210 | serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
| ^~~~~~~~~~
sound/soc/apple/mca.c: In function 'mca_set_runtime_hwparams':
sound/soc/apple/mca.c:528:37: warning: unused variable 'rtd' [-Wunused-variable]
528 | struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
| ^~~
sound/soc/apple/mca.c: At top level:
>> sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans' [-Wmissing-prototypes]
649 | void apple_mca_release_dma_chans(struct mca_data *mca)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/apple/mca.c:664:6: warning: no previous prototype for 'apple_mca_put_clks' [-Wmissing-prototypes]
664 | void apple_mca_put_clks(struct mca_data *mca)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/apple_mca_release_dma_chans +649 sound/soc/apple/mca.c
648
> 649 void apple_mca_release_dma_chans(struct mca_data *mca)
650 {
651 int i;
652 struct mca_route *route;
653
654 list_for_each_entry(route, &mca->routes, list) {
655 for_each_pcm_streams(i) {
656 if (!route->chan[i])
657 continue;
658 dma_release_channel(route->chan[i]);
659 route->chan[i] = NULL;
660 }
661 }
662 }
663
> 664 void apple_mca_put_clks(struct mca_data *mca)
665 {
666 struct mca_route *route;
667 int i;
668
669 list_for_each_entry(route, &mca->routes, list) {
670 if (!route->clk_parent)
671 continue;
672 //clk_rate_exclusive_put(route->clk_parent);
673 route->clk_parent = NULL;
674 }
675
676 for (i = 0; i < mca->nclusters; i++) {
677 if (!mca->clk_parents[i])
678 continue;
679 clk_put(mca->clk_parents[i]);
680 mca->clk_parents[i] = NULL;
681 }
682 }
683
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists