powerpc/pseries/ras: Use struct_size() to simplify fwnmi_get_errinfo()

Now that struct rtas_error_log uses a flexible array member for the
extended log buffer, use struct_size() to calculate the total RTAS error
log size and avoid using the hard-coded header size of 8 bytes.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260627104730.276858-4-thorsten.blum@linux.dev
This commit is contained in:
Thorsten Blum 2026-06-27 12:47:31 +02:00 • committed by Madhavan Srinivasan
commit 351496d6ae