tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 5e1df3aa3a56e2423836034028e6d4eb3867491c
commit: 125c33517b95919082894a61e3b95ebdbf565203 [64/71] BACKPORT: drm/dp: Introduce
EDID-based quirks
config: x86_64-randconfig-m031-20200807 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/gpu/drm/drm_dp_helper.c:1295 drm_dp_get_edid_quirks() warn: we never enter this
loop
vim +1295 drivers/gpu/drm/drm_dp_helper.c
1270
1271 /**
1272 * drm_dp_get_edid_quirks() - Check the EDID of a DP device to find additional
1273 * DP-specific quirks
1274 * @edid: The EDID to check
1275 *
1276 * While OUIDs are meant to be used to recognize a DisplayPort device, a lot
1277 * of manufacturers don't seem to like following standards and neglect to fill
1278 * the dev-ID in, making it impossible to only use OUIDs for determining
1279 * quirks in some cases. This function can be used to check the EDID and look
1280 * up any additional DP quirks. The bits returned by this function correspond
1281 * to the quirk bits in &drm_dp_quirk.
1282 *
1283 * Returns: a bitmask of quirks, if any. The driver can check this using
1284 * drm_dp_has_quirk().
1285 */
1286 u32 drm_dp_get_edid_quirks(const struct edid *edid)
1287 {
1288 const struct edid_quirk *quirk;
1289 u32 quirks = 0;
1290 int i;
1291
1292 if (!edid)
1293 return 0;
1294
1295 for (i = 0; i < ARRAY_SIZE(edid_quirk_list); i++) {
1296 quirk = &edid_quirk_list[i];
1297 if (memcmp(quirk->mfg_id, edid->mfg_id,
1298 sizeof(edid->mfg_id)) == 0 &&
1299 memcmp(quirk->prod_id, edid->prod_code,
1300 sizeof(edid->prod_code)) == 0)
1301 quirks |= quirk->quirks;
1302 }
1303
1304 DRM_DEBUG_KMS("DP sink: EDID mfg %*phD prod-ID %*phD quirks: 0x%04x\n",
1305 (int)sizeof(edid->mfg_id), edid->mfg_id,
1306 (int)sizeof(edid->prod_code), edid->prod_code, quirks);
1307
1308 return quirks;
1309 }
1310 EXPORT_SYMBOL(drm_dp_get_edid_quirks);
1311
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org