mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-25 03:59:29 +00:00
Merge branch 'ravb-small-sparse-fixes'
Niklas Söderlund says: ==================== ravb: small sparse fixes This are fixes that have bugged me whenever I run sparse to check my own changes to the driver. It's based on the latest net-next tree and tested on M3-N. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
abd709c7ee
@ -1226,7 +1226,7 @@ static int ravb_get_sset_count(struct net_device *netdev, int sset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void ravb_get_ethtool_stats(struct net_device *ndev,
|
static void ravb_get_ethtool_stats(struct net_device *ndev,
|
||||||
struct ethtool_stats *stats, u64 *data)
|
struct ethtool_stats *estats, u64 *data)
|
||||||
{
|
{
|
||||||
struct ravb_private *priv = netdev_priv(ndev);
|
struct ravb_private *priv = netdev_priv(ndev);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -1258,7 +1258,7 @@ static void ravb_get_strings(struct net_device *ndev, u32 stringset, u8 *data)
|
|||||||
{
|
{
|
||||||
switch (stringset) {
|
switch (stringset) {
|
||||||
case ETH_SS_STATS:
|
case ETH_SS_STATS:
|
||||||
memcpy(data, *ravb_gstrings_stats, sizeof(ravb_gstrings_stats));
|
memcpy(data, ravb_gstrings_stats, sizeof(ravb_gstrings_stats));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1623,7 +1623,7 @@ static netdev_tx_t ravb_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
|||||||
/* TAG and timestamp required flag */
|
/* TAG and timestamp required flag */
|
||||||
skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
|
skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
|
||||||
desc->tagh_tsr = (ts_skb->tag >> 4) | TX_TSR;
|
desc->tagh_tsr = (ts_skb->tag >> 4) | TX_TSR;
|
||||||
desc->ds_tagl |= le16_to_cpu(ts_skb->tag << 12);
|
desc->ds_tagl |= cpu_to_le16(ts_skb->tag << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
skb_tx_timestamp(skb);
|
skb_tx_timestamp(skb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user