All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [asahilinux:touchpad/wip 65/82] sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans'
Date: Thu, 16 Dec 2021 07:18:14 +0800	[thread overview]
Message-ID: <202112160704.pOSNBaTM-lkp@intel.com> (raw)

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

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(a)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@intel.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(a)lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Martin Povišer" <povik@protonmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Hector Martin <marcan@marcan.st>
Subject: [asahilinux:touchpad/wip 65/82] sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans'
Date: Thu, 16 Dec 2021 07:18:14 +0800	[thread overview]
Message-ID: <202112160704.pOSNBaTM-lkp@intel.com> (raw)

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@intel.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

             reply	other threads:[~2021-12-15 23:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 23:18 kernel test robot [this message]
2021-12-15 23:18 ` [asahilinux:touchpad/wip 65/82] sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans' kernel test robot

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=202112160704.pOSNBaTM-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.