Commit 1c57b9f6 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Michael Ellerman

powerpc: 85xx: mark local functions static

These functions are either used in only one file and can just be
made static or need an #include statement to avoid a warning:

arch/powerpc/platforms/85xx/mpc8536_ds.c:30:13: error: no previous prototype for 'mpc8536_ds_pic_init' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1010rdb.c:27:13: error: no previous prototype for 'p1010_rdb_pic_init' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1022_ds.c:373:6: error: no previous prototype for 'p1022ds_set_pixel_clock' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1022_ds.c:422:1: error: no previous prototype for 'p1022ds_valid_monitor_port' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1022_ds.c:435:13: error: no previous prototype for 'p1022_ds_pic_init' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1022_rdk.c:43:6: error: no previous prototype for 'p1022rdk_set_pixel_clock' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1022_rdk.c:92:1: error: no previous prototype for 'p1022rdk_valid_monitor_port' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/p1022_rdk.c:99:13: error: no previous prototype for 'p1022_rdk_pic_init' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/socrates_fpga_pic.c:273:13: error: no previous prototype for 'socrates_fpga_pic_init' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/xes_mpc85xx.c:40:13: error: no previous prototype for 'xes_mpc85xx_pic_init' [-Werror=missing-prototypes]
arch/powerpc/platforms/85xx/mvme2500.c:24:13: error: no previous prototype for 'mvme2500_pic_init' [-Werror=missing-prototypes]
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240123125148.2004648-2-arnd@kernel.org
parent 5c84bc8b
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "mpc85xx.h" #include "mpc85xx.h"
void __init mpc8536_ds_pic_init(void) static void __init mpc8536_ds_pic_init(void)
{ {
struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN, struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
0, 256, " OpenPIC "); 0, 256, " OpenPIC ");
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "mpc85xx.h" #include "mpc85xx.h"
void __init mvme2500_pic_init(void) static void __init mvme2500_pic_init(void)
{ {
struct mpic *mpic = mpic_alloc(NULL, 0, struct mpic *mpic = mpic_alloc(NULL, 0,
MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU, MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU,
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "mpc85xx.h" #include "mpc85xx.h"
void __init p1010_rdb_pic_init(void) static void __init p1010_rdb_pic_init(void)
{ {
struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
MPIC_SINGLE_DEST_CPU, MPIC_SINGLE_DEST_CPU,
......
...@@ -370,7 +370,7 @@ static void p1022ds_set_monitor_port(enum fsl_diu_monitor_port port) ...@@ -370,7 +370,7 @@ static void p1022ds_set_monitor_port(enum fsl_diu_monitor_port port)
* *
* @pixclock: the wavelength, in picoseconds, of the clock * @pixclock: the wavelength, in picoseconds, of the clock
*/ */
void p1022ds_set_pixel_clock(unsigned int pixclock) static void p1022ds_set_pixel_clock(unsigned int pixclock)
{ {
struct device_node *guts_np = NULL; struct device_node *guts_np = NULL;
struct ccsr_guts __iomem *guts; struct ccsr_guts __iomem *guts;
...@@ -418,7 +418,7 @@ void p1022ds_set_pixel_clock(unsigned int pixclock) ...@@ -418,7 +418,7 @@ void p1022ds_set_pixel_clock(unsigned int pixclock)
/** /**
* p1022ds_valid_monitor_port: set the monitor port for sysfs * p1022ds_valid_monitor_port: set the monitor port for sysfs
*/ */
enum fsl_diu_monitor_port static enum fsl_diu_monitor_port
p1022ds_valid_monitor_port(enum fsl_diu_monitor_port port) p1022ds_valid_monitor_port(enum fsl_diu_monitor_port port)
{ {
switch (port) { switch (port) {
...@@ -432,7 +432,7 @@ p1022ds_valid_monitor_port(enum fsl_diu_monitor_port port) ...@@ -432,7 +432,7 @@ p1022ds_valid_monitor_port(enum fsl_diu_monitor_port port)
#endif #endif
void __init p1022_ds_pic_init(void) static void __init p1022_ds_pic_init(void)
{ {
struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
MPIC_SINGLE_DEST_CPU, MPIC_SINGLE_DEST_CPU,
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
* *
* @pixclock: the wavelength, in picoseconds, of the clock * @pixclock: the wavelength, in picoseconds, of the clock
*/ */
void p1022rdk_set_pixel_clock(unsigned int pixclock) static void p1022rdk_set_pixel_clock(unsigned int pixclock)
{ {
struct device_node *guts_np = NULL; struct device_node *guts_np = NULL;
struct ccsr_guts __iomem *guts; struct ccsr_guts __iomem *guts;
...@@ -88,7 +88,7 @@ void p1022rdk_set_pixel_clock(unsigned int pixclock) ...@@ -88,7 +88,7 @@ void p1022rdk_set_pixel_clock(unsigned int pixclock)
/** /**
* p1022rdk_valid_monitor_port: set the monitor port for sysfs * p1022rdk_valid_monitor_port: set the monitor port for sysfs
*/ */
enum fsl_diu_monitor_port static enum fsl_diu_monitor_port
p1022rdk_valid_monitor_port(enum fsl_diu_monitor_port port) p1022rdk_valid_monitor_port(enum fsl_diu_monitor_port port)
{ {
return FSL_DIU_PORT_DVI; return FSL_DIU_PORT_DVI;
...@@ -96,7 +96,7 @@ p1022rdk_valid_monitor_port(enum fsl_diu_monitor_port port) ...@@ -96,7 +96,7 @@ p1022rdk_valid_monitor_port(enum fsl_diu_monitor_port port)
#endif #endif
void __init p1022_rdk_pic_init(void) static void __init p1022_rdk_pic_init(void)
{ {
struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
MPIC_SINGLE_DEST_CPU, MPIC_SINGLE_DEST_CPU,
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/io.h> #include <linux/io.h>
#include "socrates_fpga_pic.h"
/* /*
* The FPGA supports 9 interrupt sources, which can be routed to 3 * The FPGA supports 9 interrupt sources, which can be routed to 3
* interrupt request lines of the MPIC. The line to be used can be * interrupt request lines of the MPIC. The line to be used can be
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define MPC85xx_L2CTL_L2I 0x40000000 /* L2 flash invalidate */ #define MPC85xx_L2CTL_L2I 0x40000000 /* L2 flash invalidate */
#define MPC85xx_L2CTL_L2SIZ_MASK 0x30000000 /* L2 SRAM size (R/O) */ #define MPC85xx_L2CTL_L2SIZ_MASK 0x30000000 /* L2 SRAM size (R/O) */
void __init xes_mpc85xx_pic_init(void) static void __init xes_mpc85xx_pic_init(void)
{ {
struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN, struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN,
0, 256, " OpenPIC "); 0, 256, " OpenPIC ");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment