]> git.pld-linux.org Git - packages/igb.git/commitdiff
- fix building on linux 4.1.9 auto/th/igb-5.3.3.2-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 1 Oct 2015 06:17:43 +0000 (08:17 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 1 Oct 2015 06:17:43 +0000 (08:17 +0200)
- rel 2

igb.spec
linux-4.1.9.patch [new file with mode: 0644]

index a035f157e1f8dc04ec0b7afdd1ca41301c3df551..cf79a8a722e47641da9447e177c9df03e98a86c5 100644 (file)
--- a/igb.spec
+++ b/igb.spec
@@ -6,7 +6,7 @@
 
 %define                _duplicate_files_terminate_build        0
 
-%define                rel     1
+%define                rel     2
 %define                pname   igb
 Summary:       Intel(R) PRO/1000 driver for Linux
 Summary(pl.UTF-8):     Sterownik do karty Intel(R) PRO/1000
@@ -17,6 +17,7 @@ License:      GPL v2
 Group:         Base/Kernel
 Source0:       http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
 # Source0-md5: 2d753a0bd03c949ec08d68c27540044d
+Patch0:                linux-4.1.9.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
diff --git a/linux-4.1.9.patch b/linux-4.1.9.patch
new file mode 100644 (file)
index 0000000..474286e
--- /dev/null
@@ -0,0 +1,23 @@
+--- igb-5.3.3.2/src/kcompat.h~ 2015-09-11 23:47:20.000000000 +0200
++++ igb-5.3.3.2/src/kcompat.h  2015-10-01 08:16:35.598629802 +0200
+@@ -4576,7 +4576,7 @@
+ #define HAVE_NDO_BRIDGE_GETLINK_NLFLAGS
+ #endif /* 4,1,0 */
+-#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) )
++#if ( (LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)) && !(LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,9)) )
+ #if (!(SLE_VERSION_CODE && SLE_VERSION_CODE >= SLE_VERSION(12,1,0)))
+ static inline bool page_is_pfmemalloc(struct page *page)
+ {
+@@ -4589,8 +4589,10 @@
+ #endif /* !SLES12sp1 */
+ #else
+-#define HAVE_NDO_DFLT_BRIDGE_GETLINK_VLAN_SUPPORT
+ #undef HAVE_STRUCT_PAGE_PFMEMALLOC
+ #endif /* 4.2.0 */
++#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) )
++#define HAVE_NDO_DFLT_BRIDGE_GETLINK_VLAN_SUPPORT
++#endif /* 4.2.0 */
+ #endif /* _KCOMPAT_H_ */
This page took 0.061967 seconds and 4 git commands to generate.