From: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] rdma\hfi1 - coding style issues cleanup
Date: Thu, 28 Apr 2016 08:41:28 -0400 [thread overview]
Message-ID: <20160428124127.GB9685@phlsvsds.ph.intel.com> (raw)
In-Reply-To: <1461830300-2851-1-git-send-email-omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.org>
On Thu, Apr 28, 2016 at 10:58:20AM +0300, omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.org wrote:
>From: Omer Dagan <omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.org>
>diff --git a/drivers/staging/rdma/hfi1/aspm.h b/drivers/staging/rdma/hfi1/aspm.h
>index 0d58fe3..384df0a 100644
>--- a/drivers/staging/rdma/hfi1/aspm.h
>+++ b/drivers/staging/rdma/hfi1/aspm.h
>@@ -234,7 +234,7 @@ static inline void aspm_disable_all(struct hfi1_devdata *dd)
> {
> struct hfi1_ctxtdata *rcd;
> unsigned long flags;
>- unsigned i;
>+ unsigned int i;
Can you please explain the value in doing "unsigned int" vs "unsigned"?
None of the static checkers like checkpatch, sparse, or coccinelle seem to
mind.
> u64 read_csr(const struct hfi1_devdata *dd, u32 offset)
> {
>- if (dd->flags & HFI1_PRESENT) {
>+ if (dd->flags & HFI1_PRESENT)
> return readq((void __iomem *)dd->kregbase + offset);
>- }
>+
> return -1;
> }
>
Also please don't fix multiple types of issues in one patch. This is very
easy to lose sight of in the review and stands on its own.
This is a checkpatch issue. Likely the result of a previous patch removing a
line of code, something that is only seen when you run checkpatch on the
entire file not just the patch so this is a good find.
-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-04-28 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-28 7:58 [PATCH] rdma\hfi1 - coding style issues cleanup omer.dagan-CtGflUZwD1xBDgjK7y7TUQ
[not found] ` <1461830300-2851-1-git-send-email-omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.org>
2016-04-28 11:29 ` Leon Romanovsky
2016-04-28 12:41 ` Dennis Dalessandro [this message]
[not found] ` <20160428124127.GB9685-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2016-05-12 20:25 ` Doug Ledford
[not found] ` <f7fb16c7-7d5b-6b77-7879-1f16bdf76665-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-05-13 14:21 ` Dennis Dalessandro
-- strict thread matches above, loose matches on Subject: below --
2016-04-28 9:22 omer.dagan-CtGflUZwD1xBDgjK7y7TUQ
[not found] ` <1461835354-3077-1-git-send-email-omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.org>
2016-04-28 12:14 ` Dennis Dalessandro
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=20160428124127.GB9685@phlsvsds.ph.intel.com \
--to=dennis.dalessandro-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=omer.dagan-CtGflUZwD1xBDgjK7y7TUQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).