qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [RFC for-4.1 00/25] Many style fixes for tar


From: Markus Armbruster
Subject: Re: [Qemu-ppc] [Qemu-devel] [RFC for-4.1 00/25] Many style fixes for target/ppc
Date: Fri, 22 Mar 2019 07:55:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

David Gibson <address@hidden> writes:

> target/ppc has a lot of old code that doesn't stick to the modern
> style guidelines.  That means we keep getting checkpatch warnings from
> code motions in there, or from people copying the local style rather
> than the global style.
>
> I'm sick of it, so here's a big series to fix many of the style
> problems in target/ppc.
>
> It doesn't cover every checkpatch warning: outright false positives
> are ignored of course, but there are also some things that it's not
> obvious how to fix (often involving hairy nested macros).  Still, it's
> a good start.

I reply because you marked this RFC, which indicates some uncertainty.
I'd like to encourage you.

The more bad examples exist in the code, the more time we'll waste on
correcting them in patch submission.  You're sick of it.  You're right.

We've demanded compliance to the QEMU coding style since 2009 (commit
e68b98dc723).  If we had started to clean up existing code back then,
we'd be long done by now, and style cleanup's annoying impact on
git-blame would've long decayed to irrelevant levels.

I expect the only regrets you'll have about this series is not to have
done it earlier.

Diffstat without the patches you included by mistake:

 26 files changed, 1210 insertions(+), 802 deletions(-)

This is actually a rather small fraction of the PPC code:

    $ git-ls-files hw/ppc/ include/hw/ppc target/ppc/ | xargs wc | tail -n 1
      90193  284261 3087364 total
    $ git-ls-files hw/ppc/ include/hw/ppc target/ppc/ | wc -l
    128



reply via email to

[Prev in Thread] Current Thread [Next in Thread]