From ce1464ad5fc43c7c7c8d51131a379f08f8a49315 Mon Sep 17 00:00:00 2001 From: Mete Durlu Date: Tue, 21 Jul 2026 10:10:43 +0200 Subject: [PATCH] zmemtopo: Clean up hardcoded value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace array length of lpar name with LPAR_NAME_LEN macro. Reviewed-by: Jan Höppner Signed-off-by: Mete Durlu Signed-off-by: Steffen Eiden --- zmemtopo/zmemtopo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zmemtopo/zmemtopo.h b/zmemtopo/zmemtopo.h index 07e57490..e35d6983 100644 --- a/zmemtopo/zmemtopo.h +++ b/zmemtopo/zmemtopo.h @@ -68,9 +68,9 @@ struct diag310_t_hdr { } __packed; struct diag310_p_hdr { - char pname[8]; /* partition name */ - uint8_t pn; /* partition number */ - uint8_t tie; /* count of entries following this header */ + char pname[LPAR_NAME_LEN]; /* partition name */ + uint8_t pn; /* partition number */ + uint8_t tie; /* count of entries following this header */ uint16_t reserved1; uint32_t reserved2; } __packed;