[gvt-linux:topic/gvt-xengt 26/33] drivers/gpu/drm/i915/gvt/migrate.c:446: error: type defaults to 'int' in declaration of 'type name'
kbuild test robot
fengguang.wu at intel.com
Tue Nov 7 10:00:32 UTC 2017
tree: https://github.com/01org/gvt-linux.git topic/gvt-xengt
head: c21e6a1b6a2c0226a2cb6a101223e53bf73a6edc
commit: 879aa5019106467a2993d89587c6026d27436e80 [26/33] drm/i915/gvt: Implement vGPU status save and restore through new VFIO subregion VFIO_REGION_SUBTYPE_DEVICE_STATE
config: x86_64-randconfig-a0-11071621 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout 879aa5019106467a2993d89587c6026d27436e80
# save the attached .config to linux build tree
make ARCH=x86_64
Note: the gvt-linux/topic/gvt-xengt HEAD c21e6a1b6a2c0226a2cb6a101223e53bf73a6edc builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gvt/migrate.c: In function 'workload_save':
drivers/gpu/drm/i915/gvt/migrate.c:446: error: 'struct intel_vgpu' has no member named 'workload_q_head'
drivers/gpu/drm/i915/gvt/migrate.c:446: error: 'struct intel_vgpu' has no member named 'workload_q_head'
>> drivers/gpu/drm/i915/gvt/migrate.c:446: error: type defaults to 'int' in declaration of 'type name'
drivers/gpu/drm/i915/gvt/migrate.c:446: error: 'struct intel_vgpu' has no member named 'workload_q_head'
>> drivers/gpu/drm/i915/gvt/migrate.c:446: error: type defaults to 'int' in declaration of 'type name'
drivers/gpu/drm/i915/gvt/migrate.c:446: error: 'struct intel_vgpu' has no member named 'workload_q_head'
vim +446 drivers/gpu/drm/i915/gvt/migrate.c
431
432 static int workload_save(const struct gvt_migration_obj_t *obj)
433 {
434 struct intel_vgpu *vgpu = (struct intel_vgpu *) obj->vgpu;
435 struct drm_i915_private *dev_priv = vgpu->gvt->dev_priv;
436 struct gvt_region_t region;
437 struct intel_engine_cs *engine;
438 struct intel_vgpu_workload *pos, *n;
439 unsigned int i;
440 struct gvt_pending_workload_t workload;
441 void *des = obj->img + obj->offset;
442 unsigned int num = 0;
443 u32 sz = sizeof(struct gvt_pending_workload_t);
444
445 for_each_engine(engine, dev_priv, i) {
> 446 list_for_each_entry_safe(pos, n,
447 &vgpu->workload_q_head[engine->id], list) {
448 workload.ring_id = pos->ring_id;
449 memcpy(&workload.elsp_dwords, &pos->elsp_dwords,
450 sizeof(struct intel_vgpu_elsp_dwords));
451 memcpy(des + sizeof(struct gvt_region_t) + (num * sz),
452 &workload, sz);
453 num++;
454 }
455 }
456
457 region.type = GVT_MIGRATION_WORKLOAD;
458 region.size = num * sz;
459 memcpy(des, ®ion, sizeof(struct gvt_region_t));
460
461 return sizeof(struct gvt_region_t) + region.size;
462 }
463
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33509 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20171107/6b163a7c/attachment-0001.gz>
More information about the intel-gvt-dev
mailing list