Skip to content

Commit 82f3527

Browse files
committed
Merge tag 'wireless-drivers-2020-04-14' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers
Kalle Valo says: ==================== wireless-drivers fixes for v5.7 First set of fixes for v5.6. Fixes for a crash and for two compiler warnings. brcmfmac * fix a crash related to monitor interface ath11k * fix compiler warnings without CONFIG_THERMAL rtw88 * fix compiler warnings related to suspend and resume functions ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 664d035 + 7dc7c41 commit 82f3527

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

drivers/net/wireless/ath/ath11k/thermal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ static inline int ath11k_thermal_register(struct ath11k_base *sc)
3636
return 0;
3737
}
3838

39-
static inline void ath11k_thermal_unregister(struct ath11k *ar)
39+
static inline void ath11k_thermal_unregister(struct ath11k_base *sc)
4040
{
4141
}
4242

4343
static inline int ath11k_thermal_set_throttling(struct ath11k *ar, u32 throttle_state)
4444
{
45+
return 0;
4546
}
4647

4748
static inline void ath11k_thermal_event_temperature(struct ath11k *ar,

drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,18 @@ static int brcmf_net_mon_stop(struct net_device *ndev)
729729
return err;
730730
}
731731

732+
static netdev_tx_t brcmf_net_mon_start_xmit(struct sk_buff *skb,
733+
struct net_device *ndev)
734+
{
735+
dev_kfree_skb_any(skb);
736+
737+
return NETDEV_TX_OK;
738+
}
739+
732740
static const struct net_device_ops brcmf_netdev_ops_mon = {
733741
.ndo_open = brcmf_net_mon_open,
734742
.ndo_stop = brcmf_net_mon_stop,
743+
.ndo_start_xmit = brcmf_net_mon_start_xmit,
735744
};
736745

737746
int brcmf_net_mon_attach(struct brcmf_if *ifp)

drivers/net/wireless/realtek/rtw88/pci.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,22 +1338,17 @@ static void rtw_pci_phy_cfg(struct rtw_dev *rtwdev)
13381338
rtw_pci_link_cfg(rtwdev);
13391339
}
13401340

1341-
#ifdef CONFIG_PM
1342-
static int rtw_pci_suspend(struct device *dev)
1341+
static int __maybe_unused rtw_pci_suspend(struct device *dev)
13431342
{
13441343
return 0;
13451344
}
13461345

1347-
static int rtw_pci_resume(struct device *dev)
1346+
static int __maybe_unused rtw_pci_resume(struct device *dev)
13481347
{
13491348
return 0;
13501349
}
13511350

13521351
static SIMPLE_DEV_PM_OPS(rtw_pm_ops, rtw_pci_suspend, rtw_pci_resume);
1353-
#define RTW_PM_OPS (&rtw_pm_ops)
1354-
#else
1355-
#define RTW_PM_OPS NULL
1356-
#endif
13571352

13581353
static int rtw_pci_claim(struct rtw_dev *rtwdev, struct pci_dev *pdev)
13591354
{
@@ -1582,7 +1577,7 @@ static struct pci_driver rtw_pci_driver = {
15821577
.id_table = rtw_pci_id_table,
15831578
.probe = rtw_pci_probe,
15841579
.remove = rtw_pci_remove,
1585-
.driver.pm = RTW_PM_OPS,
1580+
.driver.pm = &rtw_pm_ops,
15861581
};
15871582
module_pci_driver(rtw_pci_driver);
15881583

0 commit comments

Comments
 (0)