Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2015 22:27:46 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r288135 - in stable: 10/sys/dev/bxe 9/sys/dev/bxe
Message-ID:  <201509222227.t8MMRkh2074592@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Sep 22 22:27:45 2015
New Revision: 288135
URL: https://svnweb.freebsd.org/changeset/base/288135

Log:
  MFC r286733:
  
  Avoid left-shifting negative signed values in bxe(4).
  
  Reviewed by:	davidcs

Modified:
  stable/10/sys/dev/bxe/ecore_hsi.h
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/sys/dev/bxe/ecore_hsi.h
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/10/sys/dev/bxe/ecore_hsi.h
==============================================================================
--- stable/10/sys/dev/bxe/ecore_hsi.h	Tue Sep 22 22:18:36 2015	(r288134)
+++ stable/10/sys/dev/bxe/ecore_hsi.h	Tue Sep 22 22:27:45 2015	(r288135)
@@ -2536,9 +2536,9 @@ struct shmem2_region {
 	#define SHMEM_EEE_SUPPORTED_MASK	   0x000f0000
 	#define SHMEM_EEE_SUPPORTED_SHIFT	   16
 	#define SHMEM_EEE_ADV_STATUS_MASK	   0x00f00000
-		#define SHMEM_EEE_100M_ADV	   (1<<0)
-		#define SHMEM_EEE_1G_ADV	   (1<<1)
-		#define SHMEM_EEE_10G_ADV	   (1<<2)
+		#define SHMEM_EEE_100M_ADV	   (1U<<0)
+		#define SHMEM_EEE_1G_ADV	   (1U<<1)
+		#define SHMEM_EEE_10G_ADV	   (1U<<2)
 	#define SHMEM_EEE_ADV_STATUS_SHIFT	   20
 	#define	SHMEM_EEE_LP_ADV_STATUS_MASK	   0x0f000000
 	#define SHMEM_EEE_LP_ADV_STATUS_SHIFT	   24



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