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:5.4-2.3.x-imx 13045/16543] sound/soc/fsl/fsl_esai_client.c:81:5: warning: no previous prototype for 'fsl_esai_client_pcm_trigger'
Date: Thu, 14 Jan 2021 14:11:24 +0800	[thread overview]
Message-ID: <202101141420.DVEEmVRc-lkp@intel.com> (raw)

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

tree:   https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head:   a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: d5986dc1d41899a11bd636fe337ef7d503183683 [13045/16543] MLK-24612-1: ASoC: fsl_esai: Add esai client driver
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # 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 5.4-2.3.x-imx
        git checkout d5986dc1d41899a11bd636fe337ef7d503183683
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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 'fsl_esai_client_pcm_trigger' [-Wmissing-prototypes]
      81 | int fsl_esai_client_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GPIO_MXC
   Depends on GPIOLIB && HAS_IOMEM && ARCH_MXC
   Selected by
   - GPIO_MXC_PAD_WAKEUP && GPIOLIB && HAS_IOMEM && IMX_SCU


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

                 reply	other threads:[~2021-01-14  6:11 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=202101141420.DVEEmVRc-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.