]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc: Make function btext_initialize static
authorMathieu Malaterre <malat@debian.org>
Thu, 22 Mar 2018 20:19:52 +0000 (21:19 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 May 2018 02:04:44 +0000 (12:04 +1000)
This function can be static, make it so, this fix a warning treated as
error with W=1:

  arch/powerpc/kernel/btext.c:173:5: error: no previous prototype for ‘btext_initialize’ [-Werror=missing-prototypes]

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

index 54403144623f3483f307ff9ad2cfc9c78790b9f7..b2072d5bbf2bb3a9252ca359686ed3a3a740bea0 100644 (file)
@@ -170,7 +170,7 @@ void btext_map(void)
        boot_text_mapped = 1;
 }
 
-int btext_initialize(struct device_node *np)
+static int btext_initialize(struct device_node *np)
 {
        unsigned int width, height, depth, pitch;
        unsigned long address = 0;