Commit 3b70464a authored by Oliver O'Halloran's avatar Oliver O'Halloran Committed by Michael Ellerman

powerpc/powernv: Staticify functions without prototypes

There's a few scattered in the powernv platform.
Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200804005410.146094-4-oohall@gmail.com
parent 8471c1dd
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
static int eeh_event_irq = -EINVAL; static int eeh_event_irq = -EINVAL;
void pnv_pcibios_bus_add_device(struct pci_dev *pdev) static void pnv_pcibios_bus_add_device(struct pci_dev *pdev)
{ {
dev_dbg(&pdev->dev, "EEH: Setting up device\n"); dev_dbg(&pdev->dev, "EEH: Setting up device\n");
eeh_probe_device(pdev); eeh_probe_device(pdev);
...@@ -190,7 +190,7 @@ PNV_EEH_DBGFS_ENTRY(inbB, 0xE10); ...@@ -190,7 +190,7 @@ PNV_EEH_DBGFS_ENTRY(inbB, 0xE10);
#endif /* CONFIG_DEBUG_FS */ #endif /* CONFIG_DEBUG_FS */
void pnv_eeh_enable_phbs(void) static void pnv_eeh_enable_phbs(void)
{ {
struct pci_controller *hose; struct pci_controller *hose;
struct pnv_phb *phb; struct pnv_phb *phb;
......
...@@ -65,7 +65,7 @@ int powernv_get_random_real_mode(unsigned long *v) ...@@ -65,7 +65,7 @@ int powernv_get_random_real_mode(unsigned long *v)
return 1; return 1;
} }
int powernv_get_random_darn(unsigned long *v) static int powernv_get_random_darn(unsigned long *v)
{ {
unsigned long val; unsigned long val;
......
...@@ -186,7 +186,7 @@ static void unmap_winctx_mmio_bars(struct vas_window *window) ...@@ -186,7 +186,7 @@ static void unmap_winctx_mmio_bars(struct vas_window *window)
* OS/User Window Context (UWC) MMIO Base Address Region for the given window. * OS/User Window Context (UWC) MMIO Base Address Region for the given window.
* Map these bus addresses and save the mapped kernel addresses in @window. * Map these bus addresses and save the mapped kernel addresses in @window.
*/ */
int map_winctx_mmio_bars(struct vas_window *window) static int map_winctx_mmio_bars(struct vas_window *window)
{ {
int len; int len;
u64 start; u64 start;
...@@ -214,7 +214,7 @@ int map_winctx_mmio_bars(struct vas_window *window) ...@@ -214,7 +214,7 @@ int map_winctx_mmio_bars(struct vas_window *window)
* registers are not sequential. And, we can only write to offsets * registers are not sequential. And, we can only write to offsets
* with valid registers. * with valid registers.
*/ */
void reset_window_regs(struct vas_window *window) static void reset_window_regs(struct vas_window *window)
{ {
write_hvwc_reg(window, VREG(LPID), 0ULL); write_hvwc_reg(window, VREG(LPID), 0ULL);
write_hvwc_reg(window, VREG(PID), 0ULL); write_hvwc_reg(window, VREG(PID), 0ULL);
...@@ -357,7 +357,8 @@ static void init_rsvd_tx_buf_count(struct vas_window *txwin, ...@@ -357,7 +357,8 @@ static void init_rsvd_tx_buf_count(struct vas_window *txwin,
* as a one-time task? That could work for NX but what about other * as a one-time task? That could work for NX but what about other
* receivers? Let the receivers tell us the rx-fifo buffers for now. * receivers? Let the receivers tell us the rx-fifo buffers for now.
*/ */
int init_winctx_regs(struct vas_window *window, struct vas_winctx *winctx) static void init_winctx_regs(struct vas_window *window,
struct vas_winctx *winctx)
{ {
u64 val; u64 val;
int fifo_size; int fifo_size;
...@@ -499,8 +500,6 @@ int init_winctx_regs(struct vas_window *window, struct vas_winctx *winctx) ...@@ -499,8 +500,6 @@ int init_winctx_regs(struct vas_window *window, struct vas_winctx *winctx)
val = SET_FIELD(VAS_WINCTL_NX_WIN, val, winctx->nx_win); val = SET_FIELD(VAS_WINCTL_NX_WIN, val, winctx->nx_win);
val = SET_FIELD(VAS_WINCTL_OPEN, val, 1); val = SET_FIELD(VAS_WINCTL_OPEN, val, 1);
write_hvwc_reg(window, VREG(WINCTL), val); write_hvwc_reg(window, VREG(WINCTL), val);
return 0;
} }
static void vas_release_window_id(struct ida *ida, int winid) static void vas_release_window_id(struct ida *ida, int winid)
......
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