Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e51df2c1 authored by Anton Blanchard's avatar Anton Blanchard Committed by Michael Ellerman
Browse files

powerpc: Make a bunch of things static

parent 5144b6bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -293,7 +293,7 @@ int __kprobes hw_breakpoint_handler(struct die_args *args)
/*
/*
 * Handle single-step exceptions following a DABR hit.
 * Handle single-step exceptions following a DABR hit.
 */
 */
int __kprobes single_step_dabr_instruction(struct die_args *args)
static int __kprobes single_step_dabr_instruction(struct die_args *args)
{
{
	struct pt_regs *regs = args->regs;
	struct pt_regs *regs = args->regs;
	struct perf_event *bp = NULL;
	struct perf_event *bp = NULL;
+1 −1
Original line number Original line Diff line number Diff line
@@ -567,7 +567,7 @@ static int __init nvram_init(void)
  	return rc;
  	return rc;
}
}


void __exit nvram_cleanup(void)
static void __exit nvram_cleanup(void)
{
{
        misc_deregister( &nvram_dev );
        misc_deregister( &nvram_dev );
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -1140,7 +1140,7 @@ static int reparent_resources(struct resource *parent,
 *	    as well.
 *	    as well.
 */
 */


void pcibios_allocate_bus_resources(struct pci_bus *bus)
static void pcibios_allocate_bus_resources(struct pci_bus *bus)
{
{
	struct pci_bus *b;
	struct pci_bus *b;
	int i;
	int i;
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ static u32 get_int_prop(struct device_node *np, const char *name, u32 def)
 * @addr0: value of 1st cell of a device tree PCI address.
 * @addr0: value of 1st cell of a device tree PCI address.
 * @bridge: Set this flag if the address is from a bridge 'ranges' property
 * @bridge: Set this flag if the address is from a bridge 'ranges' property
 */
 */
unsigned int pci_parse_of_flags(u32 addr0, int bridge)
static unsigned int pci_parse_of_flags(u32 addr0, int bridge)
{
{
	unsigned int flags = 0;
	unsigned int flags = 0;


+3 −2
Original line number Original line Diff line number Diff line
@@ -386,7 +386,8 @@ static int __init early_init_dt_scan_cpus(unsigned long node,
	return 0;
	return 0;
}
}


int __init early_init_dt_scan_chosen_ppc(unsigned long node, const char *uname,
static int __init early_init_dt_scan_chosen_ppc(unsigned long node,
						const char *uname,
						int depth, void *data)
						int depth, void *data)
{
{
	const unsigned long *lprop; /* All these set by kernel, so no need to convert endian */
	const unsigned long *lprop; /* All these set by kernel, so no need to convert endian */
Loading