[Intel-gfx] [PATCH v9 13/13] drm/i915/guc: Print the GuC error capture output register list.

kernel test robot lkp at intel.com
Mon Mar 14 23:42:50 UTC 2022


Hi Alan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next drm/drm-next tegra-drm/drm/tegra/for-next v5.17-rc8 next-20220310]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Alan-Previn/Add-GuC-Error-Capture-Support/20220315-010958
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-randconfig-a002-20220314 (https://download.01.org/0day-ci/archive/20220315/202203150713.NSmDIfrY-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/90c08c10562cba1ebf8b31788e7a9550c7637838
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Alan-Previn/Add-GuC-Error-Capture-Support/20220315-010958
        git checkout 90c08c10562cba1ebf8b31788e7a9550c7637838
        # 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 at intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/drm/drm_print.h:32,
                    from drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:8:
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c: In function 'intel_guc_capture_print_engine_node':
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1497:2: note: in expansion of macro '__out'
    1497 |  __out(ebuf, "global --- GuC Error Capture on %s command stream:\n",
         |  ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1502:3: note: in expansion of macro '__out'
    1502 |   __out(ebuf, "  No matching ee-node\n");
         |   ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1506:2: note: in expansion of macro '__out'
    1506 |  __out(ebuf, "Coverage:  %s\n", grptype[node->is_partial]);
         |  ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1509:3: note: in expansion of macro '__out'
    1509 |   __out(ebuf, "  RegListType: %s\n",
         |   ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1511:3: note: in expansion of macro '__out'
    1511 |   __out(ebuf, "    Owner-Id: %d\n", node->reginfo[i].vfid);
         |   ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1518:4: note: in expansion of macro '__out'
    1518 |    __out(ebuf, "    GuC-Eng-Class: %d\n", node->eng_class);
         |    ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1519:4: note: in expansion of macro '__out'
    1519 |    __out(ebuf, "    i915-Eng-Class: %d\n",
         |    ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1452:3: note: in expansion of macro '__out'
    1452 |   __out(ebuf, "    i915-Eng-Name: %s command stream\n", \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1525:5: note: in expansion of macro 'GCAP_PRINT_INTEL_ENG_INFO'
    1525 |     GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1454:3: note: in expansion of macro '__out'
    1454 |   __out(ebuf, "    i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1525:5: note: in expansion of macro 'GCAP_PRINT_INTEL_ENG_INFO'
    1525 |     GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1455:3: note: in expansion of macro '__out'
    1455 |   __out(ebuf, "    i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1525:5: note: in expansion of macro 'GCAP_PRINT_INTEL_ENG_INFO'
    1525 |     GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1456:3: note: in expansion of macro '__out'
    1456 |   __out(ebuf, "    i915-Eng-LogicalMask: 0x%08x\n", \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1525:5: note: in expansion of macro 'GCAP_PRINT_INTEL_ENG_INFO'
    1525 |     GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1527:5: note: in expansion of macro '__out'
    1527 |     __out(ebuf, "    i915-Eng-Lookup Fail!\n");
         |     ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1462:3: note: in expansion of macro '__out'
    1462 |   __out(ebuf, "    GuC-Engine-Inst-Id: 0x%08x\n", \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1528:4: note: in expansion of macro 'GCAP_PRINT_GUC_INST_INFO'
    1528 |    GCAP_PRINT_GUC_INST_INFO(ebuf, node);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1464:3: note: in expansion of macro '__out'
    1464 |   __out(ebuf, "    GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1528:4: note: in expansion of macro 'GCAP_PRINT_GUC_INST_INFO'
    1528 |    GCAP_PRINT_GUC_INST_INFO(ebuf, node);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1465:3: note: in expansion of macro '__out'
    1465 |   __out(ebuf, "    LRCA: 0x%08x\n", (node)->lrca); \
         |   ^~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1528:4: note: in expansion of macro 'GCAP_PRINT_GUC_INST_INFO'
    1528 |    GCAP_PRINT_GUC_INST_INFO(ebuf, node);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1533:3: note: in expansion of macro '__out'
    1533 |   __out(ebuf, "    NumRegs: %d\n", numregs);
         |   ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1540:5: note: in expansion of macro '__out'
    1540 |     __out(ebuf, "      REG-0x%08x", regs[j].offset);
         |     ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1542:5: note: in expansion of macro '__out'
    1542 |     __out(ebuf, "      %s", str);
         |     ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1544:5: note: in expansion of macro '__out'
    1544 |     __out(ebuf, "[%ld][%ld]",
         |     ^~~~~
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:17: error: 'struct drm_i915_error_state_buf' has no member named 'drm'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |                 ^~
   include/linux/dev_printk.h:110:11: note: in definition of macro 'dev_printk_index_wrap'
     110 |   _p_func(dev, fmt, ##__VA_ARGS__);   \
         |           ^~~
   include/drm/drm_print.h:425:2: note: in expansion of macro 'dev_warn'
     425 |  dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
         |  ^~~~
   include/drm/drm_print.h:435:2: note: in expansion of macro '__drm_printk'
     435 |  __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1442:3: note: in expansion of macro 'drm_warn'
    1442 |   drm_warn((&(a)->drm), __VA_ARGS__); \
         |   ^~~~~~~~
   drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1547:4: note: in expansion of macro '__out'
    1547 |    __out(ebuf, ":  0x%08x\n", regs[j].value);
         |    ^~~~~


vim +1442 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c

  1438	
  1439	#ifdef CONFIG_DRM_I915_DEBUG_GUC
  1440	#define __out(a, ...) \
  1441		do { \
> 1442			drm_warn((&(a)->drm), __VA_ARGS__); \
  1443			i915_error_printf((a), __VA_ARGS__); \
  1444		} while (0)
  1445	#else
  1446	#define __out(a, ...) \
  1447		i915_error_printf(a, __VA_ARGS__)
  1448	#endif
  1449	

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


More information about the Intel-gfx mailing list