* [nomadik:gemini-dir-685-tve200 31/31] drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}'
@ 2017-06-13 1:48 kbuild test robot
2017-06-13 8:04 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-06-13 1:48 UTC (permalink / raw)
To: linux-arm-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git gemini-dir-685-tve200
head: 454df5dcbcb83585bb77898eea3a0afa6288e441
commit: 454df5dcbcb83585bb77898eea3a0afa6288e441 [31/31] stab
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 454df5dcbcb83585bb77898eea3a0afa6288e441
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All warnings (new ones prefixed by >>):
In file included from include/linux/cdev.h:7:0,
from include/drm/drmP.h:36,
from drivers/gpu//drm/panel/panel-ilitek-ili9322.c:20:
drivers/gpu//drm/panel/panel-ilitek-ili9322.c: In function 'ili9322_regmap_spi_read':
>> drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
dev_info(dev, "READ: %02x reg size = %d, val size = %d\n",
^
include/linux/device.h:1317:51: note: in definition of macro 'dev_info'
#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg)
^~~
drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
dev_info(dev, "READ: %02x reg size = %d, val size = %d\n",
^
include/linux/device.h:1317:51: note: in definition of macro 'dev_info'
#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg)
^~~
vim +230 drivers/gpu//drm/panel/panel-ilitek-ili9322.c
214 memcpy(buf, data, 2);
215 buf[0] &= ~0x80;
216
217 dev_info(dev, "WRITE: %02x %02x\n", buf[0], buf[1]);
218 return spi_write_then_read(spi, buf, 2, NULL, 0);
219 }
220
221 static int ili9322_regmap_spi_read(void *context, const void *reg,
222 size_t reg_size, void *val, size_t val_size)
223 {
224 struct device *dev = context;
225 struct spi_device *spi = to_spi_device(dev);
226 u8 buf[1];
227
228 /* Set bit 7 to 1 to read */
229 memcpy(buf, reg, 1);
> 230 dev_info(dev, "READ: %02x reg size = %d, val size = %d\n",
231 buf[0], reg_size, val_size);
232 buf[0] |= 0x80;
233
234 return spi_write_then_read(spi, buf, 1, val, 1);
235 }
236
237 static struct regmap_bus ili9322_regmap_bus = {
238 .write = ili9322_regmap_spi_write,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 50718 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170613/fc3c8441/attachment-0001.gz>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [nomadik:gemini-dir-685-tve200 31/31] drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}'
2017-06-13 1:48 [nomadik:gemini-dir-685-tve200 31/31] drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' kbuild test robot
@ 2017-06-13 8:04 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2017-06-13 8:04 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jun 13, 2017 at 3:48 AM, kbuild test robot
<fengguang.wu@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git gemini-dir-685-tve200
> head: 454df5dcbcb83585bb77898eea3a0afa6288e441
> commit: 454df5dcbcb83585bb77898eea3a0afa6288e441 [31/31] stab
> config: sparc64-allyesconfig (attached as .config)
> compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
> wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 454df5dcbcb83585bb77898eea3a0afa6288e441
> # save the attached .config to linux build tree
> make.cross ARCH=sparc64
>
> All warnings (new ones prefixed by >>):
>
> In file included from include/linux/cdev.h:7:0,
> from include/drm/drmP.h:36,
> from drivers/gpu//drm/panel/panel-ilitek-ili9322.c:20:
> drivers/gpu//drm/panel/panel-ilitek-ili9322.c: In function 'ili9322_regmap_spi_read':
>>> drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
> dev_info(dev, "READ: %02x reg size = %d, val size = %d\n",
> 227
> 228 /* Set bit 7 to 1 to read */
> 229 memcpy(buf, reg, 1);
> > 230 dev_info(dev, "READ: %02x reg size = %d, val size = %d\n",
> 231 buf[0], reg_size, val_size);
> 232 buf[0] |= 0x80;
You want "%zd" instead.
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-13 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 1:48 [nomadik:gemini-dir-685-tve200 31/31] drivers/gpu//drm/panel/panel-ilitek-ili9322.c:230:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' kbuild test robot
2017-06-13 8:04 ` Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.