[Intel-gfx] [PATCH v3 03/28] drm/i915/dg1: Add DG1 PCI IDs

Lucas De Marchi lucas.de.marchi at gmail.com
Thu Jul 9 20:01:47 UTC 2020


On Wed, Jul 1, 2020 at 11:01 PM kernel test robot <lkp at intel.com> wrote:
>
> Hi Lucas,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on drm-intel/for-linux-next]
> [also build test ERROR on drm-tip/drm-tip next-20200701]
> [cannot apply to v5.8-rc3]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use  as documented in
> https://git-scm.com/docs/git-format-patch]
>
> url:    https://github.com/0day-ci/linux/commits/Lucas-De-Marchi/Introduce-DG1/20200702-075819
> base:   git://anongit.freedesktop.org/drm-intel for-linux-next
> config: i386-randconfig-m021-20200701 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
>
> 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/i915/i915_pci.c:903:39: error: 'dg1_info' defined but not used [-Werror=unused-const-variable=]
>      903 | static const struct intel_device_info dg1_info = {
>          |                                       ^~~~~~~~

This is intentionally left unused. Wonder what the fix would be...
__attribute__(__unused__) or force the warning
to be ignored here

with or without this change I don't get a warning in  gcc 10 (using
the same config attached).

Lucas De Marchi

>    cc1: all warnings being treated as errors
>
> vim +/dg1_info +903 drivers/gpu/drm/i915/i915_pci.c
>
>    896
>    897  #define GEN12_DGFX_FEATURES \
>    898          GEN12_FEATURES, \
>    899          .memory_regions = REGION_SMEM | REGION_LMEM, \
>    900          .has_master_unit_irq = 1, \
>    901          .is_dgfx = 1
>    902
>  > 903  static const struct intel_device_info dg1_info = {
>    904          GEN12_DGFX_FEATURES,
>    905          PLATFORM(INTEL_DG1),
>    906          .pipe_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C) | BIT(PIPE_D),
>    907          .require_force_probe = 1,
>    908          .engine_mask =
>    909                  BIT(RCS0) | BIT(BCS0) | BIT(VECS0) |
>    910                  BIT(VCS0) | BIT(VCS2),
>    911  };
>    912
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Lucas De Marchi


More information about the Intel-gfx mailing list