summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/btext.c
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2018-03-22 21:19:52 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-05-25 12:04:44 +1000
commit86e11b6e9c56e605475462bf9ba7c12dbe1e3e29 (patch)
tree1f91a0b82485c098bb2a965ae0a630cccab30c88 /arch/powerpc/kernel/btext.c
parentbd13ac95f954570e01fba5a6caf771da754ac0e3 (diff)
downloadlwn-86e11b6e9c56e605475462bf9ba7c12dbe1e3e29.tar.gz
lwn-86e11b6e9c56e605475462bf9ba7c12dbe1e3e29.zip
powerpc: Make function btext_initialize static
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>
Diffstat (limited to 'arch/powerpc/kernel/btext.c')
-rw-r--r--arch/powerpc/kernel/btext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c
index 54403144623f..b2072d5bbf2b 100644
--- a/arch/powerpc/kernel/btext.c
+++ b/arch/powerpc/kernel/btext.c
@@ -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;