From: Ioana Radulescu <redacted>
Both ARCH_LAYERSCAPE and COMPILE_TEST dependencies are already implied
through the FSL_MC_BUS dep, so there's no need to state it explicitly.
Also, the fsl-mc bus depends on COMPILE_TEST only for some
architectures (arm, arm64, ppc, x86), so it's not correct to
claim build support unconditionally.
Signed-off-by: Ioana Radulescu <redacted>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
drivers/net/ethernet/freescale/dpaa2/Kconfig | 1 -
1 file changed, 1 deletion(-)
The dpaa2_eth_set_dist_key function is only used in a single file.
Make it static.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -2172,8 +2172,8 @@ int dpaa2_eth_cls_fld_off(int prot, int field)/* Set Rx distribution (hash or flow classification) key*flagsisacombinationofRXH_bits*/-intdpaa2_eth_set_dist_key(structnet_device*net_dev,-enumdpaa2_eth_rx_disttype,u64flags)+staticintdpaa2_eth_set_dist_key(structnet_device*net_dev,+enumdpaa2_eth_rx_disttype,u64flags){structdevice*dev=net_dev->dev.parent;structdpaa2_eth_priv*priv=netdev_priv(net_dev);
All 3 cases of possible uninitialized variables are false
positives since they are used only as output parameters.
Nonetheless, fix the warnings.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
The priv parameter is never used in the build_linear_skb and
drain_channel function. Remove it from the function definitions.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
@@ -98,8 +98,7 @@ static void free_rx_fd(struct dpaa2_eth_priv *priv,}/* Build a linear skb based on a single-buffer frame descriptor */-staticstructsk_buff*build_linear_skb(structdpaa2_eth_priv*priv,-structdpaa2_eth_channel*ch,+staticstructsk_buff*build_linear_skb(structdpaa2_eth_channel*ch,conststructdpaa2_fd*fd,void*fd_vaddr){
@@ -1085,8 +1084,7 @@ static int dpaa2_eth_open(struct net_device *net_dev)/* The DPIO store must be empty when we call this,*attheendofeveryNAPIcycle.*/-staticu32drain_channel(structdpaa2_eth_priv*priv,-structdpaa2_eth_channel*ch)+staticu32drain_channel(structdpaa2_eth_channel*ch){u32drained=0,total=0;
The ch parameter is never used in the dpaa2_eth_tx_conf function but
since its prototype must match the type defined in the consume field of
struct dpaa2_eth_fq, just mark it as __always_unused.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Ioana Radulescu <redacted>
According to the hardware ArchDef, the PTV1 field in FD[CTRL]
is ignored by WRIOP, so setting it for Tx FDs is pointless.
Remove all references to it from the code.
Signed-off-by: Ioana Radulescu <redacted>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
There are no functional changes in this patch set, only some cleanup
changes such as: unused parameters, uninitialized variables and
unnecessary Kconfig dependencies.