[drm-misc:drm-misc-next 1/1] drivers/gpu/drm/xe/xe_bo.c:41:24: error: initializer overrides prior initialization of this subobject

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   2bb98fc1d4a7715da3cb429d77731b0d1d2d3903
commit: 4db102dcb0396a4ccf89b1eac0f4eb3fd167a080 [1/1] Merge drm/drm-next into drm-misc-next
config: x86_64-randconfig-076-20240202 (https://download.01.org/0day-ci/archive/20240203/202402030003.rFCIAJNF-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240203/202402030003.rFCIAJNF-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402030003.rFCIAJNF-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/xe/xe_bo.c:41:3: error: field designator 'num_busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
      41 |         .num_busy_placement = 1,
         |          ^~~~~~~~~~~~~~~~~~
         |          num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
>> drivers/gpu/drm/xe/xe_bo.c:41:24: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
      41 |         .num_busy_placement = 1,
         |                               ^
   drivers/gpu/drm/xe/xe_bo.c:39:19: note: previous initialization is here
      39 |         .num_placement = 1,
         |                          ^
   drivers/gpu/drm/xe/xe_bo.c:42:3: error: field designator 'busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
      42 |         .busy_placement = &sys_placement_flags,
         |          ^~~~~~~~~~~~~~
         |          num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:42:20: error: incompatible pointer to integer conversion initializing 'unsigned int' with an expression of type 'const struct ttm_place *' [-Wint-conversion]
      42 |         .busy_placement = &sys_placement_flags,
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_bo.c:42:20: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
      42 |         .busy_placement = &sys_placement_flags,
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_bo.c:41:24: note: previous initialization is here
      41 |         .num_busy_placement = 1,
         |                               ^
   drivers/gpu/drm/xe/xe_bo.c:55:3: error: field designator 'num_busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
      55 |         .num_busy_placement = 1,
         |          ^~~~~~~~~~~~~~~~~~
         |          num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:55:24: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
      55 |         .num_busy_placement = 1,
         |                               ^
   drivers/gpu/drm/xe/xe_bo.c:53:19: note: previous initialization is here
      53 |         .num_placement = 1,
         |                          ^
   drivers/gpu/drm/xe/xe_bo.c:56:3: error: field designator 'busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
      56 |         .busy_placement = &sys_placement_flags,
         |          ^~~~~~~~~~~~~~
         |          num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:56:20: error: incompatible pointer to integer conversion initializing 'unsigned int' with an expression of type 'const struct ttm_place *' [-Wint-conversion]
      56 |         .busy_placement = &sys_placement_flags,
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_bo.c:56:20: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
      56 |         .busy_placement = &sys_placement_flags,
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_bo.c:55:24: note: previous initialization is here
      55 |         .num_busy_placement = 1,
         |                               ^
   drivers/gpu/drm/xe/xe_bo.c:233:4: error: field designator 'num_busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
     233 |                 .num_busy_placement = c,
         |                  ^~~~~~~~~~~~~~~~~~
         |                  num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:233:25: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
     233 |                 .num_busy_placement = c,
         |                                       ^
   drivers/gpu/drm/xe/xe_bo.c:231:20: note: previous initialization is here
     231 |                 .num_placement = c,
         |                                  ^
   drivers/gpu/drm/xe/xe_bo.c:234:4: error: field designator 'busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
     234 |                 .busy_placement = bo->placements,
         |                  ^~~~~~~~~~~~~~
         |                  num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:234:21: error: incompatible pointer to integer conversion initializing 'unsigned int' with an expression of type 'struct ttm_place[3]' [-Wint-conversion]
     234 |                 .busy_placement = bo->placements,
         |                                   ^~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_bo.c:234:21: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
     234 |                 .busy_placement = bo->placements,
         |                                   ^~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_bo.c:233:25: note: previous initialization is here
     233 |                 .num_busy_placement = c,
         |                                       ^
   drivers/gpu/drm/xe/xe_bo.c:254:15: error: no member named 'num_busy_placement' in 'struct ttm_placement'; did you mean 'num_placement'?
     254 |                         placement->num_busy_placement = 0;
         |                                    ^~~~~~~~~~~~~~~~~~
         |                                    num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:1356:4: error: field designator 'num_busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?
    1356 |                 .num_busy_placement = 1,
         |                  ^~~~~~~~~~~~~~~~~~
         |                  num_placement
   include/drm/ttm/ttm_placement.h:99:12: note: 'num_placement' declared here
      99 |         unsigned                num_placement;
         |                                 ^
   drivers/gpu/drm/xe/xe_bo.c:1356:25: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
    1356 |                 .num_busy_placement = 1,
         |                                       ^
   drivers/gpu/drm/xe/xe_bo.c:1354:20: note: previous initialization is here
    1354 |                 .num_placement = 1,
         |                                  ^
   drivers/gpu/drm/xe/xe_bo.c:1357:4: error: field designator 'busy_placement' does not refer to any field in type 'struct ttm_placement'; did you mean 'num_placement'?

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_I915_DEBUG_GEM
   Depends on [n]: HAS_IOMEM [=y] && DRM_I915 [=m] && EXPERT [=y] && DRM_I915_WERROR [=n]
   Selected by [m]:
   - DRM_I915_DEBUG [=y] && HAS_IOMEM [=y] && DRM_I915 [=m] && EXPERT [=y] && !COMPILE_TEST [=n]


vim +41 drivers/gpu/drm/xe/xe_bo.c

dd08ebf6c3525a Matthew Brost 2023-03-30  37  
dd08ebf6c3525a Matthew Brost 2023-03-30  38  static struct ttm_placement sys_placement = {
dd08ebf6c3525a Matthew Brost 2023-03-30  39  	.num_placement = 1,
dd08ebf6c3525a Matthew Brost 2023-03-30  40  	.placement = &sys_placement_flags,
dd08ebf6c3525a Matthew Brost 2023-03-30 @41  	.num_busy_placement = 1,
dd08ebf6c3525a Matthew Brost 2023-03-30  42  	.busy_placement = &sys_placement_flags,
dd08ebf6c3525a Matthew Brost 2023-03-30  43  };
dd08ebf6c3525a Matthew Brost 2023-03-30  44  

:::::: The code at line 41 was first introduced by commit
:::::: dd08ebf6c3525a7ea2186e636df064ea47281987 drm/xe: Introduce a new DRM driver for Intel GPUs

:::::: TO: Matthew Brost <matthew.brost@xxxxxxxxx>
:::::: CC: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux