[Intel-gfx] [drm-tip:drm-tip 5/10] drivers/gpu/drm/qxl/qxl_display.c:187:2: error: implicit declaration of function 'drm_drv_uses_atomic_modeset'
kernel test robot
lkp at intel.com
Tue Aug 18 01:48:59 UTC 2020
tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip
head: d6cb40f33c1b213c96924b8fb68db613862fc2c5
commit: a012dc947ede8d940b6f79de96429af04a9360c4 [5/10] Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip
config: x86_64-randconfig-a016-20200817 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project de71b46a519db014ce906a39f8a0e1b235ef1568)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout a012dc947ede8d940b6f79de96429af04a9360c4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/qxl/qxl_display.c:187:2: error: implicit declaration of function 'drm_drv_uses_atomic_modeset' [-Werror,-Wimplicit-function-declaration]
DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
^
include/drm/drm_modeset_lock.h:167:7: note: expanded from macro 'DRM_MODESET_LOCK_ALL_BEGIN'
if (!drm_drv_uses_atomic_modeset(dev)) \
^
>> drivers/gpu/drm/qxl/qxl_display.c:189:35: error: too few arguments provided to function-like macro invocation
DRM_MODESET_LOCK_ALL_END(ctx, ret);
^
include/drm/drm_modeset_lock.h:194:9: note: macro 'DRM_MODESET_LOCK_ALL_END' defined here
#define DRM_MODESET_LOCK_ALL_END(dev, ctx, ret) \
^
>> drivers/gpu/drm/qxl/qxl_display.c:189:2: error: use of undeclared identifier 'DRM_MODESET_LOCK_ALL_END'
DRM_MODESET_LOCK_ALL_END(ctx, ret);
^
>> drivers/gpu/drm/qxl/qxl_display.c:187:2: error: use of undeclared label 'modeset_lock_fail'
DRM_MODESET_LOCK_ALL_BEGIN(dev, ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
^
include/drm/drm_modeset_lock.h:173:8: note: expanded from macro 'DRM_MODESET_LOCK_ALL_BEGIN'
goto modeset_lock_fail;
^
drivers/gpu/drm/qxl/qxl_display.c:411:2: error: implicit declaration of function 'drm_drv_uses_atomic_modeset' [-Werror,-Wimplicit-function-declaration]
DRM_MODESET_LOCK_ALL_BEGIN(fb->dev, ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
^
include/drm/drm_modeset_lock.h:167:7: note: expanded from macro 'DRM_MODESET_LOCK_ALL_BEGIN'
if (!drm_drv_uses_atomic_modeset(dev)) \
^
drivers/gpu/drm/qxl/qxl_display.c:434:35: error: too few arguments provided to function-like macro invocation
DRM_MODESET_LOCK_ALL_END(ctx, ret);
^
include/drm/drm_modeset_lock.h:194:9: note: macro 'DRM_MODESET_LOCK_ALL_END' defined here
#define DRM_MODESET_LOCK_ALL_END(dev, ctx, ret) \
^
drivers/gpu/drm/qxl/qxl_display.c:434:2: error: use of undeclared identifier 'DRM_MODESET_LOCK_ALL_END'
DRM_MODESET_LOCK_ALL_END(ctx, ret);
^
drivers/gpu/drm/qxl/qxl_display.c:411:2: error: use of undeclared label 'modeset_lock_fail'
DRM_MODESET_LOCK_ALL_BEGIN(fb->dev, ctx, DRM_MODESET_ACQUIRE_INTERRUPTIBLE, ret);
^
include/drm/drm_modeset_lock.h:173:8: note: expanded from macro 'DRM_MODESET_LOCK_ALL_BEGIN'
goto modeset_lock_fail;
^
8 errors generated.
git remote add drm-tip git://anongit.freedesktop.org/drm/drm-tip
git fetch --no-tags drm-tip drm-tip
git checkout a012dc947ede8d940b6f79de96429af04a9360c4
vim +/drm_drv_uses_atomic_modeset +187 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 187 was first introduced by commit
:::::: bbaac1354cc98415e5b4c3830d796c583ca71907 drm/qxl: Replace deprecated function in qxl_display
:::::: TO: Sidong Yang <realwakka at gmail.com>
:::::: CC: Gerd Hoffmann <kraxel at redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35126 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20200818/f6bd08ce/attachment-0001.gz>
More information about the Intel-gfx
mailing list