mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
powerpc/powernv: Staticify functions without prototypes
There's a few scattered in the powernv platform. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200804005410.146094-4-oohall@gmail.com
This commit is contained in:
parent
8471c1dd93
commit
3b70464aa7
3 changed files with 7 additions and 8 deletions
|
@ -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);
|
||||
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue