Skip to content

Commit

Permalink
powerpc/powernv: Staticify functions without prototypes
Browse files Browse the repository at this point in the history
There's a few scattered in the powernv platform.

Signed-off-by: Oliver O'Halloran <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
oohal authored and mpe committed Aug 24, 2020
1 parent 8471c1d commit 3b70464
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/powernv/eeh-powernv.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

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");
eeh_probe_device(pdev);
Expand Down Expand Up @@ -190,7 +190,7 @@ PNV_EEH_DBGFS_ENTRY(inbB, 0xE10);

#endif /* CONFIG_DEBUG_FS */

void pnv_eeh_enable_phbs(void)
static void pnv_eeh_enable_phbs(void)
{
struct pci_controller *hose;
struct pnv_phb *phb;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powernv/rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int powernv_get_random_real_mode(unsigned long *v)
return 1;
}

int powernv_get_random_darn(unsigned long *v)
static int powernv_get_random_darn(unsigned long *v)
{
unsigned long val;

Expand Down
9 changes: 4 additions & 5 deletions arch/powerpc/platforms/powernv/vas-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* 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;
u64 start;
Expand Down Expand Up @@ -214,7 +214,7 @@ int map_winctx_mmio_bars(struct vas_window *window)
* registers are not sequential. And, we can only write to offsets
* 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(PID), 0ULL);
Expand Down Expand Up @@ -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
* 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;
int fifo_size;
Expand Down Expand Up @@ -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_OPEN, val, 1);
write_hvwc_reg(window, VREG(WINCTL), val);

return 0;
}

static void vas_release_window_id(struct ida *ida, int winid)
Expand Down

0 comments on commit 3b70464

Please sign in to comment.