From: Ingo Molnar <mingo@elte.hu>
To: Jack Steiner <steiner@sgi.com>
Cc: tglx@linutronix.de, hpa@zytor.com, x86@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH V3] x86, UV: Reformat uv_mmrs.h - no code changes
Date: Fri, 27 May 2011 14:40:17 +0200 [thread overview]
Message-ID: <20110527124017.GA2126@elte.hu> (raw)
In-Reply-To: <20110526171710.GA8056@sgi.com>
* Jack Steiner <steiner@sgi.com> wrote:
> No code changes. Reformat file to eliminate errors caught
> by checkpatch.pl
>
> Signed-off-by: Jack Steiner <steiner@sgi.com>
>
> ---
> V2 - this patch applies on top of "[PATCH] x86, UV: Support for SGI UV2 hub chip".
>
> I fixed alignment of comments in the structure definitions. All checkpatch.pl
> ERRORS & WARNINGS are also fixed.
>
> Some of the symbol names are still quite long. The file is based on post-processing
> of verilog definitions that are used for the node controller chip design. Although
> some symbol names are not what I would chose, I would like to maintain compatibility
> with the names used by the chip designers. We have a number of cross-reference
> utilities & having common names is important. Hope this is ok...
>
> V3 - Aligned comments and most field definitions & values. Also sorted the
> #defines for the SHIFT & MASK values for each MMR. This make the file visually
> much more acceptible.
It looks better now, but one final detail i can still see is that
this feedback i gave in the uv_tlb.c discussion still applies:
- In uv_bau.h there's no need to break the comment lines in such an
ugly way:
unsigned long s_ntarglocals; /* targets of cpus on the local
blade */
Just leave the comment in a single line! It's not a problem to
have lines longer than 80 cols - length up to 100 colums is fine
in such cases. The place where we frown upon too long lines is
*code*, because there the too long lines indicate various
structural problems.
I hindsight you were not Cc:-ed so you probably didnt see it? Below
is the whole mail i wrote to Cliff.
So there's still many lines that are needlessly broken. The point is
*NOT* to make checkpatch happy, but to make any random developer who
looks at that file happy.
Also, could you please use a more informative changelog like:
---------------------------->
Subject: x86, UV: Clean up uv_mmrs.h
From: Jack Steiner <steiner@sgi.com>
Date: Thu, 26 May 2011 12:17:10 -0500
No code changes. Reformat definitions to make it more readable.
I fixed alignment of comments in the structure definitions.
Also aligned comments and most field definitions & values. Also
sorted the defines for the SHIFT & MASK values for each MMR. This
make the file visually much more acceptable.
Some of the symbol names are still quite long. The file is based on
post-processing of verilog definitions that are used for the node
controller chip design. Although some symbol names are not what I
would chose, I would like to maintain compatibility with the names
used by the chip designers. We have a number of cross-reference
utilities & having common names is important.
<----------------------------
(i changed the title as well)
Thanks,
Ingo
----- Forwarded message from Ingo Molnar <mingo@elte.hu> -----
Date: Wed, 25 May 2011 14:32:07 +0200
From: Ingo Molnar <mingo@elte.hu>
To: Cliff Wickman <cpw@sgi.com>
Cc: linux-kernel@vger.kernel.org, Pekka Enberg <penberg@cs.helsinki.fi>
Subject: Re: [PATCH v6] x86: UV uv_tlb.c cleanup
* Cliff Wickman <cpw@sgi.com> wrote:
> General readability cleanup of tlb_uv.c. Now:
Ok, so this is clearly a big step forward so i've applied it and
started testing it - hopefully we can work with small patches from
now on.
I looked at uv_bau.h and tlb_uv.c and there's still sporadic
problems:
- Found at least one non-standard multi-line comment
- Found at least one case where local variables were not followed by
an extra empty line
- Sentences within comments are not capitalized consisently - some
start properly capitalized, some not.
- In uv_bau.h there's no need to break the comment lines in such an
ugly way:
unsigned long s_ntarglocals; /* targets of cpus on the local
blade */
Just leave the comment in a single line! It's not a problem to
have lines longer than 80 cols - length up to 100 colums is fine
in such cases. The place where we frown upon too long lines is
*code*, because there the too long lines indicate various
structural problems.
- There's still obscenely long field names such as
socket_acknowledge_count. Why isnt that sock_ack_count? Note,
there's other such places, please try to find them an improve them
where possible sanely. If you think there's no sane short name
available then obviously we want to live with the long name.
There might be other, easily noticeable problem in the file - please
look yourself and try to improve it instead of forcing me to do this
for you.
Thanks,
Ingo
next prev parent reply other threads:[~2011-05-27 12:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-12 13:33 [PATCH] x86, UV: Reformat uv_mmrs.h - no code changes Jack Steiner
2011-05-13 12:40 ` Ingo Molnar
2011-05-25 16:16 ` [PATCH V2] " Jack Steiner
2011-05-25 20:45 ` Ingo Molnar
2011-05-26 17:17 ` [PATCH V3] " Jack Steiner
2011-05-27 12:40 ` Ingo Molnar [this message]
2011-05-27 14:52 ` [PATCH V4] x86, UV: Clean up uv_mmrs.h Jack Steiner
2011-05-30 11:04 ` [tip:x86/uv] " tip-bot for Jack Steiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110527124017.GA2126@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=steiner@sgi.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox