All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Hartmut Knaack <knaack.h-Mmb7MZpHnFY@public.gmane.org>,
	Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>,
	Peter Meerwald-Stadler
	<pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>,
	Jaroslav Kysela <perex-/Fr2/VpizcU@public.gmane.org>,
	Takashi Iwai <tiwai-IBi9RG/b67k@public.gmane.org>,
	Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
	Alexandre Torgue <alexandre.torgue-qxv4g6HH51o@public.gmane.org>,
	linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	arnaud.pouliquen-qxv4g6HH51o@public.gmane.org,
	Maxime Coquelin
	<mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [alsa-devel] [PATCH v5 13/13] ASoC: stm32: add DFSDM DAI support
Date: Sat, 2 Dec 2017 03:16:39 +0800	[thread overview]
Message-ID: <201712020302.G9eOX3vL%fengguang.wu@intel.com> (raw)
In-Reply-To: <1511881557-28596-14-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>

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

Hi Arnaud,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.15-rc1 next-20171201]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/Add-STM32-DFSDM-support/20171201-215409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: tile-allyesconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   sound/soc/stm/stm32_adfsdm.c: In function 'stm32_afsdm_pcm_cb':
>> sound/soc/stm/stm32_adfsdm.c:173:2: warning: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' [-Wformat]

vim +173 sound/soc/stm/stm32_adfsdm.c

   161	
   162	static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private)
   163	{
   164		struct stm32_adfsdm_priv *priv = private;
   165		struct snd_soc_pcm_runtime *rtd = priv->substream->private_data;
   166		u8 *pcm_buff = priv->pcm_buff;
   167		u8 *src_buff = (u8 *)data;
   168		unsigned int buff_size = snd_pcm_lib_buffer_bytes(priv->substream);
   169		unsigned int period_size = snd_pcm_lib_period_bytes(priv->substream);
   170		unsigned int old_pos = priv->pos;
   171		unsigned int cur_size = size;
   172	
 > 173		dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %d\n",
   174			__func__, &pcm_buff[priv->pos], priv->pos, size);
   175	
   176		if ((priv->pos + size) > buff_size) {
   177			memcpy(&pcm_buff[priv->pos], src_buff, buff_size - priv->pos);
   178			cur_size -= buff_size - priv->pos;
   179			priv->pos = 0;
   180		}
   181	
   182		memcpy(&pcm_buff[priv->pos], &src_buff[size - cur_size], cur_size);
   183		priv->pos = (priv->pos + cur_size) % buff_size;
   184	
   185		if (cur_size != size || (old_pos && (old_pos % period_size < size)))
   186			snd_pcm_period_elapsed(priv->substream);
   187	
   188		return 0;
   189	}
   190	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50547 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Cc: kbuild-all@01.org, Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
	Alexandre Torgue <alexandre.torgue@st.com>,
	linux-iio@vger.kernel.org, arnaud.pouliquen@st.com,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [alsa-devel] [PATCH v5 13/13] ASoC: stm32: add DFSDM DAI support
Date: Sat, 2 Dec 2017 03:16:39 +0800	[thread overview]
Message-ID: <201712020302.G9eOX3vL%fengguang.wu@intel.com> (raw)
In-Reply-To: <1511881557-28596-14-git-send-email-arnaud.pouliquen@st.com>

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

Hi Arnaud,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.15-rc1 next-20171201]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/Add-STM32-DFSDM-support/20171201-215409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: tile-allyesconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   sound/soc/stm/stm32_adfsdm.c: In function 'stm32_afsdm_pcm_cb':
>> sound/soc/stm/stm32_adfsdm.c:173:2: warning: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' [-Wformat]

vim +173 sound/soc/stm/stm32_adfsdm.c

   161	
   162	static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private)
   163	{
   164		struct stm32_adfsdm_priv *priv = private;
   165		struct snd_soc_pcm_runtime *rtd = priv->substream->private_data;
   166		u8 *pcm_buff = priv->pcm_buff;
   167		u8 *src_buff = (u8 *)data;
   168		unsigned int buff_size = snd_pcm_lib_buffer_bytes(priv->substream);
   169		unsigned int period_size = snd_pcm_lib_period_bytes(priv->substream);
   170		unsigned int old_pos = priv->pos;
   171		unsigned int cur_size = size;
   172	
 > 173		dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %d\n",
   174			__func__, &pcm_buff[priv->pos], priv->pos, size);
   175	
   176		if ((priv->pos + size) > buff_size) {
   177			memcpy(&pcm_buff[priv->pos], src_buff, buff_size - priv->pos);
   178			cur_size -= buff_size - priv->pos;
   179			priv->pos = 0;
   180		}
   181	
   182		memcpy(&pcm_buff[priv->pos], &src_buff[size - cur_size], cur_size);
   183		priv->pos = (priv->pos + cur_size) % buff_size;
   184	
   185		if (cur_size != size || (old_pos && (old_pos % period_size < size)))
   186			snd_pcm_period_elapsed(priv->substream);
   187	
   188		return 0;
   189	}
   190	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50547 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: lkp@intel.com (kbuild test robot)
To: linux-arm-kernel@lists.infradead.org
Subject: [alsa-devel] [PATCH v5 13/13] ASoC: stm32: add DFSDM DAI support
Date: Sat, 2 Dec 2017 03:16:39 +0800	[thread overview]
Message-ID: <201712020302.G9eOX3vL%fengguang.wu@intel.com> (raw)
In-Reply-To: <1511881557-28596-14-git-send-email-arnaud.pouliquen@st.com>

Hi Arnaud,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.15-rc1 next-20171201]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/Add-STM32-DFSDM-support/20171201-215409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: tile-allyesconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   sound/soc/stm/stm32_adfsdm.c: In function 'stm32_afsdm_pcm_cb':
>> sound/soc/stm/stm32_adfsdm.c:173:2: warning: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' [-Wformat]

vim +173 sound/soc/stm/stm32_adfsdm.c

   161	
   162	static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private)
   163	{
   164		struct stm32_adfsdm_priv *priv = private;
   165		struct snd_soc_pcm_runtime *rtd = priv->substream->private_data;
   166		u8 *pcm_buff = priv->pcm_buff;
   167		u8 *src_buff = (u8 *)data;
   168		unsigned int buff_size = snd_pcm_lib_buffer_bytes(priv->substream);
   169		unsigned int period_size = snd_pcm_lib_period_bytes(priv->substream);
   170		unsigned int old_pos = priv->pos;
   171		unsigned int cur_size = size;
   172	
 > 173		dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %d\n",
   174			__func__, &pcm_buff[priv->pos], priv->pos, size);
   175	
   176		if ((priv->pos + size) > buff_size) {
   177			memcpy(&pcm_buff[priv->pos], src_buff, buff_size - priv->pos);
   178			cur_size -= buff_size - priv->pos;
   179			priv->pos = 0;
   180		}
   181	
   182		memcpy(&pcm_buff[priv->pos], &src_buff[size - cur_size], cur_size);
   183		priv->pos = (priv->pos + cur_size) % buff_size;
   184	
   185		if (cur_size != size || (old_pos && (old_pos % period_size < size)))
   186			snd_pcm_period_elapsed(priv->substream);
   187	
   188		return 0;
   189	}
   190	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 50547 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171202/a7485b14/attachment-0001.gz>

  parent reply	other threads:[~2017-12-01 19:16 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-28 15:05 [PATCH v5 00/13] Add STM32 DFSDM support Arnaud Pouliquen
2017-11-28 15:05 ` Arnaud Pouliquen
2017-11-28 15:05 ` Arnaud Pouliquen
2017-11-28 15:05 ` [PATCH v5 01/13] iio: Add hardware consumer buffer support Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05 ` [PATCH v5 02/13] docs: driver-api: add iio hw consumer section Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
     [not found]   ` <1511881557-28596-3-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2018-01-10 11:13     ` Applied "docs: driver-api: add iio hw consumer section" to the asoc tree Mark Brown
2018-01-10 11:13       ` Mark Brown
2018-01-10 11:13       ` Mark Brown
2017-11-28 15:05 ` [PATCH v5 03/13] IIO: hw_consumer: add devm_iio_hw_consumer_alloc Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
     [not found]   ` <1511881557-28596-4-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2018-01-10 11:13     ` Applied "IIO: hw_consumer: add devm_iio_hw_consumer_alloc" to the asoc tree Mark Brown
2018-01-10 11:13       ` Mark Brown
2018-01-10 11:13       ` Mark Brown
2017-11-28 15:05 ` [PATCH v5 05/13] IIO: Add DT bindings for sigma delta adc modulator Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05 ` [PATCH v5 06/13] IIO: ADC: add sigma delta modulator support Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
2017-11-28 15:05   ` Arnaud Pouliquen
     [not found] ` <1511881557-28596-1-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-28 15:05   ` [PATCH v5 04/13] IIO: inkern: API for manipulating channel attributes Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
     [not found]     ` <1511881557-28596-5-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-11-29  6:20       ` Phil Reid
2017-11-29  6:20         ` Phil Reid
2017-11-29  6:20         ` Phil Reid
2017-12-01 14:41       ` [alsa-devel] " kbuild test robot
2017-12-01 14:41         ` kbuild test robot
2017-12-01 14:41         ` kbuild test robot
2017-12-01 15:12       ` kbuild test robot
2017-12-01 15:12         ` kbuild test robot
2017-12-01 15:12         ` kbuild test robot
2017-11-28 15:05   ` [PATCH v5 07/13] IIO: add DT bindings for stm32 DFSDM filter Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05   ` [PATCH v5 08/13] IIO: ADC: add stm32 DFSDM core support Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05   ` [PATCH v5 09/13] IIO: ADC: add STM32 DFSDM sigma delta ADC support Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05   ` [PATCH v5 10/13] IIO: ADC: add stm32 DFSDM support for PDM microphone Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05   ` [PATCH v5 11/13] IIO: consumer: allow to set buffer sizes Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05   ` [PATCH v5 12/13] ASoC: add bindings for stm32 DFSDM filter Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05   ` [PATCH v5 13/13] ASoC: stm32: add DFSDM DAI support Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-28 15:05     ` Arnaud Pouliquen
2017-11-29 15:37     ` Mark Brown
2017-11-29 15:37       ` Mark Brown
2017-11-29 15:37       ` Mark Brown
     [not found]     ` <1511881557-28596-14-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-12-01 14:41       ` [alsa-devel] " kbuild test robot
2017-12-01 14:41         ` kbuild test robot
2017-12-01 14:41         ` kbuild test robot
2017-12-01 19:16       ` kbuild test robot [this message]
2017-12-01 19:16         ` kbuild test robot
2017-12-01 19:16         ` kbuild 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=201712020302.G9eOX3vL%fengguang.wu@intel.com \
    --to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=alexandre.torgue-qxv4g6HH51o@public.gmane.org \
    --cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
    --cc=arnaud.pouliquen-qxv4g6HH51o@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
    --cc=knaack.h-Mmb7MZpHnFY@public.gmane.org \
    --cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \
    --cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=perex-/Fr2/VpizcU@public.gmane.org \
    --cc=pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=tiwai-IBi9RG/b67k@public.gmane.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.