firmware: stratix10-svc: kmalloc_array + kzalloc to flex

Use a flexible array member to combine allocations. Simplifies memory
management.

Add __counted_by for extra runtime analysis. Also move counting variable
assignment up as required by __counted_by.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
This commit is contained in:
Rosen Penev 2026-03-20 20:52:17 -07:00 • committed by Dinh Nguyen
commit 3f7fd751d8