[PATCH] arch/powerpc/include/asm/barrier.h: redefine rmb and wmb to lwsync
Kautuk Consul
kconsul at linux.vnet.ibm.com
Wed Feb 22 19:34:00 AEDT 2023
On Wed, Feb 22, 2023 at 08:28:19AM +0000, Christophe Leroy wrote:
>
>
> Le 22/02/2023 à 09:21, Kautuk Consul a écrit :
> >> On Wed, Feb 22, 2023 at 07:02:34AM +0000, Christophe Leroy wrote:
> >>>> +/* Redefine rmb() to lwsync. */
> >>>
> >>> WHat's the added value of this comment ? Isn't it obvious in the line
> >>> below that rmb() is being defined to lwsync ? Please avoid useless comments.
> >> Sure.
> > Sorry, forgot to add that I wasn't adding this useless comment.
> > Its just that checkpatch.pl complains that the memory barrier #define
> > doesn't have a comment for it.
> >>>
>
> See https://docs.kernel.org/dev-tools/checkpatch.html, it says:
>
> Checkpatch is not always right. Your judgement takes precedence over
> checkpatch messages. If your code looks better with the violations, then
> its probably best left alone.
>
> checkpatch wants a comment for uses of memory barriers. Here I think it
> is a false positive.
Cool. I will make the changes you mentioned.
Can you tell me which branch or git repo I should re-make this patch on ?
More information about the Linuxppc-dev
mailing list