[vsyrjala:vbt_panel_type_pnp_id_2 31/32] drivers/gpu/drm/i915/display/intel_bios.c:619:9: sparse: sparse: cast to restricted __be16

From: kernel test robot
Date: Tue Apr 05 2022 - 16:29:23 EST


tree: https://github.com/vsyrjala/linux.git vbt_panel_type_pnp_id_2
head: 805ff25c9e3d368cf07b5ce3c36a37a7240185ff
commit: d7d51fb935143002f73468eee9fd1ed3bafa7b08 [31/32] drm/i915/bios: Dump PNPID and panel name
config: i386-randconfig-s001 (https://download.01.org/0day-ci/archive/20220406/202204060009.xXKxOfo4-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/vsyrjala/linux/commit/d7d51fb935143002f73468eee9fd1ed3bafa7b08
git remote add vsyrjala https://github.com/vsyrjala/linux.git
git fetch --no-tags vsyrjala vbt_panel_type_pnp_id_2
git checkout d7d51fb935143002f73468eee9fd1ed3bafa7b08
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/

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


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/display/intel_bios.c:619:9: sparse: sparse: cast to restricted __be16

vim +619 drivers/gpu/drm/i915/display/intel_bios.c

612
613 static void dump_pnp_id(struct drm_i915_private *i915,
614 const struct lvds_pnp_id *pnp_id,
615 const char *name)
616 {
617 char vend[4];
618
> 619 drm_dbg_kms(&i915->drm, "%s PNPID mfg: %s (0x%x), prod: %u, serial: %u, week: %d, year: %d\n",
620 name, drm_edid_decode_mfg_id(be16_to_cpu(pnp_id->mfg_name), vend),
621 pnp_id->mfg_name, pnp_id->product_code, pnp_id->serial,
622 pnp_id->mfg_week, pnp_id->mfg_year + 1990);
623 }
624

--
0-DAY CI Kernel Test Service
https://01.org/lkp