mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: Fix compilation warnings
1.There is a switch-case where one case is falling to the next case. This is creating the compilation warning. Make this fall through as intentional by adding compiler attribute as "fallthrough". 2.Remove redefinition of macro MII_ADDR_C45 Bug 4055275 Change-Id: I99193b225e97c414588bb306cb48e472ae079f9f Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2882027 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e257be9884
commit
80336d6c96
@@ -307,7 +307,6 @@ static inline int ether_avail_txdesc_cnt(struct osi_dma_priv_data *osi_dma,
|
||||
#define ETHER_VM_IRQ_RX_CHAN_MASK(x) BIT(((x) * 2U) + 1U)
|
||||
|
||||
/* MDIO clause 45 bit */
|
||||
#define MII_ADDR_C45 OSI_BIT(30)
|
||||
#define MII_DEVADDR_C45_SHIFT 16
|
||||
|
||||
/**
|
||||
|
||||
@@ -402,6 +402,7 @@ void ether_selftest_run(struct net_device *dev,
|
||||
if (!ret)
|
||||
break;
|
||||
/* Fallthrough */
|
||||
fallthrough;
|
||||
case ETHER_LOOPBACK_MAC:
|
||||
if (pdata->osi_core) {
|
||||
ioctl_data.cmd = OSI_CMD_MAC_LB;
|
||||
@@ -434,6 +435,7 @@ void ether_selftest_run(struct net_device *dev,
|
||||
if (!ret)
|
||||
break;
|
||||
/* Fallthrough */
|
||||
fallthrough;
|
||||
case ETHER_LOOPBACK_MAC:
|
||||
if (pdata->osi_core) {
|
||||
ioctl_data.cmd = OSI_CMD_MAC_LB;
|
||||
|
||||
Reference in New Issue
Block a user