]> git.pld-linux.org Git - packages/igb.git/commitdiff
- fix missing CLOCKSOURCE_MASK definition
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 25 Apr 2016 07:06:34 +0000 (09:06 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 25 Apr 2016 07:06:34 +0000 (09:06 +0200)
clocksource.patch [new file with mode: 0644]
igb.spec

diff --git a/clocksource.patch b/clocksource.patch
new file mode 100644 (file)
index 0000000..6434ac6
--- /dev/null
@@ -0,0 +1,26 @@
+--- igb-5.3.4.4/src/igb.h~     2016-02-26 01:48:39.000000000 +0100
++++ igb-5.3.4.4/src/igb.h      2016-04-25 09:05:40.372457551 +0200
+@@ -72,9 +72,8 @@
+ #ifdef HAVE_PTP_1588_CLOCK
+ #ifdef HAVE_INCLUDE_LINUX_TIMECOUNTER_H
+ #include <linux/timecounter.h>
+-#else
+-#include <linux/clocksource.h>
+ #endif /* HAVE_INCLUDE_TIMECOUNTER_H */
++#include <linux/clocksource.h>
+ #include <linux/net_tstamp.h>
+ #include <linux/ptp_clock_kernel.h>
+ #endif /* HAVE_PTP_1588_CLOCK */
+--- igb-5.3.4.4/src/kcompat.h~ 2016-02-26 01:48:39.000000000 +0100
++++ igb-5.3.4.4/src/kcompat.h  2016-04-25 09:05:53.839075764 +0200
+@@ -4720,9 +4720,8 @@
+ #ifndef NO_PTP_SUPPORT
+ #ifdef HAVE_INCLUDE_LINUX_TIMECOUNTER_H
+ #include <linux/timecounter.h>
+-#else
+-#include <linux/clocksource.h>
+ #endif
++#include <linux/clocksource.h>
+ static inline void __kc_timecounter_adjtime(struct timecounter *tc, s64 delta)
+ {
+       tc->nsec += delta;
index 53b211d05b5eaf58ddb02527ed1936586bbe0a76..d44dfc53ef9d34c50930c1f845efd0c3cf47ecdd 100644 (file)
--- a/igb.spec
+++ b/igb.spec
@@ -17,6 +17,7 @@ License:      GPL v2
 Group:         Base/Kernel
 Source0:       http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
 # Source0-md5: 6c0d7dfdb161128da7c039fc83bbdba0
+Patch0:                clocksource.patch
 URL:           http://sourceforge.net/projects/e1000/
 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
 BuildRequires: rpm-build-macros >= 1.701
@@ -80,6 +81,7 @@ EOF\
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch0 -p1
 
 cat > src/Makefile <<'EOF'
 obj-m := igb.o
This page took 0.091727 seconds and 4 git commands to generate.