2021-03-02 19:59:01

by Jiri Slaby

[permalink] [raw]
Subject: [PATCH 33/44] tty: xtensa/iss, make rs_init static

To fix the warning:
warning: no previous prototype for 'rs_init'

Signed-off-by: Jiri Slaby <[email protected]>
Cc: Chris Zankel <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: [email protected]
---
arch/xtensa/platforms/iss/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c
index 8ea261b8c022..1e215cf5ad03 100644
--- a/arch/xtensa/platforms/iss/console.c
+++ b/arch/xtensa/platforms/iss/console.c
@@ -141,7 +141,7 @@ static const struct tty_operations serial_ops = {
.proc_show = rs_proc_show,
};

-int __init rs_init(void)
+static int __init rs_init(void)
{
tty_port_init(&serial_port);

--
2.30.1


2021-03-04 05:57:58

by Max Filippov

[permalink] [raw]
Subject: Re: [PATCH 33/44] tty: xtensa/iss, make rs_init static

On Mon, Mar 1, 2021 at 10:22 PM Jiri Slaby <[email protected]> wrote:
>
> To fix the warning:
> warning: no previous prototype for 'rs_init'
>
> Signed-off-by: Jiri Slaby <[email protected]>
> Cc: Chris Zankel <[email protected]>
> Cc: Max Filippov <[email protected]>
> Cc: [email protected]
> ---
> arch/xtensa/platforms/iss/console.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Max Filippov <[email protected]>

--
Thanks.
-- Max