All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2021-09-03 20:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03 20:22 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-03 20:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 20:22 [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' kernel test robot

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.