* [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
@ 2012-04-11 0:55 Jim Cromie
[not found] ` <1334105725-9081-1-git-send-email-jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jim Cromie @ 2012-04-11 0:55 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA, infinipath-h88ZbnxC6KDQT0dZR+AlfA
Cc: trivial-u79uwXL29TY76Z2rM5mHXA, Jim Cromie
Signed-off-by: Jim Cromie <jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/infiniband/hw/ipath/ipath_intr.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/ipath/ipath_intr.c b/drivers/infiniband/hw/ipath/ipath_intr.c
index c0a03ac..26dfbc8 100644
--- a/drivers/infiniband/hw/ipath/ipath_intr.c
+++ b/drivers/infiniband/hw/ipath/ipath_intr.c
@@ -209,8 +209,7 @@ void ipath_format_hwerrors(u64 hwerrs,
{
int i;
const int glen =
- sizeof(ipath_generic_hwerror_msgs) /
- sizeof(ipath_generic_hwerror_msgs[0]);
+ ARRAY_SIZE(ipath_generic_hwerror_msgs);
for (i=0; i<glen; i++) {
if (hwerrs & ipath_generic_hwerror_msgs[i].mask) {
--
1.7.8.1
--
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
[not found] ` <1334105725-9081-1-git-send-email-jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2012-04-11 17:13 ` Marciniszyn, Mike
[not found] ` <32E1700B9017364D9B60AED9960492BC791647-AtyAts71sc88Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-18 18:14 ` Marciniszyn, Mike
1 sibling, 1 reply; 4+ messages in thread
From: Marciniszyn, Mike @ 2012-04-11 17:13 UTC (permalink / raw)
To: Jim Cromie, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
infinipath-h88ZbnxC6KDQT0dZR+AlfA
Cc: trivial-u79uwXL29TY76Z2rM5mHXA
> From: Jim Cromie [mailto:jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
> Subject: [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
>
>
> Signed-off-by: Jim Cromie <jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
I noticed a similar issue in ipath_iba6110.c around line 599.
Do you want me to correct or do you want to catch it with a single patch?
Mike
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
[not found] ` <32E1700B9017364D9B60AED9960492BC791647-AtyAts71sc88Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2012-04-11 18:02 ` Jim Cromie
0 siblings, 0 replies; 4+ messages in thread
From: Jim Cromie @ 2012-04-11 18:02 UTC (permalink / raw)
To: Marciniszyn, Mike
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
infinipath-h88ZbnxC6KDQT0dZR+AlfA,
trivial-DgEjT+Ai2ygdnm+yROfE0A
On Wed, Apr 11, 2012 at 11:13 AM, Marciniszyn, Mike
<mike.marciniszyn-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
>> From: Jim Cromie [mailto:jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
>> Subject: [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
>>
>>
>> Signed-off-by: Jim Cromie <jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
> I noticed a similar issue in ipath_iba6110.c around line 599.
>
> Do you want me to correct or do you want to catch it with a single patch?
>
> Mike
interesting - spatch didnt do it cuz the array.cocci file
checks for <liinux/kernel.h>, and didnt find it here.
my tree is on another branch now, can you do it ?
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
[not found] ` <1334105725-9081-1-git-send-email-jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-04-11 17:13 ` Marciniszyn, Mike
@ 2012-04-18 18:14 ` Marciniszyn, Mike
1 sibling, 0 replies; 4+ messages in thread
From: Marciniszyn, Mike @ 2012-04-18 18:14 UTC (permalink / raw)
To: Jim Cromie, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
infinipath-h88ZbnxC6KDQT0dZR+AlfA
Cc: trivial-u79uwXL29TY76Z2rM5mHXA
> From: Jim Cromie [mailto:jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
> Subject: [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro
>
> Signed-off-by: Jim Cromie <jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Thanks for the patch!
Acked-by: Mike Marciniszyn <mike.marciniszyn-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-18 18:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 0:55 [PATCH 02/11] ipath: replace open-coded ARRAY_SIZE with macro Jim Cromie
[not found] ` <1334105725-9081-1-git-send-email-jim.cromie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-04-11 17:13 ` Marciniszyn, Mike
[not found] ` <32E1700B9017364D9B60AED9960492BC791647-AtyAts71sc88Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-11 18:02 ` Jim Cromie
2012-04-18 18:14 ` Marciniszyn, Mike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.