diff options
| author | Shiji Yang | 2025-05-10 09:19:18 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-10-18 12:21:01 +0000 |
| commit | 67d7504660d1cce83b42341d16110ab43cefd212 (patch) | |
| tree | c241fe9e930bd956f39c88cc288bca133c934b6c | |
| parent | 3f9c57b813bab498f7b7c6d919ff663c351fa242 (diff) | |
| download | openwrt-67d7504660d1cce83b42341d16110ab43cefd212.tar.gz | |
ltq-ptm: vdsl: fix 6.12 kernel build errors on lantiq/xrx200
Add missing header to fix the build errors on 6.12 kernel.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit b48ed6d19c3a72b203faf3b62432026f2ce48d0a)
Signed-off-by: Nora Matthias Schiffer <neocturne@universe-factory.net>
Link: https://github.com/openwrt/openwrt/pull/20440
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | package/kernel/lantiq/ltq-ptm/patches/103-add-missing-header-mod_devicetable.h.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/patches/103-add-missing-header-mod_devicetable.h.patch b/package/kernel/lantiq/ltq-ptm/patches/103-add-missing-header-mod_devicetable.h.patch new file mode 100644 index 0000000000..530f62dda4 --- /dev/null +++ b/package/kernel/lantiq/ltq-ptm/patches/103-add-missing-header-mod_devicetable.h.patch @@ -0,0 +1,26 @@ +From: Shiji Yang <yangshiji66@outlook.com> +Date: Fri, 9 May 2025 02:36:31 +0800 +Subject: [PATCH] add missing header mod_devicetable.h + +Fix compilation error: + +/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ltq-ptm-vr9/ltq-ptm/ifxmips_ptm_vdsl.c:969:34: error: array type has incomplete element type 'struct of_device_id' + 969 | static const struct of_device_id ltq_ptm_match[] = { + | ^~~~~~~~~~~~~ +/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ltq-ptm-vr9/ltq-ptm/ifxmips_ptm_vdsl.c:969:34: error: 'ltq_ptm_match' defined but not used [-Werror=unused-variable] + +Signed-off-by: Shiji Yang <yangshiji66@outlook.com> +--- + ifxmips_ptm_vdsl.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/ifxmips_ptm_vdsl.c ++++ b/ifxmips_ptm_vdsl.c +@@ -34,6 +34,7 @@ + #include <linux/interrupt.h> + #include <linux/netdevice.h> + #include <linux/platform_device.h> ++#include <linux/mod_devicetable.h> + #include <linux/of_device.h> + + #include "ifxmips_ptm_vdsl.h" |