From: kbuild test robot <lkp@intel.com>
To: Angelo Ribeiro <Angelo.Ribeiro@synopsys.com>
Cc: kbuild-all@lists.01.org, yannick.fertre@st.com,
philippe.cornu@st.com, benjamin.gaignard@st.com,
airlied@linux.ie, daniel@ffwll.ch, mcoquelin.stm32@gmail.com,
alexandre.torgue@st.com, dri-devel@lists.freedesktop.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Angelo Ribeiro <Angelo.Ribeiro@synopsys.com>,
Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>,
Joao Pinto <Joao.Pinto@synopsys.com>,
Jose Abreu <Jose.Abreu@synopsys.com>
Subject: Re: [PATCH] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs
Date: Sun, 5 Apr 2020 07:18:05 +0800 [thread overview]
Message-ID: <202004050736.8BHoeIi1%lkp@intel.com> (raw)
In-Reply-To: <a5aa527c2cd66b55b4246b9c122c702a279b37f0.1585928032.git.angelo.ribeiro@synopsys.com>
[-- Attachment #1: Type: text/plain, Size: 6030 bytes --]
Hi Angelo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.6 next-20200404]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Angelo-Ribeiro/drm-bridge-dw-mipi-dsi-c-Add-VPG-runtime-config-through-debugfs/20200405-032129
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 83eb69f3b80f7cf2ca6357fb9c23adc48632a0e3
config: arm64-defconfig (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c: In function 'dw_mipi_dsi_video_mode_config':
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:555:42: error: 'VID_MODE_VPG_MODE' undeclared (first use in this function); did you mean 'VID_MODE_VPG_ENABLE'?
555 | val |= dsi->vpg_defs.vpg_ber_pattern ? VID_MODE_VPG_MODE : 0;
| ^~~~~~~~~~~~~~~~~
| VID_MODE_VPG_ENABLE
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:555:42: note: each undeclared identifier is reported only once for each function it appears in
In file included from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:13:
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c: In function 'fops_x32_open':
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:1024:36: error: passing argument 3 of 'simple_attr_open' from incompatible pointer type [-Werror=incompatible-pointer-types]
1024 | DEFINE_DEBUGFS_ATTRIBUTE(fops_x32, dw_mipi_dsi_debugfs_show,
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| ssize_t (*)(void *, u64 *) {aka long int (*)(void *, long long unsigned int *)}
include/linux/debugfs.h:47:39: note: in definition of macro 'DEFINE_DEBUGFS_ATTRIBUTE'
47 | return simple_attr_open(inode, file, __get, __set, __fmt); \
| ^~~~~
In file included from include/linux/debugfs.h:15,
from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:13:
include/linux/fs.h:3529:14: note: expected 'int (*)(void *, u64 *)' {aka 'int (*)(void *, long long unsigned int *)'} but argument is of type 'ssize_t (*)(void *, u64 *)' {aka 'long int (*)(void *, long long unsigned int *)'}
3529 | int (*get)(void *, u64 *), int (*set)(void *, u64),
| ~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:13:
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:1025:5: error: passing argument 4 of 'simple_attr_open' from incompatible pointer type [-Werror=incompatible-pointer-types]
1025 | dw_mipi_dsi_debugfs_write, "%llu\n");
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| ssize_t (*)(void *, u64) {aka long int (*)(void *, long long unsigned int)}
include/linux/debugfs.h:47:46: note: in definition of macro 'DEFINE_DEBUGFS_ATTRIBUTE'
47 | return simple_attr_open(inode, file, __get, __set, __fmt); \
| ^~~~~
In file included from include/linux/debugfs.h:15,
from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:13:
include/linux/fs.h:3529:41: note: expected 'int (*)(void *, u64)' {aka 'int (*)(void *, long long unsigned int)'} but argument is of type 'ssize_t (*)(void *, u64)' {aka 'long int (*)(void *, long long unsigned int)'}
3529 | int (*get)(void *, u64 *), int (*set)(void *, u64),
| ~~~~~~^~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c: In function 'debugfs_create_files':
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:1033:29: error: 'VID_MODE_VPG_MODE' undeclared (first use in this function); did you mean 'VID_MODE_VPG_ENABLE'?
1033 | REGISTER(vpg_ber_pattern, VID_MODE_VPG_MODE, dsi),
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:229:32: note: in definition of macro 'REGISTER'
229 | { #name, VPG_DEFS(name, dsi), mask, dsi }
| ^~~~
cc1: some warnings being treated as errors
vim +555 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
531
532 static void dw_mipi_dsi_video_mode_config(struct dw_mipi_dsi *dsi)
533 {
534 u32 val;
535
536 /*
537 * TODO dw drv improvements
538 * enabling low power is panel-dependent, we should use the
539 * panel configuration here...
540 */
541 val = ENABLE_LOW_POWER;
542
543 if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST)
544 val |= VID_MODE_TYPE_BURST;
545 else if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE)
546 val |= VID_MODE_TYPE_NON_BURST_SYNC_PULSES;
547 else
548 val |= VID_MODE_TYPE_NON_BURST_SYNC_EVENTS;
549
550 #ifdef CONFIG_DEBUG_FS
551 if (dsi->vpg_defs.vpg) {
552 val |= VID_MODE_VPG_ENABLE;
553 val |= dsi->vpg_defs.vpg_horizontal ?
554 VID_MODE_VPG_HORIZONTAL : 0;
> 555 val |= dsi->vpg_defs.vpg_ber_pattern ? VID_MODE_VPG_MODE : 0;
556 }
557 #endif /* CONFIG_DEBUG_FS */
558
559 dsi_write(dsi, DSI_VID_MODE_CFG, val);
560 }
561
---
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: 48969 bytes --]
prev parent reply other threads:[~2020-04-04 23:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 15:36 [PATCH] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs Angelo Ribeiro
2020-04-04 10:56 ` Adrian Pop
2020-04-06 8:25 ` Angelo Ribeiro
2020-04-04 23:18 ` 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=202004050736.8BHoeIi1%lkp@intel.com \
--to=lkp@intel.com \
--cc=Angelo.Ribeiro@synopsys.com \
--cc=Gustavo.Pimentel@synopsys.com \
--cc=Joao.Pinto@synopsys.com \
--cc=Jose.Abreu@synopsys.com \
--cc=airlied@linux.ie \
--cc=alexandre.torgue@st.com \
--cc=benjamin.gaignard@st.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=philippe.cornu@st.com \
--cc=yannick.fertre@st.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).