From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann Droneaud Subject: Re: [PATCH] infiniband, ocrdma, Fix compiler warning Date: Wed, 19 Feb 2014 17:47:55 +0100 Message-ID: <1392828475.25314.1.camel@localhost.localdomain> References: <1392821725-14137-1-git-send-email-prarit@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1392821725-14137-1-git-send-email-prarit-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Prarit Bhargava Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Roland Dreier , Sean Hefty , Hal Rosenstock , Naresh Gottumukkala , Moni Shoua , Matan Barak , "Gottumukkala, Naresh" List-Id: linux-rdma@vger.kernel.org Hi, Le mercredi 19 f=C3=A9vrier 2014 =C3=A0 09:55 -0500, Prarit Bhargava a = =C3=A9crit : > drivers/infiniband/hw/ocrdma/ocrdma_verbs.c: In function =E2=80=98_oc= rdma_modify_qp=E2=80=99: > drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:1299:31: error: =E2=80=98= old_qps=E2=80=99 may be used uninitialized in this function [-Werror=3D= maybe-uninitialized] > status =3D ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask, old_qps); >=20 > ocrdma_mbx_modify_qp() (and subsequent calls) doesn't appear to use o= ld_qps > so it doesn't need to be passed on. Removing the variable results in= the > warning going away. >=20 Nice to see this warning removed. > Signed-off-by: Prarit Bhargava >=20 You should move the signed of after the Cc's. > Cc: Roland Dreier > Cc: Sean Hefty > Cc: Hal Rosenstock > Cc: Naresh Gottumukkala > Cc: Moni Shoua > Or Gerlitz ^^^ There's a missing Cc: tag > Cc: Matan Barak > Cc: "Gottumukkala, Naresh" Regards. --=20 Yann Droneaud OPTEYA -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html