diff mbox series

[11/16] MIPS: lantiq: xway: gptu: mark gptu_init() as static

Message ID OSBPR01MB1670B413FDF211B2211FA9C4BC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com
State New
Headers show
Series MIPS: some compilation fixes for the Lantiq platform | expand

Commit Message

Shiji Yang June 18, 2025, 2:53 p.m. UTC
Fix the following missing-prototypes warning:

arch/mips/lantiq/xway/gptu.c:197:12: error: no previous prototype for 'gptu_init' [-Werror=missing-prototypes]
  197 | int __init gptu_init(void)
      |            ^~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
---
 arch/mips/lantiq/xway/gptu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/mips/lantiq/xway/gptu.c b/arch/mips/lantiq/xway/gptu.c
index 8d5200130..484c9e300 100644
--- a/arch/mips/lantiq/xway/gptu.c
+++ b/arch/mips/lantiq/xway/gptu.c
@@ -194,7 +194,7 @@  static struct platform_driver dma_driver = {
 	},
 };
 
-int __init gptu_init(void)
+static int __init gptu_init(void)
 {
 	int ret = platform_driver_register(&dma_driver);