All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:tmp 12072/12184] drivers/gpu/drm/meson/meson_drv.c:287:8: error: implicit declaration of function 'drmm_mode_config_init'; did you mean
@ 2021-03-24  4:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-24  4:02 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7046 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head:   13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: 54f9fd5a02a5b39180311b039e874449997747e0 [12072/12184] drm/meson: Drop explicit drm_mode_config_cleanup call
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=54f9fd5a02a5b39180311b039e874449997747e0
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable tmp
        git checkout 54f9fd5a02a5b39180311b039e874449997747e0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/gpu/drm/meson/meson_drv.c: In function 'meson_drv_bind_master':
>> drivers/gpu/drm/meson/meson_drv.c:287:8: error: implicit declaration of function 'drmm_mode_config_init'; did you mean 'drm_mode_config_init'? [-Werror=implicit-function-declaration]
     287 |  ret = drmm_mode_config_init(drm);
         |        ^~~~~~~~~~~~~~~~~~~~~
         |        drm_mode_config_init
   cc1: some warnings being treated as errors


vim +287 drivers/gpu/drm/meson/meson_drv.c

   185	
   186	static int meson_drv_bind_master(struct device *dev, bool has_components)
   187	{
   188		struct platform_device *pdev = to_platform_device(dev);
   189		const struct meson_drm_match_data *match;
   190		struct meson_drm *priv;
   191		struct drm_device *drm;
   192		struct resource *res;
   193		void __iomem *regs;
   194		int ret;
   195	
   196		/* Checks if an output connector is available */
   197		if (!meson_vpu_has_available_connectors(dev)) {
   198			dev_err(dev, "No output connector available\n");
   199			return -ENODEV;
   200		}
   201	
   202		match = of_device_get_match_data(dev);
   203		if (!match)
   204			return -ENODEV;
   205	
   206		drm = drm_dev_alloc(&meson_driver, dev);
   207		if (IS_ERR(drm))
   208			return PTR_ERR(drm);
   209	
   210		priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
   211		if (!priv) {
   212			ret = -ENOMEM;
   213			goto free_drm;
   214		}
   215		drm->dev_private = priv;
   216		priv->drm = drm;
   217		priv->dev = dev;
   218		priv->compat = match->compat;
   219		priv->afbcd.ops = match->afbcd_ops;
   220	
   221		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vpu");
   222		regs = devm_ioremap_resource(dev, res);
   223		if (IS_ERR(regs)) {
   224			ret = PTR_ERR(regs);
   225			goto free_drm;
   226		}
   227	
   228		priv->io_base = regs;
   229	
   230		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hhi");
   231		if (!res) {
   232			ret = -EINVAL;
   233			goto free_drm;
   234		}
   235		/* Simply ioremap since it may be a shared register zone */
   236		regs = devm_ioremap(dev, res->start, resource_size(res));
   237		if (!regs) {
   238			ret = -EADDRNOTAVAIL;
   239			goto free_drm;
   240		}
   241	
   242		priv->hhi = devm_regmap_init_mmio(dev, regs,
   243						  &meson_regmap_config);
   244		if (IS_ERR(priv->hhi)) {
   245			dev_err(&pdev->dev, "Couldn't create the HHI regmap\n");
   246			ret = PTR_ERR(priv->hhi);
   247			goto free_drm;
   248		}
   249	
   250		priv->canvas = meson_canvas_get(dev);
   251		if (IS_ERR(priv->canvas)) {
   252			ret = PTR_ERR(priv->canvas);
   253			goto free_drm;
   254		}
   255	
   256		ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_osd1);
   257		if (ret)
   258			goto free_drm;
   259		ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_vd1_0);
   260		if (ret) {
   261			meson_canvas_free(priv->canvas, priv->canvas_id_osd1);
   262			goto free_drm;
   263		}
   264		ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_vd1_1);
   265		if (ret) {
   266			meson_canvas_free(priv->canvas, priv->canvas_id_osd1);
   267			meson_canvas_free(priv->canvas, priv->canvas_id_vd1_0);
   268			goto free_drm;
   269		}
   270		ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_vd1_2);
   271		if (ret) {
   272			meson_canvas_free(priv->canvas, priv->canvas_id_osd1);
   273			meson_canvas_free(priv->canvas, priv->canvas_id_vd1_0);
   274			meson_canvas_free(priv->canvas, priv->canvas_id_vd1_1);
   275			goto free_drm;
   276		}
   277	
   278		priv->vsync_irq = platform_get_irq(pdev, 0);
   279	
   280		ret = drm_vblank_init(drm, 1);
   281		if (ret)
   282			goto free_drm;
   283	
   284		/* Remove early framebuffers (ie. simplefb) */
   285		meson_remove_framebuffers();
   286	
 > 287		ret = drmm_mode_config_init(drm);
   288		if (ret)
   289			goto free_drm;
   290		drm->mode_config.max_width = 3840;
   291		drm->mode_config.max_height = 2160;
   292		drm->mode_config.funcs = &meson_mode_config_funcs;
   293		drm->mode_config.helper_private	= &meson_mode_config_helpers;
   294	
   295		/* Hardware Initialization */
   296	
   297		meson_vpu_init(priv);
   298		meson_venc_init(priv);
   299		meson_vpp_init(priv);
   300		meson_viu_init(priv);
   301		if (priv->afbcd.ops) {
   302			ret = priv->afbcd.ops->init(priv);
   303			if (ret)
   304				return ret;
   305		}
   306	
   307		/* Encoder Initialization */
   308	
   309		ret = meson_venc_cvbs_create(priv);
   310		if (ret)
   311			goto free_drm;
   312	
   313		if (has_components) {
   314			ret = component_bind_all(drm->dev, drm);
   315			if (ret) {
   316				dev_err(drm->dev, "Couldn't bind all components\n");
   317				goto free_drm;
   318			}
   319		}
   320	
   321		ret = meson_plane_create(priv);
   322		if (ret)
   323			goto free_drm;
   324	
   325		ret = meson_overlay_create(priv);
   326		if (ret)
   327			goto free_drm;
   328	
   329		ret = meson_crtc_create(priv);
   330		if (ret)
   331			goto free_drm;
   332	
   333		ret = drm_irq_install(drm, priv->vsync_irq);
   334		if (ret)
   335			goto free_drm;
   336	
   337		drm_mode_config_reset(drm);
   338	
   339		drm_kms_helper_poll_init(drm);
   340	
   341		platform_set_drvdata(pdev, priv);
   342	
   343		ret = drm_dev_register(drm, 0);
   344		if (ret)
   345			goto uninstall_irq;
   346	
   347		drm_fbdev_generic_setup(drm, 32);
   348	
   349		return 0;
   350	
   351	uninstall_irq:
   352		drm_irq_uninstall(drm);
   353	free_drm:
   354		drm_dev_put(drm);
   355	
   356		return ret;
   357	}
   358	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 68128 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-24  4:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  4:02 [sashal-linux-stable:tmp 12072/12184] drivers/gpu/drm/meson/meson_drv.c:287:8: error: implicit declaration of function 'drmm_mode_config_init'; did you mean kernel test robot

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.