Re: [PATCH] drm/amdkfd: Replace zero-length array with flexible-array member

2022-02-15 Thread Felix Kuehling
On 2022-02-15 04:11, cgel@gmail.com wrote: From: Changcheng Deng There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use "flexible array members" for these cases. The older style of

[PATCH] drm/amdkfd: Replace zero-length array with flexible-array member

2022-02-15 Thread cgel . zte
From: Changcheng Deng There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use "flexible array members" for these cases. The older style of one-element or zero-length arrays should no longer

Re: [PATCH] drm/amdkfd: Replace zero-length array with flexible-array member

2022-02-15 Thread Christian König
Am 15.02.22 um 10:11 schrieb cgel@gmail.com: From: Changcheng Deng There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use "flexible array members" for these cases. The older style