| Summary: | net-misc/r8168-8.044.02 failed to build against kernel 4.11 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | LeonBernieniv <LeonBernieni> |
| Component: | Current packages | Assignee: | James Le Cuirot <chewi> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jstein |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 618368 | ||
| Attachments: |
net-misc/r8168-8.044.02: add support for kernel 4.11
Sorry for firs, correct is this one. |
||
|
Description
LeonBernieniv
2017-05-13 07:58:09 UTC
Created attachment 472482 [details, diff]
Sorry for firs, correct is this one.
diff a/src/r8168.h b/src/r8168.h
--- a/src/r8168.h 2017-01-11 14:19:18.000000000 +0800
+++ b/src/r8168.h 2017-05-02 21:18:54.541652414 +0800
@@ -36,6 +36,10 @@
#include "r8168_realwow.h"
#include "r8168_fiber.h"
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
+#include <linux/sched/signal.h>
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
#if defined(skb_vlan_tag_present) && !defined(vlan_tx_tag_present)
#define vlan_tx_tag_present skb_vlan_tag_present
diff a/src/r8168_n.c b/src/r8168_n.c
--- a/src/r8168_n.c 2017-01-11 14:18:43.000000000 +0800
+++ b/src/r8168_n.c 2017-05-02 21:20:57.488644205 +0800
@@ -25732,7 +25732,9 @@
if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
rtl8168_rx_skb(tp, skb);
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(4, 10, 0))
dev->last_rx = jiffies;
+#endif
RTLDEV->stats.rx_bytes += pkt_size;
RTLDEV->stats.rx_packets++;
}
Comment on attachment 472480 [details]
net-misc/r8168-8.044.02: add support for kernel 4.11
diff a/src/r8168.h b/src/r8168.h
--- a/src/r8168.h 2017-01-11 14:19:18.000000000 +0800
+++ b/src/r8168.h 2017-05-02 21:18:54.541652414 +0800
@@ -36,6 +36,10 @@
#include "r8168_realwow.h"
#include "r8168_fiber.h"
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
+#include <linux/sched/signal.h>
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
#if defined(skb_vlan_tag_present) && !defined(vlan_tx_tag_present)
#define vlan_tx_tag_present skb_vlan_tag_present
diff a/src/r8168_n.c b/src/r8168_n.c
--- a/src/r8168_n.c 2017-01-11 14:18:43.000000000 +0800
+++ b/src/r8168_n.c 2017-05-02 21:20:57.488644205 +0800
@@ -25732,7 +25732,9 @@
if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
rtl8168_rx_skb(tp, skb);
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(4, 10, 0))
dev->last_rx = jiffies;
+#endif
RTLDEV->stats.rx_bytes += pkt_size;
RTLDEV->stats.rx_packets++;
}
That's great, thanks! |