]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/wii: Make hlwd_pic_init function static
authorMathieu Malaterre <malat@debian.org>
Mon, 23 Apr 2018 19:45:32 +0000 (21:45 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 May 2018 02:04:39 +0000 (12:04 +1000)
The function hlwd_pic_init can be made static, so do it. Fix the following
warning treated as error (W=1):

../arch/powerpc/platforms/embedded6xx/hlwd-pic.c:158:20: error: no previous prototype for ‘hlwd_pic_init’ [-Werror=missing-prototypes]

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

index bf4a125faec66664cd8c76d29852ee37c3bee166..8112b39879d670deaa7d28661b88c3b60ea70264 100644 (file)
@@ -160,7 +160,7 @@ static void __hlwd_quiesce(void __iomem *io_base)
        out_be32(io_base + HW_BROADWAY_ICR, 0xffffffff);
 }
 
-struct irq_domain *hlwd_pic_init(struct device_node *np)
+static struct irq_domain *hlwd_pic_init(struct device_node *np)
 {
        struct irq_domain *irq_domain;
        struct resource res;