Re: [PATCH v2] sparc: Replace one-element array with flexible array member

2024-11-16 Thread Andreas Larsson
On 2024-11-12 12:03, Thorsten Blum wrote: > On 11. Nov 2024, at 21:47, Thorsten Blum wrote: >> Replace the deprecated one-element array with a modern flexible array >> member in the struct hvtramp_descr. >> >> Additionally, 15 unnecessary bytes were allocated for hdesc, but instead >> of fixing the

Re: [PATCH v2] sparc: Replace one-element array with flexible array member

2024-11-12 Thread Thorsten Blum
On 11. Nov 2024, at 21:47, Thorsten Blum wrote: > Replace the deprecated one-element array with a modern flexible array > member in the struct hvtramp_descr. > > Additionally, 15 unnecessary bytes were allocated for hdesc, but instead > of fixing the parentheses in the open-coded version, use stru

[PATCH v2] sparc: Replace one-element array with flexible array member

2024-11-11 Thread Thorsten Blum
Replace the deprecated one-element array with a modern flexible array member in the struct hvtramp_descr. Additionally, 15 unnecessary bytes were allocated for hdesc, but instead of fixing the parentheses in the open-coded version, use struct_size() to calculate the correct number of bytes. Link: