aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2020-03-12 11:20:06 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2020-03-19 19:40:43 +0100
commit38c4db89a1fa3f1642e1f01a4caed55b9bbd6202 (patch)
treefb2b580fc7f788a2b63e8f45670531f3b3833443
parentb0656050457ef9ee8bebb40c3f826e77cd209a06 (diff)
downloadbackports-38c4db89a1fa3f1642e1f01a4caed55b9bbd6202.tar.gz
backports: netdevice.h: Add return value to napi_complete()
mt76 checks the return value of napi_complete() now, add the same handling as already done for napi_complete_done(). Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/netdevice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index 76b57e4d..a71ed590 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -302,7 +302,13 @@ static inline bool backport_napi_complete_done(struct napi_struct *n, int work_d
#endif /* < 3.19 */
return true;
}
+
+static inline bool backport_napi_complete(struct napi_struct *n)
+{
+ return backport_napi_complete_done(n, 0);
+}
#define napi_complete_done LINUX_BACKPORT(napi_complete_done)
+#define napi_complete LINUX_BACKPORT(napi_complete)
#endif /* < 4.10 */
#if LINUX_VERSION_IS_LESS(4,5,0)