[lkml]   [2020]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] drm/amdgpu/smu10: Replace one-element array and use struct_size() helper
On Wed, May 20, 2020 at 09:42:27AM +0200, Christian König wrote:
> >
> > Signed-off-by: Gustavo A. R. Silva <>
> Acked-by: Christian König <>
> May I suggest that we add a section how to correctly do this to
> Documentation/process/coding-style.rst or similar document?

That's already on my list. :)

> I've seen a bunch of different approaches and some even doesn't work with
> some gcc versions and result in a broken binary.

Do you have an example of that one that doesn't work with some GCC
versions? It'd be interesting to take a look...


 \ /
  Last update: 2020-05-22 19:47    [W:0.080 / U:8.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site