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

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/cell: Add __init attribute to eligible functions

Some functions defined in 'arch/powerpc/platforms/cell' are deserving of an
`__init` macro attribute. These functions are only called by other
initialization functions and therefore should inherit the attribute.

Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-8-nick.child@ibm.com

authored by

Nick Child and committed by
Michael Ellerman
7c1ab16b 456e8eb3

+20 -20
+1 -1
arch/powerpc/platforms/cell/cbe_regs.c
··· 165 165 } 166 166 EXPORT_SYMBOL_GPL(cbe_node_to_cpu); 167 167 168 - static struct device_node *cbe_get_be_node(int cpu_id) 168 + static struct device_node *__init cbe_get_be_node(int cpu_id) 169 169 { 170 170 struct device_node *np; 171 171
+7 -7
arch/powerpc/platforms/cell/iommu.c
··· 253 253 return IRQ_HANDLED; 254 254 } 255 255 256 - static int cell_iommu_find_ioc(int nid, unsigned long *base) 256 + static int __init cell_iommu_find_ioc(int nid, unsigned long *base) 257 257 { 258 258 struct device_node *np; 259 259 struct resource r; ··· 293 293 return -ENODEV; 294 294 } 295 295 296 - static void cell_iommu_setup_stab(struct cbe_iommu *iommu, 296 + static void __init cell_iommu_setup_stab(struct cbe_iommu *iommu, 297 297 unsigned long dbase, unsigned long dsize, 298 298 unsigned long fbase, unsigned long fsize) 299 299 { ··· 313 313 memset(iommu->stab, 0, stab_size); 314 314 } 315 315 316 - static unsigned long *cell_iommu_alloc_ptab(struct cbe_iommu *iommu, 316 + static unsigned long *__init cell_iommu_alloc_ptab(struct cbe_iommu *iommu, 317 317 unsigned long base, unsigned long size, unsigned long gap_base, 318 318 unsigned long gap_size, unsigned long page_shift) 319 319 { ··· 373 373 return ptab; 374 374 } 375 375 376 - static void cell_iommu_enable_hardware(struct cbe_iommu *iommu) 376 + static void __init cell_iommu_enable_hardware(struct cbe_iommu *iommu) 377 377 { 378 378 int ret; 379 379 unsigned long reg, xlate_base; ··· 413 413 out_be64(iommu->cmd_regs + IOC_IOCmd_Cfg, reg); 414 414 } 415 415 416 - static void cell_iommu_setup_hardware(struct cbe_iommu *iommu, 416 + static void __init cell_iommu_setup_hardware(struct cbe_iommu *iommu, 417 417 unsigned long base, unsigned long size) 418 418 { 419 419 cell_iommu_setup_stab(iommu, base, size, 0, 0); ··· 858 858 cell_iommu_get_fixed_address(&pdev->dev) != OF_BAD_ADDR; 859 859 } 860 860 861 - static void insert_16M_pte(unsigned long addr, unsigned long *ptab, 861 + static void __init insert_16M_pte(unsigned long addr, unsigned long *ptab, 862 862 unsigned long base_pte) 863 863 { 864 864 unsigned long segment, offset; ··· 873 873 ptab[offset] = base_pte | (__pa(addr) & CBE_IOPTE_RPN_Mask); 874 874 } 875 875 876 - static void cell_iommu_setup_fixed_ptab(struct cbe_iommu *iommu, 876 + static void __init cell_iommu_setup_fixed_ptab(struct cbe_iommu *iommu, 877 877 struct device_node *np, unsigned long dbase, unsigned long dsize, 878 878 unsigned long fbase, unsigned long fsize) 879 879 {
+3 -3
arch/powerpc/platforms/cell/spu_base.c
··· 387 387 return stat ? IRQ_HANDLED : IRQ_NONE; 388 388 } 389 389 390 - static int spu_request_irqs(struct spu *spu) 390 + static int __init spu_request_irqs(struct spu *spu) 391 391 { 392 392 int ret = 0; 393 393 ··· 540 540 } 541 541 EXPORT_SYMBOL_GPL(spu_remove_dev_attr_group); 542 542 543 - static int spu_create_dev(struct spu *spu) 543 + static int __init spu_create_dev(struct spu *spu) 544 544 { 545 545 int ret; 546 546 ··· 711 711 } 712 712 } 713 713 714 - static void crash_register_spus(struct list_head *list) 714 + static void __init crash_register_spus(struct list_head *list) 715 715 { 716 716 struct spu *spu; 717 717 int ret;
+8 -8
arch/powerpc/platforms/cell/spu_manage.c
··· 186 186 return -EINVAL; 187 187 } 188 188 189 - static int spu_map_resource(struct spu *spu, int nr, 189 + static int __init spu_map_resource(struct spu *spu, int nr, 190 190 void __iomem** virt, unsigned long *phys) 191 191 { 192 192 struct device_node *np = spu->devnode; ··· 361 361 static int qs20_reg_idxs[QS20_SPES_PER_BE] = { 0, 2, 4, 6, 7, 5, 3, 1 }; 362 362 static int qs20_reg_memory[QS20_SPES_PER_BE] = { 1, 1, 0, 0, 0, 0, 0, 0 }; 363 363 364 - static struct spu *spu_lookup_reg(int node, u32 reg) 364 + static struct spu *__init spu_lookup_reg(int node, u32 reg) 365 365 { 366 366 struct spu *spu; 367 367 const u32 *spu_reg; ··· 374 374 return NULL; 375 375 } 376 376 377 - static void init_affinity_qs20_harcoded(void) 377 + static void __init init_affinity_qs20_harcoded(void) 378 378 { 379 379 int node, i; 380 380 struct spu *last_spu, *spu; ··· 396 396 } 397 397 } 398 398 399 - static int of_has_vicinity(void) 399 + static int __init of_has_vicinity(void) 400 400 { 401 401 struct device_node *dn; 402 402 ··· 409 409 return 0; 410 410 } 411 411 412 - static struct spu *devnode_spu(int cbe, struct device_node *dn) 412 + static struct spu *__init devnode_spu(int cbe, struct device_node *dn) 413 413 { 414 414 struct spu *spu; 415 415 ··· 419 419 return NULL; 420 420 } 421 421 422 - static struct spu * 422 + static struct spu * __init 423 423 neighbour_spu(int cbe, struct device_node *target, struct device_node *avoid) 424 424 { 425 425 struct spu *spu; ··· 440 440 return NULL; 441 441 } 442 442 443 - static void init_affinity_node(int cbe) 443 + static void __init init_affinity_node(int cbe) 444 444 { 445 445 struct spu *spu, *last_spu; 446 446 struct device_node *vic_dn, *last_spu_dn; ··· 494 494 } 495 495 } 496 496 497 - static void init_affinity_fw(void) 497 + static void __init init_affinity_fw(void) 498 498 { 499 499 int cbe; 500 500
+1 -1
arch/powerpc/platforms/cell/spufs/inode.c
··· 648 648 get_order(isolated_loader_size)); 649 649 } 650 650 651 - static void 651 + static void __init 652 652 spufs_init_isolated_loader(void) 653 653 { 654 654 struct device_node *dn;