CC: [email protected] TO: Gerd Hoffmann <[email protected]> CC: Dave Airlie <[email protected]>
tree: git://people.freedesktop.org/~mlankhorst/linux locking-rework
head: 40540066096b53fb00aba9eb6151d3f2ffd573ce
commit: 0376d0313d62b1cab545d1a19e7a91c42a19259f [2402/2434] Merge
remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip
:::::: branch date: 4 hours ago
:::::: commit date: 34 hours ago
config: x86_64-randconfig-s022-20200819 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-183-gaa6ede3b-dirty
git checkout 0376d0313d62b1cab545d1a19e7a91c42a19259f
# 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 <[email protected]>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/qxl/qxl_display.c:189:9: sparse: sparse: macro
>> "DRM_MODESET_LOCK_ALL_END" requires 3 arguments, but only 2 given
drivers/gpu/drm/qxl/qxl_display.c:434:9: sparse: sparse: macro
"DRM_MODESET_LOCK_ALL_END" requires 3 arguments, but only 2 given
drivers/gpu/drm/qxl/qxl_display.c:187:9: sparse: sparse: undefined
identifier 'drm_drv_uses_atomic_modeset'
>> drivers/gpu/drm/qxl/qxl_display.c:187:9: sparse: sparse: label
>> 'modeset_lock_fail' was not declared
drivers/gpu/drm/qxl/qxl_display.c:189:9: sparse: sparse: undefined
identifier 'DRM_MODESET_LOCK_ALL_END'
drivers/gpu/drm/qxl/qxl_display.c:411:9: sparse: sparse: undefined
identifier 'drm_drv_uses_atomic_modeset'
drivers/gpu/drm/qxl/qxl_display.c:411:9: sparse: sparse: label
'modeset_lock_fail' was not declared
drivers/gpu/drm/qxl/qxl_display.c:434:9: sparse: sparse: undefined
identifier 'DRM_MODESET_LOCK_ALL_END'
git remote add mlankhorst git://people.freedesktop.org/~mlankhorst/linux
git fetch --no-tags mlankhorst locking-rework
git checkout 0376d0313d62b1cab545d1a19e7a91c42a19259f
vim +/DRM_MODESET_LOCK_ALL_END +189 drivers/gpu/drm/qxl/qxl_display.c
7dea0941f8806e Dave Airlie 2014-10-28 161
f64122c1f6ade3 Dave Airlie 2013-02-25 162 void
qxl_display_read_client_monitors_config(struct qxl_device *qdev)
f64122c1f6ade3 Dave Airlie 2013-02-25 163 {
cbdded7f8a633e Gabriel Krisman Bertazi 2017-01-26 164 struct
drm_device *dev = &qdev->ddev;
bbaac1354cc984 Sidong Yang 2020-05-24 165 struct
drm_modeset_acquire_ctx ctx;
bbaac1354cc984 Sidong Yang 2020-05-24 166 int status,
retries, ret;
9e3b317839298a Christophe Fergeau 2016-11-08 167
9062155de0dfdc Gerd Hoffmann 2017-03-01 168 for (retries =
0; retries < 10; retries++) {
9e3b317839298a Christophe Fergeau 2016-11-08 169 status
= qxl_display_copy_rom_client_monitors_config(qdev);
9062155de0dfdc Gerd Hoffmann 2017-03-01 170 if
(status != MONITORS_CONFIG_BAD_CRC)
9062155de0dfdc Gerd Hoffmann 2017-03-01 171
break;
9062155de0dfdc Gerd Hoffmann 2017-03-01 172
udelay(5);
9062155de0dfdc Gerd Hoffmann 2017-03-01 173 }
66e0c8a5bcfd29 Anton Vasilyev 2018-07-27 174 if (status ==
MONITORS_CONFIG_ERROR) {
66e0c8a5bcfd29 Anton Vasilyev 2018-07-27 175
DRM_DEBUG_KMS("ignoring client monitors config: error");
66e0c8a5bcfd29 Anton Vasilyev 2018-07-27 176 return;
66e0c8a5bcfd29 Anton Vasilyev 2018-07-27 177 }
9062155de0dfdc Gerd Hoffmann 2017-03-01 178 if (status ==
MONITORS_CONFIG_BAD_CRC) {
9062155de0dfdc Gerd Hoffmann 2017-03-01 179
DRM_DEBUG_KMS("ignoring client monitors config: bad crc");
9062155de0dfdc Gerd Hoffmann 2017-03-01 180 return;
9e3b317839298a Christophe Fergeau 2016-11-08 181 }
9e3b317839298a Christophe Fergeau 2016-11-08 182 if (status ==
MONITORS_CONFIG_UNCHANGED) {
9062155de0dfdc Gerd Hoffmann 2017-03-01 183
DRM_DEBUG_KMS("ignoring client monitors config: unchanged");
9e3b317839298a Christophe Fergeau 2016-11-08 184 return;
f64122c1f6ade3 Dave Airlie 2013-02-25 185 }
4fdb086924db46 Marc-André Lureau 2013-10-18 186
bbaac1354cc984 Sidong Yang 2020-05-24 @187
DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
7dea0941f8806e Dave Airlie 2014-10-28 188
qxl_update_offset_props(qdev);
bbaac1354cc984 Sidong Yang 2020-05-24 @189
DRM_MODESET_LOCK_ALL_END(ctx, ret);
cbdded7f8a633e Gabriel Krisman Bertazi 2017-01-26 190 if
(!drm_helper_hpd_irq_event(dev)) {
4fdb086924db46 Marc-André Lureau 2013-10-18 191 /*
notify that the monitor configuration changed, to
4fdb086924db46 Marc-André Lureau 2013-10-18 192
adjust at the arbitrary resolution */
cbdded7f8a633e Gabriel Krisman Bertazi 2017-01-26 193
drm_kms_helper_hotplug_event(dev);
4fdb086924db46 Marc-André Lureau 2013-10-18 194 }
f64122c1f6ade3 Dave Airlie 2013-02-25 195 }
f64122c1f6ade3 Dave Airlie 2013-02-25 196
:::::: The code at line 189 was first introduced by commit
:::::: bbaac1354cc98415e5b4c3830d796c583ca71907 drm/qxl: Replace deprecated
function in qxl_display
:::::: TO: Sidong Yang <[email protected]>
:::::: CC: Gerd Hoffmann <[email protected]>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
