From: kernel test robot <lkp@intel.com>
To: Liu Ying <victor.liu@nxp.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org
Cc: oe-kbuild-all@lists.linux.dev, p.zabel@pengutronix.de,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com, glx@linutronix.de,
vkoul@kernel.org, kishon@kernel.org, aisheng.dong@nxp.com,
agx@sigxcpu.org, francesco@dolcini.it, frank.li@nxp.com,
dmitry.baryshkov@linaro.org, u.kleine-koenig@baylibre.com
Subject: Re: [PATCH v5 10/19] drm/imx: Add i.MX8qxp Display Controller pixel engine
Date: Mon, 2 Dec 2024 16:54:11 +0800 [thread overview]
Message-ID: <202412021617.HmlPGJLh-lkp@intel.com> (raw)
In-Reply-To: <20241202025635.1274467-11-victor.liu@nxp.com>
Hi Liu,
kernel test robot noticed the following build warnings:
[auto build test WARNING on shawnguo/for-next]
[also build test WARNING on linus/master v6.13-rc1 next-20241128]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Liu-Ying/dt-bindings-display-imx-Add-i-MX8qxp-Display-Controller-processing-units/20241202-110331
base: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
patch link: https://lore.kernel.org/r/20241202025635.1274467-11-victor.liu%40nxp.com
patch subject: [PATCH v5 10/19] drm/imx: Add i.MX8qxp Display Controller pixel engine
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241202/202412021617.HmlPGJLh-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241202/202412021617.HmlPGJLh-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412021617.HmlPGJLh-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/imx/dc/dc-fl.c: In function 'dc_fl_bind':
>> drivers/gpu/drm/imx/dc/dc-fl.c:136:57: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=]
136 | snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id);
| ^~
drivers/gpu/drm/imx/dc/dc-fl.c:136:46: note: directive argument in the range [0, 2147483647]
136 | snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id);
| ^~~~~~~~~~~~~~
drivers/gpu/drm/imx/dc/dc-fl.c:136:9: note: 'snprintf' output between 12 and 21 bytes into a destination of size 13
136 | snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/gpu/drm/imx/dc/dc-fw.c: In function 'dc_fw_bind':
>> drivers/gpu/drm/imx/dc/dc-fw.c:175:56: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=]
175 | snprintf(fu->name, sizeof(fu->name), "FetchWarp%u", fw->id);
| ^~
drivers/gpu/drm/imx/dc/dc-fw.c:175:46: note: directive argument in the range [0, 2147483647]
175 | snprintf(fu->name, sizeof(fu->name), "FetchWarp%u", fw->id);
| ^~~~~~~~~~~~~
drivers/gpu/drm/imx/dc/dc-fw.c:175:9: note: 'snprintf' output between 11 and 20 bytes into a destination of size 13
175 | snprintf(fu->name, sizeof(fu->name), "FetchWarp%u", fw->id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +136 drivers/gpu/drm/imx/dc/dc-fl.c
92
93 static int dc_fl_bind(struct device *dev, struct device *master, void *data)
94 {
95 struct platform_device *pdev = to_platform_device(dev);
96 struct dc_drm_device *dc_drm = data;
97 struct dc_pe *pe = dc_drm->pe;
98 void __iomem *base_cfg;
99 struct dc_fl *fl;
100 struct dc_fu *fu;
101 int i;
102
103 fl = devm_kzalloc(dev, sizeof(*fl), GFP_KERNEL);
104 if (!fl)
105 return -ENOMEM;
106
107 fu = &fl->fu;
108
109 base_cfg = devm_platform_ioremap_resource_byname(pdev, "cfg");
110 if (IS_ERR(base_cfg))
111 return PTR_ERR(base_cfg);
112
113 fu->reg_cfg = devm_regmap_init_mmio(dev, base_cfg,
114 &dc_fl_cfg_regmap_config);
115 if (IS_ERR(fu->reg_cfg))
116 return PTR_ERR(fu->reg_cfg);
117
118 fl->id = of_alias_get_id(dev->of_node, "dc0-fetchlayer");
119 if (fl->id < 0) {
120 dev_err(dev, "failed to get alias id: %d\n", fl->id);
121 return fl->id;
122 }
123
124 fu->link_id = LINK_ID_FETCHLAYER0;
125 fu->id = DC_FETCHUNIT_FL0;
126 for (i = 0; i < DC_FETCHUNIT_FRAC_NUM; i++) {
127 fu->reg_baseaddr[i] = BASEADDRESS(i);
128 fu->reg_sourcebufferattributes[i] = SOURCEBUFFERATTRIBUTES(i);
129 fu->reg_sourcebufferdimension[i] = SOURCEBUFFERDIMENSION(i);
130 fu->reg_layeroffset[i] = LAYEROFFSET(i);
131 fu->reg_clipwindowoffset[i] = CLIPWINDOWOFFSET(i);
132 fu->reg_clipwindowdimensions[i] = CLIPWINDOWDIMENSIONS(i);
133 fu->reg_constantcolor[i] = CONSTANTCOLOR(i);
134 fu->reg_layerproperty[i] = LAYERPROPERTY(i);
135 }
> 136 snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id);
137
138 dc_fl_set_ops(fu);
139
140 pe->fu_disp[fu->id] = fu;
141
142 return 0;
143 }
144
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-02 8:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 2:56 [PATCH v5 00/19] Add Freescale i.MX8qxp Display Controller support Liu Ying
2024-12-02 2:56 ` [PATCH v5 01/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller processing units Liu Ying
2024-12-02 2:56 ` [PATCH v5 02/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller blit engine Liu Ying
2024-12-02 2:56 ` [PATCH v5 03/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller display engine Liu Ying
2024-12-02 2:56 ` [PATCH v5 04/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller pixel engine Liu Ying
2024-12-02 2:56 ` [PATCH v5 05/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller AXI performance counter Liu Ying
2024-12-02 2:56 ` [PATCH v5 06/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller command sequencer Liu Ying
2024-12-02 2:56 ` [PATCH v5 07/19] dt-bindings: interrupt-controller: Add i.MX8qxp Display Controller interrupt controller Liu Ying
2024-12-02 2:56 ` [PATCH v5 08/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller Liu Ying
2024-12-02 2:56 ` [PATCH v5 09/19] drm/imx: Add i.MX8qxp Display Controller display engine Liu Ying
2024-12-02 2:56 ` [PATCH v5 10/19] drm/imx: Add i.MX8qxp Display Controller pixel engine Liu Ying
2024-12-02 8:54 ` kernel test robot [this message]
2024-12-02 9:41 ` Liu Ying
2024-12-02 2:56 ` [PATCH v5 11/19] drm/imx: Add i.MX8qxp Display Controller interrupt controller Liu Ying
2024-12-02 2:56 ` [PATCH v5 12/19] drm/imx: Add i.MX8qxp Display Controller KMS Liu Ying
2024-12-02 2:56 ` [PATCH v5 13/19] MAINTAINERS: Add maintainer for i.MX8qxp Display Controller Liu Ying
2024-12-02 2:56 ` [DO NOT MERGE PATCH v5 14/19] dt-bindings: phy: mixel, mipi-dsi-phy: Allow assigned-clock* properties Liu Ying
2024-12-02 2:56 ` [DO NOT MERGE PATCH v5 15/19] dt-bindings: firmware: imx: Add SCU controlled display pixel link nodes Liu Ying
2024-12-02 2:56 ` [DO NOT MERGE PATCH v5 16/19] arm64: dts: imx8qxp: Add display controller subsystem Liu Ying
2024-12-02 2:56 ` [DO NOT MERGE PATCH v5 17/19] arm64: dts: imx8qxp: Add MIPI-LVDS combo subsystems Liu Ying
2024-12-02 2:56 ` [DO NOT MERGE PATCH v5 18/19] arm64: dts: imx8qxp-mek: Enable display controller Liu Ying
2024-12-02 2:56 ` [DO NOT MERGE PATCH v5 19/19] arm64: dts: imx8qxp-mek: Add MX8-DLVDS-LCD1 display module support Liu Ying
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=202412021617.HmlPGJLh-lkp@intel.com \
--to=lkp@intel.com \
--cc=agx@sigxcpu.org \
--cc=airlied@gmail.com \
--cc=aisheng.dong@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=francesco@dolcini.it \
--cc=frank.li@nxp.com \
--cc=glx@linutronix.de \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=u.kleine-koenig@baylibre.com \
--cc=victor.liu@nxp.com \
--cc=vkoul@kernel.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