From: kbuild test robot <lkp@intel.com>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
airlied@linux.ie, daniel@ffwll.ch, sam@ravnborg.org,
abrodkin@synopsys.com, bbrezillon@kernel.org,
nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com,
ludovic.desroches@microchip.com,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
jingoohan1@gmail.com, inki.dae@samsung.com,
jy0922.shim@samsung.com, sw0312.kim@samsung.com,
kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org,
stefan@agner.ch, alison.wang@nxp.com,
patrik.r.jakobsson@gmail.com, xinliang.liu@linaro.org,
zourongrong@gmail.com, john.stultz@linaro.org,
kong.kongxinwei@hisilicon.com, puck.chen@hisilicon.com,
linux@armlinux.org.uk, p.zabel@pengutronix.de,
shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com
Subject: Re: [PATCH 21/22] drm/writeback: Use simple encoder
Date: Fri, 6 Mar 2020 22:54:09 +0800 [thread overview]
Message-ID: <202003062217.UBMXjqih%lkp@intel.com> (raw)
In-Reply-To: <20200305155950.2705-22-tzimmermann@suse.de>
[-- Attachment #1: Type: text/plain, Size: 5240 bytes --]
Hi Thomas,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20200305]
[cannot apply to rockchip/for-next shawnguo/for-next sunxi/sunxi/for-next tegra/for-next linus/master v5.6-rc4 v5.6-rc3 v5.6-rc2 v5.6-rc4]
[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/Thomas-Zimmermann/drm-Convert-drivers-to-drm_simple_encoder_init/20200306-045931
base: 47466dcf84ee66a973ea7d2fca7e582fe9328932
config: arm64-defconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project a0cd413426479abb207381bdbab862f3dfb3ce7d)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/drm_writeback.c:191:8: error: implicit declaration of function 'drm_simple_encoder_init' [-Werror,-Wimplicit-function-declaration]
ret = drm_simple_encoder_init(dev, &wb_connector->encoder,
^
drivers/gpu/drm/drm_writeback.c:191:8: note: did you mean 'drm_encoder_init'?
include/drm/drm_encoder.h:189:5: note: 'drm_encoder_init' declared here
int drm_encoder_init(struct drm_device *dev,
^
1 error generated.
vim +/drm_simple_encoder_init +191 drivers/gpu/drm/drm_writeback.c
149
150 /**
151 * drm_writeback_connector_init - Initialize a writeback connector and its properties
152 * @dev: DRM device
153 * @wb_connector: Writeback connector to initialize
154 * @con_funcs: Connector funcs vtable
155 * @enc_helper_funcs: Encoder helper funcs vtable to be used by the internal encoder
156 * @formats: Array of supported pixel formats for the writeback engine
157 * @n_formats: Length of the formats array
158 *
159 * This function creates the writeback-connector-specific properties if they
160 * have not been already created, initializes the connector as
161 * type DRM_MODE_CONNECTOR_WRITEBACK, and correctly initializes the property
162 * values. It will also create an internal encoder associated with the
163 * drm_writeback_connector and set it to use the @enc_helper_funcs vtable for
164 * the encoder helper.
165 *
166 * Drivers should always use this function instead of drm_connector_init() to
167 * set up writeback connectors.
168 *
169 * Returns: 0 on success, or a negative error code
170 */
171 int drm_writeback_connector_init(struct drm_device *dev,
172 struct drm_writeback_connector *wb_connector,
173 const struct drm_connector_funcs *con_funcs,
174 const struct drm_encoder_helper_funcs *enc_helper_funcs,
175 const u32 *formats, int n_formats)
176 {
177 struct drm_property_blob *blob;
178 struct drm_connector *connector = &wb_connector->base;
179 struct drm_mode_config *config = &dev->mode_config;
180 int ret = create_writeback_properties(dev);
181
182 if (ret != 0)
183 return ret;
184
185 blob = drm_property_create_blob(dev, n_formats * sizeof(*formats),
186 formats);
187 if (IS_ERR(blob))
188 return PTR_ERR(blob);
189
190 drm_encoder_helper_add(&wb_connector->encoder, enc_helper_funcs);
> 191 ret = drm_simple_encoder_init(dev, &wb_connector->encoder,
192 DRM_MODE_ENCODER_VIRTUAL);
193 if (ret)
194 goto fail;
195
196 connector->interlace_allowed = 0;
197
198 ret = drm_connector_init(dev, connector, con_funcs,
199 DRM_MODE_CONNECTOR_WRITEBACK);
200 if (ret)
201 goto connector_fail;
202
203 ret = drm_connector_attach_encoder(connector,
204 &wb_connector->encoder);
205 if (ret)
206 goto attach_fail;
207
208 INIT_LIST_HEAD(&wb_connector->job_queue);
209 spin_lock_init(&wb_connector->job_lock);
210
211 wb_connector->fence_context = dma_fence_context_alloc(1);
212 spin_lock_init(&wb_connector->fence_lock);
213 snprintf(wb_connector->timeline_name,
214 sizeof(wb_connector->timeline_name),
215 "CONNECTOR:%d-%s", connector->base.id, connector->name);
216
217 drm_object_attach_property(&connector->base,
218 config->writeback_out_fence_ptr_property, 0);
219
220 drm_object_attach_property(&connector->base,
221 config->writeback_fb_id_property, 0);
222
223 drm_object_attach_property(&connector->base,
224 config->writeback_pixel_formats_property,
225 blob->base.id);
226 wb_connector->pixel_formats_blob_ptr = blob;
227
228 return 0;
229
230 attach_fail:
231 drm_connector_cleanup(connector);
232 connector_fail:
233 drm_encoder_cleanup(&wb_connector->encoder);
234 fail:
235 drm_property_blob_put(blob);
236 return ret;
237 }
238 EXPORT_SYMBOL(drm_writeback_connector_init);
239
---
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: 47744 bytes --]
next prev parent reply other threads:[~2020-03-06 14:54 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 15:59 [PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init() Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 03/22] drm/exynos: Use simple encoder Thomas Zimmermann
[not found] ` <20200305155950.2705-4-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 0:55 ` kbuild test robot
2020-03-06 5:14 ` kbuild test robot
2020-03-06 21:28 ` Sam Ravnborg
2020-03-05 15:59 ` [PATCH 08/22] drm/imx: " Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 10/22] drm/mediatek: " Thomas Zimmermann
[not found] ` <20200305155950.2705-11-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-07 21:26 ` Matthias Brugger
2020-03-10 2:37 ` CK Hu
2020-03-05 15:59 ` [PATCH 11/22] drm/rcar-du: " Thomas Zimmermann
[not found] ` <20200305155950.2705-12-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 8:43 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 13/22] drm/shmobile: " Thomas Zimmermann
[not found] ` <20200305155950.2705-1-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-05 15:59 ` [PATCH 01/22] drm/arc: " Thomas Zimmermann
[not found] ` <20200305155950.2705-2-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-05 23:48 ` kbuild test robot
2020-03-06 21:18 ` Sam Ravnborg
[not found] ` <20200306211802.GA17369-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
2020-03-09 7:55 ` Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 02/22] drm/atmel-hlcdc: " Thomas Zimmermann
[not found] ` <20200305155950.2705-3-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 0:32 ` kbuild test robot
2020-03-06 21:26 ` Sam Ravnborg
2020-03-05 15:59 ` [PATCH 04/22] drm/fsl-dcu: " Thomas Zimmermann
2020-03-06 0:02 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 05/22] drm/gma500: " Thomas Zimmermann
[not found] ` <20200305155950.2705-6-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 0:44 ` kbuild test robot
2020-03-06 21:35 ` Sam Ravnborg
[not found] ` <20200306213519.GD17369-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
2020-03-09 7:32 ` Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 06/22] drm/hisilicon/kirin: " Thomas Zimmermann
[not found] ` <20200305155950.2705-7-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 6:16 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 07/22] drm/i2c/tda998x: " Thomas Zimmermann
[not found] ` <20200305155950.2705-8-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 7:30 ` kbuild test robot
2020-03-07 15:40 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 09/22] drm/ingenic: " Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 12/22] drm/rockchip: " Thomas Zimmermann
[not found] ` <20200305155950.2705-13-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-05 23:59 ` kbuild test robot
2020-03-06 10:05 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 14/22] drm/sun4i: " Thomas Zimmermann
[not found] ` <20200305155950.2705-15-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 11:12 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 19/22] drm/virtgpu: " Thomas Zimmermann
[not found] ` <20200305155950.2705-20-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-07 15:40 ` kbuild test robot
2020-03-06 14:22 ` [PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init() Laurent Pinchart
[not found] ` <20200306142212.GF4878-N3hz7ZxfLydczECFQUw77jytWr6r+dGw0E9HWUfgJXw@public.gmane.org>
2020-03-06 15:18 ` Thomas Zimmermann
[not found] ` <bccc380a-8925-81a7-34fe-5a1744a766d0-l3A5Bk7waGM@public.gmane.org>
2020-03-07 20:08 ` Sam Ravnborg
[not found] ` <20200307200813.GA15363-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
2020-03-07 20:34 ` Laurent Pinchart
[not found] ` <20200307203445.GC5021-N3hz7ZxfLydczECFQUw77jytWr6r+dGw0E9HWUfgJXw@public.gmane.org>
2020-03-07 20:51 ` Sam Ravnborg
2020-03-09 7:24 ` Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 15/22] drm/tegra: Use simple encoder Thomas Zimmermann
2020-03-06 12:38 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 16/22] drm/tidss: " Thomas Zimmermann
[not found] ` <20200305155950.2705-17-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 16:02 ` Jyri Sarha
2020-03-05 15:59 ` [PATCH 17/22] drm/tilcdc: " Thomas Zimmermann
[not found] ` <20200305155950.2705-18-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 16:03 ` Jyri Sarha
2020-03-05 15:59 ` [PATCH 18/22] drm/vc4: " Thomas Zimmermann
[not found] ` <20200305155950.2705-19-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-05 17:03 ` Eric Anholt
2020-03-06 13:54 ` kbuild test robot
2020-03-05 15:59 ` [PATCH 20/22] drm/vkms: " Thomas Zimmermann
[not found] ` <20200305155950.2705-21-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 0:24 ` kbuild test robot
2020-03-07 13:59 ` kbuild test robot
2020-03-24 11:59 ` Rodrigo Siqueira
2020-03-31 9:20 ` Thomas Zimmermann
[not found] ` <20200324115905.dp5jqzbmvhbmk2rn-TAvD023jEQEN+BqQ9rBEUg@public.gmane.org>
2020-04-01 7:17 ` Thomas Zimmermann
2020-03-05 15:59 ` [PATCH 21/22] drm/writeback: " Thomas Zimmermann
[not found] ` <20200305155950.2705-22-tzimmermann-l3A5Bk7waGM@public.gmane.org>
2020-03-06 0:54 ` kbuild test robot
2020-03-06 1:17 ` kbuild test robot
2020-03-06 14:54 ` kbuild test robot [this message]
2020-03-05 15:59 ` [PATCH 22/22] drm/zte: " Thomas Zimmermann
2020-03-06 10:56 ` [PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init() Daniel Vetter
[not found] ` <20200306105659.GY2363188-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2020-03-06 15:10 ` Thomas Zimmermann
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=202003062217.UBMXjqih%lkp@intel.com \
--to=lkp@intel.com \
--cc=abrodkin@synopsys.com \
--cc=airlied@linux.ie \
--cc=alexandre.belloni@bootlin.com \
--cc=alison.wang@nxp.com \
--cc=bbrezillon@kernel.org \
--cc=clang-built-linux@googlegroups.com \
--cc=daniel@ffwll.ch \
--cc=festevam@gmail.com \
--cc=inki.dae@samsung.com \
--cc=jingoohan1@gmail.com \
--cc=john.stultz@linaro.org \
--cc=jy0922.shim@samsung.com \
--cc=kbuild-all@lists.01.org \
--cc=kernel@pengutronix.de \
--cc=kgene@kernel.org \
--cc=kong.kongxinwei@hisilicon.com \
--cc=krzk@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux@armlinux.org.uk \
--cc=ludovic.desroches@microchip.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=p.zabel@pengutronix.de \
--cc=patrik.r.jakobsson@gmail.com \
--cc=puck.chen@hisilicon.com \
--cc=s.hauer@pengutronix.de \
--cc=sam@ravnborg.org \
--cc=shawnguo@kernel.org \
--cc=stefan@agner.ch \
--cc=sw0312.kim@samsung.com \
--cc=tzimmermann@suse.de \
--cc=xinliang.liu@linaro.org \
--cc=zourongrong@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).