All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC] drm/connector: Set the default callback function for drm_connector_funcs
Date: Sat, 09 Jan 2021 07:32:34 +0800	[thread overview]
Message-ID: <202101090740.TMGghU66-lkp@intel.com> (raw)
In-Reply-To: <1610092442-36168-1-git-send-email-tiantao6@hisilicon.com>

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

Hi Tian,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v5.11-rc2 next-20210108]
[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]

url:    https://github.com/0day-ci/linux/commits/Tian-Tao/drm-connector-Set-the-default-callback-function-for-drm_connector_funcs/20210108-165753
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f5e6c330254ae691f6d7befe61c786eb5056007e
config: riscv-randconfig-s031-20210108 (attached as .config)
compiler: riscv32-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
        # apt-get install sparse
        # sparse version: v0.6.3-208-g46a52ca4-dirty
        # https://github.com/0day-ci/linux/commit/37e7ae0ccb8825f7718028991d1635d60323f9dc
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Tian-Tao/drm-connector-Set-the-default-callback-function-for-drm_connector_funcs/20210108-165753
        git checkout 37e7ae0ccb8825f7718028991d1635d60323f9dc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv 

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


"sparse warnings: (new ones prefixed by >>)"
>> drivers/gpu/drm/bridge/sii902x.c:426:35: sparse: sparse: incorrect type in argument 3 (different modifiers) @@     expected struct drm_connector_funcs *funcs @@     got struct drm_connector_funcs const * @@
   drivers/gpu/drm/bridge/sii902x.c:426:35: sparse:     expected struct drm_connector_funcs *funcs
   drivers/gpu/drm/bridge/sii902x.c:426:35: sparse:     got struct drm_connector_funcs const *
--
>> drivers/gpu/drm/exynos/exynos_drm_vidi.c:346:26: sparse: sparse: incorrect type in argument 3 (different modifiers) @@     expected struct drm_connector_funcs *funcs @@     got struct drm_connector_funcs const * @@
   drivers/gpu/drm/exynos/exynos_drm_vidi.c:346:26: sparse:     expected struct drm_connector_funcs *funcs
   drivers/gpu/drm/exynos/exynos_drm_vidi.c:346:26: sparse:     got struct drm_connector_funcs const *
--
>> drivers/gpu/drm/vc4/vc4_vec.c:364:45: sparse: sparse: incorrect type in argument 3 (different modifiers) @@     expected struct drm_connector_funcs *funcs @@     got struct drm_connector_funcs const * @@
   drivers/gpu/drm/vc4/vc4_vec.c:364:45: sparse:     expected struct drm_connector_funcs *funcs
   drivers/gpu/drm/vc4/vc4_vec.c:364:45: sparse:     got struct drm_connector_funcs const *

vim +426 drivers/gpu/drm/bridge/sii902x.c

675605c1c8e6748 Boris Brezillon  2015-12-31  403  
a25b988ff83f3ca Laurent Pinchart 2020-02-26  404  static int sii902x_bridge_attach(struct drm_bridge *bridge,
a25b988ff83f3ca Laurent Pinchart 2020-02-26  405  				 enum drm_bridge_attach_flags flags)
675605c1c8e6748 Boris Brezillon  2015-12-31  406  {
675605c1c8e6748 Boris Brezillon  2015-12-31  407  	struct sii902x *sii902x = bridge_to_sii902x(bridge);
675605c1c8e6748 Boris Brezillon  2015-12-31  408  	struct drm_device *drm = bridge->dev;
675605c1c8e6748 Boris Brezillon  2015-12-31  409  	int ret;
675605c1c8e6748 Boris Brezillon  2015-12-31  410  
a25b988ff83f3ca Laurent Pinchart 2020-02-26  411  	if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) {
a25b988ff83f3ca Laurent Pinchart 2020-02-26  412  		DRM_ERROR("Fix bridge driver to make connector optional!");
a25b988ff83f3ca Laurent Pinchart 2020-02-26  413  		return -EINVAL;
a25b988ff83f3ca Laurent Pinchart 2020-02-26  414  	}
a25b988ff83f3ca Laurent Pinchart 2020-02-26  415  
675605c1c8e6748 Boris Brezillon  2015-12-31  416  	drm_connector_helper_add(&sii902x->connector,
675605c1c8e6748 Boris Brezillon  2015-12-31  417  				 &sii902x_connector_helper_funcs);
675605c1c8e6748 Boris Brezillon  2015-12-31  418  
675605c1c8e6748 Boris Brezillon  2015-12-31  419  	if (!drm_core_check_feature(drm, DRIVER_ATOMIC)) {
675605c1c8e6748 Boris Brezillon  2015-12-31  420  		dev_err(&sii902x->i2c->dev,
ce9971ded5692fa Liu Ying         2017-04-11  421  			"sii902x driver is only compatible with DRM devices supporting atomic updates\n");
675605c1c8e6748 Boris Brezillon  2015-12-31  422  		return -ENOTSUPP;
675605c1c8e6748 Boris Brezillon  2015-12-31  423  	}
675605c1c8e6748 Boris Brezillon  2015-12-31  424  
675605c1c8e6748 Boris Brezillon  2015-12-31  425  	ret = drm_connector_init(drm, &sii902x->connector,
675605c1c8e6748 Boris Brezillon  2015-12-31 @426  				 &sii902x_connector_funcs,
675605c1c8e6748 Boris Brezillon  2015-12-31  427  				 DRM_MODE_CONNECTOR_HDMIA);
675605c1c8e6748 Boris Brezillon  2015-12-31  428  	if (ret)
675605c1c8e6748 Boris Brezillon  2015-12-31  429  		return ret;
675605c1c8e6748 Boris Brezillon  2015-12-31  430  
675605c1c8e6748 Boris Brezillon  2015-12-31  431  	if (sii902x->i2c->irq > 0)
675605c1c8e6748 Boris Brezillon  2015-12-31  432  		sii902x->connector.polled = DRM_CONNECTOR_POLL_HPD;
675605c1c8e6748 Boris Brezillon  2015-12-31  433  	else
675605c1c8e6748 Boris Brezillon  2015-12-31  434  		sii902x->connector.polled = DRM_CONNECTOR_POLL_CONNECT;
675605c1c8e6748 Boris Brezillon  2015-12-31  435  
cde4c44d8769c1b Daniel Vetter    2018-07-09  436  	drm_connector_attach_encoder(&sii902x->connector, bridge->encoder);
675605c1c8e6748 Boris Brezillon  2015-12-31  437  
675605c1c8e6748 Boris Brezillon  2015-12-31  438  	return 0;
675605c1c8e6748 Boris Brezillon  2015-12-31  439  }
675605c1c8e6748 Boris Brezillon  2015-12-31  440  

---
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: 38302 bytes --]

      parent reply	other threads:[~2021-01-08 23:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-08  7:54 [RFC] drm/connector: Set the default callback function for drm_connector_funcs Tian Tao
2021-01-08  8:12 ` Thomas Zimmermann
2021-01-08  8:58   ` Daniel Vetter
2021-01-08 13:07   ` Jani Nikula
2021-01-08 15:16 ` kernel test robot
2021-01-08 15:17 ` kernel test robot
2021-01-08 23:32 ` kernel 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=202101090740.TMGghU66-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.