From 02c991a14137fce2ea2804015402c3f0b2669e16 Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Sun, 11 May 2025 16:21:36 +0200 Subject: [PATCH] ramips: pci-rt2880: 6.12: change pcibios_init declaration Fixes error: arch/mips/pci/pci-rt2880.c:267:12: error: no previous prototype for 'pcibios_init' [-Werror=missing-prototypes] 267 | int __init pcibios_init(void) | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make[8]: *** [scripts/Makefile.build:229: arch/mips/pci/pci-rt2880.o] Error 1 make[7]: *** [scripts/Makefile.build:478: arch/mips/pci] Error 2 Signed-off-by: Mieczyslaw Nalewaj Link: https://github.com/openwrt/openwrt/pull/18654 Signed-off-by: Hauke Mehrtens --- .../900-pci-rt2880-static-pcibios_init.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 target/linux/ramips/patches-6.12/900-pci-rt2880-static-pcibios_init.patch diff --git a/target/linux/ramips/patches-6.12/900-pci-rt2880-static-pcibios_init.patch b/target/linux/ramips/patches-6.12/900-pci-rt2880-static-pcibios_init.patch new file mode 100644 index 00000000000..0e3c40b450b --- /dev/null +++ b/target/linux/ramips/patches-6.12/900-pci-rt2880-static-pcibios_init.patch @@ -0,0 +1,29 @@ +From 6688b218552c6fd3178b40d7d106bf732caec3aa Mon Sep 17 00:00:00 2001 +From: Mieczyslaw Nalewaj +Date: Sat, 28 Dec 2024 18:09:17 +0100 +Subject: [PATCH] pci-rt2880: static pcibios_init + +Fixes error: +arch/mips/pci/pci-rt2880.c:267:12: error: no previous prototype for 'pcibios_init' [-Werror=missing-prototypes] + 267 | int __init pcibios_init(void) + | ^~~~~~~~~~~~ +cc1: all warnings being treated as errors +make[8]: *** [scripts/Makefile.build:229: arch/mips/pci/pci-rt2880.o] Error 1 +make[7]: *** [scripts/Makefile.build:478: arch/mips/pci] Error 2 + +Signed-off-by: Mieczyslaw Nalewaj +--- + arch/mips/pci/pci-rt2880.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +--- a/arch/mips/pci/pci-rt2880.c ++++ b/arch/mips/pci/pci-rt2880.c +@@ -264,7 +264,7 @@ static struct platform_driver rt288x_pci + }, + }; + +-int __init pcibios_init(void) ++static int __init pcibios_init(void) + { + int ret = platform_driver_register(&rt288x_pci_driver); +