From: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Faisal Latif
<faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH/RFC] RDMA/iwcm: Get rid of enum iw_cm_event_status
Date: Tue, 10 May 2011 09:50:01 -0500 [thread overview]
Message-ID: <4DC95099.7030706@opengridcomputing.com> (raw)
In-Reply-To: <1305005199-4943-1-git-send-email-roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
On 05/10/2011 12:26 AM, Roland Dreier wrote:
> From: Roland Dreier<roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
>
> The IW_CM_EVENT_STATUS_xxx values were used in only a couple of places;
> cma.c uses -Exxx values instead, and so do the amso1100, cxgb3 and cxgb4
> drivers -- only nes was using the enum values (with the mild consequence
> that all nes connection failures were treated as generic errors rather
> than reported as timeouts or rejections).
>
> We can fix this confusion by getting rid of enum iw_cm_event_status and
> using a plain int for struct iw_cm_event.status, and converting nes to
> use -Exxx as the other iWARP drivers do.
>
> This also gets rid of the warning
>
> drivers/infiniband/core/cma.c: In function 'cma_iw_handler':
> drivers/infiniband/core/cma.c:1333:3: warning: case value '4294967185' not in enumerated type 'enum iw_cm_event_status'
> drivers/infiniband/core/cma.c:1336:3: warning: case value '4294967186' not in enumerated type 'enum iw_cm_event_status'
> drivers/infiniband/core/cma.c:1332:3: warning: case value '4294967192' not in enumerated type 'enum iw_cm_event_status'
>
> Signed-off-by: Roland Dreier<roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Reviewed-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@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
next prev parent reply other threads:[~2011-05-10 14:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-10 5:26 [PATCH/RFC] RDMA/iwcm: Get rid of enum iw_cm_event_status Roland Dreier
[not found] ` <1305005199-4943-1-git-send-email-roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2011-05-10 14:47 ` Hefty, Sean
2011-05-10 14:50 ` Steve Wise [this message]
2011-05-10 20:05 ` Latif, Faisal
2011-05-11 6:06 ` Or Gerlitz
[not found] ` <4DCA2756.3060900-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-05-11 17:56 ` Roland Dreier
2011-05-11 16:57 ` Or Gerlitz
[not found] ` <4DCABFEA.10501-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-05-11 17:40 ` Bart Van Assche
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=4DC95099.7030706@opengridcomputing.com \
--to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
--cc=faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@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