From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/sfc_netfront: deal with gcc5 warning Date: Fri, 06 Mar 2015 09:48:43 +0000 Message-ID: <54F9860B0200007800066E71@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part596CF9EB.0__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YTos8-0006R1-Dz for xen-devel@lists.xenproject.org; Fri, 06 Mar 2015 09:48:44 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Jiri Slaby , kmansley@solarflare.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part596CF9EB.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline gcc5 warns about (!x =3D=3D y) assuming !(x =3D=3D y) may be meant, and = the driver's Makefile enforcing -Werror results in this failing the build. Reported-by: Jiri Slaby Signed-off-by: Jan Beulich --- a/drivers/xen/sfc_netfront/falcon_event.c +++ b/drivers/xen/sfc_netfront/falcon_event.c @@ -110,7 +110,7 @@ ef_vi_inline int falcon_rx_check_dup( #endif BUG_ON(!QWORD_TEST_BIT(RX_EV_FRM_TRUNC, *ev)); BUG_ON( QWORD_TEST_BIT(RX_EV_PKT_OK, *ev)); - BUG_ON(!QWORD_GET_U(RX_EV_BYTE_CNT, *ev) =3D=3D 0); + BUG_ON(QWORD_GET_U(RX_EV_BYTE_CNT, *ev)); ev_out->rx_no_desc_trunc.type =3D EF_EVENT_TYPE_RX_NO_DESC_TRUNC; ev_out->rx_no_desc_trunc.q_id =3D q_id; return 1; --=__Part596CF9EB.0__= Content-Type: text/plain; name="xenlinux-sfc_netfront-gcc5.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xenlinux-sfc_netfront-gcc5.patch" sfc_netfront: deal with gcc5 warning=0A=0Agcc5 warns about (!x =3D=3D y) = assuming !(x =3D=3D y) may be meant, and the=0Adriver's Makefile enforcing = -Werror results in this failing the build.=0A=0AReported-by: Jiri Slaby = =0ASigned-off-by: Jan Beulich =0A=0A--- = a/drivers/xen/sfc_netfront/falcon_event.c=0A+++ b/drivers/xen/sfc_netfront/= falcon_event.c=0A@@ -110,7 +110,7 @@ ef_vi_inline int falcon_rx_check_dup(= =0A #endif=0A BUG_ON(!QWORD_TEST_BIT(RX_EV_FRM_TRUNC, *ev));=0A = BUG_ON( QWORD_TEST_BIT(RX_EV_PKT_OK, *ev));=0A- BUG_ON(!QWORD_GET_U(RX_EV_B= YTE_CNT, *ev) =3D=3D 0);=0A+ BUG_ON(QWORD_GET_U(RX_EV_BYTE_CNT, = *ev));=0A ev_out->rx_no_desc_trunc.type =3D EF_EVENT_TYPE_RX_NO_DESC_= TRUNC;=0A ev_out->rx_no_desc_trunc.q_id =3D q_id;=0A return = 1;=0A --=__Part596CF9EB.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part596CF9EB.0__=--