[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 01/20] target/mips: Clean up helper.c
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 01/20] target/mips: Clean up helper.c |
Date: |
Fri, 27 Sep 2019 14:03:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Aleksandar, your message is hard to read, because you sent Content-Type:
multipart/alternative, and both the test/html and the test/plain
alternative ride roughshot over the quoted text's line structure.
Quoted patches become unreadable garbage. Please check your e-mail
setup.
Aleksandar Markovic <address@hidden> writes:
> 25.09.2019. 17.53, "Philippe Mathieu-Daudé" <address@hidden> је
> написао/ла:
>>
>> On 9/25/19 2:45 PM, Aleksandar Markovic wrote:
>> > From: Aleksandar Markovic <address@hidden>
>> >
>> > Mostly fix errors and warnings reported by 'checkpatch.pl -f'.
>> >
>> > Signed-off-by: Aleksandar Markovic <address@hidden>
>> > ---
>> > target/mips/helper.c | 132
> +++++++++++++++++++++++++++++++--------------------
>> > 1 file changed, 80 insertions(+), 52 deletions(-)
>> >
>> > diff --git a/target/mips/helper.c b/target/mips/helper.c
>> > index a2b6459..3dd1aae 100644
>> > --- a/target/mips/helper.c
>> > +++ b/target/mips/helper.c
>> > @@ -130,8 +133,11 @@ static int is_seg_am_mapped(unsigned int am, bool
> eu, int mmu_idx)
>> > int32_t adetlb_mask;
>> >
>> > switch (mmu_idx) {
>> > - case 3 /* ERL */:
>> > - /* If EU is set, always unmapped */
>> > + case 3:
>> > + /*
>> > + * ERL
>> > + * If EU is set, always unmapped
>> > + */
>>
>> My IDE show the current form nicer when the switch is folded.
>>
>> Are these comment really bothering checkpatch?
>>
>
> While being sintaxically correct, interleaving comments and code in a
> single code line is considered a bad practice by many.
I take that as a "no".
The preferences of "many" (whoever they may be) are a lot less relevant
than the specific project's prevailing style. "git-grep ' case .*/\*'"
shows thousands of hits.
If you want to pursue this change, please put it in a separate patch,
so this one is really about fixing "errors and warnings reported by
'checkpatch.pl -f'", as your commit message promises.
>> > if (eu) {
>> > return 0;
>> > }
[...]
>> Except 2 comments, OK for the rest.
>>
>> Another patch that makes rebasing very painful :(
>>
>
> It would be fantastic if you apply the same reasoning to your patches, that
> spread all over the code base, and happen so frequently, and certainly
> create enormously more rebasing problems for multitude of people than this
> patch or series does.
Please tone down the aggression a notch.
Philippe merely observed a trade-off. We deal with such trade-offs all
the time. When your reviewer challenges one, you consider it (unless
you did that already), then tell him what you concluded.
"Tu quoque" is not a proper reply to such an observation (or to anything
else for that matter). When you have an issue with Philippe's patches,
address it in review of Philippe's patches.
Thank you.
- [PATCH v2 10/20] target/mips: msa: Unroll loops and demacro <BMNZ|BMZ|BSEL>.V, (continued)
- [PATCH v2 10/20] target/mips: msa: Unroll loops and demacro <BMNZ|BMZ|BSEL>.V, Aleksandar Markovic, 2019/09/25
- [PATCH v2 02/20] target/mips: Clean up internal.h, Aleksandar Markovic, 2019/09/25
- [PATCH v2 06/20] target/mips: Clean up translate.c, Aleksandar Markovic, 2019/09/25
- [PATCH v2 07/20] target/mips: msa: Split helpers for <NLOC|NLZC>.<B|H|W|D>, Aleksandar Markovic, 2019/09/25
- [PATCH v2 09/20] target/mips: msa: Split helpers for BINS<L|R>.<B|H|W|D>, Aleksandar Markovic, 2019/09/25
- [PATCH v2 01/20] target/mips: Clean up helper.c, Aleksandar Markovic, 2019/09/25
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c, Philippe Mathieu-Daudé, 2019/09/25
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c, Aleksandar Markovic, 2019/09/27
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c, Philippe Mathieu-Daudé, 2019/09/27
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c,
Markus Armbruster <=
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c, Peter Maydell, 2019/09/27
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c, Aleksandar Markovic, 2019/09/27
- Re: [PATCH v2 01/20] target/mips: Clean up helper.c, Markus Armbruster, 2019/09/28
[PATCH v2 08/20] target/mips: msa: Split helpers for PCNT.<B|H|W|D>, Aleksandar Markovic, 2019/09/25
[PATCH v2 11/20] target/mips: msa: Split helpers for B<CLR|NEG|SEL>.<B|H|W|D>, Aleksandar Markovic, 2019/09/25
[PATCH v2 20/20] target/mips: msa: Move helpers for <AND|NOR|OR|XOR>.V, Aleksandar Markovic, 2019/09/25
[PATCH v2 19/20] target/mips: msa: Simplify and move helper for MOVE.V, Aleksandar Markovic, 2019/09/25
[PATCH v2 17/20] target/mips: msa: Split helpers for DIV_<S|U>.<B|H|W|D>, Aleksandar Markovic, 2019/09/25
[PATCH v2 14/20] target/mips: msa: Split helpers for CEQ.<B|H|W|D>, Aleksandar Markovic, 2019/09/25
[PATCH v2 13/20] target/mips: msa: Split helpers for AVER_<S|U>.<B|H|W|D>, Aleksandar Markovic, 2019/09/25