Re: [PATCH] docs: use flexible array members, not zero-length

2019-09-30 Thread Jonathan Corbet
On Sat, 28 Sep 2019 10:55:57 +0200 Stephen Kitt wrote: > Wouldn’t it be better to update the docs simultaneously in each patch which > fixes a structure? Or is that unworkable with current development practices? Definitely update the two together. The doc fix should just go through the appropri

Re: [PATCH] docs: use flexible array members, not zero-length

2019-09-28 Thread Stephen Kitt
On Sat, 28 Sep 2019 01:16:39 -0600, Jonathan Corbet wrote: > On Fri, 27 Sep 2019 16:29:27 +0200 > Stephen Kitt wrote: > > diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst > > index 4d565d202ce3..24ce50fc1fc1 100644 > > --- a/Documentation/bpf/btf.rst > > +++ b/Documentation/bpf/

Re: [PATCH] docs: use flexible array members, not zero-length

2019-09-28 Thread Jonathan Corbet
On Fri, 27 Sep 2019 16:29:27 +0200 Stephen Kitt wrote: > Update the docs throughout to remove zero-length arrays, replacing > them with C99 flexible array members. GCC will then ensure that the > arrays are always the last element in the struct. I appreciate the thought but... > diff --git a/Do

[PATCH] docs: use flexible array members, not zero-length

2019-09-27 Thread Stephen Kitt
Update the docs throughout to remove zero-length arrays, replacing them with C99 flexible array members. GCC will then ensure that the arrays are always the last element in the struct. Signed-off-by: Stephen Kitt Cc: Gustavo A. R. Silva --- Documentation/bpf/btf.rst | 2 +-