* [dpdk-stable] [PATCH v2 1/3] net/sfc/base: fix comparison always true warning
[not found] ` <1523275139-12017-1-git-send-email-arybchenko@solarflare.com>
@ 2018-04-09 11:58 ` Andrew Rybchenko
0 siblings, 0 replies; only message in thread
From: Andrew Rybchenko @ 2018-04-09 11:58 UTC (permalink / raw)
To: dev; +Cc: Ferruh Yigit, stable
Loopback type used as bit index has efx_loopback_type_t type
which is enum. clang complains that it is always true when it
is compared with qword (64 bit) bits number boundary.
Fixes: 9ee64bd404fc ("net/sfc/base: import loopback control")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
drivers/net/sfc/base/efx_port.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/sfc/base/efx_port.c b/drivers/net/sfc/base/efx_port.c
index 261ac62..33a1a08 100644
--- a/drivers/net/sfc/base/efx_port.c
+++ b/drivers/net/sfc/base/efx_port.c
@@ -120,7 +120,7 @@ efx_port_loopback_set(
EFSYS_ASSERT(link_mode < EFX_LINK_NMODES);
if (EFX_TEST_QWORD_BIT(encp->enc_loopback_types[link_mode],
- loopback_type) == 0) {
+ (int)loopback_type) == 0) {
rc = ENOTSUP;
goto fail1;
}
--
2.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-09 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1522840238-31740-1-git-send-email-arybchenko@solarflare.com>
[not found] ` <1523275139-12017-1-git-send-email-arybchenko@solarflare.com>
2018-04-09 11:58 ` [dpdk-stable] [PATCH v2 1/3] net/sfc/base: fix comparison always true warning Andrew Rybchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).