Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162165789
D26839.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26839.diff
View Options
Index: head/sys/dev/axgbe/xgbe-dev.c
===================================================================
--- head/sys/dev/axgbe/xgbe-dev.c
+++ head/sys/dev/axgbe/xgbe-dev.c
@@ -1337,7 +1337,7 @@
struct xgbe_ring_data *rdata;
struct xgbe_ring_desc *rdesc;
struct xgbe_packet_data *packet = &ring->packet_data;
- unsigned int err, etlt, l34t;
+ unsigned int err, etlt, l34t = 0;
axgbe_printf(1, "-->xgbe_dev_read: cur = %d\n", ring->cur);
Index: head/sys/dev/axgbe/xgbe-mdio.c
===================================================================
--- head/sys/dev/axgbe/xgbe-mdio.c
+++ head/sys/dev/axgbe/xgbe-mdio.c
@@ -1186,7 +1186,7 @@
__xgbe_phy_config_aneg(struct xgbe_prv_data *pdata, bool set_mode)
{
int ret;
- unsigned int reg;
+ unsigned int reg = 0;
sx_xlock(&pdata->an_mutex);
Index: head/sys/dev/axgbe/xgbe-phy-v2.c
===================================================================
--- head/sys/dev/axgbe/xgbe-phy-v2.c
+++ head/sys/dev/axgbe/xgbe-phy-v2.c
@@ -2706,7 +2706,7 @@
static int
xgbe_phy_read_status(struct xgbe_prv_data *pdata)
{
- int common_adv_gb;
+ int common_adv_gb = 0;
int common_adv;
int lpagb = 0;
int adv, lpa;
@@ -2741,9 +2741,9 @@
}
if (pdata->phy.supported == SUPPORTED_1000baseT_Half)
- XGBE_ADV(&pdata->phy, 1000baseT_Half);
+ XGBE_SET_ADV(&pdata->phy, 1000baseT_Half);
else if (pdata->phy.supported == SUPPORTED_1000baseT_Full)
- XGBE_ADV(&pdata->phy, 1000baseT_Full);
+ XGBE_SET_ADV(&pdata->phy, 1000baseT_Full);
common_adv_gb = lpagb & adv << 2;
}
@@ -2753,7 +2753,7 @@
return (lpa);
if (pdata->phy.supported == SUPPORTED_Autoneg)
- XGBE_ADV(&pdata->phy, Autoneg);
+ XGBE_SET_ADV(&pdata->phy, Autoneg);
adv = xgbe_phy_mii_read(pdata, pdata->mdio_addr, MII_ANAR);
if (adv < 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 11, 11:58 AM (15 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34939102
Default Alt Text
D26839.diff (1 KB)
Attached To
Mode
D26839: [axgbe] fix compiler warnings when compiling using gcc-6.4
Attached
Detach File
Event Timeline
Log In to Comment