diff mbox series

[02/16] MIPS: lantiq: xway: mark dma_init() as static

Message ID OSBPR01MB1670BA742E713D60C54C1EE6BC72A@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 build warning:

arch/mips/lantiq/xway/dma.c:293:1: error: no previous prototype for 'dma_init' [-Werror=missing-prototypes]
  293 | dma_init(void)
      | ^~~~~~~~

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

Patch

diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
index 934ac7293..4693eba6c 100644
--- a/arch/mips/lantiq/xway/dma.c
+++ b/arch/mips/lantiq/xway/dma.c
@@ -289,7 +289,7 @@  static struct platform_driver dma_driver = {
 	},
 };
 
-int __init
+static int __init
 dma_init(void)
 {
 	return platform_driver_register(&dma_driver);