Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2018 07:19:39 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r342439 - stable/11/sys/dev/sfxge/common
Message-ID:  <201812250719.wBP7JdVV041218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Tue Dec 25 07:19:39 2018
New Revision: 342439
URL: https://svnweb.freebsd.org/changeset/base/342439

Log:
  MFC r341197
  
  sfxge(4): fix comparison always true warning
  
  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.
  
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18228

Modified:
  stable/11/sys/dev/sfxge/common/efx_port.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/sfxge/common/efx_port.c
==============================================================================
--- stable/11/sys/dev/sfxge/common/efx_port.c	Tue Dec 25 07:18:40 2018	(r342438)
+++ stable/11/sys/dev/sfxge/common/efx_port.c	Tue Dec 25 07:19:39 2018	(r342439)
@@ -147,7 +147,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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812250719.wBP7JdVV041218>