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 PATCH 2/3] drm/color: Add Color transfer functions for HDR/SDR
Date: Tue, 27 Apr 2021 06:00:26 +0800	[thread overview]
Message-ID: <202104270512.w7nozvsF-lkp@intel.com> (raw)
In-Reply-To: <20210426173852.484368-3-harry.wentland@amd.com>

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

Hi Harry,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next next-20210426]
[cannot apply to sunxi/sunxi/for-next tegra-drm/drm/tegra/for-next linus/master linux-arm/drm-armada-devel linux-arm/drm-armada-fixes drm/drm-next v5.12]
[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/Harry-Wentland/A-drm_plane-API-to-support-HDR-planes/20210427-014025
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: ia64-randconfig-r005-20210426 (attached as .config)
compiler: ia64-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/ecfbc414b1dcfcaa7a3e39c8b5a1f10377e1548e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Harry-Wentland/A-drm_plane-API-to-support-HDR-planes/20210427-014025
        git checkout ecfbc414b1dcfcaa7a3e39c8b5a1f10377e1548e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=ia64 

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

All error/warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_color_mgmt.c:529:13: warning: no previous prototype for 'drm_get_color_transfer_function_name' [-Wmissing-prototypes]
     529 | const char *drm_get_color_transfer_function_name(enum drm_color_transfer_function tf)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/gpu/drm/tidss/tidss_plane.c: In function 'tidss_plane_create':
>> drivers/gpu/drm/tidss/tidss_plane.c:242: error: unterminated argument list invoking macro "BIT"
     242 | }
         | 
>> drivers/gpu/drm/tidss/tidss_plane.c:189:18: error: 'BIT' undeclared (first use in this function)
     189 |  u32 color_tfs = BIT(DRM_COLOR_TF_SRGB;
         |                  ^~~
   drivers/gpu/drm/tidss/tidss_plane.c:189:18: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/tidss/tidss_plane.c:189:2: error: expected ',' or ';' at end of input
     189 |  u32 color_tfs = BIT(DRM_COLOR_TF_SRGB;
         |  ^~~
>> drivers/gpu/drm/tidss/tidss_plane.c:189:2: error: expected declaration or statement at end of input
   drivers/gpu/drm/tidss/tidss_plane.c:189:6: warning: unused variable 'color_tfs' [-Wunused-variable]
     189 |  u32 color_tfs = BIT(DRM_COLOR_TF_SRGB;
         |      ^~~~~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:187:6: warning: unused variable 'color_ranges' [-Wunused-variable]
     187 |  u32 color_ranges = (BIT(DRM_COLOR_YCBCR_FULL_RANGE) |
         |      ^~~~~~~~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:185:6: warning: unused variable 'color_encodings' [-Wunused-variable]
     185 |  u32 color_encodings = (BIT(DRM_COLOR_YCBCR_BT601) |
         |      ^~~~~~~~~~~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:184:6: warning: unused variable 'num_planes' [-Wunused-variable]
     184 |  u32 num_planes = tidss->feat->num_planes;
         |      ^~~~~~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:183:6: warning: unused variable 'possible_crtcs' [-Wunused-variable]
     183 |  u32 possible_crtcs;
         |      ^~~~~~~~~~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:182:22: warning: unused variable 'type' [-Wunused-variable]
     182 |  enum drm_plane_type type;
         |                      ^~~~
   drivers/gpu/drm/tidss/tidss_plane.c:181:22: warning: unused variable 'tplane' [-Wunused-variable]
     181 |  struct tidss_plane *tplane;
         |                      ^~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:189:2: error: control reaches end of non-void function [-Werror=return-type]
     189 |  u32 color_tfs = BIT(DRM_COLOR_TF_SRGB;
         |  ^~~
   At top level:
   drivers/gpu/drm/tidss/tidss_plane.c:167:37: warning: 'tidss_plane_funcs' defined but not used [-Wunused-const-variable=]
     167 | static const struct drm_plane_funcs tidss_plane_funcs = {
         |                                     ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/tidss/tidss_plane.c:160:44: warning: 'tidss_plane_helper_funcs' defined but not used [-Wunused-const-variable=]
     160 | static const struct drm_plane_helper_funcs tidss_plane_helper_funcs = {
         |                                            ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/BIT +242 drivers/gpu/drm/tidss/tidss_plane.c

32a1795f57eecc Jyri Sarha        2019-11-08  175  
32a1795f57eecc Jyri Sarha        2019-11-08  176  struct tidss_plane *tidss_plane_create(struct tidss_device *tidss,
32a1795f57eecc Jyri Sarha        2019-11-08  177  				       u32 hw_plane_id, u32 plane_type,
32a1795f57eecc Jyri Sarha        2019-11-08  178  				       u32 crtc_mask, const u32 *formats,
32a1795f57eecc Jyri Sarha        2019-11-08  179  				       u32 num_formats)
32a1795f57eecc Jyri Sarha        2019-11-08  180  {
32a1795f57eecc Jyri Sarha        2019-11-08  181  	struct tidss_plane *tplane;
32a1795f57eecc Jyri Sarha        2019-11-08  182  	enum drm_plane_type type;
32a1795f57eecc Jyri Sarha        2019-11-08  183  	u32 possible_crtcs;
32a1795f57eecc Jyri Sarha        2019-11-08  184  	u32 num_planes = tidss->feat->num_planes;
32a1795f57eecc Jyri Sarha        2019-11-08  185  	u32 color_encodings = (BIT(DRM_COLOR_YCBCR_BT601) |
32a1795f57eecc Jyri Sarha        2019-11-08  186  			       BIT(DRM_COLOR_YCBCR_BT709));
32a1795f57eecc Jyri Sarha        2019-11-08  187  	u32 color_ranges = (BIT(DRM_COLOR_YCBCR_FULL_RANGE) |
32a1795f57eecc Jyri Sarha        2019-11-08  188  			    BIT(DRM_COLOR_YCBCR_LIMITED_RANGE));
ecfbc414b1dcfc Bhawanpreet Lakha 2021-04-26 @189  	u32 color_tfs = BIT(DRM_COLOR_TF_SRGB;
32a1795f57eecc Jyri Sarha        2019-11-08  190  	u32 default_encoding = DRM_COLOR_YCBCR_BT601;
32a1795f57eecc Jyri Sarha        2019-11-08  191  	u32 default_range = DRM_COLOR_YCBCR_FULL_RANGE;
ecfbc414b1dcfc Bhawanpreet Lakha 2021-04-26  192  	u32 default_tf = DRM_COLOR_TF_SRGB;;
32a1795f57eecc Jyri Sarha        2019-11-08  193  	u32 blend_modes = (BIT(DRM_MODE_BLEND_PREMULTI) |
32a1795f57eecc Jyri Sarha        2019-11-08  194  			   BIT(DRM_MODE_BLEND_COVERAGE));
32a1795f57eecc Jyri Sarha        2019-11-08  195  	int ret;
32a1795f57eecc Jyri Sarha        2019-11-08  196  
9da67433f64eb8 Tomi Valkeinen    2020-04-15  197  	tplane = kzalloc(sizeof(*tplane), GFP_KERNEL);
32a1795f57eecc Jyri Sarha        2019-11-08  198  	if (!tplane)
32a1795f57eecc Jyri Sarha        2019-11-08  199  		return ERR_PTR(-ENOMEM);
32a1795f57eecc Jyri Sarha        2019-11-08  200  
32a1795f57eecc Jyri Sarha        2019-11-08  201  	tplane->hw_plane_id = hw_plane_id;
32a1795f57eecc Jyri Sarha        2019-11-08  202  
32a1795f57eecc Jyri Sarha        2019-11-08  203  	possible_crtcs = crtc_mask;
32a1795f57eecc Jyri Sarha        2019-11-08  204  	type = plane_type;
32a1795f57eecc Jyri Sarha        2019-11-08  205  
32a1795f57eecc Jyri Sarha        2019-11-08  206  	ret = drm_universal_plane_init(&tidss->ddev, &tplane->plane,
32a1795f57eecc Jyri Sarha        2019-11-08  207  				       possible_crtcs,
32a1795f57eecc Jyri Sarha        2019-11-08  208  				       &tidss_plane_funcs,
32a1795f57eecc Jyri Sarha        2019-11-08  209  				       formats, num_formats,
32a1795f57eecc Jyri Sarha        2019-11-08  210  				       NULL, type, NULL);
32a1795f57eecc Jyri Sarha        2019-11-08  211  	if (ret < 0)
9da67433f64eb8 Tomi Valkeinen    2020-04-15  212  		goto err;
32a1795f57eecc Jyri Sarha        2019-11-08  213  
32a1795f57eecc Jyri Sarha        2019-11-08  214  	drm_plane_helper_add(&tplane->plane, &tidss_plane_helper_funcs);
32a1795f57eecc Jyri Sarha        2019-11-08  215  
32a1795f57eecc Jyri Sarha        2019-11-08  216  	drm_plane_create_zpos_property(&tplane->plane, hw_plane_id, 0,
32a1795f57eecc Jyri Sarha        2019-11-08  217  				       num_planes - 1);
32a1795f57eecc Jyri Sarha        2019-11-08  218  
32a1795f57eecc Jyri Sarha        2019-11-08  219  	ret = drm_plane_create_color_properties(&tplane->plane,
32a1795f57eecc Jyri Sarha        2019-11-08  220  						color_encodings,
32a1795f57eecc Jyri Sarha        2019-11-08  221  						color_ranges,
ecfbc414b1dcfc Bhawanpreet Lakha 2021-04-26  222  						color_tfs,
32a1795f57eecc Jyri Sarha        2019-11-08  223  						default_encoding,
ecfbc414b1dcfc Bhawanpreet Lakha 2021-04-26  224  						default_range,
ecfbc414b1dcfc Bhawanpreet Lakha 2021-04-26  225  						default_tf);
32a1795f57eecc Jyri Sarha        2019-11-08  226  	if (ret)
9da67433f64eb8 Tomi Valkeinen    2020-04-15  227  		goto err;
32a1795f57eecc Jyri Sarha        2019-11-08  228  
32a1795f57eecc Jyri Sarha        2019-11-08  229  	ret = drm_plane_create_alpha_property(&tplane->plane);
32a1795f57eecc Jyri Sarha        2019-11-08  230  	if (ret)
9da67433f64eb8 Tomi Valkeinen    2020-04-15  231  		goto err;
32a1795f57eecc Jyri Sarha        2019-11-08  232  
32a1795f57eecc Jyri Sarha        2019-11-08  233  	ret = drm_plane_create_blend_mode_property(&tplane->plane, blend_modes);
32a1795f57eecc Jyri Sarha        2019-11-08  234  	if (ret)
9da67433f64eb8 Tomi Valkeinen    2020-04-15  235  		goto err;
32a1795f57eecc Jyri Sarha        2019-11-08  236  
32a1795f57eecc Jyri Sarha        2019-11-08  237  	return tplane;
9da67433f64eb8 Tomi Valkeinen    2020-04-15  238  
9da67433f64eb8 Tomi Valkeinen    2020-04-15  239  err:
9da67433f64eb8 Tomi Valkeinen    2020-04-15  240  	kfree(tplane);
9da67433f64eb8 Tomi Valkeinen    2020-04-15  241  	return ERR_PTR(ret);
32a1795f57eecc Jyri Sarha        2019-11-08 @242  }

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

  parent reply	other threads:[~2021-04-26 22:00 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 17:38 [RFC PATCH 0/3] A drm_plane API to support HDR planes Harry Wentland
2021-04-26 17:38 ` Harry Wentland
2021-04-26 17:38 ` [RFC PATCH 1/3] drm/color: Add RGB Color encodings Harry Wentland
2021-04-26 17:38   ` Harry Wentland
2021-04-26 18:07   ` Ville Syrjälä
2021-04-26 18:07     ` Ville Syrjälä
2021-04-26 18:56     ` Harry Wentland
2021-04-26 18:56       ` Harry Wentland
2021-04-26 19:08       ` Ville Syrjälä
2021-04-26 19:08         ` Ville Syrjälä
2021-04-30  9:04         ` Pekka Paalanen
2021-04-30  9:04           ` Pekka Paalanen
2021-05-01  0:53       ` Sebastian Wick
2021-05-01  0:53         ` Sebastian Wick
2021-05-14 21:04         ` Harry Wentland
2021-05-14 21:04           ` Harry Wentland
2021-05-17  8:34           ` Pekka Paalanen
2021-05-17  8:34             ` Pekka Paalanen
2021-05-18 14:32             ` Harry Wentland
2021-05-18 14:32               ` Harry Wentland
2021-05-19  7:56               ` Pekka Paalanen
2021-05-19  7:56                 ` Pekka Paalanen
2021-04-26 17:38 ` [RFC PATCH 2/3] drm/color: Add Color transfer functions for HDR/SDR Harry Wentland
2021-04-26 17:38   ` Harry Wentland
2021-04-26 19:03   ` kernel test robot
2021-04-26 20:27   ` kernel test robot
2021-04-26 20:27   ` [RFC PATCH] drm/color: drm_get_color_transfer_function_name() can be static kernel test robot
2021-04-26 21:29   ` [RFC PATCH 2/3] drm/color: Add Color transfer functions for HDR/SDR kernel test robot
2021-04-26 22:00   ` kernel test robot [this message]
2021-04-26 17:38 ` [RFC PATCH 3/3] drm/color: Add sdr boost property Harry Wentland
2021-04-26 17:38   ` Harry Wentland
2021-04-26 20:38   ` kernel test robot
2021-04-26 21:45   ` kernel test robot
2021-04-26 21:45   ` [RFC PATCH] drm/color: drm_plane_create_sdr_white_level_property() can be static kernel test robot
2021-04-27  9:09 ` [RFC PATCH 0/3] A drm_plane API to support HDR planes Daniel Vetter
2021-04-27  9:09   ` Daniel Vetter
2021-04-27 14:50 ` Pekka Paalanen
2021-04-27 14:50   ` Pekka Paalanen
2021-04-28  7:54   ` Shashank Sharma
2021-04-28  7:54     ` Shashank Sharma
2021-04-30  9:43     ` Pekka Paalanen
2021-04-30  9:43       ` Pekka Paalanen
2021-04-30 10:39       ` Shashank Sharma
2021-04-30 10:39         ` Shashank Sharma
2021-05-14 21:01         ` Harry Wentland
2021-05-14 21:01           ` Harry Wentland
2021-05-14 21:05   ` Harry Wentland
2021-05-14 21:05     ` Harry Wentland
2021-05-17  8:57     ` Pekka Paalanen
2021-05-17  8:57       ` Pekka Paalanen
2021-05-17 16:48       ` Sebastian Wick
2021-05-17 16:48         ` Sebastian Wick
2021-05-17 19:39         ` Vitaly Prosyak
2021-05-17 19:39           ` Vitaly Prosyak
2021-05-18  7:56           ` Pekka Paalanen
2021-05-18  7:56             ` Pekka Paalanen
2021-05-18 14:19             ` Harry Wentland
2021-05-18 14:19               ` Harry Wentland
2021-05-18 23:00               ` Sebastian Wick
2021-05-18 23:00                 ` Sebastian Wick
2021-05-19  8:53               ` Pekka Paalanen
2021-05-19  8:53                 ` Pekka Paalanen
2021-05-19 10:02                 ` Pekka Paalanen
2021-05-19 10:02                   ` Pekka Paalanen

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=202104270512.w7nozvsF-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.