[Intel-xe] [drm-xe:drm-xe-next 6/6] drivers/gpu/drm/xe/display/xe_dsb_buffer.c:20:54: warning: variable 'val' is uninitialized when used within its own initialization
kernel test robot
lkp at intel.com
Wed Dec 6 03:17:11 UTC 2023
tree: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
head: 8833b1390068f7340259f5130c564cdadff5b189
commit: a8b405ffc0326c79abf737389d99c290648f381d [6/6] drm/xe/dsb: DSB implementation for xe
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20231206/202312061147.C1lwjngu-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312061147.C1lwjngu-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312061147.C1lwjngu-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/xe/display/xe_dsb_buffer.c:20:54: warning: variable 'val' is uninitialized when used within its own initialization [-Wuninitialized]
iosys_map_wr(&dsb_buf->vma->bo->vmap, idx * 4, u32, val);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
include/linux/iosys-map.h:417:16: note: expanded from macro 'iosys_map_wr'
type__ val = (val__); \
~~~ ^~~~~
1 warning generated.
vim +/val +20 drivers/gpu/drm/xe/display/xe_dsb_buffer.c
17
18 void intel_dsb_buffer_write(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val)
19 {
> 20 iosys_map_wr(&dsb_buf->vma->bo->vmap, idx * 4, u32, val);
21 }
22
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Intel-xe
mailing list