lkml.org 
[lkml]   [2020]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 32/36] tty: hvc: hvc_vio: Staticify function invoked only by reference
    Date
    Fixes the following W=1 kernel build warning(s):

    drivers/tty/hvc/hvc_vio.c:181:6: warning: no previous prototype for ‘hvterm_hvsi_hangup’ [-Wmissing-prototypes]
    181 | void hvterm_hvsi_hangup(struct hvc_struct *hp, int data)
    | ^~~~~~~~~~~~~~~~~~

    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Jiri Slaby <jirislaby@kernel.org>
    Cc: linuxppc-dev@lists.ozlabs.org
    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    ---
    drivers/tty/hvc/hvc_vio.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
    index 7af54d6ed5b84..798f27f40cc2d 100644
    --- a/drivers/tty/hvc/hvc_vio.c
    +++ b/drivers/tty/hvc/hvc_vio.c
    @@ -178,7 +178,7 @@ static void hvterm_hvsi_close(struct hvc_struct *hp, int data)
    notifier_del_irq(hp, data);
    }

    -void hvterm_hvsi_hangup(struct hvc_struct *hp, int data)
    +static void hvterm_hvsi_hangup(struct hvc_struct *hp, int data)
    {
    struct hvterm_priv *pv = hvterm_privs[hp->vtermno];

    --
    2.25.1
    \
     
     \ /
      Last update: 2020-11-04 20:37    [W:3.529 / U:0.344 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site