Skip to content

Commit 13b8219

Browse files
Lee Jonesmpe
authored andcommitted
powerpc/pseries: Move hvc_vio_init_early() prototype to shared location
Fixes the following W=1 kernel build warning(s): drivers/tty/hvc/hvc_vio.c:385:13: warning: no previous prototype for ‘hvc_vio_init_early’ 385 | void __init hvc_vio_init_early(void) | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210303124603.3150175-1-lee.jones@linaro.org
1 parent 1a029e0 commit 13b8219

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

arch/powerpc/include/asm/hvconsole.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
extern int hvc_get_chars(uint32_t vtermno, char *buf, int count);
2525
extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
2626

27+
/* Provided by HVC VIO */
28+
void hvc_vio_init_early(void);
29+
2730
#endif /* __KERNEL__ */
2831
#endif /* _PPC64_HVCONSOLE_H */

arch/powerpc/platforms/pseries/pseries.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ extern void pSeries_final_fixup(void);
4343
/* Poweron flag used for enabling auto ups restart */
4444
extern unsigned long rtas_poweron_auto;
4545

46-
/* Provided by HVC VIO */
47-
extern void hvc_vio_init_early(void);
48-
4946
/* Dynamic logical Partitioning/Mobility */
5047
extern void dlpar_free_cc_nodes(struct device_node *);
5148
extern void dlpar_free_cc_property(struct property *);

arch/powerpc/platforms/pseries/setup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
#include <asm/swiotlb.h>
7272
#include <asm/svm.h>
7373
#include <asm/dtl.h>
74+
#include <asm/hvconsole.h>
7475

7576
#include "pseries.h"
7677
#include "../../../../drivers/pci/pci.h"

0 commit comments

Comments
 (0)