public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [dinguyen:socfpga_firmware_for_v7.1 2/2] drivers/firmware/stratix10-svc.c:271:33: error: array has incomplete element type 'struct stratix10_svc_chan'
@ 2026-03-20  7:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-20  7:06 UTC (permalink / raw)
  To: Rosen Penev; +Cc: llvm, oe-kbuild-all, Dinh Nguyen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git socfpga_firmware_for_v7.1
head:   6146df4b6330e6ec1a1273f77f817bc917548f69
commit: 6146df4b6330e6ec1a1273f77f817bc917548f69 [2/2] firmware: stratix10-svc: kmalloc_array + kzalloc to flex
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260320/202603201536.KvAI7CLq-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260320/202603201536.KvAI7CLq-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/202603201536.KvAI7CLq-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/firmware/stratix10-svc.c:271:33: error: array has incomplete element type 'struct stratix10_svc_chan'
     271 |         struct stratix10_svc_chan chans[] __counted_by(num_chans);
         |                                        ^
   include/linux/firmware/intel/stratix10-svc-client.h:78:8: note: forward declaration of 'struct stratix10_svc_chan'
      78 | struct stratix10_svc_chan;
         |        ^
   1 error generated.


vim +271 drivers/firmware/stratix10-svc.c

   242	
   243	/**
   244	 * struct stratix10_svc_controller - service controller
   245	 * @dev: device
   246	 * @num_chans: number of channels in 'chans' array
   247	 * @num_active_client: number of active service client
   248	 * @node: list management
   249	 * @genpool: memory pool pointing to the memory region
   250	 * @complete_status: state for completion
   251	 * @invoke_fn: function to issue secure monitor call or hypervisor call
   252	 * @svc: manages the list of client svc drivers
   253	 * @sdm_lock: only allows a single command single response to SDM
   254	 * @actrl: async control structure
   255	 * @chans: array of service channels
   256	 *
   257	 * This struct is used to create communication channels for service clients, to
   258	 * handle secure monitor or hypervisor call.
   259	 */
   260	struct stratix10_svc_controller {
   261		struct device *dev;
   262		int num_chans;
   263		int num_active_client;
   264		struct list_head node;
   265		struct gen_pool *genpool;
   266		struct completion complete_status;
   267		svc_invoke_fn *invoke_fn;
   268		struct stratix10_svc *svc;
   269		struct mutex sdm_lock;
   270		struct stratix10_async_ctrl actrl;
 > 271		struct stratix10_svc_chan chans[] __counted_by(num_chans);
   272	};
   273	

-- 
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:[~2026-03-20  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20  7:06 [dinguyen:socfpga_firmware_for_v7.1 2/2] drivers/firmware/stratix10-svc.c:271:33: error: array has incomplete element type 'struct stratix10_svc_chan' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox