powerpc: remove unneeded semicolons
Remove superfluous semicolons after function definitions. Signed-off-by: Chengyang Fan <cy.fan@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210125095338.1719405-1-cy.fan@huawei.com
This commit is contained in:
parent
665d8d5876
commit
6c6fdbb2b7
|
@ -94,7 +94,7 @@ typedef struct {
|
|||
} mm_context_t;
|
||||
|
||||
void update_bats(void);
|
||||
static inline void cleanup_cpu_mmu_context(void) { };
|
||||
static inline void cleanup_cpu_mmu_context(void) { }
|
||||
|
||||
/* patch sites */
|
||||
extern s32 patch__hash_page_A0, patch__hash_page_A1, patch__hash_page_A2;
|
||||
|
|
|
@ -239,7 +239,7 @@ static inline void setup_initial_memory_limit(phys_addr_t first_memblock_base,
|
|||
#ifdef CONFIG_PPC_PSERIES
|
||||
extern void radix_init_pseries(void);
|
||||
#else
|
||||
static inline void radix_init_pseries(void) { };
|
||||
static inline void radix_init_pseries(void) { }
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
|
|
|
@ -35,7 +35,7 @@ extern void radix__flush_pwc_lpid(unsigned int lpid);
|
|||
extern void radix__flush_all_lpid(unsigned int lpid);
|
||||
extern void radix__flush_all_lpid_guest(unsigned int lpid);
|
||||
#else
|
||||
static inline void radix__tlbiel_all(unsigned int action) { WARN_ON(1); };
|
||||
static inline void radix__tlbiel_all(unsigned int action) { WARN_ON(1); }
|
||||
static inline void radix__flush_tlb_lpid_page(unsigned int lpid,
|
||||
unsigned long addr,
|
||||
unsigned long page_size)
|
||||
|
|
|
@ -31,7 +31,7 @@ static inline void tlbiel_all(void)
|
|||
hash__tlbiel_all(TLB_INVAL_SCOPE_GLOBAL);
|
||||
}
|
||||
#else
|
||||
static inline void tlbiel_all(void) { BUG(); };
|
||||
static inline void tlbiel_all(void) { BUG(); }
|
||||
#endif
|
||||
|
||||
static inline void tlbiel_all_lpid(bool radix)
|
||||
|
|
|
@ -137,7 +137,7 @@ extern unsigned int __start___fw_ftr_fixup, __stop___fw_ftr_fixup;
|
|||
#ifdef CONFIG_PPC_PSERIES
|
||||
void pseries_probe_fw_features(void);
|
||||
#else
|
||||
static inline void pseries_probe_fw_features(void) { };
|
||||
static inline void pseries_probe_fw_features(void) { }
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
|
|
@ -627,9 +627,9 @@ extern int h_ipi_redirect;
|
|||
static inline struct kvmppc_passthru_irqmap *kvmppc_get_passthru_irqmap(
|
||||
struct kvm *kvm)
|
||||
{ return NULL; }
|
||||
static inline void kvmppc_alloc_host_rm_ops(void) {};
|
||||
static inline void kvmppc_free_host_rm_ops(void) {};
|
||||
static inline void kvmppc_free_pimap(struct kvm *kvm) {};
|
||||
static inline void kvmppc_alloc_host_rm_ops(void) {}
|
||||
static inline void kvmppc_free_host_rm_ops(void) {}
|
||||
static inline void kvmppc_free_pimap(struct kvm *kvm) {}
|
||||
static inline int kvmppc_xics_rm_complete(struct kvm_vcpu *vcpu, u32 hcall)
|
||||
{ return 0; }
|
||||
static inline int kvmppc_xics_enabled(struct kvm_vcpu *vcpu)
|
||||
|
|
|
@ -289,9 +289,9 @@ extern void free_unused_pacas(void);
|
|||
|
||||
#else /* CONFIG_PPC64 */
|
||||
|
||||
static inline void allocate_paca_ptrs(void) { };
|
||||
static inline void allocate_paca(int cpu) { };
|
||||
static inline void free_unused_pacas(void) { };
|
||||
static inline void allocate_paca_ptrs(void) { }
|
||||
static inline void allocate_paca(int cpu) { }
|
||||
static inline void free_unused_pacas(void) { }
|
||||
|
||||
#endif /* CONFIG_PPC64 */
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ void rtas_initialize(void);
|
|||
#else
|
||||
static inline int page_is_rtas_user_buf(unsigned long pfn) { return 0;}
|
||||
static inline void pSeries_coalesce_init(void) { }
|
||||
static inline void rtas_initialize(void) { };
|
||||
static inline void rtas_initialize(void) { }
|
||||
#endif
|
||||
|
||||
extern int call_rtas(const char *, int, int, unsigned long *, ...);
|
||||
|
|
|
@ -58,7 +58,7 @@ void do_rfi_flush_fixups(enum l1d_flush_type types);
|
|||
#ifdef CONFIG_PPC_BARRIER_NOSPEC
|
||||
void setup_barrier_nospec(void);
|
||||
#else
|
||||
static inline void setup_barrier_nospec(void) { };
|
||||
static inline void setup_barrier_nospec(void) { }
|
||||
#endif
|
||||
void do_uaccess_flush_fixups(enum l1d_flush_type types);
|
||||
void do_entry_flush_fixups(enum l1d_flush_type types);
|
||||
|
@ -68,13 +68,13 @@ extern bool barrier_nospec_enabled;
|
|||
#ifdef CONFIG_PPC_BARRIER_NOSPEC
|
||||
void do_barrier_nospec_fixups_range(bool enable, void *start, void *end);
|
||||
#else
|
||||
static inline void do_barrier_nospec_fixups_range(bool enable, void *start, void *end) { };
|
||||
static inline void do_barrier_nospec_fixups_range(bool enable, void *start, void *end) { }
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PPC_FSL_BOOK3E
|
||||
void setup_spectre_v2(void);
|
||||
#else
|
||||
static inline void setup_spectre_v2(void) {};
|
||||
static inline void setup_spectre_v2(void) {}
|
||||
#endif
|
||||
void do_btb_flush_fixups(void);
|
||||
|
||||
|
|
|
@ -90,8 +90,8 @@ static inline int arch_spin_trylock(arch_spinlock_t *lock)
|
|||
void splpar_spin_yield(arch_spinlock_t *lock);
|
||||
void splpar_rw_yield(arch_rwlock_t *lock);
|
||||
#else /* SPLPAR */
|
||||
static inline void splpar_spin_yield(arch_spinlock_t *lock) {};
|
||||
static inline void splpar_rw_yield(arch_rwlock_t *lock) {};
|
||||
static inline void splpar_spin_yield(arch_spinlock_t *lock) {}
|
||||
static inline void splpar_rw_yield(arch_rwlock_t *lock) {}
|
||||
#endif
|
||||
|
||||
static inline void spin_yield(arch_spinlock_t *lock)
|
||||
|
|
|
@ -236,7 +236,7 @@ static inline void set_hard_smp_processor_id(int cpu, int phys)
|
|||
#if defined(CONFIG_PPC64) && (defined(CONFIG_SMP) || defined(CONFIG_KEXEC_CORE))
|
||||
extern void smp_release_cpus(void);
|
||||
#else
|
||||
static inline void smp_release_cpus(void) { };
|
||||
static inline void smp_release_cpus(void) { }
|
||||
#endif
|
||||
|
||||
extern int smt_enabled_at_boot;
|
||||
|
|
|
@ -17,8 +17,8 @@ struct pt_regs;
|
|||
extern int xmon(struct pt_regs *excp);
|
||||
extern irqreturn_t xmon_irq(int, void *);
|
||||
#else
|
||||
static inline void xmon_setup(void) { };
|
||||
static inline void xmon_register_spus(struct list_head *list) { };
|
||||
static inline void xmon_setup(void) { }
|
||||
static inline void xmon_register_spus(struct list_head *list) { }
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_XMON) && defined(CONFIG_SMP)
|
||||
|
|
|
@ -707,7 +707,7 @@ static void __init save_fscr_to_task(void)
|
|||
init_task.thread.fscr = mfspr(SPRN_FSCR);
|
||||
}
|
||||
#else
|
||||
static inline void save_fscr_to_task(void) {};
|
||||
static inline void save_fscr_to_task(void) {}
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -14,31 +14,31 @@ void irqstack_early_init(void);
|
|||
#ifdef CONFIG_PPC32
|
||||
void setup_power_save(void);
|
||||
#else
|
||||
static inline void setup_power_save(void) { };
|
||||
static inline void setup_power_save(void) { }
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PPC64) && defined(CONFIG_SMP)
|
||||
void check_smt_enabled(void);
|
||||
#else
|
||||
static inline void check_smt_enabled(void) { };
|
||||
static inline void check_smt_enabled(void) { }
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP)
|
||||
void setup_tlb_core_data(void);
|
||||
#else
|
||||
static inline void setup_tlb_core_data(void) { };
|
||||
static inline void setup_tlb_core_data(void) { }
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PPC_BOOK3E) || defined(CONFIG_BOOKE) || defined(CONFIG_40x)
|
||||
void exc_lvl_early_init(void);
|
||||
#else
|
||||
static inline void exc_lvl_early_init(void) { };
|
||||
static inline void exc_lvl_early_init(void) { }
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PPC64) || defined(CONFIG_VMAP_STACK)
|
||||
void emergency_stack_init(void);
|
||||
#else
|
||||
static inline void emergency_stack_init(void) { };
|
||||
static inline void emergency_stack_init(void) { }
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
|
@ -55,7 +55,7 @@ extern unsigned long spr_default_dscr;
|
|||
#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
|
||||
void kvm_cma_reserve(void);
|
||||
#else
|
||||
static inline void kvm_cma_reserve(void) { };
|
||||
static inline void kvm_cma_reserve(void) { }
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TAU
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
void split_core_secondary_loop(u8 *state);
|
||||
extern void update_subcore_sibling_mask(void);
|
||||
#else
|
||||
static inline void update_subcore_sibling_mask(void) { };
|
||||
static inline void update_subcore_sibling_mask(void) { }
|
||||
#endif /* CONFIG_SMP */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
|
|
@ -33,7 +33,7 @@ int smp_query_cpu_stopped(unsigned int pcpu);
|
|||
#define QCSS_HARDWARE_ERROR -1
|
||||
#define QCSS_HARDWARE_BUSY -2
|
||||
#else
|
||||
static inline void smp_init_pseries(void) { };
|
||||
static inline void smp_init_pseries(void) { }
|
||||
#endif
|
||||
|
||||
extern void pseries_kexec_cpu_down(int crash_shutdown, int secondary);
|
||||
|
|
Loading…
Reference in New Issue