* [zen-kernel-zen-kernel:5.9/zen-sauce 24/24] drivers/gpu/drm/drm_plane_helper.c:113:25: warning: 'visible' is used uninitialized in this function
@ 2020-10-13 1:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-13 1:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5482 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.9/zen-sauce
head: a49dc684580cbc31949bfc4220f8ed5346382c49
commit: a49dc684580cbc31949bfc4220f8ed5346382c49 [24/24] kbuild: Disable stack conservation for GCC
config: x86_64-randconfig-s022-20201012 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-rc1-dirty
# https://github.com/zen-kernel/zen-kernel/commit/a49dc684580cbc31949bfc4220f8ed5346382c49
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.9/zen-sauce
git checkout a49dc684580cbc31949bfc4220f8ed5346382c49
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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
c103d1cfb3543f6 Matt Roper 2014-04-01 100
84c0851794d40b1 Daniel Vetter 2018-10-04 101 static int drm_plane_helper_check_update(struct drm_plane *plane,
df86af9133b4958 Ville Syrjälä 2016-08-08 102 struct drm_crtc *crtc,
df86af9133b4958 Ville Syrjälä 2016-08-08 103 struct drm_framebuffer *fb,
df86af9133b4958 Ville Syrjälä 2016-08-08 104 struct drm_rect *src,
df86af9133b4958 Ville Syrjälä 2016-08-08 105 struct drm_rect *dst,
df86af9133b4958 Ville Syrjälä 2016-08-08 106 unsigned int rotation,
df86af9133b4958 Ville Syrjälä 2016-08-08 107 int min_scale,
df86af9133b4958 Ville Syrjälä 2016-08-08 108 int max_scale,
df86af9133b4958 Ville Syrjälä 2016-08-08 109 bool can_position,
df86af9133b4958 Ville Syrjälä 2016-08-08 110 bool can_update_disabled,
df86af9133b4958 Ville Syrjälä 2016-08-08 111 bool *visible)
df86af9133b4958 Ville Syrjälä 2016-08-08 112 {
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 @113 struct drm_plane_state plane_state = {
df86af9133b4958 Ville Syrjälä 2016-08-08 114 .plane = plane,
df86af9133b4958 Ville Syrjälä 2016-08-08 115 .crtc = crtc,
df86af9133b4958 Ville Syrjälä 2016-08-08 116 .fb = fb,
df86af9133b4958 Ville Syrjälä 2016-08-08 117 .src_x = src->x1,
df86af9133b4958 Ville Syrjälä 2016-08-08 118 .src_y = src->y1,
df86af9133b4958 Ville Syrjälä 2016-08-08 119 .src_w = drm_rect_width(src),
df86af9133b4958 Ville Syrjälä 2016-08-08 120 .src_h = drm_rect_height(src),
df86af9133b4958 Ville Syrjälä 2016-08-08 121 .crtc_x = dst->x1,
df86af9133b4958 Ville Syrjälä 2016-08-08 122 .crtc_y = dst->y1,
df86af9133b4958 Ville Syrjälä 2016-08-08 123 .crtc_w = drm_rect_width(dst),
df86af9133b4958 Ville Syrjälä 2016-08-08 124 .crtc_h = drm_rect_height(dst),
df86af9133b4958 Ville Syrjälä 2016-08-08 125 .rotation = rotation,
df86af9133b4958 Ville Syrjälä 2016-08-08 126 .visible = *visible,
df86af9133b4958 Ville Syrjälä 2016-08-08 127 };
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 128 struct drm_crtc_state crtc_state = {
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 129 .crtc = crtc,
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 130 .enable = crtc->enabled,
81af63a4af82e73 Ville Syrjälä 2018-01-23 131 .mode = crtc->mode,
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 132 };
df86af9133b4958 Ville Syrjälä 2016-08-08 133 int ret;
df86af9133b4958 Ville Syrjälä 2016-08-08 134
a01cb8ba3f62829 Ville Syrjälä 2017-11-01 135 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state,
81af63a4af82e73 Ville Syrjälä 2018-01-23 136 min_scale, max_scale,
df86af9133b4958 Ville Syrjälä 2016-08-08 137 can_position,
df86af9133b4958 Ville Syrjälä 2016-08-08 138 can_update_disabled);
df86af9133b4958 Ville Syrjälä 2016-08-08 139 if (ret)
df86af9133b4958 Ville Syrjälä 2016-08-08 140 return ret;
df86af9133b4958 Ville Syrjälä 2016-08-08 141
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 142 *src = plane_state.src;
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 143 *dst = plane_state.dst;
10b47ee02d1ae66 Ville Syrjälä 2017-11-01 144 *visible = plane_state.visible;
df86af9133b4958 Ville Syrjälä 2016-08-08 145
df86af9133b4958 Ville Syrjälä 2016-08-08 146 return 0;
df86af9133b4958 Ville Syrjälä 2016-08-08 147 }
7daf8d54c17c6da 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: 28826 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-13 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13 1:57 [zen-kernel-zen-kernel:5.9/zen-sauce 24/24] 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.