From: kbuild test robot <lkp@intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
Moritz Fischer <moritz.fischer@ettus.com>,
Joshua Clayton <stillcompiling@gmail.com>,
devicetree@vger.kernel.org,
Alan Tull <atull@opensource.altera.com>,
linux-fpga@vger.kernel.org, Russell King <linux@armlinux.org.uk>,
linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
kbuild-all@01.org, Sascha Hauer <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
Anatolij Gustschin <agust@denx.de>,
Shawn Guo <shawnguo@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v7 2/3] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs
Date: Fri, 20 Jan 2017 20:07:23 +0800 [thread overview]
Message-ID: <201701202037.FWBSni3B%fengguang.wu@intel.com> (raw)
In-Reply-To: <1b85ccf11096b8ef6c3a9eee9e5897c27b89a825.1484869881.git.stillcompiling@gmail.com>
Hi Joshua,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.10-rc4 next-20170120]
[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/Joshua-Clayton/Altera-Cyclone-Passive-Serial-SPI-FPGA-Manager/20170120-172349
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> drivers/fpga/cyclone-ps-spi.c:86:20: sparse: incompatible types in comparison expression (different signedness)
drivers/fpga/cyclone-ps-spi.c:101:33: sparse: incompatible types in comparison expression (different type sizes)
drivers/fpga/cyclone-ps-spi.c: In function 'rev_buf':
drivers/fpga/cyclone-ps-spi.c:86:13: warning: comparison of distinct pointer types lacks a cast
while (buf < fw_end) {
^
In file included from include/linux/delay.h:10:0,
from drivers/fpga/cyclone-ps-spi.c:17:
drivers/fpga/cyclone-ps-spi.c: In function 'cyclonespi_write':
include/linux/kernel.h:753:16: warning: comparison of distinct pointer types lacks a cast
(void) (&min1 == &min2); \
^
include/linux/kernel.h:756:2: note: in expansion of macro '__min'
__min(typeof(x), typeof(y), \
^~~~~
drivers/fpga/cyclone-ps-spi.c:101:19: note: in expansion of macro 'min'
size_t stride = min(fw_data_end - fw_data, SZ_4K);
^~~
drivers/fpga/cyclone-ps-spi.c:103:11: warning: passing argument 1 of 'rev_buf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
rev_buf(fw_data, stride);
^~~~~~~
drivers/fpga/cyclone-ps-spi.c:81:13: note: expected 'char *' but argument is of type 'const char *'
static void rev_buf(char *buf, size_t len)
^~~~~~~
vim +86 drivers/fpga/cyclone-ps-spi.c
70 gpiod_set_value(conf->config, 0);
71 for (i = 0; i < (FPGA_MAX_DELAY / FPGA_MIN_DELAY); i++) {
72 usleep_range(FPGA_MIN_DELAY, FPGA_MIN_DELAY + 20);
73 if (!gpiod_get_value(conf->status))
74 return 0;
75 }
76
77 dev_err(&mgr->dev, "Status pin not ready.\n");
78 return -EIO;
79 }
80
81 static void rev_buf(char *buf, size_t len)
82 {
83 const u8 *fw_end = (buf + len);
84
85 /* set buffer to lsb first */
> 86 while (buf < fw_end) {
87 *buf = bitrev8(*buf);
88 buf++;
89 }
90 }
91
92 static int cyclonespi_write(struct fpga_manager *mgr, const char *buf,
93 size_t count)
94 {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
next prev parent reply other threads:[~2017-01-20 12:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-20 0:12 [PATCH v7 0/3] Altera Cyclone Passive Serial SPI FPGA Manager Joshua Clayton
2017-01-20 0:12 ` [PATCH v7 1/3] doc: dt: add cyclone-ps-spi binding document Joshua Clayton
2017-01-23 15:39 ` Rob Herring
2017-01-20 0:12 ` [PATCH v7 2/3] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs Joshua Clayton
[not found] ` <1b85ccf11096b8ef6c3a9eee9e5897c27b89a825.1484869881.git.stillcompiling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-20 11:26 ` kbuild test robot
2017-01-20 12:07 ` kbuild test robot [this message]
2017-01-20 23:39 ` Joshua Clayton
2017-01-20 0:12 ` [PATCH v7 3/3] ARM: dts: imx6q-evi: support cyclone-ps-spi Joshua Clayton
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=201701202037.FWBSni3B%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=agust@denx.de \
--cc=atull@opensource.altera.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=kbuild-all@01.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=moritz.fischer@ettus.com \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.org \
--cc=stillcompiling@gmail.com \
/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).