Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Remove extern from function implementations

Sparse reports several function implementations annotated with extern.
This is clearly incorrect, likely just copied from an actual extern
declaration in another file.

Fix the sparse warnings by removing extern.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-6-bgray@linux.ibm.com

authored by

Benjamin Gray and committed by
Michael Ellerman
419d5d11 ddfb7d9d

+10 -10
+4 -4
arch/powerpc/kernel/iommu.c
··· 1074 1074 } 1075 1075 EXPORT_SYMBOL_GPL(iommu_tce_check_gpa); 1076 1076 1077 - extern long iommu_tce_xchg_no_kill(struct mm_struct *mm, 1078 - struct iommu_table *tbl, 1079 - unsigned long entry, unsigned long *hpa, 1080 - enum dma_data_direction *direction) 1077 + long iommu_tce_xchg_no_kill(struct mm_struct *mm, 1078 + struct iommu_table *tbl, 1079 + unsigned long entry, unsigned long *hpa, 1080 + enum dma_data_direction *direction) 1081 1081 { 1082 1082 long ret; 1083 1083 unsigned long size = 0;
+2 -2
arch/powerpc/kernel/traps.c
··· 157 157 static unsigned int die_nest_count; 158 158 static int die_counter; 159 159 160 - extern void panic_flush_kmsg_start(void) 160 + void panic_flush_kmsg_start(void) 161 161 { 162 162 /* 163 163 * These are mostly taken from kernel/panic.c, but tries to do ··· 170 170 bust_spinlocks(1); 171 171 } 172 172 173 - extern void panic_flush_kmsg_end(void) 173 + void panic_flush_kmsg_end(void) 174 174 { 175 175 kmsg_dump(KMSG_DUMP_PANIC); 176 176 bust_spinlocks(0);
+4 -4
arch/powerpc/kvm/book3s_64_vio.c
··· 77 77 call_rcu(&stit->rcu, kvm_spapr_tce_iommu_table_free); 78 78 } 79 79 80 - extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm, 81 - struct iommu_group *grp) 80 + void kvm_spapr_tce_release_iommu_group(struct kvm *kvm, 81 + struct iommu_group *grp) 82 82 { 83 83 int i; 84 84 struct kvmppc_spapr_tce_table *stt; ··· 105 105 rcu_read_unlock(); 106 106 } 107 107 108 - extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd, 109 - struct iommu_group *grp) 108 + long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd, 109 + struct iommu_group *grp) 110 110 { 111 111 struct kvmppc_spapr_tce_table *stt = NULL; 112 112 bool found = false;