* [jfern:nova-core-experiments 297/411] drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:24: error: positional initialization of field in 'struct' declared with 'designated_init' attribute
@ 2025-03-08 7:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-08 7:22 UTC (permalink / raw)
To: Dave Airlie; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova-core-experiments
head: 3b93174b3502247b0c46bd54a7cf5f4105274edb
commit: 21a8993e78a379a22cd049ca8b4f8ff1bae66612 [297/411] start porting vgpu away from encoding it's own stuff
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20250308/202503081553.xpNsPmOk-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250308/202503081553.xpNsPmOk-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503081553.xpNsPmOk-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:10: error: 'struct nvkm_vgpu_mgr_vfio_ops' has no member named 'rm_ctrl_get'
273 | .rm_ctrl_get = rm_ctrl_get,
| ^~~~~~~~~~~
>> drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:24: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
273 | .rm_ctrl_get = rm_ctrl_get,
| ^~~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:24: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
>> drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:24: warning: excess elements in struct initializer
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:24: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:274:10: error: 'struct nvkm_vgpu_mgr_vfio_ops' has no member named 'rm_ctrl_wr'
274 | .rm_ctrl_wr = rm_ctrl_wr,
| ^~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:274:23: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
274 | .rm_ctrl_wr = rm_ctrl_wr,
| ^~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:274:23: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:274:23: warning: excess elements in struct initializer
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:274:23: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:275:10: error: 'struct nvkm_vgpu_mgr_vfio_ops' has no member named 'rm_ctrl_rd'
275 | .rm_ctrl_rd = rm_ctrl_rd,
| ^~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:275:23: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
275 | .rm_ctrl_rd = rm_ctrl_rd,
| ^~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:275:23: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:275:23: warning: excess elements in struct initializer
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:275:23: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:276:10: error: 'struct nvkm_vgpu_mgr_vfio_ops' has no member named 'rm_ctrl_done'
276 | .rm_ctrl_done = rm_ctrl_done,
| ^~~~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:276:25: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
276 | .rm_ctrl_done = rm_ctrl_done,
| ^~~~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:276:25: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:276:25: warning: excess elements in struct initializer
drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:276:25: note: (near initialization for 'nvkm_vgpu_mgr_vfio_ops')
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GET_FREE_REGION
Depends on [n]: SPARSEMEM [=n]
Selected by [y]:
- RESOURCE_KUNIT_TEST [=y] && RUNTIME_TESTING_MENU [=y] && KUNIT [=y]
vim +273 drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c
376e56be39310d0 Zhi Wang 2024-09-15 264
2f48467e9860881 Zhi Wang 2024-09-14 265 struct nvkm_vgpu_mgr_vfio_ops nvkm_vgpu_mgr_vfio_ops = {
2f48467e9860881 Zhi Wang 2024-09-14 266 .vgpu_mgr_is_enabled = vgpu_mgr_is_enabled,
2f48467e9860881 Zhi Wang 2024-09-14 267 .get_handle = get_handle,
2f48467e9860881 Zhi Wang 2024-09-14 268 .attach_handle = attach_handle,
2f48467e9860881 Zhi Wang 2024-09-14 269 .detach_handle = detach_handle,
e06db080115b1d9 Zhi Wang 2024-09-14 270 .alloc_gsp_client = alloc_gsp_client,
e06db080115b1d9 Zhi Wang 2024-09-14 271 .free_gsp_client = free_gsp_client,
e06db080115b1d9 Zhi Wang 2024-09-14 272 .get_gsp_client_handle = get_gsp_client_handle,
5660b431a80caec Zhi Wang 2024-09-15 @273 .rm_ctrl_get = rm_ctrl_get,
5660b431a80caec Zhi Wang 2024-09-15 274 .rm_ctrl_wr = rm_ctrl_wr,
5660b431a80caec Zhi Wang 2024-09-15 275 .rm_ctrl_rd = rm_ctrl_rd,
5660b431a80caec Zhi Wang 2024-09-15 276 .rm_ctrl_done = rm_ctrl_done,
cd1048ecedbb6d4 Zhi Wang 2024-09-15 277 .alloc_chids = alloc_chids,
cd1048ecedbb6d4 Zhi Wang 2024-09-15 278 .free_chids = free_chids,
9eeb4652ed269e4 Zhi Wang 2024-09-15 279 .alloc_fbmem = alloc_fbmem,
9eeb4652ed269e4 Zhi Wang 2024-09-15 280 .free_fbmem = free_fbmem,
8d3fa270cae416e Zhi Wang 2024-09-15 281 .bar1_map_mem = bar1_map_mem,
8d3fa270cae416e Zhi Wang 2024-09-15 282 .bar1_unmap_mem = bar1_unmap_mem,
376e56be39310d0 Zhi Wang 2024-09-15 283 .get_engine_bitmap = get_engine_bitmap,
2f48467e9860881 Zhi Wang 2024-09-14 284 };
2f48467e9860881 Zhi Wang 2024-09-14 285
:::::: The code at line 273 was first introduced by commit
:::::: 5660b431a80caecbc5213322cbd39db25d40ac80 nvkm/vgpu: introduce GSP RM control interface for vGPU
:::::: TO: Zhi Wang <zhiw@nvidia.com>
:::::: CC: Dave Airlie <airlied@redhat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-08 7:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 7:22 [jfern:nova-core-experiments 297/411] drivers/gpu/drm/nouveau/nvkm/vgpu_mgr/vfio.c:273:24: error: positional initialization of field in 'struct' declared with 'designated_init' attribute kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.