Skip to content

Commit f944327

Browse files
jxmxInterLinked1
authored andcommitted
fix dadhi builds on Linux 6.1+
1 parent 9cbcd9b commit f944327

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

patches/dahdi_kern_61.diff

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/include/dahdi/kernel.h.orig 2023-04-28 19:00:29.585881156 -0400
2+
+++ b/include/dahdi/kernel.h 2023-04-28 19:00:58.733511284 -0400
3+
@@ -60,6 +60,10 @@
4+
5+
#include <linux/pci.h>
6+
7+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
8+
+#define netif_napi_add netif_napi_add_weight
9+
+#endif
10+
+
11+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
12+
#define PDE_DATA(i) pde_data(i)
13+
#endif

phreaknet.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,9 @@ install_dahdi() {
11731173
custom_fuzzy_patch "b6d9b417e1992868549d443efad11e4f1513c9d7.diff" "https://gitea.osmocom.org/retronetworking/dahdi-linux/commit/b6d9b417e1992868549d443efad11e4f1513c9d7.diff"
11741174
custom_fuzzy_patch "09adb59cfe2aff9fc1c18cafb44ae0faf811adca.diff" "https://gitea.osmocom.org/retronetworking/dahdi-linux/commit/09adb59cfe2aff9fc1c18cafb44ae0faf811adca.diff"
11751175

1176+
# Compiler fixes for 6.1+
1177+
phreak_fuzzy_patch "dahdi_kern_61.diff"
1178+
11761179
# New Features
11771180
if [ "$EXTRA_FEATURES" = "1" ]; then
11781181
# Real time dial pulsing (DAHDI to Asterisk)

0 commit comments

Comments
 (0)