From: kbuild test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [nomadik:ux500-skomer-v5.7-rc1 8/26] drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:62:20: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'}
Date: Mon, 20 Apr 2020 21:11:15 +0800 [thread overview]
Message-ID: <202004202112.6PBC6qIS%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3725 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-skomer-v5.7-rc1
head: 80bc4477056b38cc3e4049b05d56a374c2b4e1dc
commit: cfbf562cc709b53b62f5fbc7fedf176ffa17b088 [8/26] drm/panel: Add DSI transport so s6e63m0
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout cfbf562cc709b53b62f5fbc7fedf176ffa17b088
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:12:
drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c: In function 's6e63m0_dsi_dcs_write':
>> drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:62:20: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
62 | DRM_DEV_INFO(dev, "sent command %02x %02x bytes\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63 | cmd, len - 1);
| ~~~~~~~
| |
| size_t {aka long unsigned int}
include/drm/drm_print.h:362:33: note: in definition of macro 'DRM_DEV_INFO'
362 | drm_dev_printk(dev, KERN_INFO, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:62:42: note: format string is defined here
62 | DRM_DEV_INFO(dev, "sent command %02x %02x bytes\n",
| ~~~^
| |
| unsigned int
| %02lx
vim +62 drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c
17
18 static int s6e63m0_dsi_dcs_write(struct device *dev, const u8 *data, size_t len)
19 {
20 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev);
21 const u8 *seqp = data;
22 u8 cmd;
23 int cmdwritten = 0;
24 int chunk;
25 int ret;
26
27 DRM_DEV_INFO(dev, "DSI writing dcs seq: %*ph\n", (int)len, data);
28
29 /* Pick out the DCS command */
30 cmd = *seqp;
31 seqp++;
32 cmdwritten++;
33 chunk = len - 1;
34
35 /* Send max 15 bytes at a time */
36 if (chunk > DSI_MAX_CHUNK)
37 chunk = DSI_MAX_CHUNK;
38 ret = mipi_dsi_dcs_write(dsi, cmd, seqp, chunk);
39 if (ret < 0) {
40 DRM_DEV_ERROR(dev,
41 "error sending DCS command seq cmd %02x\n",
42 cmd);
43 return ret;
44 }
45 cmdwritten += chunk;
46 seqp += chunk;
47
48 while (cmdwritten < len) {
49 chunk = len - cmdwritten;
50 if (chunk > DSI_MAX_CHUNK)
51 chunk = DSI_MAX_CHUNK;
52 ret = mipi_dsi_generic_write(dsi, seqp, chunk);
53 if (ret < 0) {
54 DRM_DEV_ERROR(dev,
55 "error sending generic write seq %02x\n",
56 cmd);
57 return ret;
58 }
59 cmdwritten += chunk;
60 seqp += chunk;
61 }
> 62 DRM_DEV_INFO(dev, "sent command %02x %02x bytes\n",
63 cmd, len - 1);
64
65 usleep_range(8000, 9000);
66
67 return 0;
68 }
69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 63398 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reply other threads:[~2020-04-20 13:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202004202112.6PBC6qIS%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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).