svn commit: r288135 - in stable: 10/sys/dev/bxe 9/sys/dev/bxe
Dimitry Andric
dim at FreeBSD.org
Tue Sep 22 22:27:46 UTC 2015
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/9/sys/dev/bxe/ecore_hsi.h
Directory Properties:
stable/9/ (props changed)
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/10/sys/dev/bxe/ecore_hsi.h
Directory Properties:
stable/10/ (props changed)
Modified: stable/9/sys/dev/bxe/ecore_hsi.h
==============================================================================
--- stable/9/sys/dev/bxe/ecore_hsi.h Tue Sep 22 22:18:36 2015 (r288134)
+++ stable/9/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
More information about the svn-src-stable-9
mailing list