[libvirt PATCH 0/8] Remove space-padded alignment from public headers

Jonathon Jongsma posted 8 patches 3 years, 3 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210120173349.3785246-1-jjongsma@redhat.com
include/libvirt/libvirt-domain.h    | 584 ++++++++++++++--------------
include/libvirt/libvirt-host.h      | 100 ++---
include/libvirt/libvirt-interface.h |  72 ++--
include/libvirt/libvirt-network.h   |  92 ++---
include/libvirt/libvirt-nodedev.h   |  79 ++--
include/libvirt/libvirt-nwfilter.h  |  80 ++--
include/libvirt/libvirt-secret.h    |  72 ++--
include/libvirt/libvirt-storage.h   | 222 +++++------
8 files changed, 652 insertions(+), 649 deletions(-)
[libvirt PATCH 0/8] Remove space-padded alignment from public headers
Posted by Jonathon Jongsma 3 years, 3 months ago
Erik Skultety suggested posting a separate series removing the space-padded
alignment of function declarations in the public headers.

Jonathon Jongsma (8):
  libvirt-nodedev.h: remove space-padded alignment
  libvirt-domain.h: remove space-padded alignment
  libvirt-host.h: remove space-padded alignment
  libvirt-interface.h: remove space-padded alignment
  libvirt-network.h: remove space-padded alignment
  libvirt-nwfilter.h: remove space-padded alignment
  libvirt-secret.h: remove space-padded alignment
  libvirt-storage.h: remove space-padded alignment

 include/libvirt/libvirt-domain.h    | 584 ++++++++++++++--------------
 include/libvirt/libvirt-host.h      | 100 ++---
 include/libvirt/libvirt-interface.h |  72 ++--
 include/libvirt/libvirt-network.h   |  92 ++---
 include/libvirt/libvirt-nodedev.h   |  79 ++--
 include/libvirt/libvirt-nwfilter.h  |  80 ++--
 include/libvirt/libvirt-secret.h    |  72 ++--
 include/libvirt/libvirt-storage.h   | 222 +++++------
 8 files changed, 652 insertions(+), 649 deletions(-)

-- 
2.26.2


Re: [libvirt PATCH 0/8] Remove space-padded alignment from public headers
Posted by Erik Skultety 3 years, 3 months ago
On Wed, Jan 20, 2021 at 11:33:41AM -0600, Jonathon Jongsma wrote:
> Erik Skultety suggested posting a separate series removing the space-padded
> alignment of function declarations in the public headers.

This is already an improvement. We've gradually adopted a style where
function declarations are separated by a single empty line and definitions by
2 (although, as with anything we're not 100% consistent all the time). With
that said, we haven't converted the headers to follow this style yet (I
remember John Ferlan did this conversion for most of the sources in the past).

Now, it depends whether you want to waste a few more minutes on fixing the
style in headers or not, I'm okay both ways - if you think it's a waste of your
time, just let me know and we'll create another warmup bitesized task for
libvirt newcomers.

Regardless of how you decide about the code style:

Reviewed-by: Erik Skultety <eskultet@redhat.com>
(I'll fix the nit if you're done with this series)

Regards,
Erik

Re: [libvirt PATCH 0/8] Remove space-padded alignment from public headers
Posted by Jonathon Jongsma 3 years, 3 months ago
On Thu, 21 Jan 2021 08:38:06 +0100
Erik Skultety <eskultet@redhat.com> wrote:

> On Wed, Jan 20, 2021 at 11:33:41AM -0600, Jonathon Jongsma wrote:
> > Erik Skultety suggested posting a separate series removing the
> > space-padded alignment of function declarations in the public
> > headers.  
> 
> This is already an improvement. We've gradually adopted a style where
> function declarations are separated by a single empty line and
> definitions by 2 (although, as with anything we're not 100%
> consistent all the time). With that said, we haven't converted the
> headers to follow this style yet (I remember John Ferlan did this
> conversion for most of the sources in the past).
> 
> Now, it depends whether you want to waste a few more minutes on
> fixing the style in headers or not, I'm okay both ways - if you think
> it's a waste of your time, just let me know and we'll create another
> warmup bitesized task for libvirt newcomers.
> 
> Regardless of how you decide about the code style:
> 
> Reviewed-by: Erik Skultety <eskultet@redhat.com>
> (I'll fix the nit if you're done with this series)
> 
> Regards,
> Erik

It shouldn't take much time. I'll try to go through and revise it.