]> git.pld-linux.org Git - packages/dahdi-linux.git/commitdiff
- build fix for kernel 5.17, rel 8 auto/th/dahdi-linux-3.1.0-8
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 2 Apr 2022 21:09:57 +0000 (23:09 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 2 Apr 2022 21:09:57 +0000 (23:09 +0200)
dahdi-linux.spec
kernel-5.17.patch [new file with mode: 0644]

index 911b53ec6e9d9dd8d0da03758e70da032df6da69..47b926148e6b90b85499ad7f49ed849d454172eb 100644 (file)
@@ -33,7 +33,7 @@ exit 1
 # nothing to be placed to debuginfo package
 %define                _enable_debug_packages  0
 
-%define                rel     7
+%define                rel     8
 %define                pname   dahdi-linux
 %define                FIRMWARE_URL http://downloads.digium.com/pub/telephony/firmware/releases
 Summary:       DAHDI telephony device support
@@ -62,6 +62,7 @@ Patch3:               kernel-5.6.patch
 Patch4:                kernel-5.9.patch
 Patch5:                kernel-4.9.256.patch
 Patch6:                nostdinc.patch
+Patch7:                kernel-5.17.patch
 URL:           http://www.asterisk.org/
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
 BuildRequires: perl-base
@@ -168,6 +169,7 @@ cd ../..\
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 for a in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7}; do
        ln -s $a drivers/dahdi/firmware
diff --git a/kernel-5.17.patch b/kernel-5.17.patch
new file mode 100644 (file)
index 0000000..aa359ee
--- /dev/null
@@ -0,0 +1,13 @@
+--- dahdi-linux-3.1.0/include/dahdi/kernel.h~  2022-04-02 22:49:13.000000000 +0200
++++ dahdi-linux-3.1.0/include/dahdi/kernel.h   2022-04-02 23:08:10.095243044 +0200
+@@ -1504,6 +1504,10 @@
+ #endif /* 4.15.0 */
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
++#define PDE_DATA pde_data
++#endif
++
+ #ifndef dahdi_ktime_equal
+ static inline int dahdi_ktime_equal(const ktime_t cmp1, const ktime_t cmp2)
+ {
This page took 0.090281 seconds and 4 git commands to generate.