Re: [PATCH] drm/amd/pm: Replace one-element array with flexible-array member

2022-01-14 Thread Alex Deucher
Applied. Thanks! On Fri, Jan 14, 2022 at 4:20 AM 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.

[PATCH] drm/amd/pm: Replace one-element array with flexible-array member

2022-01-14 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