* [zen-kernel-zen-kernel:5.11/zen-sauce 6/24] drivers/gpu/drm/drm_plane_helper.c:126:14: warning: 'visible' is used uninitialized in this function
@ 2021-02-16 0:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-16 0:58 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5438 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.11/zen-sauce
head: 791993e1c1fd68c5c05295efabebb8b4b3579f3a
commit: 456aec2082a997b3bd1e27092eab880fc140119c [6/24] ZEN: Disable stack conservation for GCC
config: mips-randconfig-m031-20210215 (attached as .config)
compiler: mipsel-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
# https://github.com/zen-kernel/zen-kernel/commit/456aec2082a997b3bd1e27092eab880fc140119c
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.11/zen-sauce
git checkout 456aec2082a997b3bd1e27092eab880fc140119c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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:126:14: warning: 'visible' is used uninitialized in this function [-Wuninitialized]
126 | .visible = *visible,
| ^~~~~~~~
drivers/gpu/drm/drm_plane_helper.c:178:7: note: 'visible' was declared here
178 | bool visible;
| ^~~~~~~
vim +/visible +126 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 126 was first introduced by commit
:::::: df86af9133b4958a04c44828d29617eb1a6ff31c drm/plane-helper: Add drm_plane_helper_check_state()
:::::: TO: Ville Syrjälä <ville.syrjala@linux.intel.com>
:::::: CC: Sean Paul <seanpaul@chromium.org>
---
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: 34632 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-16 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 0:58 [zen-kernel-zen-kernel:5.11/zen-sauce 6/24] drivers/gpu/drm/drm_plane_helper.c:126:14: 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.