From: kbuild test robot <lkp@intel.com>
To: Martin Kepplinger <martink@posteo.de>
Cc: kbuild-all@01.org, jic23@kernel.org, knaack.h@gmx.de,
lars@metafoo.de, pmeerw@pmeerw.net,
christoph.muellner@theobroma-systems.com, mfuzzey@parkeon.com,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
Martin Kepplinger <martink@posteo.de>,
Martin Kepplinger <martin.kepplinger@theobroma-systems.com>
Subject: Re: [PATCH v3] iio: mma8452: add freefall detection for Freescale's accelerometers
Date: Wed, 13 Jan 2016 19:39:06 +0800 [thread overview]
Message-ID: <201601131959.GNBxMetE%fengguang.wu@intel.com> (raw)
In-Reply-To: <1452684244-5048-1-git-send-email-martink@posteo.de>
[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]
Hi Martin,
[auto build test WARNING on next-20160113]
[cannot apply to v4.4-rc8 v4.4-rc7 v4.4-rc6 v4.4]
[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-freefall-detection-for-Freescale-s-accelerometers/20160113-192756
config: x86_64-randconfig-x017-01110856 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/iio/accel/mma8452.c: In function 'mma8452_write_event_config':
>> drivers/iio/accel/mma8452.c:682:15: warning: the address of 'mma8452_freefall_mode_enabled' will always evaluate as 'true' [-Waddress]
if ((!state && mma8452_freefall_mode_enabled) ||
^
drivers/iio/accel/mma8452.c:683:17: warning: the address of 'mma8452_freefall_mode_enabled' will always evaluate as 'true' [-Waddress]
(state && !mma8452_freefall_mode_enabled))
^
vim +682 drivers/iio/accel/mma8452.c
666 return -EINVAL;
667 }
668 }
669
670 static int mma8452_write_event_config(struct iio_dev *indio_dev,
671 const struct iio_chan_spec *chan,
672 enum iio_event_type type,
673 enum iio_event_direction dir,
674 int state)
675 {
676 struct mma8452_data *data = iio_priv(indio_dev);
677 const struct mma_chip_info *chip = data->chip_info;
678 int val;
679
680 switch (dir) {
681 case IIO_EV_DIR_FALLING:
> 682 if ((!state && mma8452_freefall_mode_enabled) ||
683 (state && !mma8452_freefall_mode_enabled))
684 return mma8452_set_freefall_mode(data, state);
685 else
686 return 0;
687 case IIO_EV_DIR_RISING:
688 val = i2c_smbus_read_byte_data(data->client, chip->ev_cfg);
689 if (val < 0)
690 return val;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 29153 bytes --]
next prev parent reply other threads:[~2016-01-13 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 11:24 Martin Kepplinger
2016-01-13 11:39 ` kbuild test robot [this message]
2016-01-13 11:40 ` 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=201601131959.GNBxMetE%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=christoph.muellner@theobroma-systems.com \
--cc=jic23@kernel.org \
--cc=kbuild-all@01.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.kepplinger@theobroma-systems.com \
--cc=martink@posteo.de \
--cc=mfuzzey@parkeon.com \
--cc=pmeerw@pmeerw.net \
/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
all inboxes | Powered by JetHome®