[Intel-gfx] [PATCH v3 04/14] drm/edid: parse YCBCR 420 videomodes from EDID
kbuild test robot
lkp at intel.com
Fri Jun 16 18:55:28 UTC 2017
Hi Shashank,
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v4.12-rc5 next-20170616]
[cannot apply to drm/drm-next]
[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/Shashank-Sharma/HDMI-YCBCR-output-handling-in-DRM-layer/20170617-023229
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-x070-06120530 (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=i386
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/drm_edid.c:30:0:
drivers/gpu/drm/drm_edid.c: In function 'drm_parse_y420cmdb_bitmap':
include/linux/kernel.h:40:18: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define U64_MAX ((u64)~0ULL)
^
>> drivers/gpu/drm/drm_edid.c:3630:28: note: in expansion of macro 'U64_MAX'
hdmi->ycbcr420_vcb_map = U64_MAX;
^~~~~~~
vim +/U64_MAX +3630 drivers/gpu/drm/drm_edid.c
3614 for ((i) = (start); (i) < (end) && (i) + cea_db_payload_len(&(cea)[(i)]) < (end); (i) += cea_db_payload_len(&(cea)[(i)]) + 1)
3615
3616 static void drm_parse_y420cmdb_bitmap(struct drm_connector *connector,
3617 const u8 *db)
3618 {
3619 struct drm_display_info *info = &connector->display_info;
3620 struct drm_hdmi_info *hdmi = &info->hdmi;
3621 u8 map_len = cea_db_payload_len(db) - 1;
3622 u8 count;
3623 u64 map = 0;
3624
3625 if (!db)
3626 return;
3627
3628 if (map_len == 0) {
3629 /* All CEA modes support ycbcr420 sampling also.*/
> 3630 hdmi->ycbcr420_vcb_map = U64_MAX;
3631 info->color_formats |= DRM_COLOR_FORMAT_YCRCB420;
3632 return;
3633 }
3634
3635 /*
3636 * This map indicates which of the existing CEA block modes
3637 * from VDB can support YCBCR420 output too. So if bit=0 is
3638 * set, first mode from VDB can support YCBCR420 output too.
---
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: 21292 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170617/832e4bb5/attachment-0001.gz>
More information about the Intel-gfx
mailing list