[openwrt/openwrt] kernel: ltq-adsl: fix enum missmatch on linux 6.6
LEDE Commits
lede-commits at lists.infradead.org
Sat Jul 6 08:55:00 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4624711139dff1d9afdfad1bbc244517c51830c5
commit 4624711139dff1d9afdfad1bbc244517c51830c5
Author: Martin Schiller <ms at dev.tdt.de>
AuthorDate: Tue Jul 2 09:34:37 2024 +0200
kernel: ltq-adsl: fix enum missmatch on linux 6.6
Convert DSL_XTUDir_t to DSL_AccessDir_t to get rid of enum-conversion
warning.
Signed-off-by: Martin Schiller <ms at dev.tdt.de>
Link: https://github.com/openwrt/openwrt/pull/15811
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../lantiq/ltq-adsl/patches/410-kernel-6.6.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/package/kernel/lantiq/ltq-adsl/patches/410-kernel-6.6.patch b/package/kernel/lantiq/ltq-adsl/patches/410-kernel-6.6.patch
new file mode 100644
index 0000000000..2655f2b31f
--- /dev/null
+++ b/package/kernel/lantiq/ltq-adsl/patches/410-kernel-6.6.patch
@@ -0,0 +1,20 @@
+--- a/src/pm/drv_dsl_cpe_api_pm_danube.c
++++ b/src/pm/drv_dsl_cpe_api_pm_danube.c
+@@ -182,7 +182,7 @@ DSL_Error_t DSL_DRV_PM_DEV_ChannelCounte
+ }
+ else
+ {
+- if (DSL_DRV_DANUBE_ActLatencyGet(pContext, nChannel, nDirection, &nLPath) >= DSL_SUCCESS)
++ if (DSL_DRV_DANUBE_ActLatencyGet(pContext, nChannel, (DSL_AccessDir_t)nDirection, &nLPath) >= DSL_SUCCESS)
+ {
+ if (nLPath == DSL_LATENCY_IP_LP0) nIdx = 0;
+ else nIdx = 1;
+@@ -345,7 +345,7 @@ DSL_Error_t DSL_DRV_PM_DEV_ChannelCounte
+
+ if ((!bAdsl1) && (DSL_CHANNELS_PER_LINE > 1))
+ {
+- if (DSL_DRV_DANUBE_ActLatencyGet(pContext, nChannel, nDirection, &nLPath) >= DSL_SUCCESS)
++ if (DSL_DRV_DANUBE_ActLatencyGet(pContext, nChannel, (DSL_AccessDir_t)nDirection, &nLPath) >= DSL_SUCCESS)
+ {
+ if (nLPath == DSL_LATENCY_IP_LP0) nIdx = 0;
+ else nIdx = 1;
More information about the lede-commits
mailing list