Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: hvc: hvc_opal: Staticify function invoked by reference

Fixes the following W=1 kernel build warning(s):

drivers/tty/hvc/hvc_opal.c:106:6: warning: no previous prototype for ‘hvc_opal_hvsi_hangup’ [-Wmissing-prototypes]

Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
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>
Link: https://lore.kernel.org/r/20201104193549.4026187-34-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
27122bf5 109af2a8

+1 -1
+1 -1
drivers/tty/hvc/hvc_opal.c
··· 103 103 notifier_del_irq(hp, data); 104 104 } 105 105 106 - void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) 106 + static void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) 107 107 { 108 108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; 109 109