[Intel-gfx] [drm-intel:topic/core-for-CI 1/1] drivers/gpu/drm/i915/intel_device_info.c:236:14: error: 'INTEL_SUBPLATFORM_G12' undeclared; did you mean 'INTEL_SUBPLATFORM_G10'?

Lucas De Marchi lucas.demarchi at intel.com
Fri Feb 18 22:34:15 UTC 2022

On Thu, Feb 17, 2022 at 05:40:51PM +0800, kernel test robot wrote:
>tree:   git://anongit.freedesktop.org/drm-intel topic/core-for-CI
>head:   b56d8d7bad86a9badc1d1b9ea2d1730fa1d3978b
>commit: b56d8d7bad86a9badc1d1b9ea2d1730fa1d3978b [1/1] drm/i915: Add DG2 PCI IDs
>config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220217/202202171718.0GTDm2wX-lkp@intel.com/config)
>compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
>reproduce (this is a W=1 build):
>        git remote add drm-intel git://anongit.freedesktop.org/drm-intel
>        git fetch --no-tags drm-intel topic/core-for-CI
>        git checkout b56d8d7bad86a9badc1d1b9ea2d1730fa1d3978b
>        # save the config file to linux build tree
>        mkdir build_dir
>        make W=1 O=build_dir ARCH=x86_64 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/bits.h:6,
>                    from include/linux/ratelimit_types.h:5,
>                    from include/linux/printk.h:10,
>                    from include/drm/drm_print.h:30,
>                    from drivers/gpu/drm/i915/intel_device_info.c:25:
>   drivers/gpu/drm/i915/intel_device_info.c: In function 'intel_device_info_subplatform_init':
>>> drivers/gpu/drm/i915/intel_device_info.c:236:14: error: 'INTEL_SUBPLATFORM_G12' undeclared (first use in this function); did you mean 'INTEL_SUBPLATFORM_G10'?
>     236 |   mask = BIT(INTEL_SUBPLATFORM_G12);
>         |              ^~~~~~~~~~~~~~~~~~~~~

I rebased the topic/core-for-CI branch an in the process squashed a define for
INTEL_SUBPLATFORM_G12 to fix this.

Lucas De Marchi

More information about the Intel-gfx mailing list