From: Shiji Yang Date: Sat, 10 May 2025 09:19:19 +0000 (+0800) Subject: ltq-adsl: add missing header platform_device.h X-Git-Tag: v24.10.4~23 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=c9f2a60797c863a36ed3d751b18efbac0fce2f50;p=openwrt%2Fopenwrt.git ltq-adsl: add missing header platform_device.h Fix incomplete type error by including the correct header. Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/18744 Signed-off-by: Robert Marko (cherry picked from commit 29987d44bb3fb7d3cbe0fd2a4ce1519ceccd6c58) Signed-off-by: Nora Matthias Schiffer Link: https://github.com/openwrt/openwrt/pull/20440 Signed-off-by: Hauke Mehrtens --- diff --git a/package/kernel/lantiq/ltq-adsl/patches/411-add-missing-header-platform_device.h.patch b/package/kernel/lantiq/ltq-adsl/patches/411-add-missing-header-platform_device.h.patch new file mode 100644 index 0000000000..b5cd9541f0 --- /dev/null +++ b/package/kernel/lantiq/ltq-adsl/patches/411-add-missing-header-platform_device.h.patch @@ -0,0 +1,25 @@ +From: Shiji Yang +Date: Fri, 9 May 2025 20:01:14 +0800 +Subject: [PATCH] add missing header platform_device.h + +Fix compilation error: + +/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-dsl-danube/drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_os_linux.c:1155:15: error: variable 'ltq_adsl_driver' has initializer but incomplete type + 1155 | static struct platform_driver ltq_adsl_driver = { + | ^~~~~~~~~~~~~~~ + +Signed-off-by: Shiji Yang +--- + src/common/drv_dsl_cpe_os_linux.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/src/common/drv_dsl_cpe_os_linux.c ++++ b/src/common/drv_dsl_cpe_os_linux.c +@@ -13,6 +13,7 @@ + #define DSL_INTERN + #include + #include ++#include + + #include "drv_dsl_cpe_api.h" + #include "drv_dsl_cpe_api_ioctl.h"