All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.8/zen-sauce 25/26] drivers/gpu/drm/drm_plane_helper.c:113:25: warning: 'visible' is used uninitialized in this function
@ 2020-08-04 13:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-04 13:48 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/zen-kernel/zen-kernel 5.8/zen-sauce
head:   4ae00f4cbefe933616f33bf79935393ec49dbfa3
commit: ce3818135dbeb6a8c56979ca6198348c92590d74 [25/26] kbuild: Disable stack conservation for GCC
config: openrisc-randconfig-r014-20200804 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ce3818135dbeb6a8c56979ca6198348c92590d74
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26823 bytes --]

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

only message in thread, other threads:[~2020-08-04 13:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04 13:48 [zen-kernel-zen-kernel:5.8/zen-sauce 25/26] 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.