linux-2.6.18/sfc_netfront: deal with gcc5 warning
PATCH 1/1 linux-2.6.18/sfc_netfront: deal with gcc5 warning
gcc5 warns about (!x == y) assuming !(x == y) may be meant, and the driver's Makefile enforcing -Werror results in this failing the build.
Reported-by Jiri Slaby <[email protected]>
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/sfc_netfront/falcon_event.c +1 -1
@@ -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) ==0 ); +BUG_ON (QWORD_GET_U (RX_EV_BYTE_CNT , *ev)); ev_out->rx_no_desc_trunc.type =EF_EVENT_TYPE_RX_NO_DESC_TRUNC ; ev_out->rx_no_desc_trunc.q_id = q_id;return 1 ;
sfc_netfront: deal with gcc5 warning
gcc5 warns about (!x == y) assuming !(x == y) may be meant, and the driver's Makefile enforcing -Werror results in this failing the build.
Reported-by Jiri Slaby <[email protected]>
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/sfc_netfront/falcon_event.c +1 -1
@@ -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) ==0 ); +BUG_ON (QWORD_GET_U (RX_EV_BYTE_CNT , *ev)); ev_out->rx_no_desc_trunc.type =EF_EVENT_TYPE_RX_NO_DESC_TRUNC ; ev_out->rx_no_desc_trunc.q_id = q_id;return 1 ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel