powerpc/embedded6xx: Make functions flipper_pic_init() & ug_udbg_putc() static
authorMathieu Malaterre <malat@debian.org>
Sun, 25 Feb 2018 17:22:22 +0000 (18:22 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:50:34 +0000 (15:50 +1100)
Change signature of two functions, adding static keyword to prevent the
following two warnings (treated as errors on W=1):

  arch/powerpc/platforms/embedded6xx/flipper-pic.c:135:28: error: no previous prototype for ‘flipper_pic_init’
  arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c:172:6: error: no previous prototype for ‘ug_udbg_putc’

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/embedded6xx/flipper-pic.c
arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c

index ade83829d5e8bb60d60616a1bc8de5336dedf7c8..7206f3f573d45f304e688ec243d755c295fe32e3 100644 (file)
@@ -132,7 +132,7 @@ static void __flipper_quiesce(void __iomem *io_base)
        out_be32(io_base + FLIPPER_ICR, 0xffffffff);
 }
 
-struct irq_domain * __init flipper_pic_init(struct device_node *np)
+static struct irq_domain * __init flipper_pic_init(struct device_node *np)
 {
        struct device_node *pi;
        struct irq_domain *irq_domain = NULL;
index 7feb325b636b87d97c238572e3fcf1f840eb5a2f..5c7e7ce6dbab99dba7b360500702336275f3f165 100644 (file)
@@ -169,7 +169,7 @@ static int ug_getc(void)
 /*
  * Transmits a character.
  */
-void ug_udbg_putc(char ch)
+static void ug_udbg_putc(char ch)
 {
        ug_putc(ch);
 }