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: Fri, 08 Jan 2021 23:16:09 +0800	[thread overview]
Message-ID: <202101082305.ghuIv5CA-lkp@intel.com> (raw)
In-Reply-To: <1610092442-36168-1-git-send-email-tiantao6@hisilicon.com>

[-- Attachment #1: Type: text/plain, Size: 16185 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: m68k-allmodconfig (attached as .config)
compiler: m68k-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://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 ARCH=m68k 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/err.h:5,
                    from include/linux/regulator/consumer.h:34,
                    from drivers/gpu/drm/exynos/exynos_drm_dpi.c:11:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/gpu/drm/exynos/exynos_drm_dpi.c: In function 'exynos_dpi_create_connector':
>> drivers/gpu/drm/exynos/exynos_drm_dpi.c:102:6: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     102 |      &exynos_dpi_connector_funcs,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/exynos/exynos_drm_dpi.c:13:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
--
   In file included from include/linux/err.h:5,
                    from include/linux/clk.h:12,
                    from drivers/gpu/drm/exynos/exynos_drm_dsi.c:10:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_create_connector':
>> drivers/gpu/drm/exynos/exynos_drm_dsi.c:1502:43: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1502 |  ret = drm_connector_init(drm, connector, &exynos_dsi_connector_funcs,
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/exynos/exynos_drm_dsi.c:26:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
--
   In file included from include/linux/kernel.h:10,
                    from drivers/gpu/drm/exynos/exynos_drm_vidi.c:10:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/gpu/drm/exynos/exynos_drm_vidi.c: In function 'vidi_create_connector':
>> drivers/gpu/drm/exynos/exynos_drm_vidi.c:346:4: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     346 |    &vidi_connector_funcs, DRM_MODE_CONNECTOR_VIRTUAL);
         |    ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/exynos/exynos_drm_vidi.c:14:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
--
   drivers/gpu/drm/imx/parallel-display.c: In function 'imx_pd_register':
>> drivers/gpu/drm/imx/parallel-display.c:282:8: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     282 |        &imx_pd_connector_funcs,
         |        ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/imx/parallel-display.c:15:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
--
   In file included from include/linux/err.h:5,
                    from include/linux/clk.h:12,
                    from drivers/gpu/drm/rockchip/cdn-dp-core.c:7:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_bind':
>> drivers/gpu/drm/rockchip/cdn-dp-core.c:1045:6: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1045 |      &cdn_dp_atomic_connector_funcs,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/rockchip/cdn-dp-core.c:18:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   At top level:
   drivers/gpu/drm/rockchip/cdn-dp-core.c:1124:12: warning: 'cdn_dp_resume' defined but not used [-Wunused-function]
    1124 | static int cdn_dp_resume(struct device *dev)
         |            ^~~~~~~~~~~~~
--
   In file included from include/linux/err.h:5,
                    from include/linux/clk.h:12,
                    from drivers/gpu/drm/rockchip/rockchip_lvds.c:9:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_bind':
>> drivers/gpu/drm/rockchip/rockchip_lvds.c:620:7: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     620 |       &rockchip_lvds_connector_funcs,
         |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/rockchip/rockchip_lvds.c:20:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
--
   In file included from include/linux/build_bug.h:5,
                    from include/linux/bits.h:22,
                    from include/linux/ioport.h:13,
                    from include/linux/acpi.h:12,
                    from include/linux/i2c.h:13,
                    from include/drm/drm_crtc.h:28,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/vc4/vc4_vec.c:16:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
     137 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_vec.c: In function 'vc4_vec_connector_init':
>> drivers/gpu/drm/vc4/vc4_vec.c:364:37: warning: passing argument 3 of 'drm_connector_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     364 |  drm_connector_init(dev, connector, &vc4_vec_connector_funcs,
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modes.h:33,
                    from include/drm/drm_crtc.h:40,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/vc4/vc4_vec.c:16:
   include/drm/drm_connector.h:1515:38: note: expected 'struct drm_connector_funcs *' but argument is of type 'const struct drm_connector_funcs *'
    1515 |          struct drm_connector_funcs *funcs,
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~


vim +102 drivers/gpu/drm/exynos/exynos_drm_dpi.c

14b6873a01981b2 Andrzej Hajda   2014-03-17   92  
2b8376c803c4c1c Gustavo Padovan 2015-08-15   93  static int exynos_dpi_create_connector(struct drm_encoder *encoder)
14b6873a01981b2 Andrzej Hajda   2014-03-17   94  {
2b8376c803c4c1c Gustavo Padovan 2015-08-15   95  	struct exynos_dpi *ctx = encoder_to_dpi(encoder);
14b6873a01981b2 Andrzej Hajda   2014-03-17   96  	struct drm_connector *connector = &ctx->connector;
14b6873a01981b2 Andrzej Hajda   2014-03-17   97  	int ret;
14b6873a01981b2 Andrzej Hajda   2014-03-17   98  
14b6873a01981b2 Andrzej Hajda   2014-03-17   99  	connector->polled = DRM_CONNECTOR_POLL_HPD;
14b6873a01981b2 Andrzej Hajda   2014-03-17  100  
14b6873a01981b2 Andrzej Hajda   2014-03-17  101  	ret = drm_connector_init(encoder->dev, connector,
14b6873a01981b2 Andrzej Hajda   2014-03-17 @102  				 &exynos_dpi_connector_funcs,
14b6873a01981b2 Andrzej Hajda   2014-03-17  103  				 DRM_MODE_CONNECTOR_VGA);
14b6873a01981b2 Andrzej Hajda   2014-03-17  104  	if (ret) {
6f83d20838c0993 Inki Dae        2019-04-15  105  		DRM_DEV_ERROR(ctx->dev,
6f83d20838c0993 Inki Dae        2019-04-15  106  			      "failed to initialize connector with drm\n");
14b6873a01981b2 Andrzej Hajda   2014-03-17  107  		return ret;
14b6873a01981b2 Andrzej Hajda   2014-03-17  108  	}
14b6873a01981b2 Andrzej Hajda   2014-03-17  109  
14b6873a01981b2 Andrzej Hajda   2014-03-17  110  	drm_connector_helper_add(connector, &exynos_dpi_connector_helper_funcs);
cde4c44d8769c1b Daniel Vetter   2018-07-09  111  	drm_connector_attach_encoder(connector, encoder);
14b6873a01981b2 Andrzej Hajda   2014-03-17  112  
14b6873a01981b2 Andrzej Hajda   2014-03-17  113  	return 0;
14b6873a01981b2 Andrzej Hajda   2014-03-17  114  }
14b6873a01981b2 Andrzej Hajda   2014-03-17  115  

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

  parent reply	other threads:[~2021-01-08 15:16 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 [this message]
2021-01-08 15:17 ` kernel test robot
2021-01-08 23:32 ` kernel test robot

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=202101082305.ghuIv5CA-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.