mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jack Andersen <jackoalan@gmail.com>
Cc: kbuild-all@01.org, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org, Jack Andersen <jackoalan@gmail.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Daniel Baluta <daniel.baluta@intel.com>,
	Octavian Purdila <octavian.purdila@intel.com>
Subject: Re: [PATCH] iio: adc: Add support for DLN2 ADC
Date: Fri, 23 Jun 2017 06:30:19 +0800	[thread overview]
Message-ID: <201706230633.AYOfQ9BM%fengguang.wu@intel.com> (raw)
In-Reply-To: <1498101549-6252-2-git-send-email-jackoalan@gmail.com>

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

Hi Jack,

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.12-rc6 next-20170622]
[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/Jack-Andersen/iio-adc-Add-support-for-DLN2-ADC/20170623-055246
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/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=blackfin 

All warnings (new ones prefixed by >>):

   drivers/iio/adc/dln2-adc.c: In function 'dln2_adc_read':
>> drivers/iio/adc/dln2-adc.c:273:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     struct dln2_adc_port_chan port_chan = {
     ^~~~~~

vim +273 drivers/iio/adc/dln2-adc.c

   257	
   258		ret = dln2_transfer_tx(dln2->pdev, DLN2_ADC_CHANNEL_SET_CFG,
   259				       &set_cfg, sizeof(set_cfg));
   260		return ret;
   261	}
   262	
   263	static int dln2_adc_read(struct dln2_adc *dln2, unsigned int channel)
   264	{
   265		int ret;
   266	
   267		dln2->chans_requested |= (1 << channel);
   268		ret = dln2_adc_update_enabled_chans(dln2);
   269		if (ret < 0)
   270			return ret;
   271		dln2->port_enabled = 1;
   272	
 > 273		struct dln2_adc_port_chan port_chan = {
   274			.port = dln2->port,
   275			.chan = channel,
   276		};
   277		int ilen = sizeof(port_chan);
   278		__le16 value;
   279		int olen = sizeof(value);
   280	
   281		ret = dln2_transfer(dln2->pdev, DLN2_ADC_CHANNEL_GET_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/gzip, Size: 45008 bytes --]

      parent reply	other threads:[~2017-06-22 22:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-22  3:19 [PATCH] DLN2 module for ADC interface Jack Andersen
2017-06-22  3:19 ` [PATCH] iio: adc: Add support for DLN2 ADC Jack Andersen
2017-06-22  4:52   ` Peter Meerwald-Stadler
2017-06-22 22:30   ` kbuild test robot [this message]

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=201706230633.AYOfQ9BM%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=daniel.baluta@intel.com \
    --cc=jackoalan@gmail.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=octavian.purdila@intel.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®