diff options
| author | Shiji Yang | 2025-05-10 09:19:18 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-10-18 12:21:01 +0000 |
| commit | b35acddeb4cfc95b6f5da59593dc0117208fae82 (patch) | |
| tree | 58cf5bd7c4582b6c8c4eac756a6701d968d66086 | |
| parent | 5e095c87e254c93102f5906fa149672a0961ce2b (diff) | |
| download | openwrt-b35acddeb4cfc95b6f5da59593dc0117208fae82.tar.gz | |
ltq-vmmc: silence missing-prototypes warnings
There are a lot of missing-prototypes warnings, It's not worth to
fix them one by one.
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 144228d61898df387b186a7768df0e4bade868f9)
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-vmmc/patches/021-ignore-missing-prototypes-warning.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-vmmc/patches/021-ignore-missing-prototypes-warning.patch b/package/kernel/lantiq/ltq-vmmc/patches/021-ignore-missing-prototypes-warning.patch new file mode 100644 index 0000000000..c36edc4b4b --- /dev/null +++ b/package/kernel/lantiq/ltq-vmmc/patches/021-ignore-missing-prototypes-warning.patch @@ -0,0 +1,29 @@ +From: Shiji Yang <yangshiji66@outlook.com> +Date: Fri, 9 May 2025 08:22:25 +0800 +Subject: [PATCH] ignore missing-prototypes warning + +Signed-off-by: Shiji Yang <yangshiji66@outlook.com> +--- + src/Makefile.am | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -226,6 +226,8 @@ install-exec-hook: $(bin_PROGRAMS) + if KERNEL_2_6 + drv_vmmc_OBJS = "$(subst .c,.o, $(drv_vmmc_SOURCES) $(nodist_drv_vmmc_SOURCES))" + ++PKGFIX_CFLAGS = -Wno-error=missing-prototypes ++ + drv_vmmc.ko: $(drv_vmmc_SOURCES) $(EXTRA_DIST) + @echo "Making Linux 2.6.x kernel object" + @for f in $(drv_vmmc_SOURCES) $(nodist_drv_vmmc_SOURCES) ; do \ +@@ -238,7 +240,7 @@ drv_vmmc.ko: $(drv_vmmc_SOURCES) $(EXTRA + @echo "# drv_vmmc: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild + @echo "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild + @echo "$(subst .ko,,$@)-y := $(drv_vmmc_OBJS)" >> $(PWD)/Kbuild +- @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_vmmc_CFLAGS) $(INCLUDES)" >> $(PWD)/Kbuild ++ @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_vmmc_CFLAGS) $(PKGFIX_CFLAGS) $(INCLUDES)" >> $(PWD)/Kbuild + $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules + + clean-generic: |