zmemtopo: Clean up hardcoded value

Replace array length of lpar name with LPAR_NAME_LEN macro.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Mete Durlu
2026-07-21 10:10:43 +02:00
committed by Steffen Eiden
parent c6d74eebfb
commit ce1464ad5f

View File

@@ -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;