[PATCH] drm: Add optional COLOR_ENCODING and COLOR_RANGE properties to drm_plane

kbuild test robot lkp at intel.com
Sun Jun 11 22:00:33 UTC 2017


Hi Jyri,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on next-20170609]
[cannot apply to v4.12-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Jyri-Sarha/drm-Add-optional-COLOR_ENCODING-and-COLOR_RANGE-properties-to-drm_plane/20170612-051658
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-randconfig-x010-201724 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_color_mgmt.c: In function 'drm_plane_create_color_properties':
>> drivers/gpu/drm/drm_color_mgmt.c:395:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      enum_list[len].name = color_encoding_name[i];
                          ^
   drivers/gpu/drm/drm_color_mgmt.c:414:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      enum_list[len].name = color_range_name[i];
                          ^

vim +/const +395 drivers/gpu/drm/drm_color_mgmt.c

   379					      u32 supported_ranges,
   380					      enum drm_color_encoding default_encoding,
   381					      enum drm_color_range default_range)
   382	{
   383		struct drm_device *dev = plane->dev;
   384		struct drm_property *prop;
   385		struct drm_prop_enum_list enum_list[max(DRM_COLOR_ENCODING_MAX,
   386							DRM_COLOR_RANGE_MAX)];
   387		int i, len;
   388	
   389		len = 0;
   390		for (i = 0; i < DRM_COLOR_ENCODING_MAX; i++) {
   391			if ((supported_encodings & BIT(i)) == 0)
   392				continue;
   393	
   394			enum_list[len].type = i;
 > 395			enum_list[len].name = color_encoding_name[i];
   396			len++;
   397		}
   398	
   399		prop = drm_property_create_enum(dev, 0, "COLOR_ENCODING",
   400						enum_list, len);
   401		if (!prop)
   402			return -ENOMEM;
   403		plane->color_encoding_property = prop;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 22895 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170612/acc34fc9/attachment-0001.gz>


More information about the dri-devel mailing list