[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] qemu/atomic.h: prefix qemu_ to solve <stdatomic.h> collisions
- To: Stefan Hajnoczi <stefanha@xxxxxxxxxx>, qemu-devel@xxxxxxxxxx
- From: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
- Date: Tue, 22 Sep 2020 10:33:44 +0200
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@xxxxxxxxxx
- Autocrypt: addr=philmd@xxxxxxxxxx; keydata= mQINBDXML8YBEADXCtUkDBKQvNsQA7sDpw6YLE/1tKHwm24A1au9Hfy/OFmkpzo+MD+dYc+7 bvnqWAeGweq2SDq8zbzFZ1gJBd6+e5v1a/UrTxvwBk51yEkadrpRbi+r2bDpTJwXc/uEtYAB GvsTZMtiQVA4kRID1KCdgLa3zztPLCj5H1VZhqZsiGvXa/nMIlhvacRXdbgllPPJ72cLUkXf z1Zu4AkEKpccZaJspmLWGSzGu6UTZ7UfVeR2Hcc2KI9oZB1qthmZ1+PZyGZ/Dy+z+zklC0xl XIpQPmnfy9+/1hj1LzJ+pe3HzEodtlVA+rdttSvA6nmHKIt8Ul6b/h1DFTmUT1lN1WbAGxmg CH1O26cz5nTrzdjoqC/b8PpZiT0kO5MKKgiu5S4PRIxW2+RA4H9nq7nztNZ1Y39bDpzwE5Sp bDHzd5owmLxMLZAINtCtQuRbSOcMjZlg4zohA9TQP9krGIk+qTR+H4CV22sWldSkVtsoTaA2 qNeSJhfHQY0TyQvFbqRsSNIe2gTDzzEQ8itsmdHHE/yzhcCVvlUzXhAT6pIN0OT+cdsTTfif MIcDboys92auTuJ7U+4jWF1+WUaJ8gDL69ThAsu7mGDBbm80P3vvUZ4fQM14NkxOnuGRrJxO qjWNJ2ZUxgyHAh5TCxMLKWZoL5hpnvx3dF3Ti9HW2dsUUWICSQARAQABtDJQaGlsaXBwZSBN YXRoaWV1LURhdWTDqSAoUGhpbCkgPHBoaWxtZ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, berto@xxxxxxxxxx, sagark@xxxxxxxxxxxxxxxxx, ysato@xxxxxxxxxxxxxxxxxxxx, quintela@xxxxxxxxxx, jslaby@xxxxxxx, mst@xxxxxxxxxx, armbru@xxxxxxxxxx, pasic@xxxxxxxxxxxxx, borntraeger@xxxxxxxxxx, aleksandar.qemu.devel@xxxxxxxxx, thuth@xxxxxxxxxx, marcandre.lureau@xxxxxxxxxx, mjrosato@xxxxxxxxxxxxx, aleksandar.rikalo@xxxxxxxxxx, ehabkost@xxxxxxxxxx, sw@xxxxxxxxxxx, pl@xxxxxxx, dgilbert@xxxxxxxxxx, paul@xxxxxxx, anthony.perard@xxxxxxxxxx, qemu-s390x@xxxxxxxxxx, qemu-arm@xxxxxxxxxx, namei.unix@xxxxxxxxx, qemu-riscv@xxxxxxxxxx, sunilmut@xxxxxxxxxxxxx, jsnow@xxxxxxxxxx, zhang.zhanghailiang@xxxxxxxxxx, rth@xxxxxxxxxxx, kwolf@xxxxxxxxxx, berrange@xxxxxxxxxx, qemu-block@xxxxxxxxxx, kbastian@xxxxxxxxxxxxxxxxxxxxx, cohuck@xxxxxxxxxx, laurent@xxxxxxxxx, mreitz@xxxxxxxxxx, palmer@xxxxxxxxxxx, pbonzini@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, aurelien@xxxxxxxxxxx
- Delivery-date: Tue, 22 Sep 2020 08:33:59 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 9/22/20 10:17 AM, Stefan Hajnoczi wrote:
> On Mon, Sep 21, 2020 at 01:56:08PM -0700, no-reply@xxxxxxxxxxx wrote:
>> ERROR: Macros with multiple statements should be enclosed in a do - while
>> loop
>> #2968: FILE: include/qemu/atomic.h:152:
>> +#define qemu_atomic_rcu_read__nocheck(ptr, valptr) \
>> __atomic_load(ptr, valptr, __ATOMIC_RELAXED); \
>> smp_read_barrier_depends();
>>
...
>> WARNING: Block comments use a leading /* on a separate line
>> #7456: FILE: util/rcu.c:154:
>> + /* In either case, the qemu_atomic_mb_set below blocks stores that
>> free
>>
>> total: 7 errors, 4 warnings, 6507 lines checked
>
> These are pre-existing coding style issues. This is a big patch that
> tries to make as few actual changes as possible so I would rather not
> try to fix them.
What I do with automated patches triggering checkpatch errors:
- run automated conversion
- fix errors until checkpatch is happy
- run automated conversion inversed
- result is the checkpatch changes, commit them
- run automated conversion again, commit
|