From 05c6aa727f0c35978447dfd3fea0afc6eda411cd Mon Sep 17 00:00:00 2001 From: David C Somayajulu Date: Mon, 25 Apr 2016 18:55:01 +0000 Subject: [PATCH] 1. Removed -Wno-shift-negative-value from Makefile 2. Fixed warning its absence caused in bxe_elink.c MFC after:5 days --- sys/dev/bxe/bxe_elink.c | 4 ++-- sys/modules/bxe/Makefile | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/bxe/bxe_elink.c b/sys/dev/bxe/bxe_elink.c index ad2718675d36..0ce0433598a0 100644 --- a/sys/dev/bxe/bxe_elink.c +++ b/sys/dev/bxe/bxe_elink.c @@ -11969,8 +11969,8 @@ static elink_status_t elink_54618se_config_init(struct elink_phy *phy, elink_eee_disable(phy, params, vars); } } else { - vars->eee_status &= ~SHMEM_EEE_1G_ADV << - SHMEM_EEE_SUPPORTED_SHIFT; + vars->eee_status &= ((uint32_t)(~SHMEM_EEE_1G_ADV) << + SHMEM_EEE_SUPPORTED_SHIFT); if (phy->flags & ELINK_FLAGS_EEE) { /* Handle legacy auto-grEEEn */ diff --git a/sys/modules/bxe/Makefile b/sys/modules/bxe/Makefile index f3023451c8d0..b2e32f7db05c 100644 --- a/sys/modules/bxe/Makefile +++ b/sys/modules/bxe/Makefile @@ -17,6 +17,5 @@ SRCS += bxe.c \ 57712_init_values.c CFLAGS += -I${BXE} -CFLAGS += -Wno-shift-negative-value .include