telephony/libs/dahdi-linux/patches/003-fix-oslec-build.patch
Adam Duskett 06917fd5e8
libs/dahdi-linux: bump to latest git head
Add a new patch: 207-opvxa1200-unused-variable.patch which fixes
unused variable {pos,x,y} errors in the drivers/dahdi/opvxa1200/base.c
file.

Fixes compiling against linux >= 6.6

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
2024-04-16 12:19:04 -06:00

14 lines
509 B
Diff

--- a/drivers/dahdi/Kbuild
+++ b/drivers/dahdi/Kbuild
@@ -72,9 +72,8 @@ obj-m += $(DAHDI_MODULES_EXTRA)
# If you want to build OSLEC, include the code in the standard location:
# drivers/staging/echo . The DAHDI OSLEC echo canceller will be built as
# well:
-ifneq (,$(wildcard $(src)/../staging/echo/echo.c))
+ifneq (,$(wildcard $(src)/../staging/echo/oslec.h))
obj-m += dahdi_echocan_oslec.o
-obj-m += ../staging/echo/echo.o
endif
CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src) -Wno-format-truncation