All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen:5.15/zen-sauce 6/28] drivers/gpu/drm/drm_plane_helper.c:113:25: warning: 'visible' is used uninitialized in this function
@ 2021-12-20 14:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-20 14:07 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5429 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.15/zen-sauce
head:   81ba2917231b206b7b6b9b160e456c5452c4f62e
commit: e5a3bbcb4908996f6034817704297979cbf2dc07 [6/28] ZEN: Disable stack conservation for GCC
config: x86_64-randconfig-a003-20211220 (https://download.01.org/0day-ci/archive/20211220/202112202106.QIjn8jBv-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/zen-kernel/zen-kernel/commit/e5a3bbcb4908996f6034817704297979cbf2dc07
        git remote add zen https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen 5.15/zen-sauce
        git checkout e5a3bbcb4908996f6034817704297979cbf2dc07
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_plane_helper.c: In function 'drm_primary_helper_update':
>> drivers/gpu/drm/drm_plane_helper.c:113:25: warning: 'visible' is used uninitialized in this function [-Wuninitialized]
     113 |  struct drm_plane_state plane_state = {
         |                         ^~~~~~~~~~~
   drivers/gpu/drm/drm_plane_helper.c:178:7: note: 'visible' was declared here
     178 |  bool visible;
         |       ^~~~~~~


vim +/visible +113 drivers/gpu/drm/drm_plane_helper.c

c103d1cfb3543f Matt Roper    2014-04-01  100  
84c0851794d40b Daniel Vetter 2018-10-04  101  static int drm_plane_helper_check_update(struct drm_plane *plane,
df86af9133b495 Ville Syrjälä 2016-08-08  102  					 struct drm_crtc *crtc,
df86af9133b495 Ville Syrjälä 2016-08-08  103  					 struct drm_framebuffer *fb,
df86af9133b495 Ville Syrjälä 2016-08-08  104  					 struct drm_rect *src,
df86af9133b495 Ville Syrjälä 2016-08-08  105  					 struct drm_rect *dst,
df86af9133b495 Ville Syrjälä 2016-08-08  106  					 unsigned int rotation,
df86af9133b495 Ville Syrjälä 2016-08-08  107  					 int min_scale,
df86af9133b495 Ville Syrjälä 2016-08-08  108  					 int max_scale,
df86af9133b495 Ville Syrjälä 2016-08-08  109  					 bool can_position,
df86af9133b495 Ville Syrjälä 2016-08-08  110  					 bool can_update_disabled,
df86af9133b495 Ville Syrjälä 2016-08-08  111  					 bool *visible)
df86af9133b495 Ville Syrjälä 2016-08-08  112  {
10b47ee02d1ae6 Ville Syrjälä 2017-11-01 @113  	struct drm_plane_state plane_state = {
df86af9133b495 Ville Syrjälä 2016-08-08  114  		.plane = plane,
df86af9133b495 Ville Syrjälä 2016-08-08  115  		.crtc = crtc,
df86af9133b495 Ville Syrjälä 2016-08-08  116  		.fb = fb,
df86af9133b495 Ville Syrjälä 2016-08-08  117  		.src_x = src->x1,
df86af9133b495 Ville Syrjälä 2016-08-08  118  		.src_y = src->y1,
df86af9133b495 Ville Syrjälä 2016-08-08  119  		.src_w = drm_rect_width(src),
df86af9133b495 Ville Syrjälä 2016-08-08  120  		.src_h = drm_rect_height(src),
df86af9133b495 Ville Syrjälä 2016-08-08  121  		.crtc_x = dst->x1,
df86af9133b495 Ville Syrjälä 2016-08-08  122  		.crtc_y = dst->y1,
df86af9133b495 Ville Syrjälä 2016-08-08  123  		.crtc_w = drm_rect_width(dst),
df86af9133b495 Ville Syrjälä 2016-08-08  124  		.crtc_h = drm_rect_height(dst),
df86af9133b495 Ville Syrjälä 2016-08-08  125  		.rotation = rotation,
df86af9133b495 Ville Syrjälä 2016-08-08  126  		.visible = *visible,
df86af9133b495 Ville Syrjälä 2016-08-08  127  	};
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  128  	struct drm_crtc_state crtc_state = {
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  129  		.crtc = crtc,
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  130  		.enable = crtc->enabled,
81af63a4af82e7 Ville Syrjälä 2018-01-23  131  		.mode = crtc->mode,
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  132  	};
df86af9133b495 Ville Syrjälä 2016-08-08  133  	int ret;
df86af9133b495 Ville Syrjälä 2016-08-08  134  
a01cb8ba3f6282 Ville Syrjälä 2017-11-01  135  	ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state,
81af63a4af82e7 Ville Syrjälä 2018-01-23  136  						  min_scale, max_scale,
df86af9133b495 Ville Syrjälä 2016-08-08  137  						  can_position,
df86af9133b495 Ville Syrjälä 2016-08-08  138  						  can_update_disabled);
df86af9133b495 Ville Syrjälä 2016-08-08  139  	if (ret)
df86af9133b495 Ville Syrjälä 2016-08-08  140  		return ret;
df86af9133b495 Ville Syrjälä 2016-08-08  141  
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  142  	*src = plane_state.src;
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  143  	*dst = plane_state.dst;
10b47ee02d1ae6 Ville Syrjälä 2017-11-01  144  	*visible = plane_state.visible;
df86af9133b495 Ville Syrjälä 2016-08-08  145  
df86af9133b495 Ville Syrjälä 2016-08-08  146  	return 0;
df86af9133b495 Ville Syrjälä 2016-08-08  147  }
7daf8d54c17c6d Matt Roper    2014-05-29  148  

:::::: The code at line 113 was first introduced by commit
:::::: 10b47ee02d1ae66160058241cf5b962f64e81b47 drm: Check crtc_state->enable rather than crtc->enabled in drm_plane_helper_check_state()

:::::: TO: Ville Syrjälä <ville.syrjala@linux.intel.com>
:::::: CC: Ville Syrjälä <ville.syrjala@linux.intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-20 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 14:07 [zen:5.15/zen-sauce 6/28] drivers/gpu/drm/drm_plane_helper.c:113:25: warning: 'visible' is used uninitialized in this function kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.