From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [zen:5.14/zen-sauce 2/2] drivers/gpu/drm/drm_plane_helper.c:113:32: warning: 'visible' is used uninitialized
Date: Fri, 17 Sep 2021 19:28:18 +0800 [thread overview]
Message-ID: <202109171911.xN8BfGX9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5578 bytes --]
Hi Jan,
First bad commit (maybe != root cause):
tree: https://github.com/zen-kernel/zen-kernel 5.14/zen-sauce
head: f79f04d6d36298431febf69d06dd0ac4e3fbb337
commit: f79f04d6d36298431febf69d06dd0ac4e3fbb337 [2/2] fixup! ZEN: Reduce up threshold for all non-muqss schedulers
config: openrisc-randconfig-r034-20210916 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.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/f79f04d6d36298431febf69d06dd0ac4e3fbb337
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 5.14/zen-sauce
git checkout f79f04d6d36298431febf69d06dd0ac4e3fbb337
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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:32: warning: 'visible' is used uninitialized [-Wuninitialized]
113 | struct drm_plane_state plane_state = {
| ^~~~~~~~~~~
drivers/gpu/drm/drm_plane_helper.c:178:14: 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: 34042 bytes --]
reply other threads:[~2021-09-17 11:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202109171911.xN8BfGX9-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.