[openwrt/openwrt] ltq-adsl: silence missing-prototypes warnings
LEDE Commits
lede-commits at lists.infradead.org
Tue May 13 13:02:55 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/fb4aa6248f4264b75997ecae5b6d7feb3f8c0fab
commit fb4aa6248f4264b75997ecae5b6d7feb3f8c0fab
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Sat May 10 17:19:19 2025 +0800
ltq-adsl: silence missing-prototypes warnings
There are a lot of missing-prototypes warnings, It's not worth to
fix them one by one. Let us just ignore them.
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../412-silence-missing-prototypes-warnings.patch | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/package/kernel/lantiq/ltq-adsl/patches/412-silence-missing-prototypes-warnings.patch b/package/kernel/lantiq/ltq-adsl/patches/412-silence-missing-prototypes-warnings.patch
new file mode 100644
index 0000000000..8792140055
--- /dev/null
+++ b/package/kernel/lantiq/ltq-adsl/patches/412-silence-missing-prototypes-warnings.patch
@@ -0,0 +1,32 @@
+From: Shiji Yang <yangshiji66 at outlook.com>
+Date: Fri, 9 May 2025 20:58:09 +0800
+Subject: [PATCH] silence missing-prototypes warnings
+
+This patch silences various missing-prototypes build warnings on
+6.12 kernel.
+
+Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
+---
+ src/Makefile.am | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -299,6 +299,8 @@ if KERNEL_2_6
+
+ drv_dsl_cpe_api_OBJS = "$(subst .c,.o,$(filter %.c,$(drv_dsl_cpe_api_SOURCES)))"
+
++PKGFIX_CFLAGS = -Wno-error=missing-prototypes
++
+ drv_dsl_cpe_api.ko: $(drv_dsl_cpe_api_SOURCES)
+ @echo "drv_dsl_cpe_api: Making Linux 2.6.x kernel object"
+ if test ! -e common/drv_dsl_cpe_api.c ; then \
+@@ -311,7 +313,7 @@ drv_dsl_cpe_api.ko: $(drv_dsl_cpe_api_SO
+ @echo "# drv_dsl_cpe_api: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild
+ @echo "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild
+ @echo "$(subst .ko,,$@)-y := $(drv_dsl_cpe_api_OBJS)" >> $(PWD)/Kbuild
+- @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_dsl_cpe_api_CFLAGS) $(DSL_DRIVER_INCL_PATH) $(IFXOS_INCLUDE_PATH) -I at abs_srcdir@/include -I$(PWD)/include" >> $(PWD)/Kbuild
++ @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_dsl_cpe_api_CFLAGS) $(PKGFIX_CFLAGS) $(DSL_DRIVER_INCL_PATH) $(IFXOS_INCLUDE_PATH) -I at abs_srcdir@/include -I$(PWD)/include" >> $(PWD)/Kbuild
+ $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules
+
+ clean-generic:
More information about the lede-commits
mailing list