tree:
https://github.com/jimc/linux.git dyn-drm-trc
head: df426d10840ccdda8ef29b66f8df55a010836a7c
commit: 8315288913f387f0dad23819e847ae77d7991f8b [14/19] dyndbg: add
_DPRINTK_FLAGS_ENABLED
config: i386-allyesconfig
(
https://download.01.org/0day-ci/archive/20220213/202202131417.lFsFyv0i-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/jimc/linux/commit/8315288913f387f0dad23819e847ae77d799...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dyn-drm-trc
git checkout 8315288913f387f0dad23819e847ae77d7991f8b
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the jimc/dyn-drm-trc HEAD df426d10840ccdda8ef29b66f8df55a010836a7c builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_print.c: In function '__drm_dev_dbg':
> drivers/gpu/drm/drm_print.c:289:21: error:
'_DPRINTK_FLAGS_PRINT' undeclared (first use in this function)
289 |
if (desc->flags & _DPRINTK_FLAGS_PRINT)
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_print.c:289:21: note: each undeclared identifier is reported only
once for each function it appears in
vim +/_DPRINTK_FLAGS_PRINT +289 drivers/gpu/drm/drm_print.c
db87086492581c Joe Perches 2018-03-16 273
b3dababcea70ef Jim Cromie 2021-12-28 274 void __drm_dev_dbg(struct _ddebug *desc,
const struct device *dev,
b3dababcea70ef Jim Cromie 2021-12-28 275 enum drm_debug_category category,
const char *format, ...)
02c9656b2f0d69 Haneen Mohammed 2017-10-17 276 {
02c9656b2f0d69 Haneen Mohammed 2017-10-17 277 struct va_format vaf;
02c9656b2f0d69 Haneen Mohammed 2017-10-17 278 va_list args;
02c9656b2f0d69 Haneen Mohammed 2017-10-17 279
f1a6b74f598212 Jim Cromie 2022-01-19 280 if (!__drm_debug_enabled(category))
02c9656b2f0d69 Haneen Mohammed 2017-10-17 281 return;
02c9656b2f0d69 Haneen Mohammed 2017-10-17 282
b3dababcea70ef Jim Cromie 2021-12-28 283 /* we know we are printing for either
syslog, tracefs, or both */
02c9656b2f0d69 Haneen Mohammed 2017-10-17 284 va_start(args, format);
02c9656b2f0d69 Haneen Mohammed 2017-10-17 285 vaf.fmt = format;
02c9656b2f0d69 Haneen Mohammed 2017-10-17 286 vaf.va = &args;
02c9656b2f0d69 Haneen Mohammed 2017-10-17 287
b3dababcea70ef Jim Cromie 2021-12-28 288 if (dev) {
b3dababcea70ef Jim Cromie 2021-12-28 @289 if (desc->flags &
_DPRINTK_FLAGS_PRINT)
db87086492581c Joe Perches 2018-03-16 290 dev_printk(KERN_DEBUG, dev,
"[" DRM_NAME ":%ps] %pV",
db87086492581c Joe Perches 2018-03-16 291 __builtin_return_address(0),
&vaf);
b3dababcea70ef Jim Cromie 2021-12-28 292 } else {
b3dababcea70ef Jim Cromie 2021-12-28 293 if (desc->flags &
_DPRINTK_FLAGS_PRINT)
db87086492581c Joe Perches 2018-03-16 294 printk(KERN_DEBUG "["
DRM_NAME ":%ps] %pV",
db87086492581c Joe Perches 2018-03-16 295 __builtin_return_address(0),
&vaf);
b3dababcea70ef Jim Cromie 2021-12-28 296 }
02c9656b2f0d69 Haneen Mohammed 2017-10-17 297 va_end(args);
02c9656b2f0d69 Haneen Mohammed 2017-10-17 298 }
d101b390913238 Jim Cromie 2021-12-18 299 EXPORT_SYMBOL(__drm_dev_dbg);
02c9656b2f0d69 Haneen Mohammed 2017-10-17 300
:::::: The code at line 289 was first introduced by commit
:::::: b3dababcea70ef41b80e5500eef493dcc7619756 drm_print: add _ddebug desc to drm_*dbg
prototypes
:::::: TO: Jim Cromie <jim.cromie(a)gmail.com>
:::::: CC: Jim Cromie <jim.cromie(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org