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,
olivier moysan <olivier.moysan-qxv4g6HH51o@public.gmane.org>,
kernel-F5mvAk5X5gdBDgjK7y7TUQ@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,
Alexandre Torgue <alexandre.torgue-qxv4g6HH51o@public.gmane.org>
Subject: Re: [alsa-devel] [PATCH v3 05/11] IIO: ADC: add stm32 DFSDM support for Sigma delta ADC
Date: Mon, 20 Mar 2017 15:22:28 +0800 [thread overview]
Message-ID: <201703201522.JY2oSEMe%fengguang.wu@intel.com> (raw)
In-Reply-To: <1489759704-30217-6-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 26461 bytes --]
Hi Arnaud,
[auto build test WARNING on asoc/for-next]
[also build test WARNING on v4.11-rc3]
[cannot apply to iio/togreg next-20170310]
[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/20170320-133247
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/iio/hw_consumer.c:23:20: error: field 'buffer' has incomplete type
struct iio_buffer buffer;
^~~~~~
In file included from include/asm-generic/bug.h:13:0,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from drivers/iio/hw_consumer.c:3:
drivers/iio/hw_consumer.c: In function 'iio_buffer_to_hw_consumer_buffer':
include/linux/kernel.h:852:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
>> drivers/iio/hw_consumer.c:29:9: note: in expansion of macro 'container_of'
return container_of(buffer, struct hw_consumer_buffer, buffer);
^~~~~~~~~~~~
drivers/iio/hw_consumer.c: At top level:
drivers/iio/hw_consumer.c:40:21: error: variable 'iio_hw_buf_access' has initializer but incomplete type
static const struct iio_buffer_access_funcs iio_hw_buf_access = {
^~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/hw_consumer.c:41:2: error: unknown field 'release' specified in initializer
.release = &iio_hw_buf_release,
^
>> drivers/iio/hw_consumer.c:41:13: warning: excess elements in struct initializer
.release = &iio_hw_buf_release,
^
drivers/iio/hw_consumer.c:41:13: note: (near initialization for 'iio_hw_buf_access')
drivers/iio/hw_consumer.c:42:2: error: unknown field 'modes' specified in initializer
.modes = INDIO_BUFFER_HARDWARE,
^
In file included from drivers/iio/hw_consumer.c:7:0:
>> include/linux/iio/iio.h:353:32: warning: excess elements in struct initializer
#define INDIO_BUFFER_HARDWARE 0x08
^
>> drivers/iio/hw_consumer.c:42:11: note: in expansion of macro 'INDIO_BUFFER_HARDWARE'
.modes = INDIO_BUFFER_HARDWARE,
^~~~~~~~~~~~~~~~~~~~~
include/linux/iio/iio.h:353:32: note: (near initialization for 'iio_hw_buf_access')
#define INDIO_BUFFER_HARDWARE 0x08
^
>> drivers/iio/hw_consumer.c:42:11: note: in expansion of macro 'INDIO_BUFFER_HARDWARE'
.modes = INDIO_BUFFER_HARDWARE,
^~~~~~~~~~~~~~~~~~~~~
drivers/iio/hw_consumer.c: In function 'iio_hw_consumer_get_buffer':
drivers/iio/hw_consumer.c:66:2: error: implicit declaration of function 'iio_buffer_init' [-Werror=implicit-function-declaration]
iio_buffer_init(&buf->buffer);
^~~~~~~~~~~~~~~
drivers/iio/hw_consumer.c: In function 'iio_hw_consumer_alloc':
drivers/iio/hw_consumer.c:110:3: error: implicit declaration of function 'iio_buffer_put' [-Werror=implicit-function-declaration]
iio_buffer_put(&buf->buffer);
^~~~~~~~~~~~~~
drivers/iio/hw_consumer.c: In function 'iio_hw_consumer_enable':
drivers/iio/hw_consumer.c:135:9: error: implicit declaration of function 'iio_update_buffers' [-Werror=implicit-function-declaration]
ret = iio_update_buffers(buf->indio_dev, &buf->buffer, NULL);
^~~~~~~~~~~~~~~~~~
drivers/iio/hw_consumer.c: At top level:
drivers/iio/hw_consumer.c:40:45: error: storage size of 'iio_hw_buf_access' isn't known
static const struct iio_buffer_access_funcs iio_hw_buf_access = {
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from drivers/iio/buffer/industrialio-buffer-dma.c:17:0:
include/linux/iio/buffer-dma.h:107:20: error: field 'buffer' has incomplete type
struct iio_buffer buffer;
^~~~~~
drivers/iio/buffer/industrialio-buffer-dma.c: In function 'iio_buffer_block_release':
drivers/iio/buffer/industrialio-buffer-dma.c:104:2: error: implicit declaration of function 'iio_buffer_put' [-Werror=implicit-function-declaration]
iio_buffer_put(&block->queue->buffer);
^~~~~~~~~~~~~~
In file included from include/asm-generic/bug.h:13:0,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from drivers/iio/buffer/industrialio-buffer-dma.c:8:
drivers/iio/buffer/industrialio-buffer-dma.c: In function 'iio_buffer_to_queue':
include/linux/kernel.h:852:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
>> drivers/iio/buffer/industrialio-buffer-dma.c:163:9: note: in expansion of macro 'container_of'
return container_of(buf, struct iio_dma_buffer_queue, buffer);
^~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dma.c: In function 'iio_dma_buffer_alloc_block':
drivers/iio/buffer/industrialio-buffer-dma.c:188:2: error: implicit declaration of function 'iio_buffer_get' [-Werror=implicit-function-declaration]
iio_buffer_get(&queue->buffer);
^~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dma.c: In function 'iio_dma_buffer_read':
drivers/iio/buffer/industrialio-buffer-dma.c:489:16: error: dereferencing pointer to incomplete type 'struct iio_buffer'
if (n < buffer->bytes_per_datum)
^~
drivers/iio/buffer/industrialio-buffer-dma.c: In function 'iio_dma_buffer_init':
drivers/iio/buffer/industrialio-buffer-dma.c:614:2: error: implicit declaration of function 'iio_buffer_init' [-Werror=implicit-function-declaration]
iio_buffer_init(&queue->buffer);
^~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dma.c: In function 'iio_buffer_to_queue':
>> drivers/iio/buffer/industrialio-buffer-dma.c:164:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
--
In file included from drivers/iio/buffer/industrialio-buffer-dmaengine.c:17:0:
include/linux/iio/buffer-dma.h:107:20: error: field 'buffer' has incomplete type
struct iio_buffer buffer;
^~~~~~
In file included from include/asm-generic/bug.h:13:0,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from drivers/iio/buffer/industrialio-buffer-dmaengine.c:8:
drivers/iio/buffer/industrialio-buffer-dmaengine.c: In function 'iio_buffer_to_dmaengine_buffer':
include/linux/kernel.h:852:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
>> drivers/iio/buffer/industrialio-buffer-dmaengine.c:43:9: note: in expansion of macro 'container_of'
return container_of(buffer, struct dmaengine_buffer, queue.buffer);
^~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c: At top level:
drivers/iio/buffer/industrialio-buffer-dmaengine.c:109:21: error: variable 'iio_dmaengine_buffer_ops' has initializer but incomplete type
static const struct iio_buffer_access_funcs iio_dmaengine_buffer_ops = {
^~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:110:2: error: unknown field 'read_first_n' specified in initializer
.read_first_n = iio_dma_buffer_read,
^
>> drivers/iio/buffer/industrialio-buffer-dmaengine.c:110:18: warning: excess elements in struct initializer
.read_first_n = iio_dma_buffer_read,
^~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:110:18: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:111:2: error: unknown field 'set_bytes_per_datum' specified in initializer
.set_bytes_per_datum = iio_dma_buffer_set_bytes_per_datum,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:111:25: warning: excess elements in struct initializer
.set_bytes_per_datum = iio_dma_buffer_set_bytes_per_datum,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:111:25: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:112:2: error: unknown field 'set_length' specified in initializer
.set_length = iio_dma_buffer_set_length,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:112:16: warning: excess elements in struct initializer
.set_length = iio_dma_buffer_set_length,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:112:16: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:113:2: error: unknown field 'request_update' specified in initializer
.request_update = iio_dma_buffer_request_update,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:113:20: warning: excess elements in struct initializer
.request_update = iio_dma_buffer_request_update,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:113:20: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:114:2: error: unknown field 'enable' specified in initializer
.enable = iio_dma_buffer_enable,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:114:12: warning: excess elements in struct initializer
.enable = iio_dma_buffer_enable,
^~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:114:12: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:115:2: error: unknown field 'disable' specified in initializer
.disable = iio_dma_buffer_disable,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:115:13: warning: excess elements in struct initializer
.disable = iio_dma_buffer_disable,
^~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:115:13: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:116:2: error: unknown field 'data_available' specified in initializer
.data_available = iio_dma_buffer_data_available,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:116:20: warning: excess elements in struct initializer
.data_available = iio_dma_buffer_data_available,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:116:20: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:117:2: error: unknown field 'release' specified in initializer
.release = iio_dmaengine_buffer_release,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:117:13: warning: excess elements in struct initializer
.release = iio_dmaengine_buffer_release,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:117:13: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c:119:2: error: unknown field 'modes' specified in initializer
.modes = INDIO_BUFFER_HARDWARE,
^
In file included from drivers/iio/buffer/industrialio-buffer-dmaengine.c:15:0:
>> include/linux/iio/iio.h:353:32: warning: excess elements in struct initializer
#define INDIO_BUFFER_HARDWARE 0x08
^
>> drivers/iio/buffer/industrialio-buffer-dmaengine.c:119:11: note: in expansion of macro 'INDIO_BUFFER_HARDWARE'
.modes = INDIO_BUFFER_HARDWARE,
^~~~~~~~~~~~~~~~~~~~~
include/linux/iio/iio.h:353:32: note: (near initialization for 'iio_dmaengine_buffer_ops')
#define INDIO_BUFFER_HARDWARE 0x08
^
>> drivers/iio/buffer/industrialio-buffer-dmaengine.c:119:11: note: in expansion of macro 'INDIO_BUFFER_HARDWARE'
.modes = INDIO_BUFFER_HARDWARE,
^~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:120:2: error: unknown field 'flags' specified in initializer
.flags = INDIO_BUFFER_FLAG_FIXED_WATERMARK,
^
drivers/iio/buffer/industrialio-buffer-dmaengine.c:120:11: error: 'INDIO_BUFFER_FLAG_FIXED_WATERMARK' undeclared here (not in a function)
.flags = INDIO_BUFFER_FLAG_FIXED_WATERMARK,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c:120:11: warning: excess elements in struct initializer
drivers/iio/buffer/industrialio-buffer-dmaengine.c:120:11: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio/buffer/industrialio-buffer-dmaengine.c: In function 'iio_dmaengine_buffer_free':
drivers/iio/buffer/industrialio-buffer-dmaengine.c:206:2: error: implicit declaration of function 'iio_buffer_put' [-Werror=implicit-function-declaration]
iio_buffer_put(buffer);
^~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c: At top level:
drivers/iio/buffer/industrialio-buffer-dmaengine.c:109:45: error: storage size of 'iio_dmaengine_buffer_ops' isn't known
static const struct iio_buffer_access_funcs iio_dmaengine_buffer_ops = {
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/buffer/industrialio-buffer-dmaengine.c: In function 'iio_buffer_to_dmaengine_buffer':
>> drivers/iio/buffer/industrialio-buffer-dmaengine.c:44:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
--
In file included from drivers/iio//buffer/industrialio-buffer-dmaengine.c:17:0:
include/linux/iio/buffer-dma.h:107:20: error: field 'buffer' has incomplete type
struct iio_buffer buffer;
^~~~~~
In file included from include/asm-generic/bug.h:13:0,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from drivers/iio//buffer/industrialio-buffer-dmaengine.c:8:
drivers/iio//buffer/industrialio-buffer-dmaengine.c: In function 'iio_buffer_to_dmaengine_buffer':
include/linux/kernel.h:852:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:43:9: note: in expansion of macro 'container_of'
return container_of(buffer, struct dmaengine_buffer, queue.buffer);
^~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c: At top level:
drivers/iio//buffer/industrialio-buffer-dmaengine.c:109:21: error: variable 'iio_dmaengine_buffer_ops' has initializer but incomplete type
static const struct iio_buffer_access_funcs iio_dmaengine_buffer_ops = {
^~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:110:2: error: unknown field 'read_first_n' specified in initializer
.read_first_n = iio_dma_buffer_read,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:110:18: warning: excess elements in struct initializer
.read_first_n = iio_dma_buffer_read,
^~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:110:18: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:111:2: error: unknown field 'set_bytes_per_datum' specified in initializer
.set_bytes_per_datum = iio_dma_buffer_set_bytes_per_datum,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:111:25: warning: excess elements in struct initializer
.set_bytes_per_datum = iio_dma_buffer_set_bytes_per_datum,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:111:25: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:112:2: error: unknown field 'set_length' specified in initializer
.set_length = iio_dma_buffer_set_length,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:112:16: warning: excess elements in struct initializer
.set_length = iio_dma_buffer_set_length,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:112:16: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:113:2: error: unknown field 'request_update' specified in initializer
.request_update = iio_dma_buffer_request_update,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:113:20: warning: excess elements in struct initializer
.request_update = iio_dma_buffer_request_update,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:113:20: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:114:2: error: unknown field 'enable' specified in initializer
.enable = iio_dma_buffer_enable,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:114:12: warning: excess elements in struct initializer
.enable = iio_dma_buffer_enable,
^~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:114:12: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:115:2: error: unknown field 'disable' specified in initializer
.disable = iio_dma_buffer_disable,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:115:13: warning: excess elements in struct initializer
.disable = iio_dma_buffer_disable,
^~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:115:13: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:116:2: error: unknown field 'data_available' specified in initializer
.data_available = iio_dma_buffer_data_available,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:116:20: warning: excess elements in struct initializer
.data_available = iio_dma_buffer_data_available,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:116:20: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:117:2: error: unknown field 'release' specified in initializer
.release = iio_dmaengine_buffer_release,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:117:13: warning: excess elements in struct initializer
.release = iio_dmaengine_buffer_release,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:117:13: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c:119:2: error: unknown field 'modes' specified in initializer
.modes = INDIO_BUFFER_HARDWARE,
^
In file included from drivers/iio//buffer/industrialio-buffer-dmaengine.c:15:0:
>> include/linux/iio/iio.h:353:32: warning: excess elements in struct initializer
#define INDIO_BUFFER_HARDWARE 0x08
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:119:11: note: in expansion of macro 'INDIO_BUFFER_HARDWARE'
.modes = INDIO_BUFFER_HARDWARE,
^~~~~~~~~~~~~~~~~~~~~
include/linux/iio/iio.h:353:32: note: (near initialization for 'iio_dmaengine_buffer_ops')
#define INDIO_BUFFER_HARDWARE 0x08
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:119:11: note: in expansion of macro 'INDIO_BUFFER_HARDWARE'
.modes = INDIO_BUFFER_HARDWARE,
^~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:120:2: error: unknown field 'flags' specified in initializer
.flags = INDIO_BUFFER_FLAG_FIXED_WATERMARK,
^
drivers/iio//buffer/industrialio-buffer-dmaengine.c:120:11: error: 'INDIO_BUFFER_FLAG_FIXED_WATERMARK' undeclared here (not in a function)
.flags = INDIO_BUFFER_FLAG_FIXED_WATERMARK,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c:120:11: warning: excess elements in struct initializer
drivers/iio//buffer/industrialio-buffer-dmaengine.c:120:11: note: (near initialization for 'iio_dmaengine_buffer_ops')
drivers/iio//buffer/industrialio-buffer-dmaengine.c: In function 'iio_dmaengine_buffer_free':
drivers/iio//buffer/industrialio-buffer-dmaengine.c:206:2: error: implicit declaration of function 'iio_buffer_put' [-Werror=implicit-function-declaration]
iio_buffer_put(buffer);
^~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c: At top level:
drivers/iio//buffer/industrialio-buffer-dmaengine.c:109:45: error: storage size of 'iio_dmaengine_buffer_ops' isn't known
static const struct iio_buffer_access_funcs iio_dmaengine_buffer_ops = {
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio//buffer/industrialio-buffer-dmaengine.c: In function 'iio_buffer_to_dmaengine_buffer':
drivers/iio//buffer/industrialio-buffer-dmaengine.c:44:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
vim +/container_of +29 drivers/iio/hw_consumer.c
d5ca88eb Lars-Peter Clausen 2017-03-17 1 #include <linux/err.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 2 #include <linux/export.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 @3 #include <linux/slab.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 4 #include <linux/mutex.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 5 #include <linux/of.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 6
d5ca88eb Lars-Peter Clausen 2017-03-17 7 #include <linux/iio/iio.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 8 #include "iio_core.h"
d5ca88eb Lars-Peter Clausen 2017-03-17 9 #include <linux/iio/machine.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 10 #include <linux/iio/driver.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 11 #include <linux/iio/consumer.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 12 #include <linux/iio/hw_consumer.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 13 #include <linux/iio/buffer.h>
d5ca88eb Lars-Peter Clausen 2017-03-17 14
d5ca88eb Lars-Peter Clausen 2017-03-17 15 struct iio_hw_consumer {
d5ca88eb Lars-Peter Clausen 2017-03-17 16 struct list_head buffers;
d5ca88eb Lars-Peter Clausen 2017-03-17 17 struct iio_channel *channels;
d5ca88eb Lars-Peter Clausen 2017-03-17 18 };
d5ca88eb Lars-Peter Clausen 2017-03-17 19
d5ca88eb Lars-Peter Clausen 2017-03-17 20 struct hw_consumer_buffer {
d5ca88eb Lars-Peter Clausen 2017-03-17 21 struct list_head head;
d5ca88eb Lars-Peter Clausen 2017-03-17 22 struct iio_dev *indio_dev;
d5ca88eb Lars-Peter Clausen 2017-03-17 23 struct iio_buffer buffer;
d5ca88eb Lars-Peter Clausen 2017-03-17 24 };
d5ca88eb Lars-Peter Clausen 2017-03-17 25
d5ca88eb Lars-Peter Clausen 2017-03-17 26 static struct hw_consumer_buffer *iio_buffer_to_hw_consumer_buffer(
d5ca88eb Lars-Peter Clausen 2017-03-17 27 struct iio_buffer *buffer)
d5ca88eb Lars-Peter Clausen 2017-03-17 28 {
d5ca88eb Lars-Peter Clausen 2017-03-17 @29 return container_of(buffer, struct hw_consumer_buffer, buffer);
d5ca88eb Lars-Peter Clausen 2017-03-17 30 }
d5ca88eb Lars-Peter Clausen 2017-03-17 31
d5ca88eb Lars-Peter Clausen 2017-03-17 32 static void iio_hw_buf_release(struct iio_buffer *buffer)
d5ca88eb Lars-Peter Clausen 2017-03-17 33 {
d5ca88eb Lars-Peter Clausen 2017-03-17 34 struct hw_consumer_buffer *hw_buf =
d5ca88eb Lars-Peter Clausen 2017-03-17 35 iio_buffer_to_hw_consumer_buffer(buffer);
d5ca88eb Lars-Peter Clausen 2017-03-17 36 kfree(hw_buf->buffer.scan_mask);
d5ca88eb Lars-Peter Clausen 2017-03-17 37 kfree(hw_buf);
d5ca88eb Lars-Peter Clausen 2017-03-17 38 }
d5ca88eb Lars-Peter Clausen 2017-03-17 39
d5ca88eb Lars-Peter Clausen 2017-03-17 @40 static const struct iio_buffer_access_funcs iio_hw_buf_access = {
d5ca88eb Lars-Peter Clausen 2017-03-17 @41 .release = &iio_hw_buf_release,
d5ca88eb Lars-Peter Clausen 2017-03-17 @42 .modes = INDIO_BUFFER_HARDWARE,
d5ca88eb Lars-Peter Clausen 2017-03-17 43 };
d5ca88eb Lars-Peter Clausen 2017-03-17 44
d5ca88eb Lars-Peter Clausen 2017-03-17 45 static struct hw_consumer_buffer *iio_hw_consumer_get_buffer(
:::::: The code at line 29 was first introduced by commit
:::::: d5ca88ebd75256ba43b57c82dfa9a3cbeb3cacf7 iio: Add hardware consumer support
:::::: TO: Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
:::::: CC: 0day robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
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: 58903 bytes --]
next prev parent reply other threads:[~2017-03-20 7:22 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 14:08 [PATCH v3 00/11] Add STM32 DFSDM support Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 01/11] iio: Add hardware consumer support Arnaud Pouliquen
2017-06-06 10:15 ` Arnaud Pouliquen
2017-09-11 9:01 ` Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 02/11] IIO: Add DT bindings for sigma delta adc modulator Arnaud Pouliquen
[not found] ` <1489759704-30217-3-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-24 14:21 ` Rob Herring
2017-03-17 14:08 ` [PATCH v3 03/11] IIO: ADC: add sigma delta modulator support Arnaud Pouliquen
2017-03-20 6:24 ` [alsa-devel] " kbuild test robot
2017-03-20 6:51 ` kbuild test robot
2017-03-17 14:08 ` [PATCH v3 04/11] IIO: add DT bindings for stm32 DFSDM filter Arnaud Pouliquen
2017-03-24 14:37 ` Rob Herring
2017-03-17 14:08 ` [PATCH v3 05/11] IIO: ADC: add stm32 DFSDM support for Sigma delta ADC Arnaud Pouliquen
[not found] ` <1489759704-30217-6-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-19 22:25 ` Jonathan Cameron
2017-03-20 11:24 ` Arnaud Pouliquen
2017-03-25 15:53 ` Jonathan Cameron
2017-03-20 7:22 ` kbuild test robot [this message]
2017-03-20 8:04 ` [alsa-devel] " kbuild test robot
2017-03-17 14:08 ` [PATCH v3 06/11] IIO: ADC: add stm32 DFSDM support for PDM microphone Arnaud Pouliquen
[not found] ` <1489759704-30217-7-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-19 22:38 ` Jonathan Cameron
2017-03-20 11:29 ` Arnaud Pouliquen
2017-03-25 15:59 ` Jonathan Cameron
2017-03-28 7:45 ` Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 07/11] IIO: consumer: allow to set buffer sizes Arnaud Pouliquen
[not found] ` <1489759704-30217-8-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-19 22:44 ` Jonathan Cameron
2017-03-20 11:30 ` Arnaud Pouliquen
2017-03-25 16:01 ` Jonathan Cameron
2017-03-20 6:22 ` [alsa-devel] " kbuild test robot
2017-03-17 14:08 ` [PATCH v3 08/11] ASoC: Add bindings for DMIC codec driver Arnaud Pouliquen
2017-03-24 14:46 ` Rob Herring
2017-03-27 11:59 ` Mark Brown
2017-03-17 14:08 ` [PATCH v3 09/11] ASoC: codec: add DT support in dmic codec Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 10/11] ASoC: add bindings for stm32 DFSDM filter Arnaud Pouliquen
2017-03-24 14:52 ` Rob Herring
2017-03-29 12:42 ` Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 11/11] ASoC: stm32: add DFSDM DAI support Arnaud Pouliquen
2017-03-17 16:36 ` [PATCH v3 00/11] Add STM32 DFSDM support Arnaud Pouliquen
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=201703201522.JY2oSEMe%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=kernel-F5mvAk5X5gdBDgjK7y7TUQ@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=olivier.moysan-qxv4g6HH51o@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).