Re: [PATCH] iio: mma8452: add support for MMA8451Q

From: kbuild test robot
Date: Thu Jan 14 2016 - 06:17:34 EST


Hi Martin,

[auto build test ERROR on next-20160114]
[also build test ERROR on v4.4]
[cannot apply to robh/for-next v4.4-rc8 v4.4-rc7 v4.4-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Martin-Kepplinger/iio-mma8452-add-support-for-MMA8451Q/20160114-190548
config: x86_64-randconfig-x015-01140842 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

>> drivers/iio/accel/mma8452.c:832:2: error: implicit declaration of function 'MMA8452_FREEFALL_CHANNEL' [-Werror=implicit-function-declaration]
MMA8452_FREEFALL_CHANNEL(IIO_MOD_X_AND_Y_AND_Z),
^
>> drivers/iio/accel/mma8452.c:832:2: error: initializer element is not constant
drivers/iio/accel/mma8452.c:832:2: note: (near initialization for 'mma8451_channels[4].type')
>> drivers/iio/accel/mma8452.c:827:56: warning: missing braces around initializer [-Wmissing-braces]
static const struct iio_chan_spec mma8451_channels[] = {
^
drivers/iio/accel/mma8452.c:827:56: note: (near initialization for 'mma8451_channels')
cc1: some warnings being treated as errors

vim +/MMA8452_FREEFALL_CHANNEL +832 drivers/iio/accel/mma8452.c

821 .endianness = IIO_BE, \
822 }, \
823 .event_spec = mma8452_motion_event, \
824 .num_event_specs = ARRAY_SIZE(mma8452_motion_event), \
825 }
826
> 827 static const struct iio_chan_spec mma8451_channels[] = {
828 MMA8452_CHANNEL(X, idx_x, 14),
829 MMA8452_CHANNEL(Y, idx_y, 14),
830 MMA8452_CHANNEL(Z, idx_z, 14),
831 IIO_CHAN_SOFT_TIMESTAMP(idx_ts),
> 832 MMA8452_FREEFALL_CHANNEL(IIO_MOD_X_AND_Y_AND_Z),
833 };
834
835 static const struct iio_chan_spec mma8452_channels[] = {

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

Attachment: .config.gz
Description: Binary data