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

irq_domain/powerpc: constify irq_domain_ops

Make all the irq_domain_ops structures in powerpc 'static const'

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Milton Miller <miltonm@bga.com>
Tested-by: Olof Johansson <olof@lixom.net>

+22 -22
+1 -1
arch/powerpc/platforms/512x/mpc5121_ads_cpld.c
··· 137 137 return 0; 138 138 } 139 139 140 - static struct irq_domain_ops cpld_pic_host_ops = { 140 + static const struct irq_domain_ops cpld_pic_host_ops = { 141 141 .match = cpld_pic_host_match, 142 142 .map = cpld_pic_host_map, 143 143 };
+1 -1
arch/powerpc/platforms/52xx/media5200.c
··· 136 136 return 0; 137 137 } 138 138 139 - static struct irq_domain_ops media5200_irq_ops = { 139 + static const struct irq_domain_ops media5200_irq_ops = { 140 140 .map = media5200_irq_map, 141 141 .xlate = media5200_irq_xlate, 142 142 };
+1 -1
arch/powerpc/platforms/52xx/mpc52xx_gpt.c
··· 236 236 return 0; 237 237 } 238 238 239 - static struct irq_domain_ops mpc52xx_gpt_irq_ops = { 239 + static const struct irq_domain_ops mpc52xx_gpt_irq_ops = { 240 240 .map = mpc52xx_gpt_irq_map, 241 241 .xlate = mpc52xx_gpt_irq_xlate, 242 242 };
+1 -1
arch/powerpc/platforms/52xx/mpc52xx_pic.c
··· 384 384 return 0; 385 385 } 386 386 387 - static struct irq_domain_ops mpc52xx_irqhost_ops = { 387 + static const struct irq_domain_ops mpc52xx_irqhost_ops = { 388 388 .xlate = mpc52xx_irqhost_xlate, 389 389 .map = mpc52xx_irqhost_map, 390 390 };
+1 -1
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
··· 112 112 return 0; 113 113 } 114 114 115 - static struct irq_domain_ops pci_pic_host_ops = { 115 + static const struct irq_domain_ops pci_pic_host_ops = { 116 116 .map = pci_pic_host_map, 117 117 }; 118 118
+1 -1
arch/powerpc/platforms/85xx/socrates_fpga_pic.c
··· 269 269 return 0; 270 270 } 271 271 272 - static struct irq_domain_ops socrates_fpga_pic_host_ops = { 272 + static const struct irq_domain_ops socrates_fpga_pic_host_ops = { 273 273 .map = socrates_fpga_pic_host_map, 274 274 .xlate = socrates_fpga_pic_host_xlate, 275 275 };
+1 -1
arch/powerpc/platforms/86xx/gef_pic.c
··· 177 177 return 0; 178 178 } 179 179 180 - static struct irq_domain_ops gef_pic_host_ops = { 180 + static const struct irq_domain_ops gef_pic_host_ops = { 181 181 .map = gef_pic_host_map, 182 182 .xlate = gef_pic_host_xlate, 183 183 };
+1 -1
arch/powerpc/platforms/cell/axon_msi.c
··· 327 327 return 0; 328 328 } 329 329 330 - static struct irq_domain_ops msic_host_ops = { 330 + static const struct irq_domain_ops msic_host_ops = { 331 331 .map = msic_host_map, 332 332 }; 333 333
+1 -1
arch/powerpc/platforms/cell/beat_interrupt.c
··· 172 172 return 1; 173 173 } 174 174 175 - static struct irq_domain_ops beatic_pic_host_ops = { 175 + static const struct irq_domain_ops beatic_pic_host_ops = { 176 176 .map = beatic_pic_host_map, 177 177 .unmap = beatic_pic_host_unmap, 178 178 .xlate = beatic_pic_host_xlate,
+1 -1
arch/powerpc/platforms/cell/interrupt.c
··· 285 285 return 0; 286 286 } 287 287 288 - static struct irq_domain_ops iic_host_ops = { 288 + static const struct irq_domain_ops iic_host_ops = { 289 289 .match = iic_host_match, 290 290 .map = iic_host_map, 291 291 .xlate = iic_host_xlate,
+1 -1
arch/powerpc/platforms/cell/spider-pic.c
··· 194 194 return 0; 195 195 } 196 196 197 - static struct irq_domain_ops spider_host_ops = { 197 + static const struct irq_domain_ops spider_host_ops = { 198 198 .map = spider_host_map, 199 199 .xlate = spider_host_xlate, 200 200 };
+1 -1
arch/powerpc/platforms/embedded6xx/flipper-pic.c
··· 113 113 } 114 114 115 115 116 - static struct irq_domain_ops flipper_irq_domain_ops = { 116 + static const struct irq_domain_ops flipper_irq_domain_ops = { 117 117 .map = flipper_pic_map, 118 118 .match = flipper_pic_match, 119 119 };
+1 -1
arch/powerpc/platforms/embedded6xx/hlwd-pic.c
··· 100 100 return 0; 101 101 } 102 102 103 - static struct irq_domain_ops hlwd_irq_domain_ops = { 103 + static const struct irq_domain_ops hlwd_irq_domain_ops = { 104 104 .map = hlwd_pic_map, 105 105 }; 106 106
+1 -1
arch/powerpc/platforms/iseries/irq.c
··· 356 356 return 1; 357 357 } 358 358 359 - static struct irq_domain_ops iseries_irq_domain_ops = { 359 + static const struct irq_domain_ops iseries_irq_domain_ops = { 360 360 .map = iseries_irq_host_map, 361 361 .match = iseries_irq_host_match, 362 362 };
+1 -1
arch/powerpc/platforms/powermac/pic.c
··· 299 299 return 0; 300 300 } 301 301 302 - static struct irq_domain_ops pmac_pic_host_ops = { 302 + static const struct irq_domain_ops pmac_pic_host_ops = { 303 303 .match = pmac_pic_host_match, 304 304 .map = pmac_pic_host_map, 305 305 .xlate = pmac_pic_host_xlate,
+1 -1
arch/powerpc/platforms/powermac/smp.c
··· 184 184 return 0; 185 185 } 186 186 187 - struct irq_domain_ops psurge_host_ops = { 187 + static const struct irq_domain_ops psurge_host_ops = { 188 188 .map = psurge_host_map, 189 189 }; 190 190
+1 -1
arch/powerpc/platforms/ps3/interrupt.c
··· 684 684 return 1; 685 685 } 686 686 687 - static struct irq_domain_ops ps3_host_ops = { 687 + static const struct irq_domain_ops ps3_host_ops = { 688 688 .map = ps3_host_map, 689 689 .match = ps3_host_match, 690 690 };
+1 -1
arch/powerpc/platforms/wsp/opb_pic.c
··· 207 207 return 0; 208 208 } 209 209 210 - static struct irq_domain_ops opb_host_ops = { 210 + static const struct irq_domain_ops opb_host_ops = { 211 211 .map = opb_host_map, 212 212 .xlate = opb_host_xlate, 213 213 };
+1 -1
arch/powerpc/sysdev/cpm1.c
··· 123 123 .name = "error", 124 124 }; 125 125 126 - static struct irq_domain_ops cpm_pic_host_ops = { 126 + static const struct irq_domain_ops cpm_pic_host_ops = { 127 127 .map = cpm_pic_host_map, 128 128 }; 129 129
+1 -1
arch/powerpc/sysdev/cpm2_pic.c
··· 236 236 return 0; 237 237 } 238 238 239 - static struct irq_domain_ops cpm2_pic_host_ops = { 239 + static const struct irq_domain_ops cpm2_pic_host_ops = { 240 240 .map = cpm2_pic_host_map, 241 241 .xlate = cpm2_pic_host_xlate, 242 242 };
+1 -1
arch/powerpc/sysdev/ehv_pic.c
··· 248 248 return 0; 249 249 } 250 250 251 - static struct irq_domain_ops ehv_pic_host_ops = { 251 + static const struct irq_domain_ops ehv_pic_host_ops = { 252 252 .match = ehv_pic_host_match, 253 253 .map = ehv_pic_host_map, 254 254 .xlate = ehv_pic_host_xlate,
+1 -1
arch/powerpc/sysdev/fsl_msi.c
··· 74 74 return 0; 75 75 } 76 76 77 - static struct irq_domain_ops fsl_msi_host_ops = { 77 + static const struct irq_domain_ops fsl_msi_host_ops = { 78 78 .map = fsl_msi_host_map, 79 79 }; 80 80