Commit 2ff4d9f
committed
fixup! net: macb: gate TX stall watchdog on netif_carrier_ok, use warn_ratelimited
netdev_warn_ratelimited() does not exist in this kernel; build
fails with implicit-function-declaration. Replace with the
standard `if (printk_ratelimit()) netdev_warn(...)` form, which
has the same semantics (bounded log noise, retains netdev prefix
in the message) and works in every kernel version.
Reported-by: John Laur <johnlaur@github>
Signed-off-by: Lukasz Raczylo <lukasz@raczylo.com>1 parent 5a97d38 commit 2ff4d9f
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2094 | 2094 | | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
2101 | 2102 | | |
2102 | 2103 | | |
2103 | 2104 | | |
| |||
0 commit comments