All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [freescale-fslc:pr/434 13045/20850] sound/soc/fsl/fsl_esai_client.c:81:5: warning: no previous prototype for function 'fsl_esai_client_pcm_trigger'
Date: Sat, 04 Sep 2021 04:22:25 +0800	[thread overview]
Message-ID: <202109040414.KSwUU6Oc-lkp@intel.com> (raw)

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

tree:   https://github.com/Freescale/linux-fslc pr/434
head:   79c30f58ebe34942bb109d786cefbd5e93fa54aa
commit: d5986dc1d41899a11bd636fe337ef7d503183683 [13045/20850] MLK-24612-1: ASoC: fsl_esai: Add esai client driver
config: x86_64-randconfig-a014-20210904 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a)
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/Freescale/linux-fslc/commit/d5986dc1d41899a11bd636fe337ef7d503183683
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc pr/434
        git checkout d5986dc1d41899a11bd636fe337ef7d503183683
        # 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/fsl/fsl_esai_client.c:81:5: warning: no previous prototype for function 'fsl_esai_client_pcm_trigger' [-Wmissing-prototypes]
   int fsl_esai_client_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
       ^
   sound/soc/fsl/fsl_esai_client.c:81:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int fsl_esai_client_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
   ^
   static 
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_SOC_FSL_DSP_AUDIOMIX
   Depends on SOUND && !UML && SND && SND_SOC && MFD_IMX_AUDIOMIX
   Selected by
   - SND_SOC_FSL_DSP && SOUND && !UML && SND && SND_SOC


vim +/fsl_esai_client_pcm_trigger +81 sound/soc/fsl/fsl_esai_client.c

    80	
  > 81	int fsl_esai_client_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
    82	{
    83		struct snd_soc_pcm_runtime *rtd = substream->private_data;
    84		struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
    85		struct fsl_esai_client *client = snd_soc_dai_get_drvdata(cpu_dai);
    86		bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
    87	
    88		switch (cmd) {
    89		case SNDRV_PCM_TRIGGER_START:
    90		case SNDRV_PCM_TRIGGER_RESUME:
    91		case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
    92			/* These info are needed by esai mix*/
    93			client->dma[tx].buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
    94			client->dma[tx].period_bytes = snd_pcm_lib_period_bytes(substream);
    95			client->dma[tx].buffer_offset = 0;
    96			client->dma[tx].active = true;
    97			break;
    98		case SNDRV_PCM_TRIGGER_SUSPEND:
    99		case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
   100		case SNDRV_PCM_TRIGGER_STOP:
   101			client->dma[tx].active = false;
   102			break;
   103		default:
   104			return -EINVAL;
   105		}
   106	
   107		return 0;
   108	}
   109	

---
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: 32239 bytes --]

                 reply	other threads:[~2021-09-03 20:22 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=202109040414.KSwUU6Oc-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.