All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dave Airlie <airlied@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sat, 8 Mar 2025 15:22:31 +0800	[thread overview]
Message-ID: <202503081553.xpNsPmOk-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-03-08  7:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503081553.xpNsPmOk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@redhat.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.