qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: checkpatch.pl false positives with HELPER macro


From: Blue Swirl
Subject: [Qemu-devel] Re: checkpatch.pl false positives with HELPER macro
Date: Fri, 21 Jan 2011 18:19:41 +0000

On Fri, Jan 21, 2011 at 6:05 PM, Peter Maydell <address@hidden> wrote:
> If you run checkpatch on the patch at
> http://patchwork.ozlabs.org/patch/79735/
>
> then it has a number of false-positive errors like this:
>
> ERROR: need consistent spacing around '*' (ctx:WxV)
> #74: FILE: target-arm/neon_helper.c:201:
> +uint32_t HELPER(neon_qadd_u32)(CPUState *env, uint32_t a, uint32_t b)
>                                         ^
> which I assume are because it's got confused by the HELPER() macro.
> Maybe HELPER() is sufficiently commonly used to be worth teaching it
> about as a special case?

There's also glue() and other macro wizardry. I don't think that can be avoided.

> Also, checkpatch says:
>
> sataddsub.patch has style problems, please review.  If any of these errors
> are false positives report them to the maintainer, see
> CHECKPATCH in MAINTAINERS.
>
> but there isn't anything about CHECKPATCH in our MAINTAINERS file...

I wouldn't be very optimistic about the rate of false positives, so
perhaps this suggestion should be turned into a warning about them.



reply via email to

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