This was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/' to convert the new alloc_obj() users that had a simple GFP_KERNEL argument to just drop that argument. Note that due to the extreme simplicity of the scripting, any slightly more complex cases spread over multiple lines would not be triggered: they definitely exist, but this covers the vast bulk of the cases, and the resulting diff is also then easier to check automatically. For the same reason the 'flex' versions will be done as a separate conversion.
Unified · Split
| @@ -861,7 +861,7 @@ marvel_agp_setup(alpha_agp_info *agp) · 860 unmodified lines | |||
| 861 | if (!alpha_agpgart_size) | 861 | if (!alpha_agpgart_size) |
| 862 | return -ENOMEM; | 862 | return -ENOMEM; |
| 863 | 863 | ||
| 864 | aper = kmalloc_obj(*aper, GFP_KERNEL); | 864 | aper = kmalloc_obj(*aper); |
| 865 | if (aper == NULL) return -ENOMEM; | 865 | if (aper == NULL) return -ENOMEM; |
| 866 | 866 | ||
| 867 | aper->arena = agp->hose->sg_pci; | 867 | aper->arena = agp->hose->sg_pci; |
| @@ -1059,7 +1059,7 @@ marvel_agp_info(void) · 191 unmodified lines | |||
| 1059 | /* | 1059 | /* |
| 1060 | * Allocate the info structure. | 1060 | * Allocate the info structure. |
| 1061 | */ | 1061 | */ |
| 1062 | agp = kmalloc_obj(*agp, GFP_KERNEL); | 1062 | agp = kmalloc_obj(*agp); |
| 1063 | if (!agp) | 1063 | if (!agp) |
| 1064 | return NULL; | 1064 | return NULL; |
| 1065 | 1065 | ||
| @@ -594,7 +594,7 @@ titan_agp_setup(alpha_agp_info *agp) · 593 unmodified lines | |||
| 594 | if (!alpha_agpgart_size) | 594 | if (!alpha_agpgart_size) |
| 595 | return -ENOMEM; | 595 | return -ENOMEM; |
| 596 | 596 | ||
| 597 | aper = kmalloc_obj(struct titan_agp_aperture, GFP_KERNEL); | 597 | aper = kmalloc_obj(struct titan_agp_aperture); |
| 598 | if (aper == NULL) | 598 | if (aper == NULL) |
| 599 | return -ENOMEM; | 599 | return -ENOMEM; |
| 600 | 600 | ||
| @@ -760,7 +760,7 @@ titan_agp_info(void) · 159 unmodified lines | |||
| 760 | /* | 760 | /* |
| 761 | * Allocate the info structure. | 761 | * Allocate the info structure. |
| 762 | */ | 762 | */ |
| 763 | agp = kmalloc_obj(*agp, GFP_KERNEL); | 763 | agp = kmalloc_obj(*agp); |
| 764 | if (!agp) | 764 | if (!agp) |
| 765 | return NULL; | 765 | return NULL; |
| 766 | 766 | ||
| @@ -46,7 +46,7 @@ process_reloc_for_got(Elf64_Rela *rela, · 45 unmodified lines | |||
| 46 | goto found_entry; | 46 | goto found_entry; |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | g = kmalloc_obj(*g, GFP_KERNEL); | 49 | g = kmalloc_obj(*g); |
| 50 | g->next = chains[r_sym].next; | 50 | g->next = chains[r_sym].next; |
| 51 | g->r_addend = r_addend; | 51 | g->r_addend = r_addend; |
| 52 | g->got_offset = *poffset; | 52 | g->got_offset = *poffset; |
| @@ -93,7 +93,7 @@ module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs, · 40 unmodified lines | |||
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | nsyms = symtab->sh_size / sizeof(Elf64_Sym); | 95 | nsyms = symtab->sh_size / sizeof(Elf64_Sym); |
| 96 | chains = kzalloc_objs(struct got_entry, nsyms, GFP_KERNEL); | 96 | chains = kzalloc_objs(struct got_entry, nsyms); |
| 97 | if (!chains) { | 97 | if (!chains) { |
| 98 | printk(KERN_ERR | 98 | printk(KERN_ERR |
| 99 | "module %s: no memory for symbol chain buffer\n", | 99 | "module %s: no memory for symbol chain buffer\n", |
| @@ -220,7 +220,7 @@ static void pdev_save_srm_config(struct pci_dev *dev) · 219 unmodified lines | |||
| 220 | printed = 1; | 220 | printed = 1; |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | tmp = kmalloc_obj(*tmp, GFP_KERNEL); | 223 | tmp = kmalloc_obj(*tmp); |
| 224 | if (!tmp) { | 224 | if (!tmp) { |
| 225 | printk(KERN_ERR "%s: kmalloc() failed!\n", __func__); | 225 | printk(KERN_ERR "%s: kmalloc() failed!\n", __func__); |
| 226 | return; | 226 | return; |
| @@ -392,7 +392,7 @@ register_cpus(void) · 391 unmodified lines | |||
| 392 | int i; | 392 | int i; |
| 393 | 393 | ||
| 394 | for_each_possible_cpu(i) { | 394 | for_each_possible_cpu(i) { |
| 395 | struct cpu *p = kzalloc_obj(*p, GFP_KERNEL); | 395 | struct cpu *p = kzalloc_obj(*p); |
| 396 | if (!p) | 396 | if (!p) |
| 397 | return -ENOMEM; | 397 | return -ENOMEM; |
| 398 | register_cpu(p, i); | 398 | register_cpu(p, i); |
| @@ -366,7 +366,7 @@ void *unwind_add_table(struct module *module, const void *table_start, · 365 unmodified lines | |||
| 366 | if (table_size <= 0) | 366 | if (table_size <= 0) |
| 367 | return NULL; | 367 | return NULL; |
| 368 | 368 | ||
| 369 | table = kmalloc_obj(*table, GFP_KERNEL); | 369 | table = kmalloc_obj(*table); |
| 370 | if (!table) | 370 | if (!table) |
| 371 | return NULL; | 371 | return NULL; |
| 372 | 372 | ||
| @@ -1140,7 +1140,7 @@ static int jit_prepare_final_mem_alloc(struct jit_context *ctx) · 1139 unmodified lines | |||
| 1140 | } | 1140 | } |
| 1141 | 1141 | ||
| 1142 | if (ctx->need_extra_pass) { | 1142 | if (ctx->need_extra_pass) { |
| 1143 | ctx->jit_data = kzalloc_obj(*ctx->jit_data, GFP_KERNEL); | 1143 | ctx->jit_data = kzalloc_obj(*ctx->jit_data); |
| 1144 | if (!ctx->jit_data) | 1144 | if (!ctx->jit_data) |
| 1145 | return -ENOMEM; | 1145 | return -ENOMEM; |
| 1146 | } | 1146 | } |
| @@ -222,7 +222,7 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info) · 221 unmodified lines | |||
| 222 | struct locomo_dev *dev; | 222 | struct locomo_dev *dev; |
| 223 | int ret; | 223 | int ret; |
| 224 | 224 | ||
| 225 | dev = kzalloc_obj(struct locomo_dev, GFP_KERNEL); | 225 | dev = kzalloc_obj(struct locomo_dev); |
| 226 | if (!dev) { | 226 | if (!dev) { |
| 227 | ret = -ENOMEM; | 227 | ret = -ENOMEM; |
| 228 | goto out; | 228 | goto out; |
| @@ -277,7 +277,7 @@ static int locomo_suspend(struct platform_device *dev, pm_message_t state) · 48 unmodified lines | |||
| 277 | struct locomo_save_data *save; | 277 | struct locomo_save_data *save; |
| 278 | unsigned long flags; | 278 | unsigned long flags; |
| 279 | 279 | ||
| 280 | save = kmalloc_obj(struct locomo_save_data, GFP_KERNEL); | 280 | save = kmalloc_obj(struct locomo_save_data); |
| 281 | if (!save) | 281 | if (!save) |
| 282 | return -ENOMEM; | 282 | return -ENOMEM; |
| 283 | 283 | ||
| @@ -360,7 +360,7 @@ __locomo_probe(struct device *me, struct resource *mem, int irq) · 76 unmodified lines | |||
| 360 | unsigned long r; | 360 | unsigned long r; |
| 361 | int i, ret = -ENODEV; | 361 | int i, ret = -ENODEV; |
| 362 | 362 | ||
| 363 | lchip = kzalloc_obj(struct locomo, GFP_KERNEL); | 363 | lchip = kzalloc_obj(struct locomo); |
| 364 | if (!lchip) | 364 | if (!lchip) |
| 365 | return -ENOMEM; | 365 | return -ENOMEM; |
| 366 | 366 | ||
| @@ -737,7 +737,7 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent, · 736 unmodified lines | |||
| 737 | unsigned i; | 737 | unsigned i; |
| 738 | int ret; | 738 | int ret; |
| 739 | 739 | ||
| 740 | dev = kzalloc_obj(struct sa1111_dev, GFP_KERNEL); | 740 | dev = kzalloc_obj(struct sa1111_dev); |
| 741 | if (!dev) { | 741 | if (!dev) { |
| 742 | ret = -ENOMEM; | 742 | ret = -ENOMEM; |
| 743 | goto err_alloc; | 743 | goto err_alloc; |
| @@ -969,7 +969,7 @@ static int sa1111_suspend_noirq(struct device *dev) · 225 unmodified lines | |||
| 969 | unsigned int val; | 969 | unsigned int val; |
| 970 | void __iomem *base; | 970 | void __iomem *base; |
| 971 | 971 | ||
| 972 | save = kmalloc_obj(struct sa1111_save_data, GFP_KERNEL); | 972 | save = kmalloc_obj(struct sa1111_save_data); |
| 973 | if (!save) | 973 | if (!save) |
| 974 | return -ENOMEM; | 974 | return -ENOMEM; |
| 975 | sachip->saved_state = save; | 975 | sachip->saved_state = save; |
| @@ -185,7 +185,7 @@ static int scoop_probe(struct platform_device *pdev) · 184 unmodified lines | |||
| 185 | if (!mem) | 185 | if (!mem) |
| 186 | return -EINVAL; | 186 | return -EINVAL; |
| 187 | 187 | ||
| 188 | devptr = kzalloc_obj(struct scoop_dev, GFP_KERNEL); | 188 | devptr = kzalloc_obj(struct scoop_dev); |
| 189 | if (!devptr) | 189 | if (!devptr) |
| 190 | return -ENOMEM; | 190 | return -ENOMEM; |
| 191 | 191 | ||
| @@ -108,7 +108,7 @@ static unsigned long get_arch_pgd(pgd_t *pgd) · 107 unmodified lines | |||
| 108 | static int secondary_biglittle_prepare(unsigned int cpu) | 108 | static int secondary_biglittle_prepare(unsigned int cpu) |
| 109 | { | 109 | { |
| 110 | if (!cpu_vtable[cpu]) | 110 | if (!cpu_vtable[cpu]) |
| 111 | cpu_vtable[cpu] = kzalloc_obj(*cpu_vtable[cpu], GFP_KERNEL); | 111 | cpu_vtable[cpu] = kzalloc_obj(*cpu_vtable[cpu]); |
| 112 | 112 | ||
| 113 | return cpu_vtable[cpu] ? 0 : -ENOMEM; | 113 | return cpu_vtable[cpu] ? 0 : -ENOMEM; |
| 114 | } | 114 | } |
| @@ -349,7 +349,7 @@ asmlinkage long sys_oabi_semtimedop(int semid, · 348 unmodified lines | |||
| 349 | return -E2BIG; | 349 | return -E2BIG; |
| 350 | if (nsops < 1 || nsops > SEMOPM) | 350 | if (nsops < 1 || nsops > SEMOPM) |
| 351 | return -EINVAL; | 351 | return -EINVAL; |
| 352 | sops = kvmalloc_objs(*sops, nsops, GFP_KERNEL); | 352 | sops = kvmalloc_objs(*sops, nsops); |
| 353 | if (!sops) | 353 | if (!sops) |
| 354 | return -ENOMEM; | 354 | return -ENOMEM; |
| 355 | err = 0; | 355 | err = 0; |
| @@ -574,7 +574,7 @@ struct unwind_table *unwind_table_add(unsigned long start, unsigned long size, · 573 unmodified lines | |||
| 574 | unsigned long text_size) | 574 | unsigned long text_size) |
| 575 | { | 575 | { |
| 576 | unsigned long flags; | 576 | unsigned long flags; |
| 577 | struct unwind_table *tab = kmalloc_obj(*tab, GFP_KERNEL); | 577 | struct unwind_table *tab = kmalloc_obj(*tab); |
| 578 | 578 | ||
| 579 | pr_debug("%s(%08lx, %08lx, %08lx, %08lx)\n", __func__, start, size, | 579 | pr_debug("%s(%08lx, %08lx, %08lx, %08lx)\n", __func__, start, size, |
| 580 | text_addr, text_size); | 580 | text_addr, text_size); |
| @@ -179,7 +179,7 @@ static int __init vdso_init(void) · 178 unmodified lines | |||
| 179 | text_pages = (vdso_end - vdso_start) >> PAGE_SHIFT; | 179 | text_pages = (vdso_end - vdso_start) >> PAGE_SHIFT; |
| 180 | 180 | ||
| 181 | /* Allocate the VDSO text pagelist */ | 181 | /* Allocate the VDSO text pagelist */ |
| 182 | vdso_text_pagelist = kzalloc_objs(struct page *, text_pages, GFP_KERNEL); | 182 | vdso_text_pagelist = kzalloc_objs(struct page *, text_pages); |
| 183 | if (vdso_text_pagelist == NULL) | 183 | if (vdso_text_pagelist == NULL) |
| 184 | return -ENOMEM; | 184 | return -ENOMEM; |
| 185 | 185 | ||
| @@ -262,7 +262,7 @@ int __init dc21285_setup(int nr, struct pci_sys_data *sys) · 261 unmodified lines | |||
| 262 | { | 262 | { |
| 263 | struct resource *res; | 263 | struct resource *res; |
| 264 | 264 | ||
| 265 | res = kzalloc_objs(struct resource, 2, GFP_KERNEL); | 265 | res = kzalloc_objs(struct resource, 2); |
| 266 | if (!res) { | 266 | if (!res) { |
| 267 | printk("out of memory for root bus resources"); | 267 | printk("out of memory for root bus resources"); |
| 268 | return 0; | 268 | return 0; |
| @@ -84,7 +84,7 @@ static int __init ebsa285_leds_init(void) · 83 unmodified lines | |||
| 84 | for (i = 0; i < ARRAY_SIZE(ebsa285_leds); i++) { | 84 | for (i = 0; i < ARRAY_SIZE(ebsa285_leds); i++) { |
| 85 | struct ebsa285_led *led; | 85 | struct ebsa285_led *led; |
| 86 | 86 | ||
| 87 | led = kzalloc_obj(*led, GFP_KERNEL); | 87 | led = kzalloc_obj(*led); |
| 88 | if (!led) | 88 | if (!led) |
| 89 | break; | 89 | break; |
| 90 | 90 | ||
| @@ -727,7 +727,7 @@ static int __init netwinder_leds_init(void) · 726 unmodified lines | |||
| 727 | for (i = 0; i < ARRAY_SIZE(netwinder_leds); i++) { | 727 | for (i = 0; i < ARRAY_SIZE(netwinder_leds); i++) { |
| 728 | struct netwinder_led *led; | 728 | struct netwinder_led *led; |
| 729 | 729 | ||
| 730 | led = kzalloc_obj(*led, GFP_KERNEL); | 730 | led = kzalloc_obj(*led); |
| 731 | if (!led) | 731 | if (!led) |
| 732 | break; | 732 | break; |
| 733 | 733 | ||
| @@ -477,7 +477,7 @@ static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_b · 476 unmodified lines | |||
| 477 | char *name; | 477 | char *name; |
| 478 | int ret; | 478 | int ret; |
| 479 | 479 | ||
| 480 | pmu_mmdc = kzalloc_obj(*pmu_mmdc, GFP_KERNEL); | 480 | pmu_mmdc = kzalloc_obj(*pmu_mmdc); |
| 481 | if (!pmu_mmdc) { | 481 | if (!pmu_mmdc) { |
| 482 | pr_err("failed to allocate PMU device!\n"); | 482 | pr_err("failed to allocate PMU device!\n"); |
| 483 | return -ENOMEM; | 483 | return -ENOMEM; |
| @@ -127,7 +127,7 @@ static void __init i2c_quirk(void) · 126 unmodified lines | |||
| 127 | for_each_compatible_node(np, NULL, "marvell,mv78230-i2c") { | 127 | for_each_compatible_node(np, NULL, "marvell,mv78230-i2c") { |
| 128 | struct property *new_compat; | 128 | struct property *new_compat; |
| 129 | 129 | ||
| 130 | new_compat = kzalloc_obj(*new_compat, GFP_KERNEL); | 130 | new_compat = kzalloc_obj(*new_compat); |
| 131 | 131 | ||
| 132 | new_compat->name = kstrdup("compatible", GFP_KERNEL); | 132 | new_compat->name = kstrdup("compatible", GFP_KERNEL); |
| 133 | new_compat->length = sizeof("marvell,mv78230-a0-i2c"); | 133 | new_compat->length = sizeof("marvell,mv78230-a0-i2c"); |
| @@ -190,7 +190,7 @@ static void __init armada_375_380_coherency_init(struct device_node *np) · 189 unmodified lines | |||
| 190 | for_each_compatible_node(cache_dn, NULL, "arm,pl310-cache") { | 190 | for_each_compatible_node(cache_dn, NULL, "arm,pl310-cache") { |
| 191 | struct property *p; | 191 | struct property *p; |
| 192 | 192 | ||
| 193 | p = kzalloc_obj(*p, GFP_KERNEL); | 193 | p = kzalloc_obj(*p); |
| 194 | p->name = kstrdup("arm,io-coherent", GFP_KERNEL); | 194 | p->name = kstrdup("arm,io-coherent", GFP_KERNEL); |
| 195 | of_add_property(cache_dn, p); | 195 | of_add_property(cache_dn, p); |
| 196 | } | 196 | } |
| @@ -154,7 +154,7 @@ static int __init mvebu_soc_device(void) · 153 unmodified lines | |||
| 154 | if (!is_id_valid) | 154 | if (!is_id_valid) |
| 155 | return 0; | 155 | return 0; |
| 156 | 156 | ||
| 157 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 157 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 158 | if (!soc_dev_attr) | 158 | if (!soc_dev_attr) |
| 159 | return -ENOMEM; | 159 | return -ENOMEM; |
| 160 | 160 | ||
| @@ -387,7 +387,7 @@ static void __init mxs_machine_init(void) · 386 unmodified lines | |||
| 387 | const u32 *ocotp = mxs_get_ocotp(); | 387 | const u32 *ocotp = mxs_get_ocotp(); |
| 388 | int ret; | 388 | int ret; |
| 389 | 389 | ||
| 390 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 390 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 391 | if (!soc_dev_attr) | 391 | if (!soc_dev_attr) |
| 392 | return; | 392 | return; |
| 393 | 393 | ||
| @@ -319,7 +319,7 @@ static int __init omap1_system_dma_init(void) · 318 unmodified lines | |||
| 319 | goto exit_iounmap; | 319 | goto exit_iounmap; |
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | d = kzalloc_obj(*d, GFP_KERNEL); | 322 | d = kzalloc_obj(*d); |
| 323 | if (!d) { | 323 | if (!d) { |
| 324 | ret = -ENOMEM; | 324 | ret = -ENOMEM; |
| 325 | goto exit_iounmap; | 325 | goto exit_iounmap; |
| @@ -125,7 +125,7 @@ static int __init omap1_dm_timer_init(void) · 124 unmodified lines | |||
| 125 | goto err_free_pdev; | 125 | goto err_free_pdev; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | pdata = kzalloc_obj(*pdata, GFP_KERNEL); | 128 | pdata = kzalloc_obj(*pdata); |
| 129 | if (!pdata) { | 129 | if (!pdata) { |
| 130 | ret = -ENOMEM; | 130 | ret = -ENOMEM; |
| 131 | goto err_free_pdata; | 131 | goto err_free_pdata; |
| @@ -237,7 +237,7 @@ void omap2xxx_clkt_vps_init(void) · 236 unmodified lines | |||
| 237 | omap2xxx_clkt_vps_late_init(); | 237 | omap2xxx_clkt_vps_late_init(); |
| 238 | omap2xxx_clkt_vps_check_bootloader_rates(); | 238 | omap2xxx_clkt_vps_check_bootloader_rates(); |
| 239 | 239 | ||
| 240 | hw = kzalloc_obj(*hw, GFP_KERNEL); | 240 | hw = kzalloc_obj(*hw); |
| 241 | if (!hw) | 241 | if (!hw) |
| 242 | return; | 242 | return; |
| 243 | init.name = "virt_prcm_set"; | 243 | init.name = "virt_prcm_set"; |
| @@ -787,7 +787,7 @@ void __init omap_soc_device_init(void) · 786 unmodified lines | |||
| 787 | struct soc_device *soc_dev; | 787 | struct soc_device *soc_dev; |
| 788 | struct soc_device_attribute *soc_dev_attr; | 788 | struct soc_device_attribute *soc_dev_attr; |
| 789 | 789 | ||
| 790 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 790 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 791 | if (!soc_dev_attr) | 791 | if (!soc_dev_attr) |
| 792 | return; | 792 | return; |
| 793 | 793 | ||
| @@ -99,7 +99,7 @@ static struct powerdomain *_get_pwrdm(struct device *dev) · 98 unmodified lines | |||
| 99 | return NULL; | 99 | return NULL; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | entry = kmalloc_obj(*entry, GFP_KERNEL); | 102 | entry = kmalloc_obj(*entry); |
| 103 | if (entry) { | 103 | if (entry) { |
| 104 | entry->dev = dev; | 104 | entry->dev = dev; |
| 105 | entry->pwrdm = pwrdm; | 105 | entry->pwrdm = pwrdm; |
| @@ -156,7 +156,7 @@ static int omap_device_build_from_dt(struct platform_device *pdev) · 155 unmodified lines | |||
| 156 | !omap_hwmod_parse_module_range(NULL, node, &res)) | 156 | !omap_hwmod_parse_module_range(NULL, node, &res)) |
| 157 | return -ENODEV; | 157 | return -ENODEV; |
| 158 | 158 | ||
| 159 | hwmods = kzalloc_objs(struct omap_hwmod *, oh_cnt, GFP_KERNEL); | 159 | hwmods = kzalloc_objs(struct omap_hwmod *, oh_cnt); |
| 160 | if (!hwmods) { | 160 | if (!hwmods) { |
| 161 | ret = -ENOMEM; | 161 | ret = -ENOMEM; |
| 162 | goto odbfd_exit; | 162 | goto odbfd_exit; |
| @@ -309,7 +309,7 @@ static struct omap_device *omap_device_alloc(struct platform_device *pdev, · 146 unmodified lines | |||
| 309 | int i; | 309 | int i; |
| 310 | struct omap_hwmod **hwmods; | 310 | struct omap_hwmod **hwmods; |
| 311 | 311 | ||
| 312 | od = kzalloc_obj(struct omap_device, GFP_KERNEL); | 312 | od = kzalloc_obj(struct omap_device); |
| 313 | if (!od) | 313 | if (!od) |
| 314 | goto oda_exit1; | 314 | goto oda_exit1; |
| 315 | 315 | ||
| @@ -3392,7 +3392,7 @@ static int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh, · 3391 unmodified lines | |||
| 3392 | void __iomem *regs = NULL; | 3392 | void __iomem *regs = NULL; |
| 3393 | unsigned long flags; | 3393 | unsigned long flags; |
| 3394 | 3394 | ||
| 3395 | sysc = kzalloc_obj(*sysc, GFP_KERNEL); | 3395 | sysc = kzalloc_obj(*sysc); |
| 3396 | if (!sysc) | 3396 | if (!sysc) |
| 3397 | return -ENOMEM; | 3397 | return -ENOMEM; |
| 3398 | 3398 | ||
| @@ -3422,7 +3422,7 @@ static int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh, · 23 unmodified lines | |||
| 3422 | } | 3422 | } |
| 3423 | 3423 | ||
| 3424 | if (list_empty(&oh->slave_ports)) { | 3424 | if (list_empty(&oh->slave_ports)) { |
| 3425 | oi = kzalloc_obj(*oi, GFP_KERNEL); | 3425 | oi = kzalloc_obj(*oi); |
| 3426 | if (!oi) | 3426 | if (!oi) |
| 3427 | goto out_free_class; | 3427 | goto out_free_class; |
| 3428 | 3428 | ||
| @@ -3525,7 +3525,7 @@ int omap_hwmod_init_module(struct device *dev, · 96 unmodified lines | |||
| 3525 | 3525 | ||
| 3526 | oh = _lookup(data->name); | 3526 | oh = _lookup(data->name); |
| 3527 | if (!oh) { | 3527 | if (!oh) { |
| 3528 | oh = kzalloc_obj(*oh, GFP_KERNEL); | 3528 | oh = kzalloc_obj(*oh); |
| 3529 | if (!oh) | 3529 | if (!oh) |
| 3530 | return -ENOMEM; | 3530 | return -ENOMEM; |
| 3531 | 3531 | ||
| @@ -3536,7 +3536,7 @@ int omap_hwmod_init_module(struct device *dev, · 4 unmodified lines | |||
| 3536 | /* Unused, can be handled by PRM driver handling resets */ | 3536 | /* Unused, can be handled by PRM driver handling resets */ |
| 3537 | oh->prcm.omap4.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT; | 3537 | oh->prcm.omap4.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT; |
| 3538 | 3538 | ||
| 3539 | oh->class = kzalloc_obj(*oh->class, GFP_KERNEL); | 3539 | oh->class = kzalloc_obj(*oh->class); |
| 3540 | if (!oh->class) { | 3540 | if (!oh->class) { |
| 3541 | kfree(oh); | 3541 | kfree(oh); |
| 3542 | return -ENOMEM; | 3542 | return -ENOMEM; |
| @@ -410,7 +410,7 @@ static int __init amx3_idle_init(struct device_node *cpu_node, int cpu) · 409 unmodified lines | |||
| 410 | state_count++; | 410 | state_count++; |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | idle_states = kzalloc_objs(*idle_states, state_count, GFP_KERNEL); | 413 | idle_states = kzalloc_objs(*idle_states, state_count); |
| 414 | if (!idle_states) | 414 | if (!idle_states) |
| 415 | return -ENOMEM; | 415 | return -ENOMEM; |
| 416 | 416 | ||
| @@ -39,7 +39,7 @@ static void __init sr_set_nvalues(struct omap_volt_data *volt_data, · 38 unmodified lines | |||
| 39 | while (volt_data[count].volt_nominal) | 39 | while (volt_data[count].volt_nominal) |
| 40 | count++; | 40 | count++; |
| 41 | 41 | ||
| 42 | nvalue_table = kzalloc_objs(*nvalue_table, count, GFP_KERNEL); | 42 | nvalue_table = kzalloc_objs(*nvalue_table, count); |
| 43 | if (!nvalue_table) | 43 | if (!nvalue_table) |
| 44 | return; | 44 | return; |
| 45 | 45 | ||
| @@ -169,7 +169,7 @@ static int __init pcie_setup(struct pci_sys_data *sys) · 168 unmodified lines | |||
| 169 | /* | 169 | /* |
| 170 | * Request resources. | 170 | * Request resources. |
| 171 | */ | 171 | */ |
| 172 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 172 | res = kzalloc_obj(struct resource); |
| 173 | if (!res) | 173 | if (!res) |
| 174 | panic("pcie_setup unable to alloc resources"); | 174 | panic("pcie_setup unable to alloc resources"); |
| 175 | 175 | ||
| @@ -490,7 +490,7 @@ static int __init pci_setup(struct pci_sys_data *sys) · 314 unmodified lines | |||
| 490 | /* | 490 | /* |
| 491 | * Request resources | 491 | * Request resources |
| 492 | */ | 492 | */ |
| 493 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 493 | res = kzalloc_obj(struct resource); |
| 494 | if (!res) | 494 | if (!res) |
| 495 | panic("pci_setup unable to alloc resources"); | 495 | panic("pci_setup unable to alloc resources"); |
| 496 | 496 | ||
| @@ -692,7 +692,7 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot) · 691 unmodified lines | |||
| 692 | unsigned long base; | 692 | unsigned long base; |
| 693 | int i; | 693 | int i; |
| 694 | 694 | ||
| 695 | ec = kzalloc_obj(ecard_t, GFP_KERNEL); | 695 | ec = kzalloc_obj(ecard_t); |
| 696 | if (!ec) { | 696 | if (!ec) { |
| 697 | ec = ERR_PTR(-ENOMEM); | 697 | ec = ERR_PTR(-ENOMEM); |
| 698 | goto nomem; | 698 | goto nomem; |
| @@ -107,7 +107,7 @@ int __init sa11xx_clk_init(void) · 106 unmodified lines | |||
| 107 | 107 | ||
| 108 | clk_hw_register_clkdev(hw, "OSTIMER0", NULL); | 108 | clk_hw_register_clkdev(hw, "OSTIMER0", NULL); |
| 109 | 109 | ||
| 110 | hw = kzalloc_obj(*hw, GFP_KERNEL); | 110 | hw = kzalloc_obj(*hw); |
| 111 | if (!hw) | 111 | if (!hw) |
| 112 | return -ENOMEM; | 112 | return -ENOMEM; |
| 113 | hw->init = &clk_mpll_init_data; | 113 | hw->init = &clk_mpll_init_data; |
| @@ -129,7 +129,7 @@ int __init sa11xx_clk_init(void) · 15 unmodified lines | |||
| 129 | FAlnMsk(TUCR_TSEL), 0, &tucr_lock); | 129 | FAlnMsk(TUCR_TSEL), 0, &tucr_lock); |
| 130 | clk_set_rate(hw->clk, 3686400); | 130 | clk_set_rate(hw->clk, 3686400); |
| 131 | 131 | ||
| 132 | hw = kzalloc_obj(*hw, GFP_KERNEL); | 132 | hw = kzalloc_obj(*hw); |
| 133 | if (!hw) | 133 | if (!hw) |
| 134 | return -ENOMEM; | 134 | return -ENOMEM; |
| 135 | hw->init = &clk_gpio27_init_data; | 135 | hw->init = &clk_gpio27_init_data; |
| @@ -321,7 +321,7 @@ int __init sa11x0_register_fixed_regulator(int n, · 320 unmodified lines | |||
| 321 | { | 321 | { |
| 322 | struct regulator_init_data *id; | 322 | struct regulator_init_data *id; |
| 323 | 323 | ||
| 324 | cfg->init_data = id = kzalloc_obj(*cfg->init_data, GFP_KERNEL); | 324 | cfg->init_data = id = kzalloc_obj(*cfg->init_data); |
| 325 | if (!cfg->init_data) | 325 | if (!cfg->init_data) |
| 326 | return -ENOMEM; | 326 | return -ENOMEM; |
| 327 | 327 | ||
| @@ -276,7 +276,7 @@ static int neponset_probe(struct platform_device *dev) · 275 unmodified lines | |||
| 276 | goto err_alloc; | 276 | goto err_alloc; |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | d = kzalloc_obj(*d, GFP_KERNEL); | 279 | d = kzalloc_obj(*d); |
| 280 | if (!d) { | 280 | if (!d) { |
| 281 | ret = -ENOMEM; | 281 | ret = -ENOMEM; |
| 282 | goto err_alloc; | 282 | goto err_alloc; |
| @@ -164,7 +164,7 @@ static int __init rcar_gen2_regulator_quirk(void) · 163 unmodified lines | |||
| 164 | if (ret) /* Skip invalid entry and continue */ | 164 | if (ret) /* Skip invalid entry and continue */ |
| 165 | continue; | 165 | continue; |
| 166 | 166 | ||
| 167 | quirk = kzalloc_obj(*quirk, GFP_KERNEL); | 167 | quirk = kzalloc_obj(*quirk); |
| 168 | if (!quirk) { | 168 | if (!quirk) { |
| 169 | ret = -ENOMEM; | 169 | ret = -ENOMEM; |
| 170 | of_node_put(np); | 170 | of_node_put(np); |
| @@ -395,7 +395,7 @@ static int ve_spc_populate_opps(uint32_t cluster) · 394 unmodified lines | |||
| 395 | uint32_t data = 0, off, ret, idx; | 395 | uint32_t data = 0, off, ret, idx; |
| 396 | struct ve_spc_opp *opps; | 396 | struct ve_spc_opp *opps; |
| 397 | 397 | ||
| 398 | opps = kzalloc_objs(*opps, MAX_OPPS, GFP_KERNEL); | 398 | opps = kzalloc_objs(*opps, MAX_OPPS); |
| 399 | if (!opps) | 399 | if (!opps) |
| 400 | return -ENOMEM; | 400 | return -ENOMEM; |
| 401 | 401 | ||
| @@ -442,7 +442,7 @@ static int ve_init_opp_table(struct device *cpu_dev) · 40 unmodified lines | |||
| 442 | int __init ve_spc_init(void __iomem *baseaddr, u32 a15_clusid, int irq) | 442 | int __init ve_spc_init(void __iomem *baseaddr, u32 a15_clusid, int irq) |
| 443 | { | 443 | { |
| 444 | int ret; | 444 | int ret; |
| 445 | info = kzalloc_obj(*info, GFP_KERNEL); | 445 | info = kzalloc_obj(*info); |
| 446 | if (!info) | 446 | if (!info) |
| 447 | return -ENOMEM; | 447 | return -ENOMEM; |
| 448 | 448 | ||
| @@ -525,7 +525,7 @@ static struct clk *ve_spc_clk_register(struct device *cpu_dev) · 76 unmodified lines | |||
| 525 | struct clk_init_data init; | 525 | struct clk_init_data init; |
| 526 | struct clk_spc *spc; | 526 | struct clk_spc *spc; |
| 527 | 527 | ||
| 528 | spc = kzalloc_obj(*spc, GFP_KERNEL); | 528 | spc = kzalloc_obj(*spc); |
| 529 | if (!spc) | 529 | if (!spc) |
| 530 | return ERR_PTR(-ENOMEM); | 530 | return ERR_PTR(-ENOMEM); |
| 531 | 531 | ||
| @@ -142,7 +142,7 @@ static void __init versatile_dt_pci_init(void) · 141 unmodified lines | |||
| 142 | goto out_put_node; | 142 | goto out_put_node; |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | newprop = kzalloc_obj(*newprop, GFP_KERNEL); | 145 | newprop = kzalloc_obj(*newprop); |
| 146 | if (!newprop) | 146 | if (!newprop) |
| 147 | goto out_put_node; | 147 | goto out_put_node; |
| 148 | 148 | ||
| @@ -108,7 +108,7 @@ static void __init zynq_init_machine(void) · 107 unmodified lines | |||
| 108 | struct soc_device *soc_dev; | 108 | struct soc_device *soc_dev; |
| 109 | struct device *parent = NULL; | 109 | struct device *parent = NULL; |
| 110 | 110 | ||
| 111 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 111 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 112 | if (!soc_dev_attr) | 112 | if (!soc_dev_attr) |
| 113 | goto out; | 113 | goto out; |
| 114 | 114 | ||
| @@ -507,7 +507,7 @@ static __init int l2x0_pmu_init(void) · 506 unmodified lines | |||
| 507 | if (!l2x0_base) | 507 | if (!l2x0_base) |
| 508 | return 0; | 508 | return 0; |
| 509 | 509 | ||
| 510 | l2x0_pmu = kzalloc_obj(*l2x0_pmu, GFP_KERNEL); | 510 | l2x0_pmu = kzalloc_obj(*l2x0_pmu); |
| 511 | if (!l2x0_pmu) { | 511 | if (!l2x0_pmu) { |
| 512 | pr_warn("Unable to allocate L2x0 PMU\n"); | 512 | pr_warn("Unable to allocate L2x0 PMU\n"); |
| 513 | return -ENOMEM; | 513 | return -ENOMEM; |
| @@ -342,7 +342,7 @@ static int __init __uniphier_cache_init(struct device_node *np, · 341 unmodified lines | |||
| 342 | return -EINVAL; | 342 | return -EINVAL; |
| 343 | } | 343 | } |
| 344 | 344 | ||
| 345 | data = kzalloc_obj(*data, GFP_KERNEL); | 345 | data = kzalloc_obj(*data); |
| 346 | if (!data) | 346 | if (!data) |
| 347 | return -ENOMEM; | 347 | return -ENOMEM; |
| 348 | 348 | ||
| @@ -1504,7 +1504,7 @@ arm_iommu_create_mapping(struct device *dev, dma_addr_t base, u64 size) · 1503 unmodified lines | |||
| 1504 | bitmap_size = PAGE_SIZE; | 1504 | bitmap_size = PAGE_SIZE; |
| 1505 | } | 1505 | } |
| 1506 | 1506 | ||
| 1507 | mapping = kzalloc_obj(struct dma_iommu_mapping, GFP_KERNEL); | 1507 | mapping = kzalloc_obj(struct dma_iommu_mapping); |
| 1508 | if (!mapping) | 1508 | if (!mapping) |
| 1509 | goto err; | 1509 | goto err; |
| 1510 | 1510 | ||
| @@ -339,7 +339,7 @@ int __init arch_xen_unpopulated_init(struct resource **res) · 338 unmodified lines | |||
| 339 | return -EINVAL; | 339 | return -EINVAL; |
| 340 | } | 340 | } |
| 341 | 341 | ||
| 342 | regs = kzalloc_objs(*regs, nr_reg, GFP_KERNEL); | 342 | regs = kzalloc_objs(*regs, nr_reg); |
| 343 | if (!regs) { | 343 | if (!regs) { |
| 344 | of_node_put(np); | 344 | of_node_put(np); |
| 345 | return -ENOMEM; | 345 | return -ENOMEM; |
| @@ -383,7 +383,7 @@ int __init arch_xen_unpopulated_init(struct resource **res) · 37 unmodified lines | |||
| 383 | start = regs[i - 1].end + 1; | 383 | start = regs[i - 1].end + 1; |
| 384 | end = regs[i].start - 1; | 384 | end = regs[i].start - 1; |
| 385 | 385 | ||
| 386 | tmp_res = kzalloc_obj(*tmp_res, GFP_KERNEL); | 386 | tmp_res = kzalloc_obj(*tmp_res); |
| 387 | if (!tmp_res) { | 387 | if (!tmp_res) { |
| 388 | rc = -ENOMEM; | 388 | rc = -ENOMEM; |
| 389 | goto err; | 389 | goto err; |
| @@ -487,7 +487,7 @@ static int share_pfn_hyp(u64 pfn) · 486 unmodified lines | |||
| 487 | goto unlock; | 487 | goto unlock; |
| 488 | } | 488 | } |
| 489 | 489 | ||
| 490 | this = kzalloc_obj(*this, GFP_KERNEL); | 490 | this = kzalloc_obj(*this); |
| 491 | if (!this) { | 491 | if (!this) { |
| 492 | ret = -ENOMEM; | 492 | ret = -ENOMEM; |
| 493 | goto unlock; | 493 | goto unlock; |
| @@ -2329,7 +2329,7 @@ int __init kvm_mmu_init(u32 hyp_va_bits) · 1835 unmodified lines | |||
| 2329 | goto out; | 2329 | goto out; |
| 2330 | } | 2330 | } |
| 2331 | 2331 | ||
| 2332 | hyp_pgtable = kzalloc_obj(*hyp_pgtable, GFP_KERNEL); | 2332 | hyp_pgtable = kzalloc_obj(*hyp_pgtable); |
| 2333 | if (!hyp_pgtable) { | 2333 | if (!hyp_pgtable) { |
| 2334 | kvm_err("Hyp mode page-table not allocated\n"); | 2334 | kvm_err("Hyp mode page-table not allocated\n"); |
| 2335 | err = -ENOMEM; | 2335 | err = -ENOMEM; |
| @@ -797,7 +797,7 @@ void kvm_host_pmu_init(struct arm_pmu *pmu) · 796 unmodified lines | |||
| 797 | 797 | ||
| 798 | guard(mutex)(&arm_pmus_lock); | 798 | guard(mutex)(&arm_pmus_lock); |
| 799 | 799 | ||
| 800 | entry = kmalloc_obj(*entry, GFP_KERNEL); | 800 | entry = kmalloc_obj(*entry); |
| 801 | if (!entry) | 801 | if (!entry) |
| 802 | return; | 802 | return; |
| 803 | 803 | ||
| @@ -104,7 +104,7 @@ static void *vgic_debug_start(struct seq_file *s, loff_t *pos) · 103 unmodified lines | |||
| 104 | struct kvm *kvm = s->private; | 104 | struct kvm *kvm = s->private; |
| 105 | struct vgic_state_iter *iter; | 105 | struct vgic_state_iter *iter; |
| 106 | 106 | ||
| 107 | iter = kmalloc_obj(*iter, GFP_KERNEL); | 107 | iter = kmalloc_obj(*iter); |
| 108 | if (!iter) | 108 | if (!iter) |
| 109 | return ERR_PTR(-ENOMEM); | 109 | return ERR_PTR(-ENOMEM); |
| 110 | 110 | ||
| @@ -375,7 +375,7 @@ static void *vgic_its_debug_start(struct seq_file *s, loff_t *pos) · 264 unmodified lines | |||
| 375 | if (!dev) | 375 | if (!dev) |
| 376 | return NULL; | 376 | return NULL; |
| 377 | 377 | ||
| 378 | iter = kmalloc_obj(*iter, GFP_KERNEL); | 378 | iter = kmalloc_obj(*iter); |
| 379 | if (!iter) | 379 | if (!iter) |
| 380 | return ERR_PTR(-ENOMEM); | 380 | return ERR_PTR(-ENOMEM); |
| 381 | 381 | ||
| @@ -654,7 +654,7 @@ static struct gic_kvm_info *gic_kvm_info; · 653 unmodified lines | |||
| 654 | void __init vgic_set_kvm_info(const struct gic_kvm_info *info) | 654 | void __init vgic_set_kvm_info(const struct gic_kvm_info *info) |
| 655 | { | 655 | { |
| 656 | BUG_ON(gic_kvm_info != NULL); | 656 | BUG_ON(gic_kvm_info != NULL); |
| 657 | gic_kvm_info = kmalloc_obj(*gic_kvm_info, GFP_KERNEL); | 657 | gic_kvm_info = kmalloc_obj(*gic_kvm_info); |
| 658 | if (gic_kvm_info) | 658 | if (gic_kvm_info) |
| 659 | *gic_kvm_info = *info; | 659 | *gic_kvm_info = *info; |
| 660 | } | 660 | } |
| @@ -2040,7 +2040,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 2039 unmodified lines | |||
| 2040 | 2040 | ||
| 2041 | jit_data = prog->aux->jit_data; | 2041 | jit_data = prog->aux->jit_data; |
| 2042 | if (!jit_data) { | 2042 | if (!jit_data) { |
| 2043 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 2043 | jit_data = kzalloc_obj(*jit_data); |
| 2044 | if (!jit_data) { | 2044 | if (!jit_data) { |
| 2045 | prog = orig_prog; | 2045 | prog = orig_prog; |
| 2046 | goto out; | 2046 | goto out; |
| @@ -2078,7 +2078,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 31 unmodified lines | |||
| 2078 | memset(&ctx, 0, sizeof(ctx)); | 2078 | memset(&ctx, 0, sizeof(ctx)); |
| 2079 | ctx.prog = prog; | 2079 | ctx.prog = prog; |
| 2080 | 2080 | ||
| 2081 | ctx.offset = kvzalloc_objs(int, prog->len + 1, GFP_KERNEL); | 2081 | ctx.offset = kvzalloc_objs(int, prog->len + 1); |
| 2082 | if (ctx.offset == NULL) { | 2082 | if (ctx.offset == NULL) { |
| 2083 | prog = orig_prog; | 2083 | prog = orig_prog; |
| 2084 | goto out_off; | 2084 | goto out_off; |
| @@ -20,7 +20,7 @@ static int __init vdso_init(void) · 19 unmodified lines | |||
| 20 | 20 | ||
| 21 | vdso_pages = (vdso_end - vdso_start) >> PAGE_SHIFT; | 21 | vdso_pages = (vdso_end - vdso_start) >> PAGE_SHIFT; |
| 22 | vdso_pagelist = | 22 | vdso_pagelist = |
| 23 | kzalloc_objs(struct page *, vdso_pages, GFP_KERNEL); | 23 | kzalloc_objs(struct page *, vdso_pages); |
| 24 | if (unlikely(vdso_pagelist == NULL)) { | 24 | if (unlikely(vdso_pagelist == NULL)) { |
| 25 | pr_err("vdso: pagelist allocation failed\n"); | 25 | pr_err("vdso: pagelist allocation failed\n"); |
| 26 | return -ENOMEM; | 26 | return -ENOMEM; |
| @@ -622,7 +622,7 @@ static int kvm_eiointc_create(struct kvm_device *dev, u32 type) · 621 unmodified lines | |||
| 622 | if (kvm->arch.eiointc) | 622 | if (kvm->arch.eiointc) |
| 623 | return -EINVAL; | 623 | return -EINVAL; |
| 624 | 624 | ||
| 625 | s = kzalloc_obj(struct loongarch_eiointc, GFP_KERNEL); | 625 | s = kzalloc_obj(struct loongarch_eiointc); |
| 626 | if (!s) | 626 | if (!s) |
| 627 | return -ENOMEM; | 627 | return -ENOMEM; |
| 628 | 628 | ||
| @@ -409,7 +409,7 @@ static int kvm_ipi_create(struct kvm_device *dev, u32 type) · 408 unmodified lines | |||
| 409 | return -EINVAL; | 409 | return -EINVAL; |
| 410 | } | 410 | } |
| 411 | 411 | ||
| 412 | s = kzalloc_obj(struct loongarch_ipi, GFP_KERNEL); | 412 | s = kzalloc_obj(struct loongarch_ipi); |
| 413 | if (!s) | 413 | if (!s) |
| 414 | return -ENOMEM; | 414 | return -ENOMEM; |
| 415 | 415 | ||
| @@ -402,7 +402,7 @@ static int kvm_setup_default_irq_routing(struct kvm *kvm) · 401 unmodified lines | |||
| 402 | u32 nr = KVM_IRQCHIP_NUM_PINS; | 402 | u32 nr = KVM_IRQCHIP_NUM_PINS; |
| 403 | struct kvm_irq_routing_entry *entries; | 403 | struct kvm_irq_routing_entry *entries; |
| 404 | 404 | ||
| 405 | entries = kzalloc_objs(*entries, nr, GFP_KERNEL); | 405 | entries = kzalloc_objs(*entries, nr); |
| 406 | if (!entries) | 406 | if (!entries) |
| 407 | return -ENOMEM; | 407 | return -ENOMEM; |
| 408 | 408 | ||
| @@ -432,7 +432,7 @@ static int kvm_pch_pic_create(struct kvm_device *dev, u32 type) · 23 unmodified lines | |||
| 432 | if (ret) | 432 | if (ret) |
| 433 | return -ENOMEM; | 433 | return -ENOMEM; |
| 434 | 434 | ||
| 435 | s = kzalloc_obj(struct loongarch_pch_pic, GFP_KERNEL); | 435 | s = kzalloc_obj(struct loongarch_pch_pic); |
| 436 | if (!s) | 436 | if (!s) |
| 437 | return -ENOMEM; | 437 | return -ENOMEM; |
| 438 | 438 | ||
| @@ -358,7 +358,7 @@ static int kvm_loongarch_env_init(void) · 357 unmodified lines | |||
| 358 | return -ENOMEM; | 358 | return -ENOMEM; |
| 359 | } | 359 | } |
| 360 | 360 | ||
| 361 | kvm_loongarch_ops = kzalloc_obj(*kvm_loongarch_ops, GFP_KERNEL); | 361 | kvm_loongarch_ops = kzalloc_obj(*kvm_loongarch_ops); |
| 362 | if (!kvm_loongarch_ops) { | 362 | if (!kvm_loongarch_ops) { |
| 363 | free_percpu(vmcs); | 363 | free_percpu(vmcs); |
| 364 | vmcs = NULL; | 364 | vmcs = NULL; |
| @@ -1547,7 +1547,7 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) · 1546 unmodified lines | |||
| 1547 | 1547 | ||
| 1548 | vcpu->arch.handle_exit = kvm_handle_exit; | 1548 | vcpu->arch.handle_exit = kvm_handle_exit; |
| 1549 | vcpu->arch.guest_eentry = (unsigned long)kvm_loongarch_ops->exc_entry; | 1549 | vcpu->arch.guest_eentry = (unsigned long)kvm_loongarch_ops->exc_entry; |
| 1550 | vcpu->arch.csr = kzalloc_obj(struct loongarch_csrs, GFP_KERNEL); | 1550 | vcpu->arch.csr = kzalloc_obj(struct loongarch_csrs); |
| 1551 | if (!vcpu->arch.csr) | 1551 | if (!vcpu->arch.csr) |
| 1552 | return -ENOMEM; | 1552 | return -ENOMEM; |
| 1553 | 1553 | ||
| @@ -1943,7 +1943,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 1942 unmodified lines | |||
| 1943 | 1943 | ||
| 1944 | jit_data = prog->aux->jit_data; | 1944 | jit_data = prog->aux->jit_data; |
| 1945 | if (!jit_data) { | 1945 | if (!jit_data) { |
| 1946 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 1946 | jit_data = kzalloc_obj(*jit_data); |
| 1947 | if (!jit_data) { | 1947 | if (!jit_data) { |
| 1948 | prog = orig_prog; | 1948 | prog = orig_prog; |
| 1949 | goto out; | 1949 | goto out; |
| @@ -101,7 +101,7 @@ static struct pci_config_window *arch_pci_ecam_create(struct device *dev, · 100 unmodified lines | |||
| 101 | if (busr->start > busr->end) | 101 | if (busr->start > busr->end) |
| 102 | return ERR_PTR(-EINVAL); | 102 | return ERR_PTR(-EINVAL); |
| 103 | 103 | ||
| 104 | cfg = kzalloc_obj(*cfg, GFP_KERNEL); | 104 | cfg = kzalloc_obj(*cfg); |
| 105 | if (!cfg) | 105 | if (!cfg) |
| 106 | return ERR_PTR(-ENOMEM); | 106 | return ERR_PTR(-ENOMEM); |
| 107 | 107 | ||
| @@ -199,13 +199,13 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) · 91 unmodified lines | |||
| 199 | int domain = root->segment; | 199 | int domain = root->segment; |
| 200 | int busnum = root->secondary.start; | 200 | int busnum = root->secondary.start; |
| 201 | 201 | ||
| 202 | info = kzalloc_obj(*info, GFP_KERNEL); | 202 | info = kzalloc_obj(*info); |
| 203 | if (!info) { | 203 | if (!info) { |
| 204 | pr_warn("pci_bus %04x:%02x: ignored (out of memory)\n", domain, busnum); | 204 | pr_warn("pci_bus %04x:%02x: ignored (out of memory)\n", domain, busnum); |
| 205 | return NULL; | 205 | return NULL; |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | root_ops = kzalloc_obj(*root_ops, GFP_KERNEL); | 208 | root_ops = kzalloc_obj(*root_ops); |
| 209 | if (!root_ops) { | 209 | if (!root_ops) { |
| 210 | kfree(info); | 210 | kfree(info); |
| 211 | return NULL; | 211 | return NULL; |
| @@ -47,7 +47,7 @@ void *amiga_chip_alloc(unsigned long size, const char *name) · 46 unmodified lines | |||
| 47 | struct resource *res; | 47 | struct resource *res; |
| 48 | void *p; | 48 | void *p; |
| 49 | 49 | ||
| 50 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 50 | res = kzalloc_obj(struct resource); |
| 51 | if (!res) | 51 | if (!res) |
| 52 | return NULL; | 52 | return NULL; |
| 53 | 53 | ||
| @@ -161,7 +161,7 @@ void *atari_stram_alloc(unsigned long size, const char *owner) · 160 unmodified lines | |||
| 161 | /* round up */ | 161 | /* round up */ |
| 162 | size = PAGE_ALIGN(size); | 162 | size = PAGE_ALIGN(size); |
| 163 | 163 | ||
| 164 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 164 | res = kzalloc_obj(struct resource); |
| 165 | if (!res) | 165 | if (!res) |
| 166 | return NULL; | 166 | return NULL; |
| 167 | 167 | ||
| @@ -112,7 +112,7 @@ static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) · 111 unmodified lines | |||
| 112 | return -EINVAL; | 112 | return -EINVAL; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | dev = kmalloc_obj(struct nfhd_device, GFP_KERNEL); | 115 | dev = kmalloc_obj(struct nfhd_device); |
| 116 | if (!dev) | 116 | if (!dev) |
| 117 | goto out; | 117 | goto out; |
| 118 | 118 | ||
| @@ -110,7 +110,7 @@ static struct vm_struct *get_io_area(unsigned long size) · 109 unmodified lines | |||
| 110 | unsigned long addr; | 110 | unsigned long addr; |
| 111 | struct vm_struct **p, *tmp, *area; | 111 | struct vm_struct **p, *tmp, *area; |
| 112 | 112 | ||
| 113 | area = kmalloc_obj(*area, GFP_KERNEL); | 113 | area = kmalloc_obj(*area); |
| 114 | if (!area) | 114 | if (!area) |
| 115 | return NULL; | 115 | return NULL; |
| 116 | addr = KMAP_START; | 116 | addr = KMAP_START; |
| @@ -154,7 +154,7 @@ static struct clk __init *alchemy_clk_setup_cpu(const char *parent_name, · 153 unmodified lines | |||
| 154 | struct clk_hw *h; | 154 | struct clk_hw *h; |
| 155 | struct clk *clk; | 155 | struct clk *clk; |
| 156 | 156 | ||
| 157 | h = kzalloc_obj(*h, GFP_KERNEL); | 157 | h = kzalloc_obj(*h); |
| 158 | if (!h) | 158 | if (!h) |
| 159 | return ERR_PTR(-ENOMEM); | 159 | return ERR_PTR(-ENOMEM); |
| 160 | 160 | ||
| @@ -249,7 +249,7 @@ static struct clk __init *alchemy_clk_setup_aux(const char *parent_name, · 88 unmodified lines | |||
| 249 | struct clk *c; | 249 | struct clk *c; |
| 250 | struct alchemy_auxpll_clk *a; | 250 | struct alchemy_auxpll_clk *a; |
| 251 | 251 | ||
| 252 | a = kzalloc_obj(*a, GFP_KERNEL); | 252 | a = kzalloc_obj(*a); |
| 253 | if (!a) | 253 | if (!a) |
| 254 | return ERR_PTR(-ENOMEM); | 254 | return ERR_PTR(-ENOMEM); |
| 255 | 255 | ||
| @@ -775,7 +775,7 @@ static int __init alchemy_clk_init_fgens(int ctype) · 519 unmodified lines | |||
| 775 | } | 775 | } |
| 776 | id.flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE; | 776 | id.flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE; |
| 777 | 777 | ||
| 778 | a = kzalloc_objs(*a, 6, GFP_KERNEL); | 778 | a = kzalloc_objs(*a, 6); |
| 779 | if (!a) | 779 | if (!a) |
| 780 | return -ENOMEM; | 780 | return -ENOMEM; |
| 781 | 781 | ||
| @@ -996,7 +996,7 @@ static int __init alchemy_clk_setup_imux(int ctype) · 214 unmodified lines | |||
| 996 | return -ENODEV; | 996 | return -ENODEV; |
| 997 | } | 997 | } |
| 998 | 998 | ||
| 999 | a = kzalloc_objs(*a, 6, GFP_KERNEL); | 999 | a = kzalloc_objs(*a, 6); |
| 1000 | if (!a) | 1000 | if (!a) |
| 1001 | return -ENOMEM; | 1001 | return -ENOMEM; |
| 1002 | 1002 | ||
| @@ -1057,7 +1057,7 @@ static int __init dbdma_setup(unsigned int irq, dbdev_tab_t *idtable) · 1056 unmodified lines | |||
| 1057 | { | 1057 | { |
| 1058 | int ret; | 1058 | int ret; |
| 1059 | 1059 | ||
| 1060 | dbdev_tab = kzalloc_objs(dbdev_tab_t, DBDEV_TAB_SIZE, GFP_KERNEL); | 1060 | dbdev_tab = kzalloc_objs(dbdev_tab_t, DBDEV_TAB_SIZE); |
| 1061 | if (!dbdev_tab) | 1061 | if (!dbdev_tab) |
| 1062 | return -ENOMEM; | 1062 | return -ENOMEM; |
| 1063 | 1063 | ||
| @@ -202,10 +202,10 @@ static unsigned long alchemy_ehci_data[][2] __initdata = { · 201 unmodified lines | |||
| 202 | 202 | ||
| 203 | static int __init _new_usbres(struct resource **r, struct platform_device **d) | 203 | static int __init _new_usbres(struct resource **r, struct platform_device **d) |
| 204 | { | 204 | { |
| 205 | *r = kzalloc_objs(struct resource, 2, GFP_KERNEL); | 205 | *r = kzalloc_objs(struct resource, 2); |
| 206 | if (!*r) | 206 | if (!*r) |
| 207 | return -ENOMEM; | 207 | return -ENOMEM; |
| 208 | *d = kzalloc_obj(struct platform_device, GFP_KERNEL); | 208 | *d = kzalloc_obj(struct platform_device); |
| 209 | if (!*d) { | 209 | if (!*d) { |
| 210 | kfree(*r); | 210 | kfree(*r); |
| 211 | return -ENOMEM; | 211 | return -ENOMEM; |
| @@ -87,7 +87,7 @@ int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start, · 86 unmodified lines | |||
| 87 | if (stschg_irq) | 87 | if (stschg_irq) |
| 88 | cnt++; | 88 | cnt++; |
| 89 | 89 | ||
| 90 | sr = kzalloc_objs(struct resource, cnt, GFP_KERNEL); | 90 | sr = kzalloc_objs(struct resource, cnt); |
| 91 | if (!sr) | 91 | if (!sr) |
| 92 | return -ENOMEM; | 92 | return -ENOMEM; |
| 93 | 93 | ||
| @@ -162,15 +162,15 @@ int __init db1x_register_norflash(unsigned long size, int width, · 68 unmodified lines | |||
| 162 | return -EINVAL; | 162 | return -EINVAL; |
| 163 | 163 | ||
| 164 | ret = -ENOMEM; | 164 | ret = -ENOMEM; |
| 165 | parts = kzalloc_objs(struct mtd_partition, 5, GFP_KERNEL); | 165 | parts = kzalloc_objs(struct mtd_partition, 5); |
| 166 | if (!parts) | 166 | if (!parts) |
| 167 | goto out; | 167 | goto out; |
| 168 | 168 | ||
| 169 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 169 | res = kzalloc_obj(struct resource); |
| 170 | if (!res) | 170 | if (!res) |
| 171 | goto out1; | 171 | goto out1; |
| 172 | 172 | ||
| 173 | pfd = kzalloc_obj(struct physmap_flash_data, GFP_KERNEL); | 173 | pfd = kzalloc_obj(struct physmap_flash_data); |
| 174 | if (!pfd) | 174 | if (!pfd) |
| 175 | goto out2; | 175 | goto out2; |
| 176 | 176 | ||
| @@ -187,7 +187,7 @@ static struct device * __init bcm47xx_setup_device(void) · 186 unmodified lines | |||
| 187 | struct device *dev; | 187 | struct device *dev; |
| 188 | int err; | 188 | int err; |
| 189 | 189 | ||
| 190 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 190 | dev = kzalloc_obj(*dev); |
| 191 | if (!dev) | 191 | if (!dev) |
| 192 | return NULL; | 192 | return NULL; |
| 193 | 193 | ||
| @@ -100,7 +100,7 @@ static int octeon_irq_set_ciu_mapping(int irq, int line, int bit, int gpio_line, · 99 unmodified lines | |||
| 100 | { | 100 | { |
| 101 | struct octeon_ciu_chip_data *cd; | 101 | struct octeon_ciu_chip_data *cd; |
| 102 | 102 | ||
| 103 | cd = kzalloc_obj(*cd, GFP_KERNEL); | 103 | cd = kzalloc_obj(*cd); |
| 104 | if (!cd) | 104 | if (!cd) |
| 105 | return -ENOMEM; | 105 | return -ENOMEM; |
| 106 | 106 | ||
| @@ -1462,7 +1462,7 @@ static int __init octeon_irq_init_ciu( · 1355 unmodified lines | |||
| 1462 | struct irq_domain *ciu_domain = NULL; | 1462 | struct irq_domain *ciu_domain = NULL; |
| 1463 | struct octeon_irq_ciu_domain_data *dd; | 1463 | struct octeon_irq_ciu_domain_data *dd; |
| 1464 | 1464 | ||
| 1465 | dd = kzalloc_obj(*dd, GFP_KERNEL); | 1465 | dd = kzalloc_obj(*dd); |
| 1466 | if (!dd) | 1466 | if (!dd) |
| 1467 | return -ENOMEM; | 1467 | return -ENOMEM; |
| 1468 | 1468 | ||
| @@ -1633,7 +1633,7 @@ static int __init octeon_irq_init_gpio( · 164 unmodified lines | |||
| 1633 | return -EINVAL; | 1633 | return -EINVAL; |
| 1634 | } | 1634 | } |
| 1635 | 1635 | ||
| 1636 | gpiod = kzalloc_obj(*gpiod, GFP_KERNEL); | 1636 | gpiod = kzalloc_obj(*gpiod); |
| 1637 | if (gpiod) { | 1637 | if (gpiod) { |
| 1638 | /* gpio domain host_data is the base hwirq number. */ | 1638 | /* gpio domain host_data is the base hwirq number. */ |
| 1639 | gpiod->base_hwirq = base_hwirq; | 1639 | gpiod->base_hwirq = base_hwirq; |
| @@ -2223,7 +2223,7 @@ static int octeon_irq_cib_map(struct irq_domain *d, · 583 unmodified lines | |||
| 2223 | return -EINVAL; | 2223 | return -EINVAL; |
| 2224 | } | 2224 | } |
| 2225 | 2225 | ||
| 2226 | cd = kzalloc_obj(*cd, GFP_KERNEL); | 2226 | cd = kzalloc_obj(*cd); |
| 2227 | if (!cd) | 2227 | if (!cd) |
| 2228 | return -ENOMEM; | 2228 | return -ENOMEM; |
| 2229 | 2229 | ||
| @@ -2304,7 +2304,7 @@ static int __init octeon_irq_init_cib(struct device_node *ciu_node, · 74 unmodified lines | |||
| 2304 | return -EINVAL; | 2304 | return -EINVAL; |
| 2305 | } | 2305 | } |
| 2306 | 2306 | ||
| 2307 | host_data = kzalloc_obj(*host_data, GFP_KERNEL); | 2307 | host_data = kzalloc_obj(*host_data); |
| 2308 | if (!host_data) | 2308 | if (!host_data) |
| 2309 | return -ENOMEM; | 2309 | return -ENOMEM; |
| 2310 | raw_spin_lock_init(&host_data->lock); | 2310 | raw_spin_lock_init(&host_data->lock); |
| @@ -72,7 +72,7 @@ static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, · 71 unmodified lines | |||
| 72 | * the carry we need to add. Save the information, and let LO16 do the | 72 | * the carry we need to add. Save the information, and let LO16 do the |
| 73 | * actual relocation. | 73 | * actual relocation. |
| 74 | */ | 74 | */ |
| 75 | n = kmalloc_obj(*n, GFP_KERNEL); | 75 | n = kmalloc_obj(*n); |
| 76 | if (!n) | 76 | if (!n) |
| 77 | return -ENOMEM; | 77 | return -ENOMEM; |
| 78 | 78 | ||
| @@ -352,7 +352,7 @@ static void __init cps_prepare_cpus(unsigned int max_cpus) · 351 unmodified lines | |||
| 352 | for (cl = 0; cl < nclusters; cl++) { | 352 | for (cl = 0; cl < nclusters; cl++) { |
| 353 | /* Allocate core boot configuration structs */ | 353 | /* Allocate core boot configuration structs */ |
| 354 | ncores = mips_cps_numcores(cl); | 354 | ncores = mips_cps_numcores(cl); |
| 355 | core_bootcfg = kzalloc_objs(*core_bootcfg, ncores, GFP_KERNEL); | 355 | core_bootcfg = kzalloc_objs(*core_bootcfg, ncores); |
| 356 | if (!core_bootcfg) | 356 | if (!core_bootcfg) |
| 357 | goto err_out; | 357 | goto err_out; |
| 358 | mips_cps_cluster_bootcfg[cl].core_config = core_bootcfg; | 358 | mips_cps_cluster_bootcfg[cl].core_config = core_bootcfg; |
| @@ -94,7 +94,7 @@ struct vpe *alloc_vpe(int minor) · 93 unmodified lines | |||
| 94 | { | 94 | { |
| 95 | struct vpe *v; | 95 | struct vpe *v; |
| 96 | 96 | ||
| 97 | v = kzalloc_obj(struct vpe, GFP_KERNEL); | 97 | v = kzalloc_obj(struct vpe); |
| 98 | if (v == NULL) | 98 | if (v == NULL) |
| 99 | goto out; | 99 | goto out; |
| 100 | 100 | ||
| @@ -115,7 +115,7 @@ struct tc *alloc_tc(int index) · 14 unmodified lines | |||
| 115 | { | 115 | { |
| 116 | struct tc *tc; | 116 | struct tc *tc; |
| 117 | 117 | ||
| 118 | tc = kzalloc_obj(struct tc, GFP_KERNEL); | 118 | tc = kzalloc_obj(struct tc); |
| 119 | if (tc == NULL) | 119 | if (tc == NULL) |
| 120 | goto out; | 120 | goto out; |
| 121 | 121 | ||
| @@ -318,7 +318,7 @@ static int apply_r_mips_hi16(struct module *me, uint32_t *location, · 196 unmodified lines | |||
| 318 | * the carry we need to add. Save the information, and let LO16 do the | 318 | * the carry we need to add. Save the information, and let LO16 do the |
| 319 | * actual relocation. | 319 | * actual relocation. |
| 320 | */ | 320 | */ |
| 321 | n = kmalloc_obj(*n, GFP_KERNEL); | 321 | n = kmalloc_obj(*n); |
| 322 | if (!n) | 322 | if (!n) |
| 323 | return -ENOMEM; | 323 | return -ENOMEM; |
| 324 | 324 | ||
| @@ -161,7 +161,7 @@ static void falcon_gpe_enable(void) · 160 unmodified lines | |||
| 161 | static inline void clkdev_add_sys(const char *dev, unsigned int module, | 161 | static inline void clkdev_add_sys(const char *dev, unsigned int module, |
| 162 | unsigned int bits) | 162 | unsigned int bits) |
| 163 | { | 163 | { |
| 164 | struct clk *clk = kzalloc_obj(struct clk, GFP_KERNEL); | 164 | struct clk *clk = kzalloc_obj(struct clk); |
| 165 | 165 | ||
| 166 | if (!clk) | 166 | if (!clk) |
| 167 | return; | 167 | return; |
| @@ -121,7 +121,7 @@ static void gptu_disable(struct clk *clk) · 120 unmodified lines | |||
| 121 | static inline void clkdev_add_gptu(struct device *dev, const char *con, | 121 | static inline void clkdev_add_gptu(struct device *dev, const char *con, |
| 122 | unsigned int timer) | 122 | unsigned int timer) |
| 123 | { | 123 | { |
| 124 | struct clk *clk = kzalloc_obj(struct clk, GFP_KERNEL); | 124 | struct clk *clk = kzalloc_obj(struct clk); |
| 125 | 125 | ||
| 126 | if (!clk) | 126 | if (!clk) |
| 127 | return; | 127 | return; |
| @@ -331,7 +331,7 @@ static int clkout_enable(struct clk *clk) · 330 unmodified lines | |||
| 331 | static void clkdev_add_pmu(const char *dev, const char *con, bool deactivate, | 331 | static void clkdev_add_pmu(const char *dev, const char *con, bool deactivate, |
| 332 | unsigned int module, unsigned int bits) | 332 | unsigned int module, unsigned int bits) |
| 333 | { | 333 | { |
| 334 | struct clk *clk = kzalloc_obj(struct clk, GFP_KERNEL); | 334 | struct clk *clk = kzalloc_obj(struct clk); |
| 335 | 335 | ||
| 336 | if (!clk) | 336 | if (!clk) |
| 337 | return; | 337 | return; |
| @@ -356,7 +356,7 @@ static void clkdev_add_pmu(const char *dev, const char *con, bool deactivate, · 18 unmodified lines | |||
| 356 | static void clkdev_add_cgu(const char *dev, const char *con, | 356 | static void clkdev_add_cgu(const char *dev, const char *con, |
| 357 | unsigned int bits) | 357 | unsigned int bits) |
| 358 | { | 358 | { |
| 359 | struct clk *clk = kzalloc_obj(struct clk, GFP_KERNEL); | 359 | struct clk *clk = kzalloc_obj(struct clk); |
| 360 | 360 | ||
| 361 | if (!clk) | 361 | if (!clk) |
| 362 | return; | 362 | return; |
| @@ -374,8 +374,8 @@ static unsigned long valid_pci_rates[] = {CLOCK_33M, CLOCK_62_5M, 0}; · 11 unmodified lines | |||
| 374 | 374 | ||
| 375 | static void clkdev_add_pci(void) | 375 | static void clkdev_add_pci(void) |
| 376 | { | 376 | { |
| 377 | struct clk *clk = kzalloc_obj(struct clk, GFP_KERNEL); | 377 | struct clk *clk = kzalloc_obj(struct clk); |
| 378 | struct clk *clk_ext = kzalloc_obj(struct clk, GFP_KERNEL); | 378 | struct clk *clk_ext = kzalloc_obj(struct clk); |
| 379 | 379 | ||
| 380 | /* main pci clock */ | 380 | /* main pci clock */ |
| 381 | if (clk) { | 381 | if (clk) { |
| @@ -423,7 +423,7 @@ static void clkdev_add_clkout(void) · 41 unmodified lines | |||
| 423 | continue; | 423 | continue; |
| 424 | sprintf(name, "clkout%d", i); | 424 | sprintf(name, "clkout%d", i); |
| 425 | 425 | ||
| 426 | clk = kzalloc_obj(struct clk, GFP_KERNEL); | 426 | clk = kzalloc_obj(struct clk); |
| 427 | if (!clk) { | 427 | if (!clk) { |
| 428 | kfree(name); | 428 | kfree(name); |
| 429 | continue; | 429 | continue; |
| @@ -380,7 +380,7 @@ static int alchemy_pci_probe(struct platform_device *pdev) · 379 unmodified lines | |||
| 380 | goto out; | 380 | goto out; |
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 383 | ctx = kzalloc_obj(*ctx); |
| 384 | if (!ctx) { | 384 | if (!ctx) { |
| 385 | dev_err(&pdev->dev, "no memory for pcictl context\n"); | 385 | dev_err(&pdev->dev, "no memory for pcictl context\n"); |
| 386 | ret = -ENOMEM; | 386 | ret = -ENOMEM; |
| @@ -341,7 +341,7 @@ static int bridge_domain_alloc(struct irq_domain *domain, unsigned int virq, · 340 unmodified lines | |||
| 341 | if (nr_irqs > 1 || !info) | 341 | if (nr_irqs > 1 || !info) |
| 342 | return -EINVAL; | 342 | return -EINVAL; |
| 343 | 343 | ||
| 344 | data = kzalloc_obj(*data, GFP_KERNEL); | 344 | data = kzalloc_obj(*data); |
| 345 | if (!data) | 345 | if (!data) |
| 346 | return -ENOMEM; | 346 | return -ENOMEM; |
| 347 | 347 | ||
| @@ -198,7 +198,7 @@ static int __init mt7620_soc_dev_init(void) · 197 unmodified lines | |||
| 198 | struct soc_device *soc_dev; | 198 | struct soc_device *soc_dev; |
| 199 | struct soc_device_attribute *soc_dev_attr; | 199 | struct soc_device_attribute *soc_dev_attr; |
| 200 | 200 | ||
| 201 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 201 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 202 | if (!soc_dev_attr) | 202 | if (!soc_dev_attr) |
| 203 | return -ENOMEM; | 203 | return -ENOMEM; |
| 204 | 204 | ||
| @@ -144,7 +144,7 @@ static int __init mt7621_soc_dev_init(void) · 143 unmodified lines | |||
| 144 | struct soc_device *soc_dev; | 144 | struct soc_device *soc_dev; |
| 145 | struct soc_device_attribute *soc_dev_attr; | 145 | struct soc_device_attribute *soc_dev_attr; |
| 146 | 146 | ||
| 147 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 147 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 148 | if (!soc_dev_attr) | 148 | if (!soc_dev_attr) |
| 149 | return -ENOMEM; | 149 | return -ENOMEM; |
| 150 | 150 | ||
| @@ -68,7 +68,7 @@ static int __init rt2880_soc_dev_init(void) · 67 unmodified lines | |||
| 68 | struct soc_device *soc_dev; | 68 | struct soc_device *soc_dev; |
| 69 | struct soc_device_attribute *soc_dev_attr; | 69 | struct soc_device_attribute *soc_dev_attr; |
| 70 | 70 | ||
| 71 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 71 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 72 | if (!soc_dev_attr) | 72 | if (!soc_dev_attr) |
| 73 | return -ENOMEM; | 73 | return -ENOMEM; |
| 74 | 74 | ||
| @@ -171,7 +171,7 @@ static int __init rt305x_soc_dev_init(void) · 170 unmodified lines | |||
| 171 | struct soc_device *soc_dev; | 171 | struct soc_device *soc_dev; |
| 172 | struct soc_device_attribute *soc_dev_attr; | 172 | struct soc_device_attribute *soc_dev_attr; |
| 173 | 173 | ||
| 174 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 174 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 175 | if (!soc_dev_attr) | 175 | if (!soc_dev_attr) |
| 176 | return -ENOMEM; | 176 | return -ENOMEM; |
| 177 | 177 | ||
| @@ -68,7 +68,7 @@ static int __init rt3883_soc_dev_init(void) · 67 unmodified lines | |||
| 68 | struct soc_device *soc_dev; | 68 | struct soc_device *soc_dev; |
| 69 | struct soc_device_attribute *soc_dev_attr; | 69 | struct soc_device_attribute *soc_dev_attr; |
| 70 | 70 | ||
| 71 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 71 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 72 | if (!soc_dev_attr) | 72 | if (!soc_dev_attr) |
| 73 | return -ENOMEM; | 73 | return -ENOMEM; |
| 74 | 74 | ||
| @@ -361,7 +361,7 @@ static void ip22_check_gio(int slotno, unsigned long addr, int irq) · 360 unmodified lines | |||
| 361 | } | 361 | } |
| 362 | printk(KERN_INFO "GIO: slot %d : %s (id %x)\n", | 362 | printk(KERN_INFO "GIO: slot %d : %s (id %x)\n", |
| 363 | slotno, name, id); | 363 | slotno, name, id); |
| 364 | gio_dev = kzalloc_obj(*gio_dev, GFP_KERNEL); | 364 | gio_dev = kzalloc_obj(*gio_dev); |
| 365 | if (!gio_dev) | 365 | if (!gio_dev) |
| 366 | return; | 366 | return; |
| 367 | gio_dev->name = name; | 367 | gio_dev->name = name; |
| @@ -129,7 +129,7 @@ static int hub_domain_alloc(struct irq_domain *domain, unsigned int virq, · 128 unmodified lines | |||
| 129 | if (nr_irqs > 1 || !info) | 129 | if (nr_irqs > 1 || !info) |
| 130 | return -EINVAL; | 130 | return -EINVAL; |
| 131 | 131 | ||
| 132 | hd = kzalloc_obj(*hd, GFP_KERNEL); | 132 | hd = kzalloc_obj(*hd); |
| 133 | if (!hd) | 133 | if (!hd) |
| 134 | return -ENOMEM; | 134 | return -ENOMEM; |
| 135 | 135 | ||
| @@ -34,7 +34,7 @@ static void bridge_platform_create(nasid_t nasid, int widget, int masterwid) · 33 unmodified lines | |||
| 34 | 34 | ||
| 35 | offset = NODE_OFFSET(nasid); | 35 | offset = NODE_OFFSET(nasid); |
| 36 | 36 | ||
| 37 | wd = kzalloc_obj(*wd, GFP_KERNEL); | 37 | wd = kzalloc_obj(*wd); |
| 38 | if (!wd) { | 38 | if (!wd) { |
| 39 | pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); | 39 | pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); |
| 40 | return; | 40 | return; |
| @@ -69,7 +69,7 @@ static void bridge_platform_create(nasid_t nasid, int widget, int masterwid) · 28 unmodified lines | |||
| 69 | /* platform_device_add_data() duplicates the data */ | 69 | /* platform_device_add_data() duplicates the data */ |
| 70 | kfree(wd); | 70 | kfree(wd); |
| 71 | 71 | ||
| 72 | bd = kzalloc_obj(*bd, GFP_KERNEL); | 72 | bd = kzalloc_obj(*bd); |
| 73 | if (!bd) { | 73 | if (!bd) { |
| 74 | pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); | 74 | pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); |
| 75 | goto err_unregister_pdev_wd; | 75 | goto err_unregister_pdev_wd; |
| @@ -209,7 +209,7 @@ static int heart_domain_alloc(struct irq_domain *domain, unsigned int virq, · 208 unmodified lines | |||
| 209 | if (nr_irqs > 1 || !info) | 209 | if (nr_irqs > 1 || !info) |
| 210 | return -EINVAL; | 210 | return -EINVAL; |
| 211 | 211 | ||
| 212 | hd = kzalloc_obj(*hd, GFP_KERNEL); | 212 | hd = kzalloc_obj(*hd); |
| 213 | if (!hd) | 213 | if (!hd) |
| 214 | return -ENOMEM; | 214 | return -ENOMEM; |
| 215 | 215 | ||
| @@ -44,7 +44,7 @@ static void bridge_platform_create(int widget, int masterwid) · 43 unmodified lines | |||
| 44 | struct platform_device *pdev_bd; | 44 | struct platform_device *pdev_bd; |
| 45 | struct resource w1_res; | 45 | struct resource w1_res; |
| 46 | 46 | ||
| 47 | wd = kzalloc_obj(*wd, GFP_KERNEL); | 47 | wd = kzalloc_obj(*wd); |
| 48 | if (!wd) { | 48 | if (!wd) { |
| 49 | pr_warn("xtalk:%x bridge create out of memory\n", widget); | 49 | pr_warn("xtalk:%x bridge create out of memory\n", widget); |
| 50 | return; | 50 | return; |
| @@ -79,7 +79,7 @@ static void bridge_platform_create(int widget, int masterwid) · 28 unmodified lines | |||
| 79 | /* platform_device_add_data() duplicates the data */ | 79 | /* platform_device_add_data() duplicates the data */ |
| 80 | kfree(wd); | 80 | kfree(wd); |
| 81 | 81 | ||
| 82 | bd = kzalloc_obj(*bd, GFP_KERNEL); | 82 | bd = kzalloc_obj(*bd); |
| 83 | if (!bd) { | 83 | if (!bd) { |
| 84 | pr_warn("xtalk:%x bridge create out of memory\n", widget); | 84 | pr_warn("xtalk:%x bridge create out of memory\n", widget); |
| 85 | goto err_unregister_pdev_wd; | 85 | goto err_unregister_pdev_wd; |
| @@ -120,7 +120,7 @@ txx9_alloc_pci_controller(struct pci_controller *pcic, · 119 unmodified lines | |||
| 120 | int min_size = 0x10000; | 120 | int min_size = 0x10000; |
| 121 | 121 | ||
| 122 | if (!pcic) { | 122 | if (!pcic) { |
| 123 | new = kzalloc_obj(*new, GFP_KERNEL); | 123 | new = kzalloc_obj(*new); |
| 124 | if (!new) | 124 | if (!new) |
| 125 | return NULL; | 125 | return NULL; |
| 126 | new->r_mem[0].name = "PCI mem"; | 126 | new->r_mem[0].name = "PCI mem"; |
| @@ -648,7 +648,7 @@ void __init txx9_iocled_init(unsigned long baseaddr, · 647 unmodified lines | |||
| 648 | 648 | ||
| 649 | if (!deftriggers) | 649 | if (!deftriggers) |
| 650 | deftriggers = default_triggers; | 650 | deftriggers = default_triggers; |
| 651 | iocled = kzalloc_obj(*iocled, GFP_KERNEL); | 651 | iocled = kzalloc_obj(*iocled); |
| 652 | if (!iocled) | 652 | if (!iocled) |
| 653 | return; | 653 | return; |
| 654 | iocled->mmioaddr = ioremap(baseaddr, 1); | 654 | iocled->mmioaddr = ioremap(baseaddr, 1); |
| @@ -822,7 +822,7 @@ void __init txx9_sramc_init(struct resource *r) · 167 unmodified lines | |||
| 822 | err = subsys_system_register(&txx9_sramc_subsys, NULL); | 822 | err = subsys_system_register(&txx9_sramc_subsys, NULL); |
| 823 | if (err) | 823 | if (err) |
| 824 | return; | 824 | return; |
| 825 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 825 | dev = kzalloc_obj(*dev); |
| 826 | if (!dev) | 826 | if (!dev) |
| 827 | return; | 827 | return; |
| 828 | size = resource_size(r); | 828 | size = resource_size(r); |
| @@ -28,7 +28,7 @@ static int __init nios2_soc_device_init(void) · 27 unmodified lines | |||
| 28 | struct soc_device_attribute *soc_dev_attr; | 28 | struct soc_device_attribute *soc_dev_attr; |
| 29 | const char *machine; | 29 | const char *machine; |
| 30 | 30 | ||
| 31 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 31 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 32 | if (soc_dev_attr) { | 32 | if (soc_dev_attr) { |
| 33 | machine = of_flat_dt_get_machine_name(); | 33 | machine = of_flat_dt_get_machine_name(); |
| 34 | if (machine) | 34 | if (machine) |
| @@ -418,7 +418,7 @@ static void setup_bus_id(struct parisc_device *padev) · 417 unmodified lines | |||
| 418 | static struct parisc_device * __init create_tree_node(char id, | 418 | static struct parisc_device * __init create_tree_node(char id, |
| 419 | struct device *parent) | 419 | struct device *parent) |
| 420 | { | 420 | { |
| 421 | struct parisc_device *dev = kzalloc_obj(*dev, GFP_KERNEL); | 421 | struct parisc_device *dev = kzalloc_obj(*dev); |
| 422 | if (!dev) | 422 | if (!dev) |
| 423 | return NULL; | 423 | return NULL; |
| 424 | 424 | ||
| @@ -193,7 +193,7 @@ pat_query_module(ulong pcell_loc, ulong mod_index) · 192 unmodified lines | |||
| 193 | long status; /* PDC return value status */ | 193 | long status; /* PDC return value status */ |
| 194 | struct parisc_device *dev; | 194 | struct parisc_device *dev; |
| 195 | 195 | ||
| 196 | pa_pdc_cell = kmalloc_obj(*pa_pdc_cell, GFP_KERNEL); | 196 | pa_pdc_cell = kmalloc_obj(*pa_pdc_cell); |
| 197 | if (!pa_pdc_cell) | 197 | if (!pa_pdc_cell) |
| 198 | panic("couldn't allocate memory for PDC_PAT_CELL!"); | 198 | panic("couldn't allocate memory for PDC_PAT_CELL!"); |
| 199 | 199 | ||
| @@ -536,7 +536,7 @@ add_system_map_addresses(struct parisc_device *dev, int num_addrs, · 336 unmodified lines | |||
| 536 | long status; | 536 | long status; |
| 537 | struct pdc_system_map_addr_info addr_result; | 537 | struct pdc_system_map_addr_info addr_result; |
| 538 | 538 | ||
| 539 | dev->addr = kmalloc_objs(*dev->addr, num_addrs, GFP_KERNEL); | 539 | dev->addr = kmalloc_objs(*dev->addr, num_addrs); |
| 540 | if(!dev->addr) { | 540 | if(!dev->addr) { |
| 541 | printk(KERN_ERR "%s %s(): memory allocation failure\n", | 541 | printk(KERN_ERR "%s %s(): memory allocation failure\n", |
| 542 | __FILE__, __func__); | 542 | __FILE__, __func__); |
| @@ -110,7 +110,7 @@ static int __init processor_probe(struct parisc_device *dev) · 109 unmodified lines | |||
| 110 | unsigned long bytecnt; | 110 | unsigned long bytecnt; |
| 111 | pdc_pat_cell_mod_maddr_block_t *pa_pdc_cell; | 111 | pdc_pat_cell_mod_maddr_block_t *pa_pdc_cell; |
| 112 | 112 | ||
| 113 | pa_pdc_cell = kmalloc_obj(*pa_pdc_cell, GFP_KERNEL); | 113 | pa_pdc_cell = kmalloc_obj(*pa_pdc_cell); |
| 114 | if (!pa_pdc_cell) | 114 | if (!pa_pdc_cell) |
| 115 | panic("couldn't allocate memory for PDC_PAT_CELL!"); | 115 | panic("couldn't allocate memory for PDC_PAT_CELL!"); |
| 116 | 116 | ||
| @@ -102,7 +102,7 @@ static struct page ** __init vdso_setup_pages(void *start, void *end) · 101 unmodified lines | |||
| 102 | struct page **pagelist; | 102 | struct page **pagelist; |
| 103 | int i; | 103 | int i; |
| 104 | 104 | ||
| 105 | pagelist = kzalloc_objs(struct page *, pages + 1, GFP_KERNEL); | 105 | pagelist = kzalloc_objs(struct page *, pages + 1); |
| 106 | if (!pagelist) | 106 | if (!pagelist) |
| 107 | panic("%s: Cannot allocate page list for VDSO", __func__); | 107 | panic("%s: Cannot allocate page list for VDSO", __func__); |
| 108 | for (i = 0; i < pages; i++) | 108 | for (i = 0; i < pages; i++) |
| @@ -63,7 +63,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 62 unmodified lines | |||
| 63 | 63 | ||
| 64 | jit_data = prog->aux->jit_data; | 64 | jit_data = prog->aux->jit_data; |
| 65 | if (!jit_data) { | 65 | if (!jit_data) { |
| 66 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 66 | jit_data = kzalloc_obj(*jit_data); |
| 67 | if (!jit_data) { | 67 | if (!jit_data) { |
| 68 | prog = orig_prog; | 68 | prog = orig_prog; |
| 69 | goto out; | 69 | goto out; |
| @@ -80,7 +80,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 10 unmodified lines | |||
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | ctx->prog = prog; | 82 | ctx->prog = prog; |
| 83 | ctx->offset = kzalloc_objs(int, prog->len, GFP_KERNEL); | 83 | ctx->offset = kzalloc_objs(int, prog->len); |
| 84 | if (!ctx->offset) { | 84 | if (!ctx->offset) { |
| 85 | prog = orig_prog; | 85 | prog = orig_prog; |
| 86 | goto out_offset; | 86 | goto out_offset; |
| @@ -157,7 +157,7 @@ static struct cache *new_cache(int type, int level, · 156 unmodified lines | |||
| 157 | { | 157 | { |
| 158 | struct cache *cache; | 158 | struct cache *cache; |
| 159 | 159 | ||
| 160 | cache = kzalloc_obj(*cache, GFP_KERNEL); | 160 | cache = kzalloc_obj(*cache); |
| 161 | if (cache) | 161 | if (cache) |
| 162 | cache_init(cache, type, level, ofnode, group_id); | 162 | cache_init(cache, type, level, ofnode, group_id); |
| 163 | 163 | ||
| @@ -540,7 +540,7 @@ static struct cache_dir *cacheinfo_create_cache_dir(unsigned int cpu_id) · 376 unmodified lines | |||
| 540 | if (!kobj) | 540 | if (!kobj) |
| 541 | goto err; | 541 | goto err; |
| 542 | 542 | ||
| 543 | cache_dir = kzalloc_obj(*cache_dir, GFP_KERNEL); | 543 | cache_dir = kzalloc_obj(*cache_dir); |
| 544 | if (!cache_dir) | 544 | if (!cache_dir) |
| 545 | goto err; | 545 | goto err; |
| 546 | 546 | ||
| @@ -788,7 +788,7 @@ static void cacheinfo_create_index_dir(struct cache *cache, int index, · 241 unmodified lines | |||
| 788 | struct cache_index_dir *index_dir; | 788 | struct cache_index_dir *index_dir; |
| 789 | int rc; | 789 | int rc; |
| 790 | 790 | ||
| 791 | index_dir = kzalloc_obj(*index_dir, GFP_KERNEL); | 791 | index_dir = kzalloc_obj(*index_dir); |
| 792 | if (!index_dir) | 792 | if (!index_dir) |
| 793 | return; | 793 | return; |
| 794 | 794 | ||
| @@ -890,7 +890,7 @@ loff_t __init nvram_create_partition(const char *name, int sig, · 889 unmodified lines | |||
| 890 | return -ENOSPC; | 890 | return -ENOSPC; |
| 891 | 891 | ||
| 892 | /* Create our OS partition */ | 892 | /* Create our OS partition */ |
| 893 | new_part = kzalloc_obj(*new_part, GFP_KERNEL); | 893 | new_part = kzalloc_obj(*new_part); |
| 894 | if (!new_part) { | 894 | if (!new_part) { |
| 895 | pr_err("%s: kmalloc failed\n", __func__); | 895 | pr_err("%s: kmalloc failed\n", __func__); |
| 896 | return -ENOMEM; | 896 | return -ENOMEM; |
| @@ -1030,7 +1030,7 @@ int __init nvram_scan_partitions(void) · 133 unmodified lines | |||
| 1030 | "detected: 0-length partition\n"); | 1030 | "detected: 0-length partition\n"); |
| 1031 | goto out; | 1031 | goto out; |
| 1032 | } | 1032 | } |
| 1033 | tmp_part = kmalloc_obj(*tmp_part, GFP_KERNEL); | 1033 | tmp_part = kmalloc_obj(*tmp_part); |
| 1034 | err = -ENOMEM; | 1034 | err = -ENOMEM; |
| 1035 | if (!tmp_part) { | 1035 | if (!tmp_part) { |
| 1036 | printk(KERN_ERR "nvram_scan_partitions: kmalloc failed\n"); | 1036 | printk(KERN_ERR "nvram_scan_partitions: kmalloc failed\n"); |
| @@ -125,7 +125,7 @@ struct pci_controller *pcibios_alloc_controller(struct device_node *dev) · 124 unmodified lines | |||
| 125 | { | 125 | { |
| 126 | struct pci_controller *phb; | 126 | struct pci_controller *phb; |
| 127 | 127 | ||
| 128 | phb = kzalloc_obj(struct pci_controller, GFP_KERNEL); | 128 | phb = kzalloc_obj(struct pci_controller); |
| 129 | if (phb == NULL) | 129 | if (phb == NULL) |
| 130 | return NULL; | 130 | return NULL; |
| 131 | 131 | ||
| @@ -432,7 +432,7 @@ static int pci_read_irq_line(struct pci_dev *pci_dev) · 300 unmodified lines | |||
| 432 | struct pci_intx_virq *vi, *vitmp; | 432 | struct pci_intx_virq *vi, *vitmp; |
| 433 | 433 | ||
| 434 | /* Preallocate vi as rewind is complex if this fails after mapping */ | 434 | /* Preallocate vi as rewind is complex if this fails after mapping */ |
| 435 | vi = kzalloc_obj(struct pci_intx_virq, GFP_KERNEL); | 435 | vi = kzalloc_obj(struct pci_intx_virq); |
| 436 | if (!vi) | 436 | if (!vi) |
| 437 | return -1; | 437 | return -1; |
| 438 | 438 | ||
| @@ -1368,7 +1368,7 @@ static void __init pcibios_reserve_legacy_regions(struct pci_bus *bus) · 929 unmodified lines | |||
| 1368 | if (!(hose->io_resource.flags & IORESOURCE_IO)) | 1368 | if (!(hose->io_resource.flags & IORESOURCE_IO)) |
| 1369 | goto no_io; | 1369 | goto no_io; |
| 1370 | offset = (unsigned long)hose->io_base_virt - _IO_BASE; | 1370 | offset = (unsigned long)hose->io_base_virt - _IO_BASE; |
| 1371 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 1371 | res = kzalloc_obj(struct resource); |
| 1372 | BUG_ON(res == NULL); | 1372 | BUG_ON(res == NULL); |
| 1373 | res->name = "Legacy IO"; | 1373 | res->name = "Legacy IO"; |
| 1374 | res->flags = IORESOURCE_IO; | 1374 | res->flags = IORESOURCE_IO; |
| @@ -1396,7 +1396,7 @@ static void __init pcibios_reserve_legacy_regions(struct pci_bus *bus) · 21 unmodified lines | |||
| 1396 | } | 1396 | } |
| 1397 | if (i >= 3) | 1397 | if (i >= 3) |
| 1398 | return; | 1398 | return; |
| 1399 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 1399 | res = kzalloc_obj(struct resource); |
| 1400 | BUG_ON(res == NULL); | 1400 | BUG_ON(res == NULL); |
| 1401 | res->name = "Legacy VGA memory"; | 1401 | res->name = "Legacy VGA memory"; |
| 1402 | res->flags = IORESOURCE_MEM; | 1402 | res->flags = IORESOURCE_MEM; |
| @@ -130,7 +130,7 @@ static struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) · 129 unmodified lines | |||
| 130 | struct eeh_dev *edev; | 130 | struct eeh_dev *edev; |
| 131 | 131 | ||
| 132 | /* Allocate EEH device */ | 132 | /* Allocate EEH device */ |
| 133 | edev = kzalloc_obj(*edev, GFP_KERNEL); | 133 | edev = kzalloc_obj(*edev); |
| 134 | if (!edev) | 134 | if (!edev) |
| 135 | return NULL; | 135 | return NULL; |
| 136 | 136 | ||
| @@ -154,7 +154,7 @@ static struct pci_dn *add_one_sriov_vf_pdn(struct pci_dn *parent, · 17 unmodified lines | |||
| 154 | if (!parent) | 154 | if (!parent) |
| 155 | return NULL; | 155 | return NULL; |
| 156 | 156 | ||
| 157 | pdn = kzalloc_obj(*pdn, GFP_KERNEL); | 157 | pdn = kzalloc_obj(*pdn); |
| 158 | if (!pdn) | 158 | if (!pdn) |
| 159 | return NULL; | 159 | return NULL; |
| 160 | 160 | ||
| @@ -290,7 +290,7 @@ struct pci_dn *pci_add_device_node_info(struct pci_controller *hose, · 129 unmodified lines | |||
| 290 | struct eeh_dev *edev; | 290 | struct eeh_dev *edev; |
| 291 | #endif | 291 | #endif |
| 292 | 292 | ||
| 293 | pdn = kzalloc_obj(*pdn, GFP_KERNEL); | 293 | pdn = kzalloc_obj(*pdn); |
| 294 | if (pdn == NULL) | 294 | if (pdn == NULL) |
| 295 | return NULL; | 295 | return NULL; |
| 296 | dn->data = pdn; | 296 | dn->data = pdn; |
| @@ -151,7 +151,7 @@ static __init int add_var(const char *name) · 150 unmodified lines | |||
| 151 | struct kobject *kobj; | 151 | struct kobject *kobj; |
| 152 | int rc; | 152 | int rc; |
| 153 | 153 | ||
| 154 | kobj = kzalloc_obj(*kobj, GFP_KERNEL); | 154 | kobj = kzalloc_obj(*kobj); |
| 155 | if (!kobj) | 155 | if (!kobj) |
| 156 | return -ENOMEM; | 156 | return -ENOMEM; |
| 157 | 157 | ||
| @@ -117,7 +117,7 @@ void smp_generic_give_timebase(void) · 116 unmodified lines | |||
| 117 | pr_debug("Software timebase sync\n"); | 117 | pr_debug("Software timebase sync\n"); |
| 118 | 118 | ||
| 119 | /* if this fails then this kernel won't work anyway... */ | 119 | /* if this fails then this kernel won't work anyway... */ |
| 120 | tbsync = kzalloc_obj(*tbsync, GFP_KERNEL); | 120 | tbsync = kzalloc_obj(*tbsync); |
| 121 | mb(); | 121 | mb(); |
| 122 | running = 1; | 122 | running = 1; |
| 123 | 123 | ||
| @@ -1172,7 +1172,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) · 1171 unmodified lines | |||
| 1172 | * Assumption: if boot_cpuid doesn't have a chip-id, then no | 1172 | * Assumption: if boot_cpuid doesn't have a chip-id, then no |
| 1173 | * other CPUs, will also not have chip-id. | 1173 | * other CPUs, will also not have chip-id. |
| 1174 | */ | 1174 | */ |
| 1175 | chip_id_lookup_table = kzalloc_objs(int, idx, GFP_KERNEL); | 1175 | chip_id_lookup_table = kzalloc_objs(int, idx); |
| 1176 | if (chip_id_lookup_table) | 1176 | if (chip_id_lookup_table) |
| 1177 | memset(chip_id_lookup_table, -1, sizeof(int) * idx); | 1177 | memset(chip_id_lookup_table, -1, sizeof(int) * idx); |
| 1178 | } | 1178 | } |
| @@ -245,7 +245,7 @@ static struct page ** __init vdso_setup_pages(void *start, void *end) · 244 unmodified lines | |||
| 245 | struct page **pagelist; | 245 | struct page **pagelist; |
| 246 | int pages = (end - start) >> PAGE_SHIFT; | 246 | int pages = (end - start) >> PAGE_SHIFT; |
| 247 | 247 | ||
| 248 | pagelist = kzalloc_objs(struct page *, pages + 1, GFP_KERNEL); | 248 | pagelist = kzalloc_objs(struct page *, pages + 1); |
| 249 | if (!pagelist) | 249 | if (!pagelist) |
| 250 | panic("%s: Cannot allocate page list for VDSO", __func__); | 250 | panic("%s: Cannot allocate page list for VDSO", __func__); |
| 251 | 251 | ||
| @@ -1494,7 +1494,7 @@ int kvm_vm_ioctl_resize_hpt_prepare(struct kvm *kvm, · 1493 unmodified lines | |||
| 1494 | 1494 | ||
| 1495 | /* start new resize */ | 1495 | /* start new resize */ |
| 1496 | 1496 | ||
| 1497 | resize = kzalloc_obj(*resize, GFP_KERNEL); | 1497 | resize = kzalloc_obj(*resize); |
| 1498 | if (!resize) { | 1498 | if (!resize) { |
| 1499 | ret = -ENOMEM; | 1499 | ret = -ENOMEM; |
| 1500 | goto out; | 1500 | goto out; |
| @@ -1943,7 +1943,7 @@ int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *ghf) · 442 unmodified lines | |||
| 1943 | /* reject flags we don't recognize */ | 1943 | /* reject flags we don't recognize */ |
| 1944 | if (ghf->flags & ~(KVM_GET_HTAB_BOLTED_ONLY | KVM_GET_HTAB_WRITE)) | 1944 | if (ghf->flags & ~(KVM_GET_HTAB_BOLTED_ONLY | KVM_GET_HTAB_WRITE)) |
| 1945 | return -EINVAL; | 1945 | return -EINVAL; |
| 1946 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 1946 | ctx = kzalloc_obj(*ctx); |
| 1947 | if (!ctx) | 1947 | if (!ctx) |
| 1948 | return -ENOMEM; | 1948 | return -ENOMEM; |
| 1949 | kvm_get_kvm(kvm); | 1949 | kvm_get_kvm(kvm); |
| @@ -1985,7 +1985,7 @@ static int debugfs_htab_open(struct inode *inode, struct file *file) · 35 unmodified lines | |||
| 1985 | struct kvm *kvm = inode->i_private; | 1985 | struct kvm *kvm = inode->i_private; |
| 1986 | struct debugfs_htab_state *p; | 1986 | struct debugfs_htab_state *p; |
| 1987 | 1987 | ||
| 1988 | p = kzalloc_obj(*p, GFP_KERNEL); | 1988 | p = kzalloc_obj(*p); |
| 1989 | if (!p) | 1989 | if (!p) |
| 1990 | return -ENOMEM; | 1990 | return -ENOMEM; |
| 1991 | 1991 | ||
| @@ -1256,7 +1256,7 @@ static int debugfs_radix_open(struct inode *inode, struct file *file) · 1255 unmodified lines | |||
| 1256 | struct kvm *kvm = inode->i_private; | 1256 | struct kvm *kvm = inode->i_private; |
| 1257 | struct debugfs_radix_state *p; | 1257 | struct debugfs_radix_state *p; |
| 1258 | 1258 | ||
| 1259 | p = kzalloc_obj(*p, GFP_KERNEL); | 1259 | p = kzalloc_obj(*p); |
| 1260 | if (!p) | 1260 | if (!p) |
| 1261 | return -ENOMEM; | 1261 | return -ENOMEM; |
| 1262 | 1262 | ||
| @@ -178,7 +178,7 @@ long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd, · 177 unmodified lines | |||
| 178 | } | 178 | } |
| 179 | rcu_read_unlock(); | 179 | rcu_read_unlock(); |
| 180 | 180 | ||
| 181 | stit = kzalloc_obj(*stit, GFP_KERNEL); | 181 | stit = kzalloc_obj(*stit); |
| 182 | if (!stit) { | 182 | if (!stit) { |
| 183 | iommu_tce_table_put(tbl); | 183 | iommu_tce_table_put(tbl); |
| 184 | return -ENOMEM; | 184 | return -ENOMEM; |
| @@ -2790,7 +2790,7 @@ static struct kvmppc_vcore *kvmppc_vcore_create(struct kvm *kvm, int id) · 2789 unmodified lines | |||
| 2790 | { | 2790 | { |
| 2791 | struct kvmppc_vcore *vcore; | 2791 | struct kvmppc_vcore *vcore; |
| 2792 | 2792 | ||
| 2793 | vcore = kzalloc_obj(struct kvmppc_vcore, GFP_KERNEL); | 2793 | vcore = kzalloc_obj(struct kvmppc_vcore); |
| 2794 | 2794 | ||
| 2795 | if (vcore == NULL) | 2795 | if (vcore == NULL) |
| 2796 | return NULL; | 2796 | return NULL; |
| @@ -2842,7 +2842,7 @@ static int debugfs_timings_open(struct inode *inode, struct file *file) · 45 unmodified lines | |||
| 2842 | struct kvm_vcpu *vcpu = inode->i_private; | 2842 | struct kvm_vcpu *vcpu = inode->i_private; |
| 2843 | struct debugfs_timings_state *p; | 2843 | struct debugfs_timings_state *p; |
| 2844 | 2844 | ||
| 2845 | p = kzalloc_obj(*p, GFP_KERNEL); | 2845 | p = kzalloc_obj(*p); |
| 2846 | if (!p) | 2846 | if (!p) |
| 2847 | return -ENOMEM; | 2847 | return -ENOMEM; |
| 2848 | 2848 | ||
| @@ -5637,7 +5637,7 @@ void kvmppc_alloc_host_rm_ops(void) · 2788 unmodified lines | |||
| 5637 | if (kvmppc_host_rm_ops_hv != NULL) | 5637 | if (kvmppc_host_rm_ops_hv != NULL) |
| 5638 | return; | 5638 | return; |
| 5639 | 5639 | ||
| 5640 | ops = kzalloc_obj(struct kvmppc_host_rm_ops, GFP_KERNEL); | 5640 | ops = kzalloc_obj(struct kvmppc_host_rm_ops); |
| 5641 | if (!ops) | 5641 | if (!ops) |
| 5642 | return; | 5642 | return; |
| 5643 | 5643 | ||
| @@ -5960,7 +5960,7 @@ void kvmppc_free_pimap(struct kvm *kvm) · 316 unmodified lines | |||
| 5960 | 5960 | ||
| 5961 | static struct kvmppc_passthru_irqmap *kvmppc_alloc_pimap(void) | 5961 | static struct kvmppc_passthru_irqmap *kvmppc_alloc_pimap(void) |
| 5962 | { | 5962 | { |
| 5963 | return kzalloc_obj(struct kvmppc_passthru_irqmap, GFP_KERNEL); | 5963 | return kzalloc_obj(struct kvmppc_passthru_irqmap); |
| 5964 | } | 5964 | } |
| 5965 | 5965 | ||
| 5966 | static int kvmppc_set_passthru_irq(struct kvm *kvm, int host_irq, int guest_gsi) | 5966 | static int kvmppc_set_passthru_irq(struct kvm *kvm, int host_irq, int guest_gsi) |
| @@ -726,7 +726,7 @@ static struct kvm_nested_guest *kvmhv_alloc_nested(struct kvm *kvm, unsigned int · 725 unmodified lines | |||
| 726 | struct kvm_nested_guest *gp; | 726 | struct kvm_nested_guest *gp; |
| 727 | long shadow_lpid; | 727 | long shadow_lpid; |
| 728 | 728 | ||
| 729 | gp = kzalloc_obj(*gp, GFP_KERNEL); | 729 | gp = kzalloc_obj(*gp); |
| 730 | if (!gp) | 730 | if (!gp) |
| 731 | return NULL; | 731 | return NULL; |
| 732 | gp->l1_host = kvm; | 732 | gp->l1_host = kvm; |
| @@ -1671,7 +1671,7 @@ static long int __kvmhv_nested_page_fault(struct kvm_vcpu *vcpu, · 938 unmodified lines | |||
| 1671 | 1671 | ||
| 1672 | /* 4. Insert the pte into our shadow_pgtable */ | 1672 | /* 4. Insert the pte into our shadow_pgtable */ |
| 1673 | 1673 | ||
| 1674 | n_rmap = kzalloc_obj(*n_rmap, GFP_KERNEL); | 1674 | n_rmap = kzalloc_obj(*n_rmap); |
| 1675 | if (!n_rmap) | 1675 | if (!n_rmap) |
| 1676 | return RESUME_GUEST; /* Let the guest try again */ | 1676 | return RESUME_GUEST; /* Let the guest try again */ |
| 1677 | n_rmap->rmap = (n_gpa & RMAP_NESTED_GPA_MASK) | | 1677 | n_rmap->rmap = (n_gpa & RMAP_NESTED_GPA_MASK) | |
| @@ -249,7 +249,7 @@ int kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot) · 248 unmodified lines | |||
| 249 | { | 249 | { |
| 250 | struct kvmppc_uvmem_slot *p; | 250 | struct kvmppc_uvmem_slot *p; |
| 251 | 251 | ||
| 252 | p = kzalloc_obj(*p, GFP_KERNEL); | 252 | p = kzalloc_obj(*p); |
| 253 | if (!p) | 253 | if (!p) |
| 254 | return -ENOMEM; | 254 | return -ENOMEM; |
| 255 | p->pfns = vcalloc(slot->npages, sizeof(*p->pfns)); | 255 | p->pfns = vcalloc(slot->npages, sizeof(*p->pfns)); |
| @@ -711,7 +711,7 @@ static struct page *kvmppc_uvmem_get_page(unsigned long gpa, struct kvm *kvm) · 455 unmodified lines | |||
| 711 | bitmap_set(kvmppc_uvmem_bitmap, bit, 1); | 711 | bitmap_set(kvmppc_uvmem_bitmap, bit, 1); |
| 712 | spin_unlock(&kvmppc_uvmem_bitmap_lock); | 712 | spin_unlock(&kvmppc_uvmem_bitmap_lock); |
| 713 | 713 | ||
| 714 | pvt = kzalloc_obj(*pvt, GFP_KERNEL); | 714 | pvt = kzalloc_obj(*pvt); |
| 715 | if (!pvt) | 715 | if (!pvt) |
| 716 | goto out_clear; | 716 | goto out_clear; |
| 717 | 717 | ||
| @@ -183,7 +183,7 @@ static int rtas_token_define(struct kvm *kvm, char *name, u64 token) · 182 unmodified lines | |||
| 183 | if (!found) | 183 | if (!found) |
| 184 | return -ENOENT; | 184 | return -ENOENT; |
| 185 | 185 | ||
| 186 | d = kzalloc_obj(*d, GFP_KERNEL); | 186 | d = kzalloc_obj(*d); |
| 187 | if (!d) | 187 | if (!d) |
| 188 | return -ENOMEM; | 188 | return -ENOMEM; |
| 189 | 189 | ||
| @@ -1037,7 +1037,7 @@ static struct kvmppc_ics *kvmppc_xics_create_ics(struct kvm *kvm, · 1036 unmodified lines | |||
| 1037 | goto out; | 1037 | goto out; |
| 1038 | 1038 | ||
| 1039 | /* Create the ICS */ | 1039 | /* Create the ICS */ |
| 1040 | ics = kzalloc_obj(struct kvmppc_ics, GFP_KERNEL); | 1040 | ics = kzalloc_obj(struct kvmppc_ics); |
| 1041 | if (!ics) | 1041 | if (!ics) |
| 1042 | goto out; | 1042 | goto out; |
| 1043 | 1043 | ||
| @@ -1069,7 +1069,7 @@ static int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, unsigned long server_nu · 25 unmodified lines | |||
| 1069 | if (kvmppc_xics_find_server(vcpu->kvm, server_num)) | 1069 | if (kvmppc_xics_find_server(vcpu->kvm, server_num)) |
| 1070 | return -EEXIST; | 1070 | return -EEXIST; |
| 1071 | 1071 | ||
| 1072 | icp = kzalloc_obj(struct kvmppc_icp, GFP_KERNEL); | 1072 | icp = kzalloc_obj(struct kvmppc_icp); |
| 1073 | if (!icp) | 1073 | if (!icp) |
| 1074 | return -ENOMEM; | 1074 | return -ENOMEM; |
| 1075 | 1075 | ||
| @@ -1388,7 +1388,7 @@ static struct kvmppc_xics *kvmppc_xics_get_device(struct kvm *kvm) · 312 unmodified lines | |||
| 1388 | struct kvmppc_xics *xics = *kvm_xics_device; | 1388 | struct kvmppc_xics *xics = *kvm_xics_device; |
| 1389 | 1389 | ||
| 1390 | if (!xics) { | 1390 | if (!xics) { |
| 1391 | xics = kzalloc_obj(*xics, GFP_KERNEL); | 1391 | xics = kzalloc_obj(*xics); |
| 1392 | *kvm_xics_device = xics; | 1392 | *kvm_xics_device = xics; |
| 1393 | } else { | 1393 | } else { |
| 1394 | memset(xics, 0, sizeof(*xics)); | 1394 | memset(xics, 0, sizeof(*xics)); |
| @@ -1924,7 +1924,7 @@ int kvmppc_xive_connect_vcpu(struct kvm_device *dev, · 1923 unmodified lines | |||
| 1924 | if (r) | 1924 | if (r) |
| 1925 | goto bail; | 1925 | goto bail; |
| 1926 | 1926 | ||
| 1927 | xc = kzalloc_obj(*xc, GFP_KERNEL); | 1927 | xc = kzalloc_obj(*xc); |
| 1928 | if (!xc) { | 1928 | if (!xc) { |
| 1929 | r = -ENOMEM; | 1929 | r = -ENOMEM; |
| 1930 | goto bail; | 1930 | goto bail; |
| @@ -2276,7 +2276,7 @@ struct kvmppc_xive_src_block *kvmppc_xive_create_src_block( · 345 unmodified lines | |||
| 2276 | goto out; | 2276 | goto out; |
| 2277 | 2277 | ||
| 2278 | /* Create the ICS */ | 2278 | /* Create the ICS */ |
| 2279 | sb = kzalloc_obj(*sb, GFP_KERNEL); | 2279 | sb = kzalloc_obj(*sb); |
| 2280 | if (!sb) | 2280 | if (!sb) |
| 2281 | goto out; | 2281 | goto out; |
| 2282 | 2282 | ||
| @@ -2719,7 +2719,7 @@ struct kvmppc_xive *kvmppc_xive_get_device(struct kvm *kvm, u32 type) · 436 unmodified lines | |||
| 2719 | struct kvmppc_xive *xive = *kvm_xive_device; | 2719 | struct kvmppc_xive *xive = *kvm_xive_device; |
| 2720 | 2720 | ||
| 2721 | if (!xive) { | 2721 | if (!xive) { |
| 2722 | xive = kzalloc_obj(*xive, GFP_KERNEL); | 2722 | xive = kzalloc_obj(*xive); |
| 2723 | *kvm_xive_device = xive; | 2723 | *kvm_xive_device = xive; |
| 2724 | } else { | 2724 | } else { |
| 2725 | memset(xive, 0, sizeof(*xive)); | 2725 | memset(xive, 0, sizeof(*xive)); |
| @@ -145,7 +145,7 @@ int kvmppc_xive_native_connect_vcpu(struct kvm_device *dev, · 144 unmodified lines | |||
| 145 | if (rc) | 145 | if (rc) |
| 146 | goto bail; | 146 | goto bail; |
| 147 | 147 | ||
| 148 | xc = kzalloc_obj(*xc, GFP_KERNEL); | 148 | xc = kzalloc_obj(*xc); |
| 149 | if (!xc) { | 149 | if (!xc) { |
| 150 | rc = -ENOMEM; | 150 | rc = -ENOMEM; |
| 151 | goto bail; | 151 | goto bail; |
| @@ -119,7 +119,7 @@ static inline void local_sid_destroy_all(void) · 118 unmodified lines | |||
| 119 | 119 | ||
| 120 | static void *kvmppc_e500_id_table_alloc(struct kvmppc_vcpu_e500 *vcpu_e500) | 120 | static void *kvmppc_e500_id_table_alloc(struct kvmppc_vcpu_e500 *vcpu_e500) |
| 121 | { | 121 | { |
| 122 | vcpu_e500->idt = kzalloc_obj(struct vcpu_id_table, GFP_KERNEL); | 122 | vcpu_e500->idt = kzalloc_obj(struct vcpu_id_table); |
| 123 | return vcpu_e500->idt; | 123 | return vcpu_e500->idt; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| @@ -772,7 +772,7 @@ int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu, · 771 unmodified lines | |||
| 772 | 772 | ||
| 773 | num_pages = DIV_ROUND_UP(cfg->array + array_len - 1, PAGE_SIZE) - | 773 | num_pages = DIV_ROUND_UP(cfg->array + array_len - 1, PAGE_SIZE) - |
| 774 | cfg->array / PAGE_SIZE; | 774 | cfg->array / PAGE_SIZE; |
| 775 | pages = kmalloc_objs(*pages, num_pages, GFP_KERNEL); | 775 | pages = kmalloc_objs(*pages, num_pages); |
| 776 | if (!pages) | 776 | if (!pages) |
| 777 | return -ENOMEM; | 777 | return -ENOMEM; |
| 778 | 778 | ||
| @@ -792,13 +792,13 @@ int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu, · 13 unmodified lines | |||
| 792 | goto put_pages; | 792 | goto put_pages; |
| 793 | } | 793 | } |
| 794 | 794 | ||
| 795 | privs[0] = kzalloc_objs(*privs[0], params.tlb_sizes[0], GFP_KERNEL); | 795 | privs[0] = kzalloc_objs(*privs[0], params.tlb_sizes[0]); |
| 796 | if (!privs[0]) { | 796 | if (!privs[0]) { |
| 797 | ret = -ENOMEM; | 797 | ret = -ENOMEM; |
| 798 | goto put_pages; | 798 | goto put_pages; |
| 799 | } | 799 | } |
| 800 | 800 | ||
| 801 | privs[1] = kzalloc_objs(*privs[1], params.tlb_sizes[1], GFP_KERNEL); | 801 | privs[1] = kzalloc_objs(*privs[1], params.tlb_sizes[1]); |
| 802 | if (!privs[1]) { | 802 | if (!privs[1]) { |
| 803 | ret = -ENOMEM; | 803 | ret = -ENOMEM; |
| 804 | goto free_privs_first; | 804 | goto free_privs_first; |
| @@ -1642,7 +1642,7 @@ static int mpic_set_default_irq_routing(struct openpic *opp) · 1641 unmodified lines | |||
| 1642 | struct kvm_irq_routing_entry *routing; | 1642 | struct kvm_irq_routing_entry *routing; |
| 1643 | 1643 | ||
| 1644 | /* Create a nop default map, so that dereferencing it still works */ | 1644 | /* Create a nop default map, so that dereferencing it still works */ |
| 1645 | routing = kzalloc_obj(*routing, GFP_KERNEL); | 1645 | routing = kzalloc_obj(*routing); |
| 1646 | if (!routing) | 1646 | if (!routing) |
| 1647 | return -ENOMEM; | 1647 | return -ENOMEM; |
| 1648 | 1648 | ||
| @@ -1661,7 +1661,7 @@ static int mpic_create(struct kvm_device *dev, u32 type) · 12 unmodified lines | |||
| 1661 | if (dev->kvm->arch.mpic) | 1661 | if (dev->kvm->arch.mpic) |
| 1662 | return -EINVAL; | 1662 | return -EINVAL; |
| 1663 | 1663 | ||
| 1664 | opp = kzalloc_obj(struct openpic, GFP_KERNEL); | 1664 | opp = kzalloc_obj(struct openpic); |
| 1665 | if (!opp) | 1665 | if (!opp) |
| 1666 | return -ENOMEM; | 1666 | return -ENOMEM; |
| 1667 | 1667 | ||
| @@ -70,7 +70,7 @@ static long mm_iommu_do_alloc(struct mm_struct *mm, unsigned long ua, · 69 unmodified lines | |||
| 70 | locked_entries = entries; | 70 | locked_entries = entries; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | mem = kzalloc_obj(*mem, GFP_KERNEL); | 73 | mem = kzalloc_obj(*mem); |
| 74 | if (!mem) { | 74 | if (!mem) { |
| 75 | ret = -ENOMEM; | 75 | ret = -ENOMEM; |
| 76 | goto unlock_exit; | 76 | goto unlock_exit; |
| @@ -221,7 +221,7 @@ SYSCALL_DEFINE3(subpage_prot, unsigned long, addr, · 220 unmodified lines | |||
| 221 | * Allocate subpage prot table if not already done. | 221 | * Allocate subpage prot table if not already done. |
| 222 | * Do this with mmap_lock held | 222 | * Do this with mmap_lock held |
| 223 | */ | 223 | */ |
| 224 | spt = kzalloc_obj(struct subpage_prot_table, GFP_KERNEL); | 224 | spt = kzalloc_obj(struct subpage_prot_table); |
| 225 | if (!spt) { | 225 | if (!spt) { |
| 226 | err = -ENOMEM; | 226 | err = -ENOMEM; |
| 227 | goto out; | 227 | goto out; |
| @@ -41,7 +41,7 @@ static struct property *clone_property(struct property *prop, u32 prop_sz) · 40 unmodified lines | |||
| 41 | { | 41 | { |
| 42 | struct property *new_prop; | 42 | struct property *new_prop; |
| 43 | 43 | ||
| 44 | new_prop = kzalloc_obj(*new_prop, GFP_KERNEL); | 44 | new_prop = kzalloc_obj(*new_prop); |
| 45 | if (!new_prop) | 45 | if (!new_prop) |
| 46 | return NULL; | 46 | return NULL; |
| 47 | 47 | ||
| @@ -430,7 +430,7 @@ static void __init init_drmem_v1_lmbs(const __be32 *prop) · 382 unmodified lines | |||
| 430 | if (drmem_info->n_lmbs == 0) | 430 | if (drmem_info->n_lmbs == 0) |
| 431 | return; | 431 | return; |
| 432 | 432 | ||
| 433 | drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs, GFP_KERNEL); | 433 | drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs); |
| 434 | if (!drmem_info->lmbs) | 434 | if (!drmem_info->lmbs) |
| 435 | return; | 435 | return; |
| 436 | 436 | ||
| @@ -457,7 +457,7 @@ static void __init init_drmem_v2_lmbs(const __be32 *prop) · 20 unmodified lines | |||
| 457 | drmem_info->n_lmbs += dr_cell.seq_lmbs; | 457 | drmem_info->n_lmbs += dr_cell.seq_lmbs; |
| 458 | } | 458 | } |
| 459 | 459 | ||
| 460 | drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs, GFP_KERNEL); | 460 | drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs); |
| 461 | if (!drmem_info->lmbs) | 461 | if (!drmem_info->lmbs) |
| 462 | return; | 462 | return; |
| 463 | 463 | ||
| @@ -318,7 +318,7 @@ static int __init add_system_ram_resources(void) · 317 unmodified lines | |||
| 318 | for_each_mem_range(i, &start, &end) { | 318 | for_each_mem_range(i, &start, &end) { |
| 319 | struct resource *res; | 319 | struct resource *res; |
| 320 | 320 | ||
| 321 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 321 | res = kzalloc_obj(struct resource); |
| 322 | WARN_ON(!res); | 322 | WARN_ON(!res); |
| 323 | 323 | ||
| 324 | if (res) { | 324 | if (res) { |
| @@ -165,7 +165,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) · 164 unmodified lines | |||
| 165 | 165 | ||
| 166 | jit_data = fp->aux->jit_data; | 166 | jit_data = fp->aux->jit_data; |
| 167 | if (!jit_data) { | 167 | if (!jit_data) { |
| 168 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 168 | jit_data = kzalloc_obj(*jit_data); |
| 169 | if (!jit_data) { | 169 | if (!jit_data) { |
| 170 | fp = org_fp; | 170 | fp = org_fp; |
| 171 | goto out; | 171 | goto out; |
| @@ -451,7 +451,7 @@ static ssize_t coresperchip_show(struct device *dev, · 450 unmodified lines | |||
| 451 | 451 | ||
| 452 | static struct attribute *device_str_attr_create_(char *name, char *str) | 452 | static struct attribute *device_str_attr_create_(char *name, char *str) |
| 453 | { | 453 | { |
| 454 | struct dev_ext_attribute *attr = kzalloc_obj(*attr, GFP_KERNEL); | 454 | struct dev_ext_attribute *attr = kzalloc_obj(*attr); |
| 455 | 455 | ||
| 456 | if (!attr) | 456 | if (!attr) |
| 457 | return NULL; | 457 | return NULL; |
| @@ -647,7 +647,7 @@ static int event_uniq_add(struct rb_root *root, const char *name, int nl, · 189 unmodified lines | |||
| 647 | } | 647 | } |
| 648 | } | 648 | } |
| 649 | 649 | ||
| 650 | data = kmalloc_obj(*data, GFP_KERNEL); | 650 | data = kmalloc_obj(*data); |
| 651 | if (!data) | 651 | if (!data) |
| 652 | return -ENOMEM; | 652 | return -ENOMEM; |
| 653 | 653 | ||
| @@ -905,13 +905,13 @@ static int create_events_from_catalog(struct attribute ***events_, · 251 unmodified lines | |||
| 905 | pr_warn("event buffer ended before listed # of events were parsed (got %zu, wanted %zu, junk %zu)\n", | 905 | pr_warn("event buffer ended before listed # of events were parsed (got %zu, wanted %zu, junk %zu)\n", |
| 906 | event_idx_last, event_entry_count, junk_events); | 906 | event_idx_last, event_entry_count, junk_events); |
| 907 | 907 | ||
| 908 | events = kmalloc_objs(*events, attr_max + 1, GFP_KERNEL); | 908 | events = kmalloc_objs(*events, attr_max + 1); |
| 909 | if (!events) { | 909 | if (!events) { |
| 910 | ret = -ENOMEM; | 910 | ret = -ENOMEM; |
| 911 | goto e_event_data; | 911 | goto e_event_data; |
| 912 | } | 912 | } |
| 913 | 913 | ||
| 914 | event_descs = kmalloc_objs(*event_descs, event_idx + 1, GFP_KERNEL); | 914 | event_descs = kmalloc_objs(*event_descs, event_idx + 1); |
| 915 | if (!event_descs) { | 915 | if (!event_descs) { |
| 916 | ret = -ENOMEM; | 916 | ret = -ENOMEM; |
| 917 | goto e_event_attrs; | 917 | goto e_event_attrs; |
| @@ -910,7 +910,7 @@ static struct device_attribute *sysinfo_device_attr_create(int · 909 unmodified lines | |||
| 910 | * attribute array, only for valid return types. | 910 | * attribute array, only for valid return types. |
| 911 | */ | 911 | */ |
| 912 | if (!ret || ret == H_AUTHORITY || ret == H_PARAMETER) { | 912 | if (!ret || ret == H_AUTHORITY || ret == H_PARAMETER) { |
| 913 | attr = kzalloc_obj(*attr, GFP_KERNEL); | 913 | attr = kzalloc_obj(*attr); |
| 914 | if (!attr) | 914 | if (!attr) |
| 915 | return NULL; | 915 | return NULL; |
| 916 | 916 | ||
| @@ -136,7 +136,7 @@ static struct attribute *device_str_attr_create(const char *name, const char *st · 135 unmodified lines | |||
| 136 | { | 136 | { |
| 137 | struct perf_pmu_events_attr *attr; | 137 | struct perf_pmu_events_attr *attr; |
| 138 | 138 | ||
| 139 | attr = kzalloc_obj(*attr, GFP_KERNEL); | 139 | attr = kzalloc_obj(*attr); |
| 140 | if (!attr) | 140 | if (!attr) |
| 141 | return NULL; | 141 | return NULL; |
| 142 | sysfs_attr_init(&attr->attr.attr); | 142 | sysfs_attr_init(&attr->attr.attr); |
| @@ -257,7 +257,7 @@ static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu) · 114 unmodified lines | |||
| 257 | of_property_read_u32(node, "reg", &base_reg); | 257 | of_property_read_u32(node, "reg", &base_reg); |
| 258 | 258 | ||
| 259 | /* Allocate memory for the events */ | 259 | /* Allocate memory for the events */ |
| 260 | pmu->events = kzalloc_objs(struct imc_events, ct, GFP_KERNEL); | 260 | pmu->events = kzalloc_objs(struct imc_events, ct); |
| 261 | if (!pmu->events) { | 261 | if (!pmu->events) { |
| 262 | of_node_put(pmu_events); | 262 | of_node_put(pmu_events); |
| 263 | return -ENOMEM; | 263 | return -ENOMEM; |
| @@ -274,7 +274,7 @@ static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu) · 10 unmodified lines | |||
| 274 | of_node_put(pmu_events); | 274 | of_node_put(pmu_events); |
| 275 | 275 | ||
| 276 | /* Allocate memory for attribute group */ | 276 | /* Allocate memory for attribute group */ |
| 277 | attr_group = kzalloc_obj(*attr_group, GFP_KERNEL); | 277 | attr_group = kzalloc_obj(*attr_group); |
| 278 | if (!attr_group) { | 278 | if (!attr_group) { |
| 279 | imc_free_events(pmu->events, ct); | 279 | imc_free_events(pmu->events, ct); |
| 280 | return -ENOMEM; | 280 | return -ENOMEM; |
| @@ -288,7 +288,7 @@ static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu) · 7 unmodified lines | |||
| 288 | * So allocate three times the "ct" (this includes event, event_scale and | 288 | * So allocate three times the "ct" (this includes event, event_scale and |
| 289 | * event_unit). | 289 | * event_unit). |
| 290 | */ | 290 | */ |
| 291 | attrs = kzalloc_objs(struct attribute *, ((ct * 3) + 1), GFP_KERNEL); | 291 | attrs = kzalloc_objs(struct attribute *, ((ct * 3) + 1)); |
| 292 | if (!attrs) { | 292 | if (!attrs) { |
| 293 | kfree(attr_group); | 293 | kfree(attr_group); |
| 294 | imc_free_events(pmu->events, ct); | 294 | imc_free_events(pmu->events, ct); |
| @@ -523,7 +523,7 @@ static void *vpa_dtl_setup_aux(struct perf_event *event, void **pages, · 522 unmodified lines | |||
| 523 | if (!buf) | 523 | if (!buf) |
| 524 | return NULL; | 524 | return NULL; |
| 525 | 525 | ||
| 526 | pglist = kzalloc_objs(*pglist, nr_pages, GFP_KERNEL); | 526 | pglist = kzalloc_objs(*pglist, nr_pages); |
| 527 | if (!pglist) | 527 | if (!pglist) |
| 528 | return NULL; | 528 | return NULL; |
| 529 | 529 | ||
| @@ -151,7 +151,7 @@ static int hsta_msi_probe(struct platform_device *pdev) · 150 unmodified lines | |||
| 151 | if (ret) | 151 | if (ret) |
| 152 | goto out; | 152 | goto out; |
| 153 | 153 | ||
| 154 | ppc4xx_hsta_msi.irq_map = kmalloc_objs(int, irq_count, GFP_KERNEL); | 154 | ppc4xx_hsta_msi.irq_map = kmalloc_objs(int, irq_count); |
| 155 | if (!ppc4xx_hsta_msi.irq_map) { | 155 | if (!ppc4xx_hsta_msi.irq_map) { |
| 156 | ret = -ENOMEM; | 156 | ret = -ENOMEM; |
| 157 | goto out1; | 157 | goto out1; |
| @@ -1339,7 +1339,7 @@ static int __init ppc4xx_pciex_check_core_init(struct device_node *np) · 1338 unmodified lines | |||
| 1339 | count = ppc4xx_pciex_hwops->core_init(np); | 1339 | count = ppc4xx_pciex_hwops->core_init(np); |
| 1340 | if (count > 0) { | 1340 | if (count > 0) { |
| 1341 | ppc4xx_pciex_ports = | 1341 | ppc4xx_pciex_ports = |
| 1342 | kzalloc_objs(struct ppc4xx_pciex_port, count, GFP_KERNEL); | 1342 | kzalloc_objs(struct ppc4xx_pciex_port, count); |
| 1343 | if (ppc4xx_pciex_ports) { | 1343 | if (ppc4xx_pciex_ports) { |
| 1344 | ppc4xx_pciex_port_count = count; | 1344 | ppc4xx_pciex_port_count = count; |
| 1345 | return 0; | 1345 | return 0; |
| @@ -233,7 +233,7 @@ static struct uic * __init uic_init_one(struct device_node *node) · 232 unmodified lines | |||
| 233 | 233 | ||
| 234 | BUG_ON(! of_device_is_compatible(node, "ibm,uic")); | 234 | BUG_ON(! of_device_is_compatible(node, "ibm,uic")); |
| 235 | 235 | ||
| 236 | uic = kzalloc_obj(*uic, GFP_KERNEL); | 236 | uic = kzalloc_obj(*uic); |
| 237 | if (! uic) | 237 | if (! uic) |
| 238 | return NULL; /* FIXME: panic? */ | 238 | return NULL; /* FIXME: panic? */ |
| 239 | 239 | ||
| @@ -146,7 +146,7 @@ static int mcu_probe(struct i2c_client *client) · 145 unmodified lines | |||
| 146 | struct mcu *mcu; | 146 | struct mcu *mcu; |
| 147 | int ret; | 147 | int ret; |
| 148 | 148 | ||
| 149 | mcu = kzalloc_obj(*mcu, GFP_KERNEL); | 149 | mcu = kzalloc_obj(*mcu); |
| 150 | if (!mcu) | 150 | if (!mcu) |
| 151 | return -ENOMEM; | 151 | return -ENOMEM; |
| 152 | 152 | ||
| @@ -266,7 +266,7 @@ static int coproc_open(struct inode *inode, struct file *fp) · 265 unmodified lines | |||
| 266 | { | 266 | { |
| 267 | struct coproc_instance *cp_inst; | 267 | struct coproc_instance *cp_inst; |
| 268 | 268 | ||
| 269 | cp_inst = kzalloc_obj(*cp_inst, GFP_KERNEL); | 269 | cp_inst = kzalloc_obj(*cp_inst); |
| 270 | if (!cp_inst) | 270 | if (!cp_inst) |
| 271 | return -ENOMEM; | 271 | return -ENOMEM; |
| 272 | 272 | ||
| @@ -558,7 +558,7 @@ static int __init create_spu(void *data) · 557 unmodified lines | |||
| 558 | unsigned long flags; | 558 | unsigned long flags; |
| 559 | 559 | ||
| 560 | ret = -ENOMEM; | 560 | ret = -ENOMEM; |
| 561 | spu = kzalloc_obj(*spu, GFP_KERNEL); | 561 | spu = kzalloc_obj(*spu); |
| 562 | if (!spu) | 562 | if (!spu) |
| 563 | goto out; | 563 | goto out; |
| 564 | 564 | ||
| @@ -26,7 +26,7 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang) · 25 unmodified lines | |||
| 26 | { | 26 | { |
| 27 | struct spu_context *ctx; | 27 | struct spu_context *ctx; |
| 28 | 28 | ||
| 29 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 29 | ctx = kzalloc_obj(*ctx); |
| 30 | if (!ctx) | 30 | if (!ctx) |
| 31 | goto out; | 31 | goto out; |
| 32 | /* Binding to physical processor deferred | 32 | /* Binding to physical processor deferred |
| @@ -47,7 +47,7 @@ static int spufs_attr_open(struct inode *inode, struct file *file, · 46 unmodified lines | |||
| 47 | { | 47 | { |
| 48 | struct spufs_attr *attr; | 48 | struct spufs_attr *attr; |
| 49 | 49 | ||
| 50 | attr = kmalloc_obj(*attr, GFP_KERNEL); | 50 | attr = kmalloc_obj(*attr); |
| 51 | if (!attr) | 51 | if (!attr) |
| 52 | return -ENOMEM; | 52 | return -ENOMEM; |
| 53 | 53 | ||
| @@ -16,7 +16,7 @@ struct spu_gang *alloc_spu_gang(void) · 15 unmodified lines | |||
| 16 | { | 16 | { |
| 17 | struct spu_gang *gang; | 17 | struct spu_gang *gang; |
| 18 | 18 | ||
| 19 | gang = kzalloc_obj(*gang, GFP_KERNEL); | 19 | gang = kzalloc_obj(*gang); |
| 20 | if (!gang) | 20 | if (!gang) |
| 21 | goto out; | 21 | goto out; |
| 22 | 22 | ||
| @@ -727,11 +727,11 @@ static int spufs_init_fs_context(struct fs_context *fc) · 726 unmodified lines | |||
| 727 | struct spufs_fs_context *ctx; | 727 | struct spufs_fs_context *ctx; |
| 728 | struct spufs_sb_info *sbi; | 728 | struct spufs_sb_info *sbi; |
| 729 | 729 | ||
| 730 | ctx = kzalloc_obj(struct spufs_fs_context, GFP_KERNEL); | 730 | ctx = kzalloc_obj(struct spufs_fs_context); |
| 731 | if (!ctx) | 731 | if (!ctx) |
| 732 | goto nomem; | 732 | goto nomem; |
| 733 | 733 | ||
| 734 | sbi = kzalloc_obj(struct spufs_sb_info, GFP_KERNEL); | 734 | sbi = kzalloc_obj(struct spufs_sb_info); |
| 735 | if (!sbi) | 735 | if (!sbi) |
| 736 | goto nomem_ctx; | 736 | goto nomem_ctx; |
| 737 | 737 | ||
| @@ -1082,7 +1082,7 @@ int __init spu_sched_init(void) · 1081 unmodified lines | |||
| 1082 | struct proc_dir_entry *entry; | 1082 | struct proc_dir_entry *entry; |
| 1083 | int err = -ENOMEM, i; | 1083 | int err = -ENOMEM, i; |
| 1084 | 1084 | ||
| 1085 | spu_prio = kzalloc_obj(struct spu_prio_array, GFP_KERNEL); | 1085 | spu_prio = kzalloc_obj(struct spu_prio_array); |
| 1086 | if (!spu_prio) | 1086 | if (!spu_prio) |
| 1087 | goto out; | 1087 | goto out; |
| 1088 | 1088 | ||
| @@ -214,7 +214,7 @@ static int gpio_mdio_probe(struct platform_device *ofdev) · 213 unmodified lines | |||
| 214 | int err; | 214 | int err; |
| 215 | 215 | ||
| 216 | err = -ENOMEM; | 216 | err = -ENOMEM; |
| 217 | priv = kzalloc_obj(struct gpio_priv, GFP_KERNEL); | 217 | priv = kzalloc_obj(struct gpio_priv); |
| 218 | if (!priv) | 218 | if (!priv) |
| 219 | goto out; | 219 | goto out; |
| 220 | 220 | ||
| @@ -489,7 +489,7 @@ static struct pmac_i2c_host_kw *__init kw_i2c_host_init(struct device_node *np) · 488 unmodified lines | |||
| 489 | const u32 *psteps, *prate, *addrp; | 489 | const u32 *psteps, *prate, *addrp; |
| 490 | u32 steps; | 490 | u32 steps; |
| 491 | 491 | ||
| 492 | host = kzalloc_obj(*host, GFP_KERNEL); | 492 | host = kzalloc_obj(*host); |
| 493 | if (host == NULL) { | 493 | if (host == NULL) { |
| 494 | printk(KERN_ERR "low_i2c: Can't allocate host for %pOF\n", | 494 | printk(KERN_ERR "low_i2c: Can't allocate host for %pOF\n", |
| 495 | np); | 495 | np); |
| @@ -569,7 +569,7 @@ static void __init kw_i2c_add(struct pmac_i2c_host_kw *host, · 73 unmodified lines | |||
| 569 | { | 569 | { |
| 570 | struct pmac_i2c_bus *bus; | 570 | struct pmac_i2c_bus *bus; |
| 571 | 571 | ||
| 572 | bus = kzalloc_obj(struct pmac_i2c_bus, GFP_KERNEL); | 572 | bus = kzalloc_obj(struct pmac_i2c_bus); |
| 573 | if (bus == NULL) | 573 | if (bus == NULL) |
| 574 | return; | 574 | return; |
| 575 | 575 | ||
| @@ -1254,7 +1254,7 @@ static void* pmac_i2c_do_begin(struct pmf_function *func, struct pmf_args *args) · 678 unmodified lines | |||
| 1254 | * near OOM that need to be resolved, the allocator itself should | 1254 | * near OOM that need to be resolved, the allocator itself should |
| 1255 | * probably make GFP_NOIO implicit during suspend | 1255 | * probably make GFP_NOIO implicit during suspend |
| 1256 | */ | 1256 | */ |
| 1257 | inst = kzalloc_obj(struct pmac_i2c_pf_inst, GFP_KERNEL); | 1257 | inst = kzalloc_obj(struct pmac_i2c_pf_inst); |
| 1258 | if (inst == NULL) { | 1258 | if (inst == NULL) { |
| 1259 | pmac_i2c_close(bus); | 1259 | pmac_i2c_close(bus); |
| 1260 | return NULL; | 1260 | return NULL; |
| @@ -644,7 +644,7 @@ static int pmf_add_function_prop(struct pmf_device *dev, void *driverdata, · 643 unmodified lines | |||
| 644 | 644 | ||
| 645 | while (length >= 12) { | 645 | while (length >= 12) { |
| 646 | /* Allocate a structure */ | 646 | /* Allocate a structure */ |
| 647 | func = kzalloc_obj(*func, GFP_KERNEL); | 647 | func = kzalloc_obj(*func); |
| 648 | if (func == NULL) | 648 | if (func == NULL) |
| 649 | goto bail; | 649 | goto bail; |
| 650 | kref_init(&func->ref); | 650 | kref_init(&func->ref); |
| @@ -720,7 +720,7 @@ int pmf_register_driver(struct device_node *np, · 69 unmodified lines | |||
| 720 | return -EBUSY; | 720 | return -EBUSY; |
| 721 | } | 721 | } |
| 722 | 722 | ||
| 723 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 723 | dev = kzalloc_obj(*dev); |
| 724 | if (dev == NULL) { | 724 | if (dev == NULL) { |
| 725 | DBG("pmf: no memory !\n"); | 725 | DBG("pmf: no memory !\n"); |
| 726 | return -ENOMEM; | 726 | return -ENOMEM; |
| @@ -149,7 +149,7 @@ static struct npu_link *find_link(struct pci_dev *dev) · 148 unmodified lines | |||
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | /* link doesn't exist yet. Allocate one */ | 151 | /* link doesn't exist yet. Allocate one */ |
| 152 | link = kzalloc_obj(struct npu_link, GFP_KERNEL); | 152 | link = kzalloc_obj(struct npu_link); |
| 153 | if (!link) | 153 | if (!link) |
| 154 | return NULL; | 154 | return NULL; |
| 155 | link->domain = pci_domain_nr(dev->bus); | 155 | link->domain = pci_domain_nr(dev->bus); |
| @@ -439,7 +439,7 @@ int pnv_ocxl_spa_setup(struct pci_dev *dev, void *spa_mem, int PE_mask, · 283 unmodified lines | |||
| 439 | u32 bdfn; | 439 | u32 bdfn; |
| 440 | int rc; | 440 | int rc; |
| 441 | 441 | ||
| 442 | data = kzalloc_obj(*data, GFP_KERNEL); | 442 | data = kzalloc_obj(*data); |
| 443 | if (!data) | 443 | if (!data) |
| 444 | return -ENOMEM; | 444 | return -ENOMEM; |
| 445 | 445 | ||
| @@ -81,7 +81,7 @@ bool kernel_initiated; · 80 unmodified lines | |||
| 81 | 81 | ||
| 82 | static struct opalcore * __init get_new_element(void) | 82 | static struct opalcore * __init get_new_element(void) |
| 83 | { | 83 | { |
| 84 | return kzalloc_obj(struct opalcore, GFP_KERNEL); | 84 | return kzalloc_obj(struct opalcore); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | static inline int is_opalcore_usable(void) | 87 | static inline int is_opalcore_usable(void) |
| @@ -497,7 +497,7 @@ static void __init opalcore_config_init(void) · 409 unmodified lines | |||
| 497 | opalc_cpu_metadata = __va(addr); | 497 | opalc_cpu_metadata = __va(addr); |
| 498 | 498 | ||
| 499 | /* Allocate memory for config buffer */ | 499 | /* Allocate memory for config buffer */ |
| 500 | oc_conf = kzalloc_obj(struct opalcore_config, GFP_KERNEL); | 500 | oc_conf = kzalloc_obj(struct opalcore_config); |
| 501 | if (oc_conf == NULL) | 501 | if (oc_conf == NULL) |
| 502 | goto error_out; | 502 | goto error_out; |
| 503 | 503 | ||
| @@ -329,7 +329,7 @@ static void create_dump_obj(uint32_t id, size_t size, uint32_t type) · 328 unmodified lines | |||
| 329 | struct dump_obj *dump; | 329 | struct dump_obj *dump; |
| 330 | int rc; | 330 | int rc; |
| 331 | 331 | ||
| 332 | dump = kzalloc_obj(*dump, GFP_KERNEL); | 332 | dump = kzalloc_obj(*dump); |
| 333 | if (!dump) | 333 | if (!dump) |
| 334 | return; | 334 | return; |
| 335 | 335 | ||
| @@ -190,7 +190,7 @@ static void create_elog_obj(uint64_t id, size_t size, uint64_t type) · 189 unmodified lines | |||
| 190 | struct elog_obj *elog; | 190 | struct elog_obj *elog; |
| 191 | int rc; | 191 | int rc; |
| 192 | 192 | ||
| 193 | elog = kzalloc_obj(*elog, GFP_KERNEL); | 193 | elog = kzalloc_obj(*elog); |
| 194 | if (!elog) | 194 | if (!elog) |
| 195 | return; | 195 | return; |
| 196 | 196 | ||
| @@ -146,7 +146,7 @@ static struct imc_pmu *imc_pmu_create(struct device_node *parent, int pmu_index, · 145 unmodified lines | |||
| 146 | return NULL; | 146 | return NULL; |
| 147 | 147 | ||
| 148 | /* memory for pmu */ | 148 | /* memory for pmu */ |
| 149 | pmu_ptr = kzalloc_obj(*pmu_ptr, GFP_KERNEL); | 149 | pmu_ptr = kzalloc_obj(*pmu_ptr); |
| 150 | if (!pmu_ptr) | 150 | if (!pmu_ptr) |
| 151 | return NULL; | 151 | return NULL; |
| 152 | 152 | ||
| @@ -221,7 +221,7 @@ int __init opal_event_init(void) · 220 unmodified lines | |||
| 221 | opal_irq_count, old_style ? "old" : "new"); | 221 | opal_irq_count, old_style ? "old" : "new"); |
| 222 | 222 | ||
| 223 | /* Allocate an IRQ resources array */ | 223 | /* Allocate an IRQ resources array */ |
| 224 | opal_irqs = kzalloc_objs(struct resource, opal_irq_count, GFP_KERNEL); | 224 | opal_irqs = kzalloc_objs(struct resource, opal_irq_count); |
| 225 | if (WARN_ON(!opal_irqs)) { | 225 | if (WARN_ON(!opal_irqs)) { |
| 226 | rc = -ENOMEM; | 226 | rc = -ENOMEM; |
| 227 | goto out; | 227 | goto out; |
| @@ -355,7 +355,7 @@ static int opal_lpc_debugfs_create_type(struct dentry *folder, · 354 unmodified lines | |||
| 355 | enum OpalLPCAddressType type) | 355 | enum OpalLPCAddressType type) |
| 356 | { | 356 | { |
| 357 | struct lpc_debugfs_entry *entry; | 357 | struct lpc_debugfs_entry *entry; |
| 358 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 358 | entry = kzalloc_obj(*entry); |
| 359 | if (!entry) | 359 | if (!entry) |
| 360 | return -ENOMEM; | 360 | return -ENOMEM; |
| 361 | entry->lpc_type = type; | 361 | entry->lpc_type = type; |
| @@ -150,7 +150,7 @@ void __init opal_powercap_init(void) · 149 unmodified lines | |||
| 150 | return; | 150 | return; |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | pcaps = kzalloc_objs(*pcaps, of_get_child_count(powercap), GFP_KERNEL); | 153 | pcaps = kzalloc_objs(*pcaps, of_get_child_count(powercap)); |
| 154 | if (!pcaps) | 154 | if (!pcaps) |
| 155 | goto out_put_powercap; | 155 | goto out_put_powercap; |
| 156 | 156 | ||
| @@ -168,7 +168,7 @@ void __init opal_sensor_groups_init(void) · 167 unmodified lines | |||
| 168 | return; | 168 | return; |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | sgs = kzalloc_objs(*sgs, of_get_child_count(sg), GFP_KERNEL); | 171 | sgs = kzalloc_objs(*sgs, of_get_child_count(sg)); |
| 172 | if (!sgs) | 172 | if (!sgs) |
| 173 | goto out_sg_put; | 173 | goto out_sg_put; |
| 174 | 174 | ||
| @@ -222,7 +222,7 @@ void __init opal_sys_param_init(void) · 221 unmodified lines | |||
| 222 | goto out_free_perm; | 222 | goto out_free_perm; |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | attr = kzalloc_objs(*attr, count, GFP_KERNEL); | 225 | attr = kzalloc_objs(*attr, count); |
| 226 | if (!attr) { | 226 | if (!attr) { |
| 227 | pr_err("SYSPARAM: Failed to allocate memory for parameter " | 227 | pr_err("SYSPARAM: Failed to allocate memory for parameter " |
| 228 | "attributes\n"); | 228 | "attributes\n"); |
| @@ -158,7 +158,7 @@ static int scom_debug_init_one(struct dentry *root, struct device_node *dn, · 157 unmodified lines | |||
| 158 | struct scom_debug_entry *ent; | 158 | struct scom_debug_entry *ent; |
| 159 | struct dentry *dir; | 159 | struct dentry *dir; |
| 160 | 160 | ||
| 161 | ent = kzalloc_obj(*ent, GFP_KERNEL); | 161 | ent = kzalloc_obj(*ent); |
| 162 | if (!ent) | 162 | if (!ent) |
| 163 | return -ENOMEM; | 163 | return -ENOMEM; |
| 164 | 164 | ||
| @@ -801,7 +801,7 @@ static int opal_add_one_export(struct kobject *parent, const char *export_name, · 800 unmodified lines | |||
| 801 | if (rc) | 801 | if (rc) |
| 802 | goto out; | 802 | goto out; |
| 803 | 803 | ||
| 804 | attr = kzalloc_obj(*attr, GFP_KERNEL); | 804 | attr = kzalloc_obj(*attr); |
| 805 | if (!attr) { | 805 | if (!attr) { |
| 806 | rc = -ENOMEM; | 806 | rc = -ENOMEM; |
| 807 | goto out; | 807 | goto out; |
| @@ -2522,7 +2522,7 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np, · 2521 unmodified lines | |||
| 2522 | phb_id = be64_to_cpup(prop64); | 2522 | phb_id = be64_to_cpup(prop64); |
| 2523 | pr_debug(" PHB-ID : 0x%016llx\n", phb_id); | 2523 | pr_debug(" PHB-ID : 0x%016llx\n", phb_id); |
| 2524 | 2524 | ||
| 2525 | phb = kzalloc_obj(*phb, GFP_KERNEL); | 2525 | phb = kzalloc_obj(*phb); |
| 2526 | if (!phb) | 2526 | if (!phb) |
| 2527 | panic("%s: Failed to allocate %zu bytes\n", __func__, | 2527 | panic("%s: Failed to allocate %zu bytes\n", __func__, |
| 2528 | sizeof(*phb)); | 2528 | sizeof(*phb)); |
| @@ -149,7 +149,7 @@ static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev) · 148 unmodified lines | |||
| 149 | struct pnv_iov_data *iov; | 149 | struct pnv_iov_data *iov; |
| 150 | int mul; | 150 | int mul; |
| 151 | 151 | ||
| 152 | iov = kzalloc_obj(*iov, GFP_KERNEL); | 152 | iov = kzalloc_obj(*iov); |
| 153 | if (!iov) | 153 | if (!iov) |
| 154 | goto disable_iov; | 154 | goto disable_iov; |
| 155 | pdev->dev.archdata.iov_data = iov; | 155 | pdev->dev.archdata.iov_data = iov; |
| @@ -120,7 +120,7 @@ static __init int rng_create(struct device_node *dn) · 119 unmodified lines | |||
| 120 | struct resource res; | 120 | struct resource res; |
| 121 | unsigned long val; | 121 | unsigned long val; |
| 122 | 122 | ||
| 123 | rng = kzalloc_obj(*rng, GFP_KERNEL); | 123 | rng = kzalloc_obj(*rng); |
| 124 | if (!rng) | 124 | if (!rng) |
| 125 | return -ENOMEM; | 125 | return -ENOMEM; |
| 126 | 126 | ||
| @@ -543,7 +543,7 @@ static struct pnv_vas_window *vas_window_alloc(struct vas_instance *vinst) · 542 unmodified lines | |||
| 543 | if (winid < 0) | 543 | if (winid < 0) |
| 544 | return ERR_PTR(winid); | 544 | return ERR_PTR(winid); |
| 545 | 545 | ||
| 546 | window = kzalloc_obj(*window, GFP_KERNEL); | 546 | window = kzalloc_obj(*window); |
| 547 | if (!window) | 547 | if (!window) |
| 548 | goto out_free; | 548 | goto out_free; |
| 549 | 549 | ||
| @@ -74,7 +74,7 @@ static int init_vas_instance(struct platform_device *pdev) · 73 unmodified lines | |||
| 74 | return -ENODEV; | 74 | return -ENODEV; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | vinst = kzalloc_obj(*vinst, GFP_KERNEL); | 77 | vinst = kzalloc_obj(*vinst); |
| 78 | if (!vinst) | 78 | if (!vinst) |
| 79 | return -ENOMEM; | 79 | return -ENOMEM; |
| 80 | 80 | ||
| @@ -31,7 +31,7 @@ static int __init ps3_register_lpm_devices(void) · 30 unmodified lines | |||
| 31 | 31 | ||
| 32 | pr_debug(" -> %s:%d\n", __func__, __LINE__); | 32 | pr_debug(" -> %s:%d\n", __func__, __LINE__); |
| 33 | 33 | ||
| 34 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 34 | dev = kzalloc_obj(*dev); |
| 35 | if (!dev) | 35 | if (!dev) |
| 36 | return -ENOMEM; | 36 | return -ENOMEM; |
| 37 | 37 | ||
| @@ -126,7 +126,7 @@ static int __init ps3_setup_gelic_device( · 88 unmodified lines | |||
| 126 | BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); | 126 | BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); |
| 127 | BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_GELIC); | 127 | BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_GELIC); |
| 128 | 128 | ||
| 129 | p = kzalloc_obj(struct layout, GFP_KERNEL); | 129 | p = kzalloc_obj(struct layout); |
| 130 | 130 | ||
| 131 | if (!p) { | 131 | if (!p) { |
| 132 | result = -ENOMEM; | 132 | result = -ENOMEM; |
| @@ -197,7 +197,7 @@ static int __init ps3_setup_uhc_device( · 64 unmodified lines | |||
| 197 | BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); | 197 | BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); |
| 198 | BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_USB); | 198 | BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_USB); |
| 199 | 199 | ||
| 200 | p = kzalloc_obj(struct layout, GFP_KERNEL); | 200 | p = kzalloc_obj(struct layout); |
| 201 | 201 | ||
| 202 | if (!p) { | 202 | if (!p) { |
| 203 | result = -ENOMEM; | 203 | result = -ENOMEM; |
| @@ -294,7 +294,7 @@ static int __init ps3_setup_vuart_device(enum ps3_match_id match_id, · 90 unmodified lines | |||
| 294 | pr_debug(" -> %s:%d: match_id %u, port %u\n", __func__, __LINE__, | 294 | pr_debug(" -> %s:%d: match_id %u, port %u\n", __func__, __LINE__, |
| 295 | match_id, port_number); | 295 | match_id, port_number); |
| 296 | 296 | ||
| 297 | p = kzalloc_obj(struct layout, GFP_KERNEL); | 297 | p = kzalloc_obj(struct layout); |
| 298 | 298 | ||
| 299 | if (!p) | 299 | if (!p) |
| 300 | return -ENOMEM; | 300 | return -ENOMEM; |
| @@ -447,7 +447,7 @@ static int __init ps3_register_sound_devices(void) · 146 unmodified lines | |||
| 447 | 447 | ||
| 448 | pr_debug(" -> %s:%d\n", __func__, __LINE__); | 448 | pr_debug(" -> %s:%d\n", __func__, __LINE__); |
| 449 | 449 | ||
| 450 | p = kzalloc_obj(*p, GFP_KERNEL); | 450 | p = kzalloc_obj(*p); |
| 451 | if (!p) | 451 | if (!p) |
| 452 | return -ENOMEM; | 452 | return -ENOMEM; |
| 453 | 453 | ||
| @@ -481,7 +481,7 @@ static int __init ps3_register_graphics_devices(void) · 27 unmodified lines | |||
| 481 | 481 | ||
| 482 | pr_debug(" -> %s:%d\n", __func__, __LINE__); | 482 | pr_debug(" -> %s:%d\n", __func__, __LINE__); |
| 483 | 483 | ||
| 484 | p = kzalloc_obj(struct layout, GFP_KERNEL); | 484 | p = kzalloc_obj(struct layout); |
| 485 | 485 | ||
| 486 | if (!p) | 486 | if (!p) |
| 487 | return -ENOMEM; | 487 | return -ENOMEM; |
| @@ -516,7 +516,7 @@ static int __init ps3_register_ramdisk_device(void) · 28 unmodified lines | |||
| 516 | 516 | ||
| 517 | pr_debug(" -> %s:%d\n", __func__, __LINE__); | 517 | pr_debug(" -> %s:%d\n", __func__, __LINE__); |
| 518 | 518 | ||
| 519 | p = kzalloc_obj(struct layout, GFP_KERNEL); | 519 | p = kzalloc_obj(struct layout); |
| 520 | 520 | ||
| 521 | if (!p) | 521 | if (!p) |
| 522 | return -ENOMEM; | 522 | return -ENOMEM; |
| @@ -783,7 +783,7 @@ static int ps3_probe_thread(void *data) · 260 unmodified lines | |||
| 783 | 783 | ||
| 784 | pr_debug(" -> %s:%u: kthread started\n", __func__, __LINE__); | 784 | pr_debug(" -> %s:%u: kthread started\n", __func__, __LINE__); |
| 785 | 785 | ||
| 786 | local = kzalloc_obj(*local, GFP_KERNEL); | 786 | local = kzalloc_obj(*local); |
| 787 | if (!local) | 787 | if (!local) |
| 788 | return -ENOMEM; | 788 | return -ENOMEM; |
| 789 | 789 | ||
| @@ -336,7 +336,7 @@ static int __init ps3_create_spu(struct spu *spu, void *data) · 335 unmodified lines | |||
| 336 | 336 | ||
| 337 | pr_debug("%s:%d spu_%d\n", __func__, __LINE__, spu->number); | 337 | pr_debug("%s:%d spu_%d\n", __func__, __LINE__, spu->number); |
| 338 | 338 | ||
| 339 | spu->pdata = kzalloc_obj(struct spu_pdata, GFP_KERNEL); | 339 | spu->pdata = kzalloc_obj(struct spu_pdata); |
| 340 | 340 | ||
| 341 | if (!spu->pdata) { | 341 | if (!spu->pdata) { |
| 342 | result = -ENOMEM; | 342 | result = -ENOMEM; |
| @@ -53,7 +53,7 @@ static struct property *dlpar_parse_cc_property(struct cc_workarea *ccwa) · 52 unmodified lines | |||
| 53 | char *name; | 53 | char *name; |
| 54 | char *value; | 54 | char *value; |
| 55 | 55 | ||
| 56 | prop = kzalloc_obj(*prop, GFP_KERNEL); | 56 | prop = kzalloc_obj(*prop); |
| 57 | if (!prop) | 57 | if (!prop) |
| 58 | return NULL; | 58 | return NULL; |
| 59 | 59 | ||
| @@ -80,7 +80,7 @@ static struct device_node *dlpar_parse_cc_node(struct cc_workarea *ccwa) · 20 unmodified lines | |||
| 80 | struct device_node *dn; | 80 | struct device_node *dn; |
| 81 | const char *name; | 81 | const char *name; |
| 82 | 82 | ||
| 83 | dn = kzalloc_obj(*dn, GFP_KERNEL); | 83 | dn = kzalloc_obj(*dn); |
| 84 | if (!dn) | 84 | if (!dn) |
| 85 | return NULL; | 85 | return NULL; |
| 86 | 86 | ||
| @@ -33,7 +33,7 @@ static struct property *dlpar_clone_property(struct property *prop, · 32 unmodified lines | |||
| 33 | { | 33 | { |
| 34 | struct property *new_prop; | 34 | struct property *new_prop; |
| 35 | 35 | ||
| 36 | new_prop = kzalloc_obj(*new_prop, GFP_KERNEL); | 36 | new_prop = kzalloc_obj(*new_prop); |
| 37 | if (!new_prop) | 37 | if (!new_prop) |
| 38 | return NULL; | 38 | return NULL; |
| 39 | 39 | ||
| @@ -1000,7 +1000,7 @@ static void copy_property(struct device_node *pdn, const char *from, const char · 999 unmodified lines | |||
| 1000 | if (!src) | 1000 | if (!src) |
| 1001 | return; | 1001 | return; |
| 1002 | 1002 | ||
| 1003 | dst = kzalloc_obj(*dst, GFP_KERNEL); | 1003 | dst = kzalloc_obj(*dst); |
| 1004 | if (!dst) | 1004 | if (!dst) |
| 1005 | return; | 1005 | return; |
| 1006 | 1006 | ||
| @@ -1089,7 +1089,7 @@ static struct dma_win *ddw_list_new_entry(struct device_node *pdn, · 82 unmodified lines | |||
| 1089 | { | 1089 | { |
| 1090 | struct dma_win *window; | 1090 | struct dma_win *window; |
| 1091 | 1091 | ||
| 1092 | window = kzalloc_obj(*window, GFP_KERNEL); | 1092 | window = kzalloc_obj(*window); |
| 1093 | if (!window) | 1093 | if (!window) |
| 1094 | return NULL; | 1094 | return NULL; |
| 1095 | 1095 | ||
| @@ -1409,12 +1409,12 @@ static struct property *ddw_property_create(const char *propname, u32 liobn, u64 · 313 unmodified lines | |||
| 1409 | struct dynamic_dma_window_prop *ddwprop; | 1409 | struct dynamic_dma_window_prop *ddwprop; |
| 1410 | struct property *win64; | 1410 | struct property *win64; |
| 1411 | 1411 | ||
| 1412 | win64 = kzalloc_obj(*win64, GFP_KERNEL); | 1412 | win64 = kzalloc_obj(*win64); |
| 1413 | if (!win64) | 1413 | if (!win64) |
| 1414 | return NULL; | 1414 | return NULL; |
| 1415 | 1415 | ||
| 1416 | win64->name = kstrdup(propname, GFP_KERNEL); | 1416 | win64->name = kstrdup(propname, GFP_KERNEL); |
| 1417 | ddwprop = kzalloc_obj(*ddwprop, GFP_KERNEL); | 1417 | ddwprop = kzalloc_obj(*ddwprop); |
| 1418 | win64->value = ddwprop; | 1418 | win64->value = ddwprop; |
| 1419 | win64->length = sizeof(*ddwprop); | 1419 | win64->length = sizeof(*ddwprop); |
| 1420 | if (!win64->name || !win64->value) { | 1420 | if (!win64->name || !win64->value) { |
| @@ -1760,7 +1760,7 @@ out_failed: · 339 unmodified lines | |||
| 1760 | if (default_win_removed || limited_addr_enabled) | 1760 | if (default_win_removed || limited_addr_enabled) |
| 1761 | reset_dma_window(dev, pdn); | 1761 | reset_dma_window(dev, pdn); |
| 1762 | 1762 | ||
| 1763 | fpdn = kzalloc_obj(*fpdn, GFP_KERNEL); | 1763 | fpdn = kzalloc_obj(*fpdn); |
| 1764 | if (!fpdn) | 1764 | if (!fpdn) |
| 1765 | goto out_unlock; | 1765 | goto out_unlock; |
| 1766 | fpdn->pdn = pdn; | 1766 | fpdn->pdn = pdn; |
| @@ -2235,7 +2235,7 @@ remove_window: · 468 unmodified lines | |||
| 2235 | __remove_dma_window(pdn, ddw_avail, create.liobn); | 2235 | __remove_dma_window(pdn, ddw_avail, create.liobn); |
| 2236 | 2236 | ||
| 2237 | out_failed: | 2237 | out_failed: |
| 2238 | fpdn = kzalloc_obj(*fpdn, GFP_KERNEL); | 2238 | fpdn = kzalloc_obj(*fpdn); |
| 2239 | if (!fpdn) | 2239 | if (!fpdn) |
| 2240 | goto out_unlock; | 2240 | goto out_unlock; |
| 2241 | fpdn->pdn = pdn; | 2241 | fpdn->pdn = pdn; |
| @@ -2322,7 +2322,7 @@ static long spapr_tce_unset_window(struct iommu_table_group *table_group, int nu · 80 unmodified lines | |||
| 2322 | goto out_unlock; | 2322 | goto out_unlock; |
| 2323 | 2323 | ||
| 2324 | out_failed: | 2324 | out_failed: |
| 2325 | fpdn = kzalloc_obj(*fpdn, GFP_KERNEL); | 2325 | fpdn = kzalloc_obj(*fpdn); |
| 2326 | if (!fpdn) | 2326 | if (!fpdn) |
| 2327 | goto out_unlock; | 2327 | goto out_unlock; |
| 2328 | fpdn->pdn = pdn; | 2328 | fpdn->pdn = pdn; |
| @@ -146,7 +146,7 @@ static void show_gpci_data(struct seq_file *m) · 145 unmodified lines | |||
| 146 | unsigned int affinity_score; | 146 | unsigned int affinity_score; |
| 147 | long ret; | 147 | long ret; |
| 148 | 148 | ||
| 149 | buf = kmalloc_obj(*buf, GFP_KERNEL); | 149 | buf = kmalloc_obj(*buf); |
| 150 | if (buf == NULL) | 150 | if (buf == NULL) |
| 151 | return; | 151 | return; |
| 152 | 152 | ||
| @@ -146,7 +146,7 @@ static int update_dt_property(struct device_node *dn, struct property **prop, · 145 unmodified lines | |||
| 146 | new_prop->value = new_data; | 146 | new_prop->value = new_data; |
| 147 | new_prop->length += vd; | 147 | new_prop->length += vd; |
| 148 | } else { | 148 | } else { |
| 149 | new_prop = kzalloc_obj(*new_prop, GFP_KERNEL); | 149 | new_prop = kzalloc_obj(*new_prop); |
| 150 | if (!new_prop) | 150 | if (!new_prop) |
| 151 | return -ENOMEM; | 151 | return -ENOMEM; |
| 152 | 152 | ||
| @@ -441,7 +441,7 @@ static int pseries_msi_ops_prepare(struct irq_domain *domain, struct device *dev · 440 unmodified lines | |||
| 441 | int ret; | 441 | int ret; |
| 442 | 442 | ||
| 443 | struct pseries_msi_device *pseries_dev __free(kfree) | 443 | struct pseries_msi_device *pseries_dev __free(kfree) |
| 444 | = kmalloc_obj(*pseries_dev, GFP_KERNEL); | 444 | = kmalloc_obj(*pseries_dev); |
| 445 | if (!pseries_dev) | 445 | if (!pseries_dev) |
| 446 | return -ENOMEM; | 446 | return -ENOMEM; |
| 447 | 447 | ||
| @@ -19,7 +19,7 @@ · 18 unmodified lines | |||
| 19 | 19 | ||
| 20 | struct papr_sysparm_buf *papr_sysparm_buf_alloc(void) | 20 | struct papr_sysparm_buf *papr_sysparm_buf_alloc(void) |
| 21 | { | 21 | { |
| 22 | struct papr_sysparm_buf *buf = kzalloc_obj(*buf, GFP_KERNEL); | 22 | struct papr_sysparm_buf *buf = kzalloc_obj(*buf); |
| 23 | 23 | ||
| 24 | return buf; | 24 | return buf; |
| 25 | } | 25 | } |
| @@ -295,7 +295,7 @@ retry: · 294 unmodified lines | |||
| 295 | goto out_free_esi_buf; | 295 | goto out_free_esi_buf; |
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | papr_groups = kzalloc_objs(*papr_groups, num_attrs, GFP_KERNEL); | 298 | papr_groups = kzalloc_objs(*papr_groups, num_attrs); |
| 299 | if (!papr_groups) | 299 | if (!papr_groups) |
| 300 | goto out_free_esi_buf; | 300 | goto out_free_esi_buf; |
| 301 | 301 | ||
| @@ -445,7 +445,7 @@ static void papr_scm_pmu_register(struct papr_scm_priv *p) · 444 unmodified lines | |||
| 445 | struct nvdimm_pmu *nd_pmu; | 445 | struct nvdimm_pmu *nd_pmu; |
| 446 | int rc, nodeid; | 446 | int rc, nodeid; |
| 447 | 447 | ||
| 448 | nd_pmu = kzalloc_obj(*nd_pmu, GFP_KERNEL); | 448 | nd_pmu = kzalloc_obj(*nd_pmu); |
| 449 | if (!nd_pmu) { | 449 | if (!nd_pmu) { |
| 450 | rc = -ENOMEM; | 450 | rc = -ENOMEM; |
| 451 | goto pmu_err_print; | 451 | goto pmu_err_print; |
| @@ -1398,7 +1398,7 @@ static int papr_scm_probe(struct platform_device *pdev) · 946 unmodified lines | |||
| 1398 | */ | 1398 | */ |
| 1399 | update_numa_distance(dn); | 1399 | update_numa_distance(dn); |
| 1400 | 1400 | ||
| 1401 | p = kzalloc_obj(*p, GFP_KERNEL); | 1401 | p = kzalloc_obj(*p); |
| 1402 | if (!p) | 1402 | if (!p) |
| 1403 | return -ENOMEM; | 1403 | return -ENOMEM; |
| 1404 | 1404 | ||
| @@ -141,7 +141,7 @@ static int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) · 140 unmodified lines | |||
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | pdn = pci_get_pdn(pdev); | 143 | pdn = pci_get_pdn(pdev); |
| 144 | pdn->pe_num_map = kmalloc_objs(*pdn->pe_num_map, num_vfs, GFP_KERNEL); | 144 | pdn->pe_num_map = kmalloc_objs(*pdn->pe_num_map, num_vfs); |
| 145 | if (!pdn->pe_num_map) | 145 | if (!pdn->pe_num_map) |
| 146 | return -ENOMEM; | 146 | return -ENOMEM; |
| 147 | 147 | ||
| @@ -25,7 +25,7 @@ static int pSeries_reconfig_add_node(const char *path, struct property *proplist · 24 unmodified lines | |||
| 25 | struct device_node *np; | 25 | struct device_node *np; |
| 26 | int err = -ENOMEM; | 26 | int err = -ENOMEM; |
| 27 | 27 | ||
| 28 | np = kzalloc_obj(*np, GFP_KERNEL); | 28 | np = kzalloc_obj(*np); |
| 29 | if (!np) | 29 | if (!np) |
| 30 | goto out_err; | 30 | goto out_err; |
| 31 | 31 | ||
| @@ -168,7 +168,7 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length · 136 unmodified lines | |||
| 168 | static struct property *new_property(const char *name, const int length, | 168 | static struct property *new_property(const char *name, const int length, |
| 169 | const unsigned char *value, struct property *last) | 169 | const unsigned char *value, struct property *last) |
| 170 | { | 170 | { |
| 171 | struct property *new = kzalloc_obj(*new, GFP_KERNEL); | 171 | struct property *new = kzalloc_obj(*new); |
| 172 | 172 | ||
| 173 | if (!new) | 173 | if (!new) |
| 174 | return NULL; | 174 | return NULL; |
| @@ -202,7 +202,7 @@ int sysfs_add_vas_caps(struct vas_cop_feat_caps *caps) · 201 unmodified lines | |||
| 202 | int ret = 0; | 202 | int ret = 0; |
| 203 | char *name; | 203 | char *name; |
| 204 | 204 | ||
| 205 | centry = kzalloc_obj(*centry, GFP_KERNEL); | 205 | centry = kzalloc_obj(*centry); |
| 206 | if (!centry) | 206 | if (!centry) |
| 207 | return -ENOMEM; | 207 | return -ENOMEM; |
| 208 | 208 | ||
| @@ -324,7 +324,7 @@ static struct vas_window *vas_allocate_window(int vas_id, u64 flags, · 323 unmodified lines | |||
| 324 | struct pseries_vas_window *txwin; | 324 | struct pseries_vas_window *txwin; |
| 325 | int rc; | 325 | int rc; |
| 326 | 326 | ||
| 327 | txwin = kzalloc_obj(*txwin, GFP_KERNEL); | 327 | txwin = kzalloc_obj(*txwin); |
| 328 | if (!txwin) | 328 | if (!txwin) |
| 329 | return ERR_PTR(-ENOMEM); | 329 | return ERR_PTR(-ENOMEM); |
| 330 | 330 | ||
| @@ -1087,7 +1087,7 @@ static int __init pseries_vas_init(void) · 756 unmodified lines | |||
| 1087 | return -ENOTSUPP; | 1087 | return -ENOTSUPP; |
| 1088 | } | 1088 | } |
| 1089 | 1089 | ||
| 1090 | hv_caps = kmalloc_obj(*hv_caps, GFP_KERNEL); | 1090 | hv_caps = kmalloc_obj(*hv_caps); |
| 1091 | if (!hv_caps) | 1091 | if (!hv_caps) |
| 1092 | return -ENOMEM; | 1092 | return -ENOMEM; |
| 1093 | /* | 1093 | /* |
| @@ -744,7 +744,7 @@ static int vio_cmo_bus_probe(struct vio_dev *viodev) · 743 unmodified lines | |||
| 744 | viodev->cmo.desired = VIO_CMO_MIN_ENT; | 744 | viodev->cmo.desired = VIO_CMO_MIN_ENT; |
| 745 | size = VIO_CMO_MIN_ENT; | 745 | size = VIO_CMO_MIN_ENT; |
| 746 | 746 | ||
| 747 | dev_ent = kmalloc_obj(struct vio_cmo_dev_entry, GFP_KERNEL); | 747 | dev_ent = kmalloc_obj(struct vio_cmo_dev_entry); |
| 748 | if (!dev_ent) | 748 | if (!dev_ent) |
| 749 | return -ENOMEM; | 749 | return -ENOMEM; |
| 750 | 750 | ||
| @@ -1164,7 +1164,7 @@ static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) · 413 unmodified lines | |||
| 1164 | if (!dma_window) | 1164 | if (!dma_window) |
| 1165 | return NULL; | 1165 | return NULL; |
| 1166 | 1166 | ||
| 1167 | tbl = kzalloc_obj(*tbl, GFP_KERNEL); | 1167 | tbl = kzalloc_obj(*tbl); |
| 1168 | if (tbl == NULL) | 1168 | if (tbl == NULL) |
| 1169 | return NULL; | 1169 | return NULL; |
| 1170 | 1170 | ||
| @@ -1375,7 +1375,7 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) · 204 unmodified lines | |||
| 1375 | } | 1375 | } |
| 1376 | 1376 | ||
| 1377 | /* allocate a vio_dev for this node */ | 1377 | /* allocate a vio_dev for this node */ |
| 1378 | viodev = kzalloc_obj(struct vio_dev, GFP_KERNEL); | 1378 | viodev = kzalloc_obj(struct vio_dev); |
| 1379 | if (viodev == NULL) { | 1379 | if (viodev == NULL) { |
| 1380 | pr_warn("%s: allocation failure for VIO device.\n", __func__); | 1380 | pr_warn("%s: allocation failure for VIO device.\n", __func__); |
| 1381 | return NULL; | 1381 | return NULL; |
| @@ -263,7 +263,7 @@ void __init ehv_pic_init(void) · 262 unmodified lines | |||
| 263 | return; | 263 | return; |
| 264 | } | 264 | } |
| 265 | 265 | ||
| 266 | ehv_pic = kzalloc_obj(struct ehv_pic, GFP_KERNEL); | 266 | ehv_pic = kzalloc_obj(struct ehv_pic); |
| 267 | if (!ehv_pic) { | 267 | if (!ehv_pic) { |
| 268 | of_node_put(np); | 268 | of_node_put(np); |
| 269 | return; | 269 | return; |
| @@ -382,7 +382,7 @@ static int __init fsl_gtm_init(void) · 381 unmodified lines | |||
| 382 | const u32 *clock; | 382 | const u32 *clock; |
| 383 | int size; | 383 | int size; |
| 384 | 384 | ||
| 385 | gtm = kzalloc_obj(*gtm, GFP_KERNEL); | 385 | gtm = kzalloc_obj(*gtm); |
| 386 | if (!gtm) { | 386 | if (!gtm) { |
| 387 | pr_err("%pOF: unable to allocate memory\n", | 387 | pr_err("%pOF: unable to allocate memory\n", |
| 388 | np); | 388 | np); |
| @@ -283,7 +283,7 @@ static int fsl_lbc_ctrl_probe(struct platform_device *dev) · 282 unmodified lines | |||
| 283 | return -EFAULT; | 283 | return -EFAULT; |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | fsl_lbc_ctrl_dev = kzalloc_obj(*fsl_lbc_ctrl_dev, GFP_KERNEL); | 286 | fsl_lbc_ctrl_dev = kzalloc_obj(*fsl_lbc_ctrl_dev); |
| 287 | if (!fsl_lbc_ctrl_dev) | 287 | if (!fsl_lbc_ctrl_dev) |
| 288 | return -ENOMEM; | 288 | return -ENOMEM; |
| 289 | 289 | ||
| @@ -363,7 +363,7 @@ static int fsl_lbc_syscore_suspend(void *data) · 73 unmodified lines | |||
| 363 | if (!lbc) | 363 | if (!lbc) |
| 364 | goto out; | 364 | goto out; |
| 365 | 365 | ||
| 366 | ctrl->saved_regs = kmalloc_obj(struct fsl_lbc_regs, GFP_KERNEL); | 366 | ctrl->saved_regs = kmalloc_obj(struct fsl_lbc_regs); |
| 367 | if (!ctrl->saved_regs) | 367 | if (!ctrl->saved_regs) |
| 368 | return -ENOMEM; | 368 | return -ENOMEM; |
| 369 | 369 | ||
| @@ -111,7 +111,7 @@ static int __init fsl_wakeup_sys_init(void) · 110 unmodified lines | |||
| 111 | struct device *dev_root; | 111 | struct device *dev_root; |
| 112 | int ret = -EINVAL; | 112 | int ret = -EINVAL; |
| 113 | 113 | ||
| 114 | fsl_wakeup = kzalloc_obj(struct fsl_mpic_timer_wakeup, GFP_KERNEL); | 114 | fsl_wakeup = kzalloc_obj(struct fsl_mpic_timer_wakeup); |
| 115 | if (!fsl_wakeup) | 115 | if (!fsl_wakeup) |
| 116 | return -ENOMEM; | 116 | return -ENOMEM; |
| 117 | 117 | ||
| @@ -361,7 +361,7 @@ static int fsl_msi_setup_hwirq(struct fsl_msi *msi, struct platform_device *dev, · 360 unmodified lines | |||
| 361 | return 0; | 361 | return 0; |
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | cascade_data = kzalloc_obj(struct fsl_msi_cascade_data, GFP_KERNEL); | 364 | cascade_data = kzalloc_obj(struct fsl_msi_cascade_data); |
| 365 | if (!cascade_data) { | 365 | if (!cascade_data) { |
| 366 | dev_err(&dev->dev, "No memory for MSI cascade data\n"); | 366 | dev_err(&dev->dev, "No memory for MSI cascade data\n"); |
| 367 | return -ENOMEM; | 367 | return -ENOMEM; |
| @@ -405,7 +405,7 @@ static int fsl_of_msi_probe(struct platform_device *dev) · 37 unmodified lines | |||
| 405 | 405 | ||
| 406 | printk(KERN_DEBUG "Setting up Freescale MSI support\n"); | 406 | printk(KERN_DEBUG "Setting up Freescale MSI support\n"); |
| 407 | 407 | ||
| 408 | msi = kzalloc_obj(struct fsl_msi, GFP_KERNEL); | 408 | msi = kzalloc_obj(struct fsl_msi); |
| 409 | if (!msi) { | 409 | if (!msi) { |
| 410 | dev_err(&dev->dev, "No memory for MSI structure\n"); | 410 | dev_err(&dev->dev, "No memory for MSI structure\n"); |
| 411 | return -ENOMEM; | 411 | return -ENOMEM; |
| @@ -767,7 +767,7 @@ static int __init mpc83xx_pcie_setup(struct pci_controller *hose, · 766 unmodified lines | |||
| 767 | u32 cfg_bar; | 767 | u32 cfg_bar; |
| 768 | int ret = -ENOMEM; | 768 | int ret = -ENOMEM; |
| 769 | 769 | ||
| 770 | pcie = kzalloc_obj(*pcie, GFP_KERNEL); | 770 | pcie = kzalloc_obj(*pcie); |
| 771 | if (!pcie) | 771 | if (!pcie) |
| 772 | return ret; | 772 | return ret; |
| 773 | 773 | ||
| @@ -470,7 +470,7 @@ static int fsl_rio_setup(struct platform_device *dev) · 469 unmodified lines | |||
| 470 | goto err_rio_regs; | 470 | goto err_rio_regs; |
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | ops = kzalloc_obj(struct rio_ops, GFP_KERNEL); | 473 | ops = kzalloc_obj(struct rio_ops); |
| 474 | if (!ops) { | 474 | if (!ops) { |
| 475 | rc = -ENOMEM; | 475 | rc = -ENOMEM; |
| 476 | goto err_ops; | 476 | goto err_ops; |
| @@ -517,7 +517,7 @@ static int fsl_rio_setup(struct platform_device *dev) · 40 unmodified lines | |||
| 517 | rc = -ENODEV; | 517 | rc = -ENODEV; |
| 518 | goto err_dbell; | 518 | goto err_dbell; |
| 519 | } | 519 | } |
| 520 | dbell = kzalloc_obj(struct fsl_rio_dbell, GFP_KERNEL); | 520 | dbell = kzalloc_obj(struct fsl_rio_dbell); |
| 521 | if (!(dbell)) { | 521 | if (!(dbell)) { |
| 522 | dev_err(&dev->dev, "Can't alloc memory for 'fsl_rio_dbell'\n"); | 522 | dev_err(&dev->dev, "Can't alloc memory for 'fsl_rio_dbell'\n"); |
| 523 | rc = -ENOMEM; | 523 | rc = -ENOMEM; |
| @@ -543,7 +543,7 @@ static int fsl_rio_setup(struct platform_device *dev) · 19 unmodified lines | |||
| 543 | rc = -ENODEV; | 543 | rc = -ENODEV; |
| 544 | goto err_pw; | 544 | goto err_pw; |
| 545 | } | 545 | } |
| 546 | pw = kzalloc_obj(struct fsl_rio_pw, GFP_KERNEL); | 546 | pw = kzalloc_obj(struct fsl_rio_pw); |
| 547 | if (!(pw)) { | 547 | if (!(pw)) { |
| 548 | dev_err(&dev->dev, "Can't alloc memory for 'fsl_rio_pw'\n"); | 548 | dev_err(&dev->dev, "Can't alloc memory for 'fsl_rio_pw'\n"); |
| 549 | rc = -ENOMEM; | 549 | rc = -ENOMEM; |
| @@ -580,7 +580,7 @@ static int fsl_rio_setup(struct platform_device *dev) · 30 unmodified lines | |||
| 580 | dev_info(&dev->dev, "%pOF: LAW %pR\n", | 580 | dev_info(&dev->dev, "%pOF: LAW %pR\n", |
| 581 | np, &res); | 581 | np, &res); |
| 582 | 582 | ||
| 583 | port = kzalloc_obj(struct rio_mport, GFP_KERNEL); | 583 | port = kzalloc_obj(struct rio_mport); |
| 584 | if (!port) | 584 | if (!port) |
| 585 | continue; | 585 | continue; |
| 586 | 586 | ||
| @@ -593,7 +593,7 @@ static int fsl_rio_setup(struct platform_device *dev) · 6 unmodified lines | |||
| 593 | i = *port_index - 1; | 593 | i = *port_index - 1; |
| 594 | port->index = (unsigned char)i; | 594 | port->index = (unsigned char)i; |
| 595 | 595 | ||
| 596 | priv = kzalloc_obj(struct rio_priv, GFP_KERNEL); | 596 | priv = kzalloc_obj(struct rio_priv); |
| 597 | if (!priv) { | 597 | if (!priv) { |
| 598 | dev_err(&dev->dev, "Can't alloc memory for 'priv'\n"); | 598 | dev_err(&dev->dev, "Can't alloc memory for 'priv'\n"); |
| 599 | kfree(port); | 599 | kfree(port); |
| @@ -1079,7 +1079,7 @@ int fsl_rio_setup_rmu(struct rio_mport *mport, struct device_node *node) · 1078 unmodified lines | |||
| 1079 | return -EINVAL; | 1079 | return -EINVAL; |
| 1080 | } | 1080 | } |
| 1081 | 1081 | ||
| 1082 | rmu = kzalloc_obj(struct fsl_rmu, GFP_KERNEL); | 1082 | rmu = kzalloc_obj(struct fsl_rmu); |
| 1083 | if (!rmu) | 1083 | if (!rmu) |
| 1084 | return -ENOMEM; | 1084 | return -ENOMEM; |
| 1085 | 1085 | ||
| @@ -707,7 +707,7 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags) · 706 unmodified lines | |||
| 707 | if (ret) | 707 | if (ret) |
| 708 | return NULL; | 708 | return NULL; |
| 709 | 709 | ||
| 710 | ipic = kzalloc_obj(*ipic, GFP_KERNEL); | 710 | ipic = kzalloc_obj(*ipic); |
| 711 | if (ipic == NULL) | 711 | if (ipic == NULL) |
| 712 | return NULL; | 712 | return NULL; |
| 713 | 713 | ||
| @@ -547,7 +547,7 @@ static void __init mpic_scan_ht_pics(struct mpic *mpic) · 546 unmodified lines | |||
| 547 | printk(KERN_INFO "mpic: Setting up HT PICs workarounds for U3/U4\n"); | 547 | printk(KERN_INFO "mpic: Setting up HT PICs workarounds for U3/U4\n"); |
| 548 | 548 | ||
| 549 | /* Allocate fixups array */ | 549 | /* Allocate fixups array */ |
| 550 | mpic->fixups = kzalloc_objs(*mpic->fixups, 128, GFP_KERNEL); | 550 | mpic->fixups = kzalloc_objs(*mpic->fixups, 128); |
| 551 | BUG_ON(mpic->fixups == NULL); | 551 | BUG_ON(mpic->fixups == NULL); |
| 552 | 552 | ||
| 553 | /* Init spinlock */ | 553 | /* Init spinlock */ |
| @@ -1273,7 +1273,7 @@ struct mpic * __init mpic_alloc(struct device_node *node, · 719 unmodified lines | |||
| 1273 | mpic_tm_chip.flags |= IRQCHIP_SKIP_SET_WAKE; | 1273 | mpic_tm_chip.flags |= IRQCHIP_SKIP_SET_WAKE; |
| 1274 | } | 1274 | } |
| 1275 | 1275 | ||
| 1276 | mpic = kzalloc_obj(struct mpic, GFP_KERNEL); | 1276 | mpic = kzalloc_obj(struct mpic); |
| 1277 | if (mpic == NULL) | 1277 | if (mpic == NULL) |
| 1278 | goto err_of_node_put; | 1278 | goto err_of_node_put; |
| 1279 | 1279 | ||
| @@ -227,7 +227,7 @@ static int mpic_msgr_probe(struct platform_device *dev) · 226 unmodified lines | |||
| 227 | struct mpic_msgr *msgr; | 227 | struct mpic_msgr *msgr; |
| 228 | unsigned int reg_number; | 228 | unsigned int reg_number; |
| 229 | 229 | ||
| 230 | msgr = kzalloc_obj(struct mpic_msgr, GFP_KERNEL); | 230 | msgr = kzalloc_obj(struct mpic_msgr); |
| 231 | if (!msgr) { | 231 | if (!msgr) { |
| 232 | dev_err(&dev->dev, "No memory for message register\n"); | 232 | dev_err(&dev->dev, "No memory for message register\n"); |
| 233 | return -ENOMEM; | 233 | return -ENOMEM; |
| @@ -464,7 +464,7 @@ static void __init timer_group_init(struct device_node *np) · 463 unmodified lines | |||
| 464 | unsigned int i = 0; | 464 | unsigned int i = 0; |
| 465 | int ret; | 465 | int ret; |
| 466 | 466 | ||
| 467 | priv = kzalloc_obj(struct timer_group_priv, GFP_KERNEL); | 467 | priv = kzalloc_obj(struct timer_group_priv); |
| 468 | if (!priv) { | 468 | if (!priv) { |
| 469 | pr_err("%pOF: cannot allocate memory for group.\n", np); | 469 | pr_err("%pOF: cannot allocate memory for group.\n", np); |
| 470 | return; | 470 | return; |
| @@ -33,7 +33,7 @@ void __init of_instantiate_rtc(void) · 32 unmodified lines | |||
| 33 | of_rtc_table[i].compatible) { | 33 | of_rtc_table[i].compatible) { |
| 34 | struct resource *res; | 34 | struct resource *res; |
| 35 | 35 | ||
| 36 | res = kmalloc_obj(*res, GFP_KERNEL); | 36 | res = kmalloc_obj(*res); |
| 37 | if (!res) { | 37 | if (!res) { |
| 38 | printk(KERN_ERR "OF RTC: Out of memory " | 38 | printk(KERN_ERR "OF RTC: Out of memory " |
| 39 | "allocating resource structure for %pOF\n", | 39 | "allocating resource structure for %pOF\n", |
| @@ -186,7 +186,7 @@ static int __init ics_native_add_one(struct device_node *np) · 185 unmodified lines | |||
| 186 | u32 ranges[2]; | 186 | u32 ranges[2]; |
| 187 | int rc, count; | 187 | int rc, count; |
| 188 | 188 | ||
| 189 | ics = kzalloc_obj(struct ics_native, GFP_KERNEL); | 189 | ics = kzalloc_obj(struct ics_native); |
| 190 | if (!ics) | 190 | if (!ics) |
| 191 | return -ENOMEM; | 191 | return -ENOMEM; |
| 192 | ics->node = of_node_get(np); | 192 | ics->node = of_node_get(np); |
| @@ -1016,7 +1016,7 @@ static struct xive_irq_data *xive_irq_alloc_data(unsigned int virq, irq_hw_numbe · 1015 unmodified lines | |||
| 1016 | struct xive_irq_data *xd; | 1016 | struct xive_irq_data *xd; |
| 1017 | int rc; | 1017 | int rc; |
| 1018 | 1018 | ||
| 1019 | xd = kzalloc_obj(struct xive_irq_data, GFP_KERNEL); | 1019 | xd = kzalloc_obj(struct xive_irq_data); |
| 1020 | if (!xd) | 1020 | if (!xd) |
| 1021 | return ERR_PTR(-ENOMEM); | 1021 | return ERR_PTR(-ENOMEM); |
| 1022 | rc = xive_ops->populate_irq_data(hw, xd); | 1022 | rc = xive_ops->populate_irq_data(hw, xd); |
| @@ -52,7 +52,7 @@ static int __init xive_irq_bitmap_add(int base, int count) · 51 unmodified lines | |||
| 52 | { | 52 | { |
| 53 | struct xive_irq_bitmap *xibm; | 53 | struct xive_irq_bitmap *xibm; |
| 54 | 54 | ||
| 55 | xibm = kzalloc_obj(*xibm, GFP_KERNEL); | 55 | xibm = kzalloc_obj(*xibm); |
| 56 | if (!xibm) | 56 | if (!xibm) |
| 57 | return -ENOMEM; | 57 | return -ENOMEM; |
| 58 | 58 | ||
| @@ -415,7 +415,7 @@ int hibernate_resume_nonboot_cpu_disable(void) · 414 unmodified lines | |||
| 415 | 415 | ||
| 416 | static int __init riscv_hibernate_init(void) | 416 | static int __init riscv_hibernate_init(void) |
| 417 | { | 417 | { |
| 418 | hibernate_cpu_context = kzalloc_obj(*hibernate_cpu_context, GFP_KERNEL); | 418 | hibernate_cpu_context = kzalloc_obj(*hibernate_cpu_context); |
| 419 | 419 | ||
| 420 | if (WARN_ON(!hibernate_cpu_context)) | 420 | if (WARN_ON(!hibernate_cpu_context)) |
| 421 | return -ENOMEM; | 421 | return -ENOMEM; |
| @@ -663,7 +663,7 @@ static int add_relocation_to_accumulate(struct module *me, int type, · 662 unmodified lines | |||
| 663 | struct used_bucket *bucket; | 663 | struct used_bucket *bucket; |
| 664 | unsigned long hash; | 664 | unsigned long hash; |
| 665 | 665 | ||
| 666 | entry = kmalloc_obj(*entry, GFP_KERNEL); | 666 | entry = kmalloc_obj(*entry); |
| 667 | 667 | ||
| 668 | if (!entry) | 668 | if (!entry) |
| 669 | return -ENOMEM; | 669 | return -ENOMEM; |
| @@ -697,7 +697,7 @@ static int add_relocation_to_accumulate(struct module *me, int type, · 27 unmodified lines | |||
| 697 | * relocation_entry. | 697 | * relocation_entry. |
| 698 | */ | 698 | */ |
| 699 | if (!found) { | 699 | if (!found) { |
| 700 | rel_head = kmalloc_obj(*rel_head, GFP_KERNEL); | 700 | rel_head = kmalloc_obj(*rel_head); |
| 701 | 701 | ||
| 702 | if (!rel_head) { | 702 | if (!rel_head) { |
| 703 | kfree(entry); | 703 | kfree(entry); |
| @@ -709,7 +709,7 @@ static int add_relocation_to_accumulate(struct module *me, int type, · 5 unmodified lines | |||
| 709 | INIT_HLIST_NODE(&rel_head->node); | 709 | INIT_HLIST_NODE(&rel_head->node); |
| 710 | if (!current_head->first) { | 710 | if (!current_head->first) { |
| 711 | bucket = | 711 | bucket = |
| 712 | kmalloc_obj(struct used_bucket, GFP_KERNEL); | 712 | kmalloc_obj(struct used_bucket); |
| 713 | 713 | ||
| 714 | if (!bucket) { | 714 | if (!bucket) { |
| 715 | kfree(entry); | 715 | kfree(entry); |
| @@ -20,7 +20,7 @@ static void test_kprobe_riscv(struct kunit *test) · 19 unmodified lines | |||
| 20 | while (test_kprobes_addresses[num_kprobe]) | 20 | while (test_kprobes_addresses[num_kprobe]) |
| 21 | num_kprobe++; | 21 | num_kprobe++; |
| 22 | 22 | ||
| 23 | kp = kzalloc_objs(*kp, num_kprobe, GFP_KERNEL); | 23 | kp = kzalloc_objs(*kp, num_kprobe); |
| 24 | KUNIT_EXPECT_TRUE(test, kp); | 24 | KUNIT_EXPECT_TRUE(test, kp); |
| 25 | if (!kp) | 25 | if (!kp) |
| 26 | return; | 26 | return; |
| @@ -139,7 +139,7 @@ static void __init check_unaligned_access_speed_all_cpus(void) · 138 unmodified lines | |||
| 139 | { | 139 | { |
| 140 | unsigned int cpu; | 140 | unsigned int cpu; |
| 141 | unsigned int cpu_count = num_possible_cpus(); | 141 | unsigned int cpu_count = num_possible_cpus(); |
| 142 | struct page **bufs = kzalloc_objs(*bufs, cpu_count, GFP_KERNEL); | 142 | struct page **bufs = kzalloc_objs(*bufs, cpu_count); |
| 143 | 143 | ||
| 144 | if (!bufs) { | 144 | if (!bufs) { |
| 145 | pr_warn("Allocation failure, not measuring misaligned performance\n"); | 145 | pr_warn("Allocation failure, not measuring misaligned performance\n"); |
| @@ -580,7 +580,7 @@ int kvm_riscv_aia_aplic_init(struct kvm *kvm) · 579 unmodified lines | |||
| 580 | return 0; | 580 | return 0; |
| 581 | 581 | ||
| 582 | /* Allocate APLIC global state */ | 582 | /* Allocate APLIC global state */ |
| 583 | aplic = kzalloc_obj(*aplic, GFP_KERNEL); | 583 | aplic = kzalloc_obj(*aplic); |
| 584 | if (!aplic) | 584 | if (!aplic) |
| 585 | return -ENOMEM; | 585 | return -ENOMEM; |
| 586 | kvm->arch.aia.aplic_state = aplic; | 586 | kvm->arch.aia.aplic_state = aplic; |
| @@ -588,7 +588,7 @@ int kvm_riscv_aia_aplic_init(struct kvm *kvm) · 1 unmodified line | |||
| 588 | /* Setup APLIC IRQs */ | 588 | /* Setup APLIC IRQs */ |
| 589 | aplic->nr_irqs = kvm->arch.aia.nr_sources + 1; | 589 | aplic->nr_irqs = kvm->arch.aia.nr_sources + 1; |
| 590 | aplic->nr_words = DIV_ROUND_UP(aplic->nr_irqs, 32); | 590 | aplic->nr_words = DIV_ROUND_UP(aplic->nr_irqs, 32); |
| 591 | aplic->irqs = kzalloc_objs(*aplic->irqs, aplic->nr_irqs, GFP_KERNEL); | 591 | aplic->irqs = kzalloc_objs(*aplic->irqs, aplic->nr_irqs); |
| 592 | if (!aplic->irqs) { | 592 | if (!aplic->irqs) { |
| 593 | ret = -ENOMEM; | 593 | ret = -ENOMEM; |
| 594 | goto fail_free_aplic; | 594 | goto fail_free_aplic; |
| @@ -1095,7 +1095,7 @@ int kvm_riscv_vcpu_aia_imsic_init(struct kvm_vcpu *vcpu) · 1094 unmodified lines | |||
| 1095 | return -EINVAL; | 1095 | return -EINVAL; |
| 1096 | 1096 | ||
| 1097 | /* Allocate IMSIC context */ | 1097 | /* Allocate IMSIC context */ |
| 1098 | imsic = kzalloc_obj(*imsic, GFP_KERNEL); | 1098 | imsic = kzalloc_obj(*imsic); |
| 1099 | if (!imsic) | 1099 | if (!imsic) |
| 1100 | return -ENOMEM; | 1100 | return -ENOMEM; |
| 1101 | vcpu->arch.aia_context.imsic_state = imsic; | 1101 | vcpu->arch.aia_context.imsic_state = imsic; |
| @@ -95,7 +95,7 @@ int kvm_riscv_setup_default_irq_routing(struct kvm *kvm, u32 lines) · 94 unmodified lines | |||
| 95 | struct kvm_irq_routing_entry *ents; | 95 | struct kvm_irq_routing_entry *ents; |
| 96 | int i, rc; | 96 | int i, rc; |
| 97 | 97 | ||
| 98 | ents = kzalloc_objs(*ents, lines, GFP_KERNEL); | 98 | ents = kzalloc_objs(*ents, lines); |
| 99 | if (!ents) | 99 | if (!ents) |
| 100 | return -ENOMEM; | 100 | return -ENOMEM; |
| 101 | 101 | ||
| @@ -1195,7 +1195,7 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, · 1194 unmodified lines | |||
| 1195 | } | 1195 | } |
| 1196 | 1196 | ||
| 1197 | if (fmod_ret->nr_links) { | 1197 | if (fmod_ret->nr_links) { |
| 1198 | branches_off = kzalloc_objs(int, fmod_ret->nr_links, GFP_KERNEL); | 1198 | branches_off = kzalloc_objs(int, fmod_ret->nr_links); |
| 1199 | if (!branches_off) | 1199 | if (!branches_off) |
| 1200 | return -ENOMEM; | 1200 | return -ENOMEM; |
| 1201 | 1201 | ||
| @@ -63,7 +63,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 62 unmodified lines | |||
| 63 | 63 | ||
| 64 | jit_data = prog->aux->jit_data; | 64 | jit_data = prog->aux->jit_data; |
| 65 | if (!jit_data) { | 65 | if (!jit_data) { |
| 66 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 66 | jit_data = kzalloc_obj(*jit_data); |
| 67 | if (!jit_data) { | 67 | if (!jit_data) { |
| 68 | prog = orig_prog; | 68 | prog = orig_prog; |
| 69 | goto out; | 69 | goto out; |
| @@ -82,7 +82,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 12 unmodified lines | |||
| 82 | ctx->arena_vm_start = bpf_arena_get_kern_vm_start(prog->aux->arena); | 82 | ctx->arena_vm_start = bpf_arena_get_kern_vm_start(prog->aux->arena); |
| 83 | ctx->user_vm_start = bpf_arena_get_user_vm_start(prog->aux->arena); | 83 | ctx->user_vm_start = bpf_arena_get_user_vm_start(prog->aux->arena); |
| 84 | ctx->prog = prog; | 84 | ctx->prog = prog; |
| 85 | ctx->offset = kzalloc_objs(int, prog->len, GFP_KERNEL); | 85 | ctx->offset = kzalloc_objs(int, prog->len); |
| 86 | if (!ctx->offset) { | 86 | if (!ctx->offset) { |
| 87 | prog = orig_prog; | 87 | prog = orig_prog; |
| 88 | goto out_offset; | 88 | goto out_offset; |
| @@ -140,7 +140,7 @@ int appldata_diag(char record_nr, u16 function, unsigned long buffer, · 139 unmodified lines | |||
| 140 | struct appldata_product_id *id; | 140 | struct appldata_product_id *id; |
| 141 | int rc; | 141 | int rc; |
| 142 | 142 | ||
| 143 | parm_list = kmalloc_obj(*parm_list, GFP_KERNEL); | 143 | parm_list = kmalloc_obj(*parm_list); |
| 144 | id = kmemdup(&appldata_id, sizeof(appldata_id), GFP_KERNEL); | 144 | id = kmemdup(&appldata_id, sizeof(appldata_id), GFP_KERNEL); |
| 145 | rc = -ENOMEM; | 145 | rc = -ENOMEM; |
| 146 | if (parm_list && id) { | 146 | if (parm_list && id) { |
| @@ -350,7 +350,7 @@ int appldata_register_ops(struct appldata_ops *ops) · 203 unmodified lines | |||
| 350 | if (ops->size > APPLDATA_MAX_REC_SIZE) | 350 | if (ops->size > APPLDATA_MAX_REC_SIZE) |
| 351 | return -EINVAL; | 351 | return -EINVAL; |
| 352 | 352 | ||
| 353 | ops->ctl_table = kzalloc_objs(struct ctl_table, 1, GFP_KERNEL); | 353 | ops->ctl_table = kzalloc_objs(struct ctl_table, 1); |
| 354 | if (!ops->ctl_table) | 354 | if (!ops->ctl_table) |
| 355 | return -ENOMEM; | 355 | return -ENOMEM; |
| 356 | 356 | ||
| @@ -130,7 +130,7 @@ static int __init appldata_mem_init(void) · 129 unmodified lines | |||
| 130 | { | 130 | { |
| 131 | int ret; | 131 | int ret; |
| 132 | 132 | ||
| 133 | ops.data = kzalloc_obj(struct appldata_mem_data, GFP_KERNEL); | 133 | ops.data = kzalloc_obj(struct appldata_mem_data); |
| 134 | if (!ops.data) | 134 | if (!ops.data) |
| 135 | return -ENOMEM; | 135 | return -ENOMEM; |
| 136 | 136 | ||
| @@ -132,7 +132,7 @@ static int __init appldata_net_init(void) · 131 unmodified lines | |||
| 132 | { | 132 | { |
| 133 | int ret; | 133 | int ret; |
| 134 | 134 | ||
| 135 | ops.data = kzalloc_obj(struct appldata_net_sum_data, GFP_KERNEL); | 135 | ops.data = kzalloc_obj(struct appldata_net_sum_data); |
| 136 | if (!ops.data) | 136 | if (!ops.data) |
| 137 | return -ENOMEM; | 137 | return -ENOMEM; |
| 138 | 138 | ||
| @@ -16,7 +16,7 @@ static struct hypfs_dbfs_data *hypfs_dbfs_data_alloc(struct hypfs_dbfs_file *f) · 15 unmodified lines | |||
| 16 | { | 16 | { |
| 17 | struct hypfs_dbfs_data *data; | 17 | struct hypfs_dbfs_data *data; |
| 18 | 18 | ||
| 19 | data = kmalloc_obj(*data, GFP_KERNEL); | 19 | data = kmalloc_obj(*data); |
| 20 | if (!data) | 20 | if (!data) |
| 21 | return NULL; | 21 | return NULL; |
| 22 | data->dbfs_file = f; | 22 | data->dbfs_file = f; |
| @@ -35,7 +35,7 @@ static void *diag0c_store(unsigned int *count) · 34 unmodified lines | |||
| 35 | 35 | ||
| 36 | cpus_read_lock(); | 36 | cpus_read_lock(); |
| 37 | cpu_count = num_online_cpus(); | 37 | cpu_count = num_online_cpus(); |
| 38 | cpu_vec = kmalloc_objs(*cpu_vec, num_possible_cpus(), GFP_KERNEL); | 38 | cpu_vec = kmalloc_objs(*cpu_vec, num_possible_cpus()); |
| 39 | if (!cpu_vec) | 39 | if (!cpu_vec) |
| 40 | goto fail_unlock_cpus; | 40 | goto fail_unlock_cpus; |
| 41 | /* Note: Diag 0c needs 8 byte alignment and real storage */ | 41 | /* Note: Diag 0c needs 8 byte alignment and real storage */ |
| @@ -74,7 +74,7 @@ static int __hypfs_sprp_ioctl(void __user *user_area) · 73 unmodified lines | |||
| 74 | 74 | ||
| 75 | rc = -ENOMEM; | 75 | rc = -ENOMEM; |
| 76 | data = (void *)get_zeroed_page(GFP_KERNEL); | 76 | data = (void *)get_zeroed_page(GFP_KERNEL); |
| 77 | diag304 = kzalloc_obj(*diag304, GFP_KERNEL); | 77 | diag304 = kzalloc_obj(*diag304); |
| 78 | if (!data || !diag304) | 78 | if (!data || !diag304) |
| 79 | goto out; | 79 | goto out; |
| 80 | 80 | ||
| @@ -292,7 +292,7 @@ static int hypfs_init_fs_context(struct fs_context *fc) · 291 unmodified lines | |||
| 292 | { | 292 | { |
| 293 | struct hypfs_sb_info *sbi; | 293 | struct hypfs_sb_info *sbi; |
| 294 | 294 | ||
| 295 | sbi = kzalloc_obj(struct hypfs_sb_info, GFP_KERNEL); | 295 | sbi = kzalloc_obj(struct hypfs_sb_info); |
| 296 | if (!sbi) | 296 | if (!sbi) |
| 297 | return -ENOMEM; | 297 | return -ENOMEM; |
| 298 | 298 | ||
| @@ -195,7 +195,7 @@ static inline struct idal_buffer **idal_buffer_array_alloc(size_t size, int page · 194 unmodified lines | |||
| 195 | int i; | 195 | int i; |
| 196 | 196 | ||
| 197 | count = (size + CCW_MAX_BYTE_COUNT - 1) / CCW_MAX_BYTE_COUNT; | 197 | count = (size + CCW_MAX_BYTE_COUNT - 1) / CCW_MAX_BYTE_COUNT; |
| 198 | ibs = kmalloc_objs(*ibs, count + 1, GFP_KERNEL); | 198 | ibs = kmalloc_objs(*ibs, count + 1); |
| 199 | for (i = 0; i < count; i++) { | 199 | for (i = 0; i < count; i++) { |
| 200 | /* Determine size for the current idal buffer */ | 200 | /* Determine size for the current idal buffer */ |
| 201 | ib_size = min(size, CCW_MAX_BYTE_COUNT); | 201 | ib_size = min(size, CCW_MAX_BYTE_COUNT); |
| @@ -322,7 +322,7 @@ static int invalidate_keyring_keys(struct key *keyring) · 321 unmodified lines | |||
| 322 | 322 | ||
| 323 | keyring_payload_len = key_type_keyring.read(keyring, NULL, 0); | 323 | keyring_payload_len = key_type_keyring.read(keyring, NULL, 0); |
| 324 | num_keys = keyring_payload_len / sizeof(key_serial_t); | 324 | num_keys = keyring_payload_len / sizeof(key_serial_t); |
| 325 | key_array = kzalloc_objs(key_serial_t, num_keys, GFP_KERNEL); | 325 | key_array = kzalloc_objs(key_serial_t, num_keys); |
| 326 | if (!key_array) | 326 | if (!key_array) |
| 327 | return -ENOMEM; | 327 | return -ENOMEM; |
| 328 | 328 | ||
| @@ -181,7 +181,7 @@ static debug_entry_t ***debug_areas_alloc(int pages_per_area, int nr_areas) · 180 unmodified lines | |||
| 181 | debug_entry_t ***areas; | 181 | debug_entry_t ***areas; |
| 182 | int i, j; | 182 | int i, j; |
| 183 | 183 | ||
| 184 | areas = kmalloc_objs(debug_entry_t **, nr_areas, GFP_KERNEL); | 184 | areas = kmalloc_objs(debug_entry_t **, nr_areas); |
| 185 | if (!areas) | 185 | if (!areas) |
| 186 | goto fail_malloc_areas; | 186 | goto fail_malloc_areas; |
| 187 | for (i = 0; i < nr_areas; i++) { | 187 | for (i = 0; i < nr_areas; i++) { |
| @@ -224,13 +224,13 @@ static debug_info_t *debug_info_alloc(const char *name, int pages_per_area, · 36 unmodified lines | |||
| 224 | debug_info_t *rc; | 224 | debug_info_t *rc; |
| 225 | 225 | ||
| 226 | /* alloc everything */ | 226 | /* alloc everything */ |
| 227 | rc = kmalloc_obj(debug_info_t, GFP_KERNEL); | 227 | rc = kmalloc_obj(debug_info_t); |
| 228 | if (!rc) | 228 | if (!rc) |
| 229 | goto fail_malloc_rc; | 229 | goto fail_malloc_rc; |
| 230 | rc->active_entries = kzalloc_objs(int, nr_areas, GFP_KERNEL); | 230 | rc->active_entries = kzalloc_objs(int, nr_areas); |
| 231 | if (!rc->active_entries) | 231 | if (!rc->active_entries) |
| 232 | goto fail_malloc_active_entries; | 232 | goto fail_malloc_active_entries; |
| 233 | rc->active_pages = kzalloc_objs(int, nr_areas, GFP_KERNEL); | 233 | rc->active_pages = kzalloc_objs(int, nr_areas); |
| 234 | if (!rc->active_pages) | 234 | if (!rc->active_pages) |
| 235 | goto fail_malloc_active_pages; | 235 | goto fail_malloc_active_pages; |
| 236 | if ((mode == ALL_AREAS) && (pages_per_area != 0)) { | 236 | if ((mode == ALL_AREAS) && (pages_per_area != 0)) { |
| @@ -630,7 +630,7 @@ static file_private_info_t *debug_file_private_alloc(debug_info_t *debug_info, · 393 unmodified lines | |||
| 630 | 630 | ||
| 631 | if (!debug_info_snapshot) | 631 | if (!debug_info_snapshot) |
| 632 | return NULL; | 632 | return NULL; |
| 633 | p_info = kmalloc_obj(file_private_info_t, GFP_KERNEL); | 633 | p_info = kmalloc_obj(file_private_info_t); |
| 634 | if (!p_info) { | 634 | if (!p_info) { |
| 635 | debug_info_free(debug_info_snapshot); | 635 | debug_info_free(debug_info_snapshot); |
| 636 | return NULL; | 636 | return NULL; |
| @@ -24,7 +24,7 @@ static int gs_enable(void) · 23 unmodified lines | |||
| 24 | struct gs_cb *gs_cb; | 24 | struct gs_cb *gs_cb; |
| 25 | 25 | ||
| 26 | if (!current->thread.gs_cb) { | 26 | if (!current->thread.gs_cb) { |
| 27 | gs_cb = kzalloc_obj(*gs_cb, GFP_KERNEL); | 27 | gs_cb = kzalloc_obj(*gs_cb); |
| 28 | if (!gs_cb) | 28 | if (!gs_cb) |
| 29 | return -ENOMEM; | 29 | return -ENOMEM; |
| 30 | gs_cb->gsd = 25; | 30 | gs_cb->gsd = 25; |
| @@ -55,7 +55,7 @@ static int gs_set_bc_cb(struct gs_cb __user *u_gs_cb) · 24 unmodified lines | |||
| 55 | 55 | ||
| 56 | gs_cb = current->thread.gs_bc_cb; | 56 | gs_cb = current->thread.gs_bc_cb; |
| 57 | if (!gs_cb) { | 57 | if (!gs_cb) { |
| 58 | gs_cb = kzalloc_obj(*gs_cb, GFP_KERNEL); | 58 | gs_cb = kzalloc_obj(*gs_cb); |
| 59 | if (!gs_cb) | 59 | if (!gs_cb) |
| 60 | return -ENOMEM; | 60 | return -ENOMEM; |
| 61 | current->thread.gs_bc_cb = gs_cb; | 61 | current->thread.gs_bc_cb = gs_cb; |
| @@ -154,7 +154,7 @@ static void os_info_old_init(void) · 153 unmodified lines | |||
| 154 | goto fail; | 154 | goto fail; |
| 155 | if (addr == 0 || addr % PAGE_SIZE) | 155 | if (addr == 0 || addr % PAGE_SIZE) |
| 156 | goto fail; | 156 | goto fail; |
| 157 | os_info_old = kzalloc_obj(*os_info_old, GFP_KERNEL); | 157 | os_info_old = kzalloc_obj(*os_info_old); |
| 158 | if (!os_info_old) | 158 | if (!os_info_old) |
| 159 | goto fail; | 159 | goto fail; |
| 160 | if (copy_oldmem_kernel(os_info_old, addr, sizeof(*os_info_old))) | 160 | if (copy_oldmem_kernel(os_info_old, addr, sizeof(*os_info_old))) |
| @@ -252,7 +252,7 @@ static int cpum_cf_alloc_cpu(int cpu) · 251 unmodified lines | |||
| 252 | cpuhw = p->cpucf; | 252 | cpuhw = p->cpucf; |
| 253 | 253 | ||
| 254 | if (!cpuhw) { | 254 | if (!cpuhw) { |
| 255 | cpuhw = kzalloc_obj(*cpuhw, GFP_KERNEL); | 255 | cpuhw = kzalloc_obj(*cpuhw); |
| 256 | if (cpuhw) { | 256 | if (cpuhw) { |
| 257 | p->cpucf = cpuhw; | 257 | p->cpucf = cpuhw; |
| 258 | refcount_set(&cpuhw->refcnt, 1); | 258 | refcount_set(&cpuhw->refcnt, 1); |
| @@ -1616,7 +1616,7 @@ static long cfset_ioctl_start(unsigned long arg, struct file *file) · 1357 unmodified lines | |||
| 1616 | if (!start.counter_sets) | 1616 | if (!start.counter_sets) |
| 1617 | return -EINVAL; /* No counter set at all? */ | 1617 | return -EINVAL; /* No counter set at all? */ |
| 1618 | 1618 | ||
| 1619 | preq = kzalloc_obj(*preq, GFP_KERNEL); | 1619 | preq = kzalloc_obj(*preq); |
| 1620 | if (!preq) | 1620 | if (!preq) |
| 1621 | return -ENOMEM; | 1621 | return -ENOMEM; |
| 1622 | cpumask_clear(&preq->mask); | 1622 | cpumask_clear(&preq->mask); |
| @@ -976,7 +976,7 @@ static __init struct attribute **merge_attr(struct attribute **a, · 975 unmodified lines | |||
| 976 | j++; | 976 | j++; |
| 977 | j++; | 977 | j++; |
| 978 | 978 | ||
| 979 | new = kmalloc_objs(struct attribute *, j, GFP_KERNEL); | 979 | new = kmalloc_objs(struct attribute *, j); |
| 980 | if (!new) | 980 | if (!new) |
| 981 | return NULL; | 981 | return NULL; |
| 982 | j = 0; | 982 | j = 0; |
| @@ -1609,7 +1609,7 @@ static void *aux_buffer_setup(struct perf_event *event, void **pages, · 1608 unmodified lines | |||
| 1609 | } | 1609 | } |
| 1610 | 1610 | ||
| 1611 | /* Allocate aux_buffer struct for the event */ | 1611 | /* Allocate aux_buffer struct for the event */ |
| 1612 | aux = kzalloc_obj(struct aux_buffer, GFP_KERNEL); | 1612 | aux = kzalloc_obj(struct aux_buffer); |
| 1613 | if (!aux) | 1613 | if (!aux) |
| 1614 | goto no_aux; | 1614 | goto no_aux; |
| 1615 | sfb = &aux->sfb; | 1615 | sfb = &aux->sfb; |
| @@ -252,7 +252,7 @@ static int pai_alloc_cpu(struct perf_event *event, int cpu) · 251 unmodified lines | |||
| 252 | cpump = mp->mapptr; | 252 | cpump = mp->mapptr; |
| 253 | if (!cpump) { /* Paicrypt_map allocated? */ | 253 | if (!cpump) { /* Paicrypt_map allocated? */ |
| 254 | rc = -ENOMEM; | 254 | rc = -ENOMEM; |
| 255 | cpump = kzalloc_obj(*cpump, GFP_KERNEL); | 255 | cpump = kzalloc_obj(*cpump); |
| 256 | if (!cpump) | 256 | if (!cpump) |
| 257 | goto undo; | 257 | goto undo; |
| 258 | /* Allocate memory for counter page and counter extraction. | 258 | /* Allocate memory for counter page and counter extraction. |
| @@ -315,7 +315,7 @@ static int pai_alloc(struct perf_event *event) · 56 unmodified lines | |||
| 315 | struct cpumask *maskptr; | 315 | struct cpumask *maskptr; |
| 316 | int cpu, rc = -ENOMEM; | 316 | int cpu, rc = -ENOMEM; |
| 317 | 317 | ||
| 318 | maskptr = kzalloc_obj(*maskptr, GFP_KERNEL); | 318 | maskptr = kzalloc_obj(*maskptr); |
| 319 | if (!maskptr) | 319 | if (!maskptr) |
| 320 | goto out; | 320 | goto out; |
| 321 | 321 | ||
| @@ -1070,7 +1070,7 @@ static struct attribute * __init attr_event_init_one(int num, · 748 unmodified lines | |||
| 1070 | { | 1070 | { |
| 1071 | struct perf_pmu_events_attr *pa; | 1071 | struct perf_pmu_events_attr *pa; |
| 1072 | 1072 | ||
| 1073 | pa = kzalloc_obj(*pa, GFP_KERNEL); | 1073 | pa = kzalloc_obj(*pa); |
| 1074 | if (!pa) | 1074 | if (!pa) |
| 1075 | return NULL; | 1075 | return NULL; |
| 1076 | 1076 | ||
| @@ -749,7 +749,7 @@ static int s390_gs_cb_set(struct task_struct *target, · 748 unmodified lines | |||
| 749 | if (!cpu_has_gs()) | 749 | if (!cpu_has_gs()) |
| 750 | return -ENODEV; | 750 | return -ENODEV; |
| 751 | if (!target->thread.gs_cb) { | 751 | if (!target->thread.gs_cb) { |
| 752 | data = kzalloc_obj(*data, GFP_KERNEL); | 752 | data = kzalloc_obj(*data); |
| 753 | if (!data) | 753 | if (!data) |
| 754 | return -ENOMEM; | 754 | return -ENOMEM; |
| 755 | } | 755 | } |
| @@ -800,7 +800,7 @@ static int s390_gs_bc_set(struct task_struct *target, · 44 unmodified lines | |||
| 800 | if (!cpu_has_gs()) | 800 | if (!cpu_has_gs()) |
| 801 | return -ENODEV; | 801 | return -ENODEV; |
| 802 | if (!data) { | 802 | if (!data) { |
| 803 | data = kzalloc_obj(*data, GFP_KERNEL); | 803 | data = kzalloc_obj(*data); |
| 804 | if (!data) | 804 | if (!data) |
| 805 | return -ENOMEM; | 805 | return -ENOMEM; |
| 806 | target->thread.gs_bc_cb = data; | 806 | target->thread.gs_bc_cb = data; |
| @@ -861,7 +861,7 @@ static int s390_runtime_instr_set(struct task_struct *target, · 54 unmodified lines | |||
| 861 | return -ENODEV; | 861 | return -ENODEV; |
| 862 | 862 | ||
| 863 | if (!target->thread.ri_cb) { | 863 | if (!target->thread.ri_cb) { |
| 864 | data = kzalloc_obj(*data, GFP_KERNEL); | 864 | data = kzalloc_obj(*data); |
| 865 | if (!data) | 865 | if (!data) |
| 866 | return -ENOMEM; | 866 | return -ENOMEM; |
| 867 | } | 867 | } |
| @@ -83,7 +83,7 @@ SYSCALL_DEFINE2(s390_runtime_instr, int, command, int, signum) · 82 unmodified lines | |||
| 83 | return -EINVAL; | 83 | return -EINVAL; |
| 84 | 84 | ||
| 85 | if (!current->thread.ri_cb) { | 85 | if (!current->thread.ri_cb) { |
| 86 | cb = kzalloc_obj(*cb, GFP_KERNEL); | 86 | cb = kzalloc_obj(*cb); |
| 87 | if (!cb) | 87 | if (!cb) |
| 88 | return -ENOMEM; | 88 | return -ENOMEM; |
| 89 | } else { | 89 | } else { |
| @@ -1145,7 +1145,7 @@ int __ref smp_rescan_cpus(bool early) · 1144 unmodified lines | |||
| 1145 | struct sclp_core_info *info; | 1145 | struct sclp_core_info *info; |
| 1146 | int nr; | 1146 | int nr; |
| 1147 | 1147 | ||
| 1148 | info = kzalloc_obj(*info, GFP_KERNEL); | 1148 | info = kzalloc_obj(*info); |
| 1149 | if (!info) | 1149 | if (!info) |
| 1150 | return -ENOMEM; | 1150 | return -ENOMEM; |
| 1151 | smp_get_core_info(info, 0); | 1151 | smp_get_core_info(info, 0); |
| @@ -132,7 +132,7 @@ static struct page ** __init vdso_setup_pages(void *start, void *end) · 131 unmodified lines | |||
| 132 | struct page **pagelist; | 132 | struct page **pagelist; |
| 133 | int i; | 133 | int i; |
| 134 | 134 | ||
| 135 | pagelist = kzalloc_objs(struct page *, pages + 1, GFP_KERNEL); | 135 | pagelist = kzalloc_objs(struct page *, pages + 1); |
| 136 | if (!pagelist) | 136 | if (!pagelist) |
| 137 | panic("%s: Cannot allocate page list for VDSO", __func__); | 137 | panic("%s: Cannot allocate page list for VDSO", __func__); |
| 138 | for (i = 0; i < pages; i++) | 138 | for (i = 0; i < pages; i++) |
| @@ -54,7 +54,7 @@ static int zpci_setup_aipb(u8 nisc) · 53 unmodified lines | |||
| 54 | struct page *page; | 54 | struct page *page; |
| 55 | int size, rc; | 55 | int size, rc; |
| 56 | 56 | ||
| 57 | zpci_aipb = kzalloc_obj(union zpci_sic_iib, GFP_KERNEL); | 57 | zpci_aipb = kzalloc_obj(union zpci_sic_iib); |
| 58 | if (!zpci_aipb) | 58 | if (!zpci_aipb) |
| 59 | return -ENOMEM; | 59 | return -ENOMEM; |
| 60 | 60 | ||
| @@ -404,7 +404,7 @@ static int kvm_s390_pci_dev_open(struct zpci_dev *zdev) · 343 unmodified lines | |||
| 404 | { | 404 | { |
| 405 | struct kvm_zdev *kzdev; | 405 | struct kvm_zdev *kzdev; |
| 406 | 406 | ||
| 407 | kzdev = kzalloc_obj(struct kvm_zdev, GFP_KERNEL); | 407 | kzdev = kzalloc_obj(struct kvm_zdev); |
| 408 | if (!kzdev) | 408 | if (!kzdev) |
| 409 | return -ENOMEM; | 409 | return -ENOMEM; |
| 410 | 410 | ||
| @@ -666,7 +666,7 @@ int __init kvm_s390_pci_init(void) · 255 unmodified lines | |||
| 666 | if (!kvm_s390_pci_interp_allowed()) | 666 | if (!kvm_s390_pci_interp_allowed()) |
| 667 | return 0; | 667 | return 0; |
| 668 | 668 | ||
| 669 | aift = kzalloc_obj(struct zpci_aift, GFP_KERNEL); | 669 | aift = kzalloc_obj(struct zpci_aift); |
| 670 | if (!aift) | 670 | if (!aift) |
| 671 | return -ENOMEM; | 671 | return -ENOMEM; |
| 672 | 672 | ||
| @@ -466,7 +466,7 @@ int kvm_s390_pv_set_aside(struct kvm *kvm, u16 *rc, u16 *rrc) · 465 unmodified lines | |||
| 466 | if (kvm->arch.gmap->asce.dt == TABLE_TYPE_SEGMENT) | 466 | if (kvm->arch.gmap->asce.dt == TABLE_TYPE_SEGMENT) |
| 467 | return -EINVAL; | 467 | return -EINVAL; |
| 468 | 468 | ||
| 469 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 469 | priv = kzalloc_obj(*priv); |
| 470 | if (!priv) | 470 | if (!priv) |
| 471 | return -ENOMEM; | 471 | return -ENOMEM; |
| 472 | 472 | ||
| @@ -317,7 +317,7 @@ __segment_load (char *name, int do_nonshared, unsigned long *addr, unsigned long · 316 unmodified lines | |||
| 317 | goto out_free; | 317 | goto out_free; |
| 318 | } | 318 | } |
| 319 | 319 | ||
| 320 | seg->res = kzalloc_obj(struct resource, GFP_KERNEL); | 320 | seg->res = kzalloc_obj(struct resource); |
| 321 | if (seg->res == NULL) { | 321 | if (seg->res == NULL) { |
| 322 | rc = -ENOMEM; | 322 | rc = -ENOMEM; |
| 323 | goto out_free; | 323 | goto out_free; |
| @@ -2323,7 +2323,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) · 2322 unmodified lines | |||
| 2323 | 2323 | ||
| 2324 | jit_data = fp->aux->jit_data; | 2324 | jit_data = fp->aux->jit_data; |
| 2325 | if (!jit_data) { | 2325 | if (!jit_data) { |
| 2326 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 2326 | jit_data = kzalloc_obj(*jit_data); |
| 2327 | if (!jit_data) { | 2327 | if (!jit_data) { |
| 2328 | fp = orig_fp; | 2328 | fp = orig_fp; |
| 2329 | goto out; | 2329 | goto out; |
| @@ -523,7 +523,7 @@ static struct resource *__alloc_res(struct zpci_dev *zdev, unsigned long start, · 522 unmodified lines | |||
| 523 | { | 523 | { |
| 524 | struct resource *r; | 524 | struct resource *r; |
| 525 | 525 | ||
| 526 | r = kzalloc_obj(*r, GFP_KERNEL); | 526 | r = kzalloc_obj(*r); |
| 527 | if (!r) | 527 | if (!r) |
| 528 | return NULL; | 528 | return NULL; |
| 529 | 529 | ||
| @@ -824,7 +824,7 @@ struct zpci_dev *zpci_create_device(u32 fid, u32 fh, enum zpci_state state) · 294 unmodified lines | |||
| 824 | struct zpci_dev *zdev; | 824 | struct zpci_dev *zdev; |
| 825 | int rc; | 825 | int rc; |
| 826 | 826 | ||
| 827 | zdev = kzalloc_obj(*zdev, GFP_KERNEL); | 827 | zdev = kzalloc_obj(*zdev); |
| 828 | if (!zdev) | 828 | if (!zdev) |
| 829 | return ERR_PTR(-ENOMEM); | 829 | return ERR_PTR(-ENOMEM); |
| 830 | 830 | ||
| @@ -315,7 +315,7 @@ static struct zpci_bus *zpci_bus_alloc(int topo, bool topo_is_tid) · 314 unmodified lines | |||
| 315 | { | 315 | { |
| 316 | struct zpci_bus *zbus; | 316 | struct zpci_bus *zbus; |
| 317 | 317 | ||
| 318 | zbus = kzalloc_obj(*zbus, GFP_KERNEL); | 318 | zbus = kzalloc_obj(*zbus); |
| 319 | if (!zbus) | 319 | if (!zbus) |
| 320 | return NULL; | 320 | return NULL; |
| 321 | 321 | ||
| @@ -563,7 +563,7 @@ static int __init zpci_directed_irq_init(void) · 562 unmodified lines | |||
| 563 | iib.diib.disb_addr = virt_to_phys(zpci_sbv->vector); | 563 | iib.diib.disb_addr = virt_to_phys(zpci_sbv->vector); |
| 564 | zpci_set_irq_ctrl(SIC_IRQ_MODE_DIRECT, 0, &iib); | 564 | zpci_set_irq_ctrl(SIC_IRQ_MODE_DIRECT, 0, &iib); |
| 565 | 565 | ||
| 566 | zpci_ibv = kzalloc_objs(*zpci_ibv, num_possible_cpus(), GFP_KERNEL); | 566 | zpci_ibv = kzalloc_objs(*zpci_ibv, num_possible_cpus()); |
| 567 | if (!zpci_ibv) | 567 | if (!zpci_ibv) |
| 568 | return -ENOMEM; | 568 | return -ENOMEM; |
| 569 | 569 | ||
| @@ -589,7 +589,7 @@ static int __init zpci_directed_irq_init(void) · 19 unmodified lines | |||
| 589 | 589 | ||
| 590 | static int __init zpci_floating_irq_init(void) | 590 | static int __init zpci_floating_irq_init(void) |
| 591 | { | 591 | { |
| 592 | zpci_ibv = kzalloc_objs(*zpci_ibv, ZPCI_NR_DEVICES, GFP_KERNEL); | 592 | zpci_ibv = kzalloc_objs(*zpci_ibv, ZPCI_NR_DEVICES); |
| 593 | if (!zpci_ibv) | 593 | if (!zpci_ibv) |
| 594 | return -ENOMEM; | 594 | return -ENOMEM; |
| 595 | 595 | ||
| @@ -153,7 +153,7 @@ static int __init dmabrg_init(void) · 152 unmodified lines | |||
| 153 | unsigned long or; | 153 | unsigned long or; |
| 154 | int ret; | 154 | int ret; |
| 155 | 155 | ||
| 156 | dmabrg_handlers = kzalloc_objs(struct dmabrg_handler, 10, GFP_KERNEL); | 156 | dmabrg_handlers = kzalloc_objs(struct dmabrg_handler, 10); |
| 157 | if (!dmabrg_handlers) | 157 | if (!dmabrg_handlers) |
| 158 | return -ENOMEM; | 158 | return -ENOMEM; |
| 159 | 159 | ||
| @@ -91,7 +91,7 @@ static int heartbeat_drv_probe(struct platform_device *pdev) · 90 unmodified lines | |||
| 91 | if (pdev->dev.platform_data) { | 91 | if (pdev->dev.platform_data) { |
| 92 | hd = pdev->dev.platform_data; | 92 | hd = pdev->dev.platform_data; |
| 93 | } else { | 93 | } else { |
| 94 | hd = kzalloc_obj(struct heartbeat_data, GFP_KERNEL); | 94 | hd = kzalloc_obj(struct heartbeat_data); |
| 95 | if (unlikely(!hd)) | 95 | if (unlikely(!hd)) |
| 96 | return -ENOMEM; | 96 | return -ENOMEM; |
| 97 | } | 97 | } |
| @@ -46,7 +46,7 @@ static int switch_drv_probe(struct platform_device *pdev) · 45 unmodified lines | |||
| 46 | struct push_switch *psw; | 46 | struct push_switch *psw; |
| 47 | int ret, irq; | 47 | int ret, irq; |
| 48 | 48 | ||
| 49 | psw = kzalloc_obj(struct push_switch, GFP_KERNEL); | 49 | psw = kzalloc_obj(struct push_switch); |
| 50 | if (unlikely(!psw)) | 50 | if (unlikely(!psw)) |
| 51 | return -ENOMEM; | 51 | return -ENOMEM; |
| 52 | 52 | ||
| @@ -342,7 +342,7 @@ static int sq_dev_add(struct device *dev, struct subsys_interface *sif) · 341 unmodified lines | |||
| 342 | struct kobject *kobj; | 342 | struct kobject *kobj; |
| 343 | int error; | 343 | int error; |
| 344 | 344 | ||
| 345 | sq_kobject[cpu] = kzalloc_obj(struct kobject, GFP_KERNEL); | 345 | sq_kobject[cpu] = kzalloc_obj(struct kobject); |
| 346 | if (unlikely(!sq_kobject[cpu])) | 346 | if (unlikely(!sq_kobject[cpu])) |
| 347 | return -ENOMEM; | 347 | return -ENOMEM; |
| 348 | 348 | ||
| @@ -741,7 +741,7 @@ static int dwarf_parse_cie(void *entry, void *p, unsigned long len, · 740 unmodified lines | |||
| 741 | unsigned long flags; | 741 | unsigned long flags; |
| 742 | int count; | 742 | int count; |
| 743 | 743 | ||
| 744 | cie = kzalloc_obj(*cie, GFP_KERNEL); | 744 | cie = kzalloc_obj(*cie); |
| 745 | if (!cie) | 745 | if (!cie) |
| 746 | return -ENOMEM; | 746 | return -ENOMEM; |
| 747 | 747 | ||
| @@ -874,7 +874,7 @@ static int dwarf_parse_fde(void *entry, u32 entry_type, · 126 unmodified lines | |||
| 874 | int count; | 874 | int count; |
| 875 | void *p = start; | 875 | void *p = start; |
| 876 | 876 | ||
| 877 | fde = kzalloc_obj(*fde, GFP_KERNEL); | 877 | fde = kzalloc_obj(*fde); |
| 878 | if (!fde) | 878 | if (!fde) |
| 879 | return -ENOMEM; | 879 | return -ENOMEM; |
| 880 | 880 | ||
| @@ -63,7 +63,7 @@ static int clock_board_calc_nslots(struct clock_board *p) · 62 unmodified lines | |||
| 63 | 63 | ||
| 64 | static int clock_board_probe(struct platform_device *op) | 64 | static int clock_board_probe(struct platform_device *op) |
| 65 | { | 65 | { |
| 66 | struct clock_board *p = kzalloc_obj(*p, GFP_KERNEL); | 66 | struct clock_board *p = kzalloc_obj(*p); |
| 67 | int err = -ENOMEM; | 67 | int err = -ENOMEM; |
| 68 | 68 | ||
| 69 | if (!p) { | 69 | if (!p) { |
| @@ -159,7 +159,7 @@ static struct platform_driver clock_board_driver = { · 89 unmodified lines | |||
| 159 | 159 | ||
| 160 | static int fhc_probe(struct platform_device *op) | 160 | static int fhc_probe(struct platform_device *op) |
| 161 | { | 161 | { |
| 162 | struct fhc *p = kzalloc_obj(*p, GFP_KERNEL); | 162 | struct fhc *p = kzalloc_obj(*p); |
| 163 | int err = -ENOMEM; | 163 | int err = -ENOMEM; |
| 164 | u32 reg; | 164 | u32 reg; |
| 165 | 165 | ||
| @@ -417,7 +417,7 @@ static int jbusmc_probe(struct platform_device *op) · 416 unmodified lines | |||
| 417 | num_mem_regs = len / sizeof(*mem_regs); | 417 | num_mem_regs = len / sizeof(*mem_regs); |
| 418 | 418 | ||
| 419 | err = -ENOMEM; | 419 | err = -ENOMEM; |
| 420 | p = kzalloc_obj(*p, GFP_KERNEL); | 420 | p = kzalloc_obj(*p); |
| 421 | if (!p) { | 421 | if (!p) { |
| 422 | printk(KERN_ERR PFX "Cannot allocate struct jbusmc.\n"); | 422 | printk(KERN_ERR PFX "Cannot allocate struct jbusmc.\n"); |
| 423 | goto out; | 423 | goto out; |
| @@ -718,7 +718,7 @@ static int chmc_probe(struct platform_device *op) · 294 unmodified lines | |||
| 718 | } | 718 | } |
| 719 | 719 | ||
| 720 | err = -ENOMEM; | 720 | err = -ENOMEM; |
| 721 | p = kzalloc_obj(*p, GFP_KERNEL); | 721 | p = kzalloc_obj(*p); |
| 722 | if (!p) { | 722 | if (!p) { |
| 723 | printk(KERN_ERR PFX "Could not allocate struct chmc.\n"); | 723 | printk(KERN_ERR PFX "Could not allocate struct chmc.\n"); |
| 724 | goto out; | 724 | goto out; |
| @@ -1175,7 +1175,7 @@ static int ds_probe(struct vio_dev *vdev, const struct vio_device_id *id) · 1174 unmodified lines | |||
| 1175 | if (ds_version_printed++ == 0) | 1175 | if (ds_version_printed++ == 0) |
| 1176 | printk(KERN_INFO "%s", version); | 1176 | printk(KERN_INFO "%s", version); |
| 1177 | 1177 | ||
| 1178 | dp = kzalloc_obj(*dp, GFP_KERNEL); | 1178 | dp = kzalloc_obj(*dp); |
| 1179 | err = -ENOMEM; | 1179 | err = -ENOMEM; |
| 1180 | if (!dp) | 1180 | if (!dp) |
| 1181 | goto out_err; | 1181 | goto out_err; |
| @@ -238,7 +238,7 @@ unsigned long sparc_dma_alloc_resource(struct device *dev, size_t len) · 237 unmodified lines | |||
| 238 | { | 238 | { |
| 239 | struct resource *res; | 239 | struct resource *res; |
| 240 | 240 | ||
| 241 | res = kzalloc_obj(*res, GFP_KERNEL); | 241 | res = kzalloc_obj(*res); |
| 242 | if (!res) | 242 | if (!res) |
| 243 | return 0; | 243 | return 0; |
| 244 | res->name = dev->of_node->full_name; | 244 | res->name = dev->of_node->full_name; |
| @@ -1171,7 +1171,7 @@ struct ldc_channel *ldc_alloc(unsigned long id, · 1170 unmodified lines | |||
| 1171 | 1171 | ||
| 1172 | mssbuf = NULL; | 1172 | mssbuf = NULL; |
| 1173 | 1173 | ||
| 1174 | lp = kzalloc_obj(*lp, GFP_KERNEL); | 1174 | lp = kzalloc_obj(*lp); |
| 1175 | err = -ENOMEM; | 1175 | err = -ENOMEM; |
| 1176 | if (!lp) | 1176 | if (!lp) |
| 1177 | goto out_err; | 1177 | goto out_err; |
| @@ -721,7 +721,7 @@ static int grpci2_of_probe(struct platform_device *ofdev) · 720 unmodified lines | |||
| 721 | goto err1; | 721 | goto err1; |
| 722 | } | 722 | } |
| 723 | 723 | ||
| 724 | priv = grpci2priv = kzalloc_obj(struct grpci2_priv, GFP_KERNEL); | 724 | priv = grpci2priv = kzalloc_obj(struct grpci2_priv); |
| 725 | if (grpci2priv == NULL) { | 725 | if (grpci2priv == NULL) { |
| 726 | err = -ENOMEM; | 726 | err = -ENOMEM; |
| 727 | goto err1; | 727 | goto err1; |
| @@ -340,7 +340,7 @@ static void __init build_device_resources(struct platform_device *op, · 339 unmodified lines | |||
| 340 | static struct platform_device * __init scan_one_device(struct device_node *dp, | 340 | static struct platform_device * __init scan_one_device(struct device_node *dp, |
| 341 | struct device *parent) | 341 | struct device *parent) |
| 342 | { | 342 | { |
| 343 | struct platform_device *op = kzalloc_obj(*op, GFP_KERNEL); | 343 | struct platform_device *op = kzalloc_obj(*op); |
| 344 | const struct linux_prom_irqs *intr; | 344 | const struct linux_prom_irqs *intr; |
| 345 | struct dev_archdata *sd; | 345 | struct dev_archdata *sd; |
| 346 | int len, i; | 346 | int len, i; |
| @@ -633,7 +633,7 @@ out: · 632 unmodified lines | |||
| 633 | static struct platform_device * __init scan_one_device(struct device_node *dp, | 633 | static struct platform_device * __init scan_one_device(struct device_node *dp, |
| 634 | struct device *parent) | 634 | struct device *parent) |
| 635 | { | 635 | { |
| 636 | struct platform_device *op = kzalloc_obj(*op, GFP_KERNEL); | 636 | struct platform_device *op = kzalloc_obj(*op); |
| 637 | const unsigned int *irq; | 637 | const unsigned int *irq; |
| 638 | struct dev_archdata *sd; | 638 | struct dev_archdata *sd; |
| 639 | int len, i; | 639 | int len, i; |
| @@ -650,7 +650,7 @@ static void pci_claim_legacy_resources(struct pci_dev *dev) · 649 unmodified lines | |||
| 650 | if ((dev->class >> 8) != PCI_CLASS_DISPLAY_VGA) | 650 | if ((dev->class >> 8) != PCI_CLASS_DISPLAY_VGA) |
| 651 | return; | 651 | return; |
| 652 | 652 | ||
| 653 | p = kzalloc_obj(*p, GFP_KERNEL); | 653 | p = kzalloc_obj(*p); |
| 654 | if (!p) | 654 | if (!p) |
| 655 | return; | 655 | return; |
| 656 | 656 | ||
| @@ -336,7 +336,7 @@ static void pci_register_iommu_region(struct pci_pbm_info *pbm) · 335 unmodified lines | |||
| 336 | NULL); | 336 | NULL); |
| 337 | 337 | ||
| 338 | if (vdma) { | 338 | if (vdma) { |
| 339 | struct resource *rp = kzalloc_obj(*rp, GFP_KERNEL); | 339 | struct resource *rp = kzalloc_obj(*rp); |
| 340 | 340 | ||
| 341 | if (!rp) { | 341 | if (!rp) { |
| 342 | pr_info("%s: Cannot allocate IOMMU resource.\n", | 342 | pr_info("%s: Cannot allocate IOMMU resource.\n", |
| @@ -468,13 +468,13 @@ static int fire_probe(struct platform_device *op) · 467 unmodified lines | |||
| 468 | portid = of_getintprop_default(dp, "portid", 0xff); | 468 | portid = of_getintprop_default(dp, "portid", 0xff); |
| 469 | 469 | ||
| 470 | err = -ENOMEM; | 470 | err = -ENOMEM; |
| 471 | pbm = kzalloc_obj(*pbm, GFP_KERNEL); | 471 | pbm = kzalloc_obj(*pbm); |
| 472 | if (!pbm) { | 472 | if (!pbm) { |
| 473 | printk(KERN_ERR PFX "Cannot allocate pci_pbminfo.\n"); | 473 | printk(KERN_ERR PFX "Cannot allocate pci_pbminfo.\n"); |
| 474 | goto out_err; | 474 | goto out_err; |
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | iommu = kzalloc_obj(struct iommu, GFP_KERNEL); | 477 | iommu = kzalloc_obj(struct iommu); |
| 478 | if (!iommu) { | 478 | if (!iommu) { |
| 479 | printk(KERN_ERR PFX "Cannot allocate PBM iommu.\n"); | 479 | printk(KERN_ERR PFX "Cannot allocate PBM iommu.\n"); |
| 480 | goto out_free_controller; | 480 | goto out_free_controller; |
| @@ -519,7 +519,7 @@ static int psycho_probe(struct platform_device *op) · 518 unmodified lines | |||
| 519 | upa_portid = of_getintprop_default(dp, "upa-portid", 0xff); | 519 | upa_portid = of_getintprop_default(dp, "upa-portid", 0xff); |
| 520 | 520 | ||
| 521 | err = -ENOMEM; | 521 | err = -ENOMEM; |
| 522 | pbm = kzalloc_obj(*pbm, GFP_KERNEL); | 522 | pbm = kzalloc_obj(*pbm); |
| 523 | if (!pbm) { | 523 | if (!pbm) { |
| 524 | printk(KERN_ERR PFX "Cannot allocate pci_pbm_info.\n"); | 524 | printk(KERN_ERR PFX "Cannot allocate pci_pbm_info.\n"); |
| 525 | goto out_err; | 525 | goto out_err; |
| @@ -529,7 +529,7 @@ static int psycho_probe(struct platform_device *op) · 3 unmodified lines | |||
| 529 | if (pbm->sibling) { | 529 | if (pbm->sibling) { |
| 530 | iommu = pbm->sibling->iommu; | 530 | iommu = pbm->sibling->iommu; |
| 531 | } else { | 531 | } else { |
| 532 | iommu = kzalloc_obj(struct iommu, GFP_KERNEL); | 532 | iommu = kzalloc_obj(struct iommu); |
| 533 | if (!iommu) { | 533 | if (!iommu) { |
| 534 | printk(KERN_ERR PFX "Cannot allocate PBM iommu.\n"); | 534 | printk(KERN_ERR PFX "Cannot allocate PBM iommu.\n"); |
| 535 | goto out_free_controller; | 535 | goto out_free_controller; |
| @@ -482,13 +482,13 @@ static int sabre_probe(struct platform_device *op) · 481 unmodified lines | |||
| 482 | } | 482 | } |
| 483 | 483 | ||
| 484 | err = -ENOMEM; | 484 | err = -ENOMEM; |
| 485 | pbm = kzalloc_obj(*pbm, GFP_KERNEL); | 485 | pbm = kzalloc_obj(*pbm); |
| 486 | if (!pbm) { | 486 | if (!pbm) { |
| 487 | printk(KERN_ERR PFX "Cannot allocate pci_pbm_info.\n"); | 487 | printk(KERN_ERR PFX "Cannot allocate pci_pbm_info.\n"); |
| 488 | goto out_err; | 488 | goto out_err; |
| 489 | } | 489 | } |
| 490 | 490 | ||
| 491 | iommu = kzalloc_obj(*iommu, GFP_KERNEL); | 491 | iommu = kzalloc_obj(*iommu); |
| 492 | if (!iommu) { | 492 | if (!iommu) { |
| 493 | printk(KERN_ERR PFX "Cannot allocate PBM iommu.\n"); | 493 | printk(KERN_ERR PFX "Cannot allocate PBM iommu.\n"); |
| 494 | goto out_free_controller; | 494 | goto out_free_controller; |
| @@ -1426,7 +1426,7 @@ static int __schizo_init(struct platform_device *op, unsigned long chip_type) · 1425 unmodified lines | |||
| 1426 | portid = of_getintprop_default(dp, "portid", 0xff); | 1426 | portid = of_getintprop_default(dp, "portid", 0xff); |
| 1427 | 1427 | ||
| 1428 | err = -ENOMEM; | 1428 | err = -ENOMEM; |
| 1429 | pbm = kzalloc_obj(*pbm, GFP_KERNEL); | 1429 | pbm = kzalloc_obj(*pbm); |
| 1430 | if (!pbm) { | 1430 | if (!pbm) { |
| 1431 | printk(KERN_ERR PFX "Cannot allocate pci_pbm_info.\n"); | 1431 | printk(KERN_ERR PFX "Cannot allocate pci_pbm_info.\n"); |
| 1432 | goto out_err; | 1432 | goto out_err; |
| @@ -1434,7 +1434,7 @@ static int __schizo_init(struct platform_device *op, unsigned long chip_type) · 1 unmodified line | |||
| 1434 | 1434 | ||
| 1435 | pbm->sibling = schizo_find_sibling(portid, chip_type); | 1435 | pbm->sibling = schizo_find_sibling(portid, chip_type); |
| 1436 | 1436 | ||
| 1437 | iommu = kzalloc_obj(struct iommu, GFP_KERNEL); | 1437 | iommu = kzalloc_obj(struct iommu); |
| 1438 | if (!iommu) { | 1438 | if (!iommu) { |
| 1439 | printk(KERN_ERR PFX "Cannot allocate PBM A iommu.\n"); | 1439 | printk(KERN_ERR PFX "Cannot allocate PBM A iommu.\n"); |
| 1440 | goto out_free_pbm; | 1440 | goto out_free_pbm; |
| @@ -754,7 +754,7 @@ static int pci_sun4v_atu_alloc_iotsb(struct pci_pbm_info *pbm) · 753 unmodified lines | |||
| 754 | unsigned long order; | 754 | unsigned long order; |
| 755 | unsigned long err; | 755 | unsigned long err; |
| 756 | 756 | ||
| 757 | iotsb = kzalloc_obj(*iotsb, GFP_KERNEL); | 757 | iotsb = kzalloc_obj(*iotsb); |
| 758 | if (!iotsb) { | 758 | if (!iotsb) { |
| 759 | err = -ENOMEM; | 759 | err = -ENOMEM; |
| 760 | goto out_err; | 760 | goto out_err; |
| @@ -1292,13 +1292,13 @@ static int pci_sun4v_probe(struct platform_device *op) · 531 unmodified lines | |||
| 1292 | iommu_batch_initialized = 1; | 1292 | iommu_batch_initialized = 1; |
| 1293 | } | 1293 | } |
| 1294 | 1294 | ||
| 1295 | pbm = kzalloc_obj(*pbm, GFP_KERNEL); | 1295 | pbm = kzalloc_obj(*pbm); |
| 1296 | if (!pbm) { | 1296 | if (!pbm) { |
| 1297 | printk(KERN_ERR PFX "Could not allocate pci_pbm_info\n"); | 1297 | printk(KERN_ERR PFX "Could not allocate pci_pbm_info\n"); |
| 1298 | goto out_err; | 1298 | goto out_err; |
| 1299 | } | 1299 | } |
| 1300 | 1300 | ||
| 1301 | iommu = kzalloc_obj(struct iommu, GFP_KERNEL); | 1301 | iommu = kzalloc_obj(struct iommu); |
| 1302 | if (!iommu) { | 1302 | if (!iommu) { |
| 1303 | printk(KERN_ERR PFX "Could not allocate pbm iommu\n"); | 1303 | printk(KERN_ERR PFX "Could not allocate pbm iommu\n"); |
| 1304 | goto out_free_controller; | 1304 | goto out_free_controller; |
| @@ -1307,7 +1307,7 @@ static int pci_sun4v_probe(struct platform_device *op) · 2 unmodified lines | |||
| 1307 | pbm->iommu = iommu; | 1307 | pbm->iommu = iommu; |
| 1308 | iommu->atu = NULL; | 1308 | iommu->atu = NULL; |
| 1309 | if (hv_atu) { | 1309 | if (hv_atu) { |
| 1310 | atu = kzalloc_obj(*atu, GFP_KERNEL); | 1310 | atu = kzalloc_obj(*atu); |
| 1311 | if (!atu) | 1311 | if (!atu) |
| 1312 | pr_err(PFX "Could not allocate atu\n"); | 1312 | pr_err(PFX "Could not allocate atu\n"); |
| 1313 | else | 1313 | else |
| @@ -388,7 +388,7 @@ static int __init topology_init(void) · 387 unmodified lines | |||
| 388 | 388 | ||
| 389 | err = 0; | 389 | err = 0; |
| 390 | for_each_online_cpu(i) { | 390 | for_each_online_cpu(i) { |
| 391 | struct cpu *p = kzalloc_obj(*p, GFP_KERNEL); | 391 | struct cpu *p = kzalloc_obj(*p); |
| 392 | if (!p) | 392 | if (!p) |
| 393 | err = -ENOMEM; | 393 | err = -ENOMEM; |
| 394 | else | 394 | else |
| @@ -50,7 +50,7 @@ void starfire_hookup(int upaid) · 49 unmodified lines | |||
| 50 | struct starfire_irqinfo *p; | 50 | struct starfire_irqinfo *p; |
| 51 | unsigned long treg_base, hwmid, i; | 51 | unsigned long treg_base, hwmid, i; |
| 52 | 52 | ||
| 53 | p = kmalloc_obj(*p, GFP_KERNEL); | 53 | p = kmalloc_obj(*p); |
| 54 | if (!p) { | 54 | if (!p) { |
| 55 | prom_printf("starfire_hookup: No memory, this is insane.\n"); | 55 | prom_printf("starfire_hookup: No memory, this is insane.\n"); |
| 56 | prom_halt(); | 56 | prom_halt(); |
| @@ -325,7 +325,7 @@ static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp, · 324 unmodified lines | |||
| 325 | return NULL; | 325 | return NULL; |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | vdev = kzalloc_obj(*vdev, GFP_KERNEL); | 328 | vdev = kzalloc_obj(*vdev); |
| 329 | if (!vdev) { | 329 | if (!vdev) { |
| 330 | printk(KERN_ERR "VIO: Could not allocate vio_dev\n"); | 330 | printk(KERN_ERR "VIO: Could not allocate vio_dev\n"); |
| 331 | return NULL; | 331 | return NULL; |
| @@ -3070,7 +3070,7 @@ static int __init report_memory(void) · 3069 unmodified lines | |||
| 3070 | kernel_lds_init(); | 3070 | kernel_lds_init(); |
| 3071 | 3071 | ||
| 3072 | for (i = 0; i < pavail_ents; i++) { | 3072 | for (i = 0; i < pavail_ents; i++) { |
| 3073 | res = kzalloc_obj(struct resource, GFP_KERNEL); | 3073 | res = kzalloc_obj(struct resource); |
| 3074 | 3074 | ||
| 3075 | if (!res) { | 3075 | if (!res) { |
| 3076 | pr_warn("Failed to allocate source.\n"); | 3076 | pr_warn("Failed to allocate source.\n"); |
| @@ -64,7 +64,7 @@ static void __init sbus_iommu_init(struct platform_device *op) · 63 unmodified lines | |||
| 64 | unsigned long base; | 64 | unsigned long base; |
| 65 | unsigned long tmp; | 65 | unsigned long tmp; |
| 66 | 66 | ||
| 67 | iommu = kmalloc_obj(struct iommu_struct, GFP_KERNEL); | 67 | iommu = kmalloc_obj(struct iommu_struct); |
| 68 | if (!iommu) { | 68 | if (!iommu) { |
| 69 | prom_printf("Unable to allocate iommu structure\n"); | 69 | prom_printf("Unable to allocate iommu structure\n"); |
| 70 | prom_halt(); | 70 | prom_halt(); |
| @@ -1505,7 +1505,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 1504 unmodified lines | |||
| 1505 | 1505 | ||
| 1506 | jit_data = prog->aux->jit_data; | 1506 | jit_data = prog->aux->jit_data; |
| 1507 | if (!jit_data) { | 1507 | if (!jit_data) { |
| 1508 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 1508 | jit_data = kzalloc_obj(*jit_data); |
| 1509 | if (!jit_data) { | 1509 | if (!jit_data) { |
| 1510 | prog = orig_prog; | 1510 | prog = orig_prog; |
| 1511 | goto out; | 1511 | goto out; |
| @@ -266,7 +266,7 @@ static int __init init_vdso_image(const struct vdso_image *image, · 265 unmodified lines | |||
| 266 | if (WARN_ON(image->size % PAGE_SIZE != 0)) | 266 | if (WARN_ON(image->size % PAGE_SIZE != 0)) |
| 267 | goto oom; | 267 | goto oom; |
| 268 | 268 | ||
| 269 | cpp = kzalloc_objs(struct page *, cnpages, GFP_KERNEL); | 269 | cpp = kzalloc_objs(struct page *, cnpages); |
| 270 | vdso_mapping->pages = cpp; | 270 | vdso_mapping->pages = cpp; |
| 271 | 271 | ||
| 272 | if (!cpp) | 272 | if (!cpp) |
| @@ -288,7 +288,7 @@ static int __init init_vdso_image(const struct vdso_image *image, · 15 unmodified lines | |||
| 288 | dnpages = (sizeof(struct vvar_data) / PAGE_SIZE) + 1; | 288 | dnpages = (sizeof(struct vvar_data) / PAGE_SIZE) + 1; |
| 289 | if (WARN_ON(dnpages != 1)) | 289 | if (WARN_ON(dnpages != 1)) |
| 290 | goto oom; | 290 | goto oom; |
| 291 | dpp = kzalloc_objs(struct page *, dnpages, GFP_KERNEL); | 291 | dpp = kzalloc_objs(struct page *, dnpages); |
| 292 | vvar_mapping.pages = dpp; | 292 | vvar_mapping.pages = dpp; |
| 293 | 293 | ||
| 294 | if (!dpp) | 294 | if (!dpp) |
| @@ -186,7 +186,7 @@ static int hostaudio_open(struct inode *inode, struct file *file) · 185 unmodified lines | |||
| 186 | kernel_param_unlock(THIS_MODULE); | 186 | kernel_param_unlock(THIS_MODULE); |
| 187 | #endif | 187 | #endif |
| 188 | 188 | ||
| 189 | state = kmalloc_obj(struct hostaudio_state, GFP_KERNEL); | 189 | state = kmalloc_obj(struct hostaudio_state); |
| 190 | if (state == NULL) | 190 | if (state == NULL) |
| 191 | return -ENOMEM; | 191 | return -ENOMEM; |
| 192 | 192 | ||
| @@ -247,7 +247,7 @@ static int hostmixer_open_mixdev(struct inode *inode, struct file *file) · 54 unmodified lines | |||
| 247 | printk(KERN_DEBUG "hostmixer: open called (host: %s)\n", mixer); | 247 | printk(KERN_DEBUG "hostmixer: open called (host: %s)\n", mixer); |
| 248 | #endif | 248 | #endif |
| 249 | 249 | ||
| 250 | state = kmalloc_obj(struct hostmixer_state, GFP_KERNEL); | 250 | state = kmalloc_obj(struct hostmixer_state); |
| 251 | if (state == NULL) | 251 | if (state == NULL) |
| 252 | return -ENOMEM; | 252 | return -ENOMEM; |
| 253 | 253 | ||
| @@ -672,7 +672,7 @@ void register_winch_irq(int fd, int tty_fd, int pid, struct tty_port *port, · 671 unmodified lines | |||
| 672 | { | 672 | { |
| 673 | struct winch *winch; | 673 | struct winch *winch; |
| 674 | 674 | ||
| 675 | winch = kmalloc_obj(*winch, GFP_KERNEL); | 675 | winch = kmalloc_obj(*winch); |
| 676 | if (winch == NULL) { | 676 | if (winch == NULL) { |
| 677 | printk(KERN_ERR "register_winch_irq - kmalloc failed\n"); | 677 | printk(KERN_ERR "register_winch_irq - kmalloc failed\n"); |
| 678 | goto cleanup; | 678 | goto cleanup; |
| @@ -170,7 +170,7 @@ void *port_data(int port_num) · 169 unmodified lines | |||
| 170 | if (port->port == port_num) | 170 | if (port->port == port_num) |
| 171 | goto found; | 171 | goto found; |
| 172 | } | 172 | } |
| 173 | port = kmalloc_obj(struct port_list, GFP_KERNEL); | 173 | port = kmalloc_obj(struct port_list); |
| 174 | if (port == NULL) { | 174 | if (port == NULL) { |
| 175 | printk(KERN_ERR "Allocation of port list failed\n"); | 175 | printk(KERN_ERR "Allocation of port list failed\n"); |
| 176 | goto out; | 176 | goto out; |
| @@ -202,7 +202,7 @@ void *port_data(int port_num) · 25 unmodified lines | |||
| 202 | list_add(&port->list, &ports); | 202 | list_add(&port->list, &ports); |
| 203 | 203 | ||
| 204 | found: | 204 | found: |
| 205 | dev = kmalloc_obj(struct port_dev, GFP_KERNEL); | 205 | dev = kmalloc_obj(struct port_dev); |
| 206 | if (dev == NULL) { | 206 | if (dev == NULL) { |
| 207 | printk(KERN_ERR "Allocation of port device entry failed\n"); | 207 | printk(KERN_ERR "Allocation of port device entry failed\n"); |
| 208 | goto out; | 208 | goto out; |
| @@ -515,7 +515,7 @@ static struct vector_queue *create_queue( · 514 unmodified lines | |||
| 515 | struct iovec *iov; | 515 | struct iovec *iov; |
| 516 | struct mmsghdr *mmsg_vector; | 516 | struct mmsghdr *mmsg_vector; |
| 517 | 517 | ||
| 518 | result = kmalloc_obj(struct vector_queue, GFP_KERNEL); | 518 | result = kmalloc_obj(struct vector_queue); |
| 519 | if (result == NULL) | 519 | if (result == NULL) |
| 520 | return NULL; | 520 | return NULL; |
| 521 | result->max_depth = max_size; | 521 | result->max_depth = max_size; |
| @@ -1583,7 +1583,7 @@ static void vector_eth_configure( · 1061 unmodified lines | |||
| 1583 | struct vector_private *vp; | 1583 | struct vector_private *vp; |
| 1584 | int err; | 1584 | int err; |
| 1585 | 1585 | ||
| 1586 | device = kzalloc_obj(*device, GFP_KERNEL); | 1586 | device = kzalloc_obj(*device); |
| 1587 | if (device == NULL) { | 1587 | if (device == NULL) { |
| 1588 | pr_err("Failed to allocate struct vector_device for vec%d\n", n); | 1588 | pr_err("Failed to allocate struct vector_device for vec%d\n", n); |
| 1589 | return; | 1589 | return; |
| @@ -245,7 +245,7 @@ static int build_gre_transport_data(struct vector_private *vp) · 244 unmodified lines | |||
| 245 | int temp_rx; | 245 | int temp_rx; |
| 246 | int temp_tx; | 246 | int temp_tx; |
| 247 | 247 | ||
| 248 | vp->transport_data = kmalloc_obj(struct uml_gre_data, GFP_KERNEL); | 248 | vp->transport_data = kmalloc_obj(struct uml_gre_data); |
| 249 | if (vp->transport_data == NULL) | 249 | if (vp->transport_data == NULL) |
| 250 | return -ENOMEM; | 250 | return -ENOMEM; |
| 251 | td = vp->transport_data; | 251 | td = vp->transport_data; |
| @@ -307,7 +307,7 @@ static int build_l2tpv3_transport_data(struct vector_private *vp) · 55 unmodified lines | |||
| 307 | unsigned long temp_rx; | 307 | unsigned long temp_rx; |
| 308 | unsigned long temp_tx; | 308 | unsigned long temp_tx; |
| 309 | 309 | ||
| 310 | vp->transport_data = kmalloc_obj(struct uml_l2tpv3_data, GFP_KERNEL); | 310 | vp->transport_data = kmalloc_obj(struct uml_l2tpv3_data); |
| 311 | 311 | ||
| 312 | if (vp->transport_data == NULL) | 312 | if (vp->transport_data == NULL) |
| 313 | return -ENOMEM; | 313 | return -ENOMEM; |
| @@ -107,7 +107,7 @@ static int uml_vfio_open_group(int group_id) · 106 unmodified lines | |||
| 107 | } | 107 | } |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | group = kzalloc_obj(*group, GFP_KERNEL); | 110 | group = kzalloc_obj(*group); |
| 111 | if (!group) | 111 | if (!group) |
| 112 | return -ENOMEM; | 112 | return -ENOMEM; |
| 113 | 113 | ||
| @@ -599,7 +599,7 @@ static struct uml_vfio_device *uml_vfio_add_device(const char *device) · 485 unmodified lines | |||
| 599 | if (uml_vfio_find_device(device)) | 599 | if (uml_vfio_find_device(device)) |
| 600 | return ERR_PTR(-EEXIST); | 600 | return ERR_PTR(-EEXIST); |
| 601 | 601 | ||
| 602 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 602 | dev = kzalloc_obj(*dev); |
| 603 | if (!dev) | 603 | if (!dev) |
| 604 | return ERR_PTR(-ENOMEM); | 604 | return ERR_PTR(-ENOMEM); |
| 605 | 605 | ||
| @@ -537,7 +537,7 @@ static int virtio_pcidev_virtio_probe(struct virtio_device *vdev) · 536 unmodified lines | |||
| 537 | struct virtio_pcidev_device *dev; | 537 | struct virtio_pcidev_device *dev; |
| 538 | int err; | 538 | int err; |
| 539 | 539 | ||
| 540 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 540 | dev = kzalloc_obj(*dev); |
| 541 | if (!dev) | 541 | if (!dev) |
| 542 | return -ENOMEM; | 542 | return -ENOMEM; |
| 543 | 543 | ||
| @@ -965,7 +965,7 @@ static struct virtqueue *vu_setup_vq(struct virtio_device *vdev, · 964 unmodified lines | |||
| 965 | int num = MAX_SUPPORTED_QUEUE_SIZE; | 965 | int num = MAX_SUPPORTED_QUEUE_SIZE; |
| 966 | int rc; | 966 | int rc; |
| 967 | 967 | ||
| 968 | info = kzalloc_obj(*info, GFP_KERNEL); | 968 | info = kzalloc_obj(*info); |
| 969 | if (!info) { | 969 | if (!info) { |
| 970 | rc = -ENOMEM; | 970 | rc = -ENOMEM; |
| 971 | goto error_kzalloc; | 971 | goto error_kzalloc; |
| @@ -1217,7 +1217,7 @@ static int virtio_uml_probe(struct platform_device *pdev) · 245 unmodified lines | |||
| 1217 | return PTR_ERR(pdata); | 1217 | return PTR_ERR(pdata); |
| 1218 | } | 1218 | } |
| 1219 | 1219 | ||
| 1220 | vu_dev = kzalloc_obj(*vu_dev, GFP_KERNEL); | 1220 | vu_dev = kzalloc_obj(*vu_dev); |
| 1221 | if (!vu_dev) | 1221 | if (!vu_dev) |
| 1222 | return -ENOMEM; | 1222 | return -ENOMEM; |
| 1223 | 1223 | ||
| @@ -45,7 +45,7 @@ int xterm_fd(int socket, int *pid_out) · 44 unmodified lines | |||
| 45 | struct xterm_wait *data; | 45 | struct xterm_wait *data; |
| 46 | int err, ret; | 46 | int err, ret; |
| 47 | 47 | ||
| 48 | data = kmalloc_obj(*data, GFP_KERNEL); | 48 | data = kmalloc_obj(*data); |
| 49 | if (data == NULL) { | 49 | if (data == NULL) { |
| 50 | printk(KERN_ERR "xterm_fd : failed to allocate xterm_wait\n"); | 50 | printk(KERN_ERR "xterm_fd : failed to allocate xterm_wait\n"); |
| 51 | return -ENOMEM; | 51 | return -ENOMEM; |
| @@ -1542,7 +1542,7 @@ static struct aesgcm_ctx *snp_init_crypto(u8 *key, size_t keylen) · 1541 unmodified lines | |||
| 1542 | { | 1542 | { |
| 1543 | struct aesgcm_ctx *ctx; | 1543 | struct aesgcm_ctx *ctx; |
| 1544 | 1544 | ||
| 1545 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 1545 | ctx = kzalloc_obj(*ctx); |
| 1546 | if (!ctx) | 1546 | if (!ctx) |
| 1547 | return NULL; | 1547 | return NULL; |
| 1548 | 1548 | ||
| @@ -1590,7 +1590,7 @@ struct snp_msg_desc *snp_msg_alloc(void) · 41 unmodified lines | |||
| 1590 | 1590 | ||
| 1591 | BUILD_BUG_ON(sizeof(struct snp_guest_msg) > PAGE_SIZE); | 1591 | BUILD_BUG_ON(sizeof(struct snp_guest_msg) > PAGE_SIZE); |
| 1592 | 1592 | ||
| 1593 | mdesc = kzalloc_obj(struct snp_msg_desc, GFP_KERNEL); | 1593 | mdesc = kzalloc_obj(struct snp_msg_desc); |
| 1594 | if (!mdesc) | 1594 | if (!mdesc) |
| 1595 | return ERR_PTR(-ENOMEM); | 1595 | return ERR_PTR(-ENOMEM); |
| 1596 | 1596 | ||
| @@ -1945,7 +1945,7 @@ static int __init snp_get_tsc_info(void) · 348 unmodified lines | |||
| 1945 | struct snp_guest_req req = {}; | 1945 | struct snp_guest_req req = {}; |
| 1946 | int rc = -ENOMEM; | 1946 | int rc = -ENOMEM; |
| 1947 | 1947 | ||
| 1948 | tsc_req = kzalloc_obj(*tsc_req, GFP_KERNEL); | 1948 | tsc_req = kzalloc_obj(*tsc_req); |
| 1949 | if (!tsc_req) | 1949 | if (!tsc_req) |
| 1950 | return rc; | 1950 | return rc; |
| 1951 | 1951 | ||
| @@ -387,7 +387,7 @@ static __init int _init_events_attrs(void) · 386 unmodified lines | |||
| 387 | while (amd_iommu_v2_event_descs[i].attr.attr.name) | 387 | while (amd_iommu_v2_event_descs[i].attr.attr.name) |
| 388 | i++; | 388 | i++; |
| 389 | 389 | ||
| 390 | attrs = kzalloc_objs(*attrs, i + 1, GFP_KERNEL); | 390 | attrs = kzalloc_objs(*attrs, i + 1); |
| 391 | if (!attrs) | 391 | if (!attrs) |
| 392 | return -ENOMEM; | 392 | return -ENOMEM; |
| 393 | 393 | ||
| @@ -422,7 +422,7 @@ static __init int init_one_iommu(unsigned int idx) · 28 unmodified lines | |||
| 422 | struct perf_amd_iommu *perf_iommu; | 422 | struct perf_amd_iommu *perf_iommu; |
| 423 | int ret; | 423 | int ret; |
| 424 | 424 | ||
| 425 | perf_iommu = kzalloc_obj(struct perf_amd_iommu, GFP_KERNEL); | 425 | perf_iommu = kzalloc_obj(struct perf_amd_iommu); |
| 426 | if (!perf_iommu) | 426 | if (!perf_iommu) |
| 427 | return -ENOMEM; | 427 | return -ENOMEM; |
| 428 | 428 | ||
| @@ -726,7 +726,7 @@ int amd_uncore_df_ctx_init(struct amd_uncore *uncore, unsigned int cpu) · 725 unmodified lines | |||
| 726 | goto done; | 726 | goto done; |
| 727 | 727 | ||
| 728 | /* No grouping, single instance for a system */ | 728 | /* No grouping, single instance for a system */ |
| 729 | uncore->pmus = kzalloc_obj(*uncore->pmus, GFP_KERNEL); | 729 | uncore->pmus = kzalloc_obj(*uncore->pmus); |
| 730 | if (!uncore->pmus) | 730 | if (!uncore->pmus) |
| 731 | goto done; | 731 | goto done; |
| 732 | 732 | ||
| @@ -860,7 +860,7 @@ int amd_uncore_l3_ctx_init(struct amd_uncore *uncore, unsigned int cpu) · 127 unmodified lines | |||
| 860 | goto done; | 860 | goto done; |
| 861 | 861 | ||
| 862 | /* No grouping, single instance for a system */ | 862 | /* No grouping, single instance for a system */ |
| 863 | uncore->pmus = kzalloc_obj(*uncore->pmus, GFP_KERNEL); | 863 | uncore->pmus = kzalloc_obj(*uncore->pmus); |
| 864 | if (!uncore->pmus) | 864 | if (!uncore->pmus) |
| 865 | goto done; | 865 | goto done; |
| 866 | 866 | ||
| @@ -2389,7 +2389,7 @@ static struct cpu_hw_events *allocate_fake_cpuc(struct pmu *event_pmu) · 2388 unmodified lines | |||
| 2389 | struct cpu_hw_events *cpuc; | 2389 | struct cpu_hw_events *cpuc; |
| 2390 | int cpu; | 2390 | int cpu; |
| 2391 | 2391 | ||
| 2392 | cpuc = kzalloc_obj(*cpuc, GFP_KERNEL); | 2392 | cpuc = kzalloc_obj(*cpuc); |
| 2393 | if (!cpuc) | 2393 | if (!cpuc) |
| 2394 | return ERR_PTR(-ENOMEM); | 2394 | return ERR_PTR(-ENOMEM); |
| 2395 | cpuc->is_fake = 1; | 2395 | cpuc->is_fake = 1; |
| @@ -107,7 +107,7 @@ lookup: · 106 unmodified lines | |||
| 107 | 107 | ||
| 108 | if (!alloc) { | 108 | if (!alloc) { |
| 109 | raw_spin_unlock(&pci2phy_map_lock); | 109 | raw_spin_unlock(&pci2phy_map_lock); |
| 110 | alloc = kmalloc_obj(struct pci2phy_map, GFP_KERNEL); | 110 | alloc = kmalloc_obj(struct pci2phy_map); |
| 111 | raw_spin_lock(&pci2phy_map_lock); | 111 | raw_spin_lock(&pci2phy_map_lock); |
| 112 | 112 | ||
| 113 | if (!alloc) | 113 | if (!alloc) |
| @@ -990,7 +990,7 @@ static int __init uncore_type_init(struct intel_uncore_type *type) · 876 unmodified lines | |||
| 990 | size_t size; | 990 | size_t size; |
| 991 | int i, j; | 991 | int i, j; |
| 992 | 992 | ||
| 993 | pmus = kzalloc_objs(*pmus, type->num_boxes, GFP_KERNEL); | 993 | pmus = kzalloc_objs(*pmus, type->num_boxes); |
| 994 | if (!pmus) | 994 | if (!pmus) |
| 995 | return -ENOMEM; | 995 | return -ENOMEM; |
| 996 | 996 | ||
| @@ -68,7 +68,7 @@ add_uncore_discovery_type(struct uncore_unit_discovery *unit) · 67 unmodified lines | |||
| 68 | return NULL; | 68 | return NULL; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | type = kzalloc_obj(struct intel_uncore_discovery_type, GFP_KERNEL); | 71 | type = kzalloc_obj(struct intel_uncore_discovery_type); |
| 72 | if (!type) | 72 | if (!type) |
| 73 | return NULL; | 73 | return NULL; |
| 74 | 74 | ||
| @@ -215,7 +215,7 @@ uncore_insert_box_info(struct uncore_unit_discovery *unit, · 140 unmodified lines | |||
| 215 | return; | 215 | return; |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | node = kzalloc_obj(*node, GFP_KERNEL); | 218 | node = kzalloc_obj(*node); |
| 219 | if (!node) | 219 | if (!node) |
| 220 | return; | 220 | return; |
| 221 | 221 | ||
| @@ -755,7 +755,7 @@ intel_uncore_generic_init_uncores(enum uncore_access_type type_id, int num_extra · 533 unmodified lines | |||
| 755 | if (type->access_type != type_id) | 755 | if (type->access_type != type_id) |
| 756 | continue; | 756 | continue; |
| 757 | 757 | ||
| 758 | uncore = kzalloc_obj(struct intel_uncore_type, GFP_KERNEL); | 758 | uncore = kzalloc_obj(struct intel_uncore_type); |
| 759 | if (!uncore) | 759 | if (!uncore) |
| 760 | break; | 760 | break; |
| 761 | 761 | ||
| @@ -3748,7 +3748,7 @@ static int pmu_alloc_topology(struct intel_uncore_type *type, int topology_type) · 3747 unmodified lines | |||
| 3748 | if (!type->num_boxes) | 3748 | if (!type->num_boxes) |
| 3749 | return -EPERM; | 3749 | return -EPERM; |
| 3750 | 3750 | ||
| 3751 | topology = kzalloc_objs(*topology, uncore_max_dies(), GFP_KERNEL); | 3751 | topology = kzalloc_objs(*topology, uncore_max_dies()); |
| 3752 | if (!topology) | 3752 | if (!topology) |
| 3753 | goto err; | 3753 | goto err; |
| 3754 | 3754 | ||
| @@ -3883,11 +3883,11 @@ pmu_set_mapping(struct intel_uncore_type *type, struct attribute_group *ag, · 128 unmodified lines | |||
| 3883 | goto clear_topology; | 3883 | goto clear_topology; |
| 3884 | 3884 | ||
| 3885 | /* One more for NULL. */ | 3885 | /* One more for NULL. */ |
| 3886 | attrs = kzalloc_objs(*attrs, (uncore_max_dies() + 1), GFP_KERNEL); | 3886 | attrs = kzalloc_objs(*attrs, (uncore_max_dies() + 1)); |
| 3887 | if (!attrs) | 3887 | if (!attrs) |
| 3888 | goto clear_topology; | 3888 | goto clear_topology; |
| 3889 | 3889 | ||
| 3890 | eas = kzalloc_objs(*eas, uncore_max_dies(), GFP_KERNEL); | 3890 | eas = kzalloc_objs(*eas, uncore_max_dies()); |
| 3891 | if (!eas) | 3891 | if (!eas) |
| 3892 | goto clear_attrs; | 3892 | goto clear_attrs; |
| 3893 | 3893 | ||
| @@ -6412,7 +6412,7 @@ static void spr_update_device_location(int type_id) · 2518 unmodified lines | |||
| 6412 | } else | 6412 | } else |
| 6413 | return; | 6413 | return; |
| 6414 | 6414 | ||
| 6415 | root = kzalloc_obj(struct rb_root, GFP_KERNEL); | 6415 | root = kzalloc_obj(struct rb_root); |
| 6416 | if (!root) { | 6416 | if (!root) { |
| 6417 | type->num_boxes = 0; | 6417 | type->num_boxes = 0; |
| 6418 | return; | 6418 | return; |
| @@ -6425,7 +6425,7 @@ static void spr_update_device_location(int type_id) · 6 unmodified lines | |||
| 6425 | if (die < 0) | 6425 | if (die < 0) |
| 6426 | continue; | 6426 | continue; |
| 6427 | 6427 | ||
| 6428 | unit = kzalloc_obj(*unit, GFP_KERNEL); | 6428 | unit = kzalloc_obj(*unit); |
| 6429 | if (!unit) | 6429 | if (!unit) |
| 6430 | continue; | 6430 | continue; |
| 6431 | unit->die = die; | 6431 | unit->die = die; |
| @@ -704,7 +704,7 @@ static int __init init_rapl_pmu(struct rapl_pmus *rapl_pmus) · 703 unmodified lines | |||
| 704 | int idx; | 704 | int idx; |
| 705 | 705 | ||
| 706 | for (idx = 0; idx < rapl_pmus->nr_rapl_pmu; idx++) { | 706 | for (idx = 0; idx < rapl_pmus->nr_rapl_pmu; idx++) { |
| 707 | rapl_pmu = kzalloc_obj(*rapl_pmu, GFP_KERNEL); | 707 | rapl_pmu = kzalloc_obj(*rapl_pmu); |
| 708 | if (!rapl_pmu) | 708 | if (!rapl_pmu) |
| 709 | goto free; | 709 | goto free; |
| 710 | 710 | ||
| @@ -531,7 +531,7 @@ static int hv_list_enc_add(const u64 *pfn_list, int count) · 530 unmodified lines | |||
| 531 | raw_spin_unlock_irqrestore(&hv_list_enc_lock, flags); | 531 | raw_spin_unlock_irqrestore(&hv_list_enc_lock, flags); |
| 532 | 532 | ||
| 533 | /* No adjacent region found -- create a new one */ | 533 | /* No adjacent region found -- create a new one */ |
| 534 | ent = kzalloc_obj(struct hv_enc_pfn_region, GFP_KERNEL); | 534 | ent = kzalloc_obj(struct hv_enc_pfn_region); |
| 535 | if (!ent) | 535 | if (!ent) |
| 536 | return -ENOMEM; | 536 | return -ENOMEM; |
| 537 | 537 | ||
| @@ -598,7 +598,7 @@ unlock_done: · 60 unmodified lines | |||
| 598 | unlock_split: | 598 | unlock_split: |
| 599 | raw_spin_unlock_irqrestore(&hv_list_enc_lock, flags); | 599 | raw_spin_unlock_irqrestore(&hv_list_enc_lock, flags); |
| 600 | 600 | ||
| 601 | ent = kzalloc_obj(struct hv_enc_pfn_region, GFP_KERNEL); | 601 | ent = kzalloc_obj(struct hv_enc_pfn_region); |
| 602 | if (!ent) | 602 | if (!ent) |
| 603 | return -ENOMEM; | 603 | return -ENOMEM; |
| 604 | 604 | ||
| @@ -2160,7 +2160,7 @@ void __init_or_module alternatives_smp_module_add(struct module *mod, · 2159 unmodified lines | |||
| 2160 | /* Don't bother remembering, we'll never have to undo it. */ | 2160 | /* Don't bother remembering, we'll never have to undo it. */ |
| 2161 | goto smp_unlock; | 2161 | goto smp_unlock; |
| 2162 | 2162 | ||
| 2163 | smp = kzalloc_obj(*smp, GFP_KERNEL); | 2163 | smp = kzalloc_obj(*smp); |
| 2164 | if (NULL == smp) | 2164 | if (NULL == smp) |
| 2165 | /* we'll run the (safe but slow) SMP code then ... */ | 2165 | /* we'll run the (safe but slow) SMP code then ... */ |
| 2166 | goto unlock; | 2166 | goto unlock; |
| @@ -282,7 +282,7 @@ static int __init amd_smn_init(void) · 281 unmodified lines | |||
| 282 | return -ENODEV; | 282 | return -ENODEV; |
| 283 | 283 | ||
| 284 | num_nodes = amd_num_nodes(); | 284 | num_nodes = amd_num_nodes(); |
| 285 | amd_roots = kzalloc_objs(*amd_roots, num_nodes, GFP_KERNEL); | 285 | amd_roots = kzalloc_objs(*amd_roots, num_nodes); |
| 286 | if (!amd_roots) | 286 | if (!amd_roots) |
| 287 | return -ENOMEM; | 287 | return -ENOMEM; |
| 288 | 288 | ||
| @@ -2876,7 +2876,7 @@ int mp_irqdomain_alloc(struct irq_domain *domain, unsigned int virq, · 2875 unmodified lines | |||
| 2876 | if (irq_resolve_mapping(domain, (irq_hw_number_t)pin)) | 2876 | if (irq_resolve_mapping(domain, (irq_hw_number_t)pin)) |
| 2877 | return -EEXIST; | 2877 | return -EEXIST; |
| 2878 | 2878 | ||
| 2879 | data = kzalloc_obj(*data, GFP_KERNEL); | 2879 | data = kzalloc_obj(*data); |
| 2880 | if (!data) | 2880 | if (!data) |
| 2881 | return -ENOMEM; | 2881 | return -ENOMEM; |
| 2882 | 2882 | ||
| @@ -1576,7 +1576,7 @@ static int do_open(struct inode *inode, struct file *filp) · 1575 unmodified lines | |||
| 1576 | { | 1576 | { |
| 1577 | struct apm_user *as; | 1577 | struct apm_user *as; |
| 1578 | 1578 | ||
| 1579 | as = kmalloc_obj(*as, GFP_KERNEL); | 1579 | as = kmalloc_obj(*as); |
| 1580 | if (as == NULL) | 1580 | if (as == NULL) |
| 1581 | return -ENOMEM; | 1581 | return -ENOMEM; |
| 1582 | 1582 | ||
| @@ -255,7 +255,7 @@ static void init_amd_l3_attrs(void) · 254 unmodified lines | |||
| 255 | if (amd_nb_has_feature(AMD_NB_L3_PARTITIONING)) | 255 | if (amd_nb_has_feature(AMD_NB_L3_PARTITIONING)) |
| 256 | n += 1; | 256 | n += 1; |
| 257 | 257 | ||
| 258 | amd_l3_attrs = kzalloc_objs(*amd_l3_attrs, n, GFP_KERNEL); | 258 | amd_l3_attrs = kzalloc_objs(*amd_l3_attrs, n); |
| 259 | if (!amd_l3_attrs) | 259 | if (!amd_l3_attrs) |
| 260 | return; | 260 | return; |
| 261 | 261 | ||
| @@ -1088,7 +1088,7 @@ static int allocate_threshold_blocks(unsigned int cpu, struct threshold_bank *tb · 1087 unmodified lines | |||
| 1088 | (high & MASK_LOCKED_HI)) | 1088 | (high & MASK_LOCKED_HI)) |
| 1089 | goto recurse; | 1089 | goto recurse; |
| 1090 | 1090 | ||
| 1091 | b = kzalloc_obj(struct threshold_block, GFP_KERNEL); | 1091 | b = kzalloc_obj(struct threshold_block); |
| 1092 | if (!b) | 1092 | if (!b) |
| 1093 | return -ENOMEM; | 1093 | return -ENOMEM; |
| 1094 | 1094 | ||
| @@ -1147,7 +1147,7 @@ static int threshold_create_bank(struct threshold_bank **bp, unsigned int cpu, · 52 unmodified lines | |||
| 1147 | if (!dev) | 1147 | if (!dev) |
| 1148 | return -ENODEV; | 1148 | return -ENODEV; |
| 1149 | 1149 | ||
| 1150 | b = kzalloc_obj(struct threshold_bank, GFP_KERNEL); | 1150 | b = kzalloc_obj(struct threshold_bank); |
| 1151 | if (!b) { | 1151 | if (!b) { |
| 1152 | err = -ENOMEM; | 1152 | err = -ENOMEM; |
| 1153 | goto out; | 1153 | goto out; |
| @@ -1250,7 +1250,7 @@ void mce_threshold_create_device(unsigned int cpu) · 96 unmodified lines | |||
| 1250 | return; | 1250 | return; |
| 1251 | 1251 | ||
| 1252 | numbanks = this_cpu_read(mce_num_banks); | 1252 | numbanks = this_cpu_read(mce_num_banks); |
| 1253 | bp = kzalloc_objs(*bp, numbanks, GFP_KERNEL); | 1253 | bp = kzalloc_objs(*bp, numbanks); |
| 1254 | if (!bp) | 1254 | if (!bp) |
| 1255 | return; | 1255 | return; |
| 1256 | 1256 | ||
| @@ -2692,7 +2692,7 @@ static int mce_device_create(unsigned int cpu) · 2691 unmodified lines | |||
| 2692 | if (dev) | 2692 | if (dev) |
| 2693 | return 0; | 2693 | return 0; |
| 2694 | 2694 | ||
| 2695 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 2695 | dev = kzalloc_obj(*dev); |
| 2696 | if (!dev) | 2696 | if (!dev) |
| 2697 | return -ENOMEM; | 2697 | return -ENOMEM; |
| 2698 | dev->id = cpu; | 2698 | dev->id = cpu; |
| @@ -1086,7 +1086,7 @@ static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover, · 1085 unmodified lines | |||
| 1086 | if (ret) | 1086 | if (ret) |
| 1087 | return ret; | 1087 | return ret; |
| 1088 | 1088 | ||
| 1089 | patch = kzalloc_obj(*patch, GFP_KERNEL); | 1089 | patch = kzalloc_obj(*patch); |
| 1090 | if (!patch) { | 1090 | if (!patch) { |
| 1091 | pr_err("Patch allocation failure.\n"); | 1091 | pr_err("Patch allocation failure.\n"); |
| 1092 | return -EINVAL; | 1092 | return -EINVAL; |
| @@ -410,7 +410,7 @@ void __init mtrr_copy_map(void) · 409 unmodified lines | |||
| 410 | 410 | ||
| 411 | mutex_lock(&mtrr_mutex); | 411 | mutex_lock(&mtrr_mutex); |
| 412 | 412 | ||
| 413 | cache_map = kzalloc_objs(*cache_map, new_size, GFP_KERNEL); | 413 | cache_map = kzalloc_objs(*cache_map, new_size); |
| 414 | if (cache_map) { | 414 | if (cache_map) { |
| 415 | memmove(cache_map, init_cache_map, | 415 | memmove(cache_map, init_cache_map, |
| 416 | cache_map_n * sizeof(*cache_map)); | 416 | cache_map_n * sizeof(*cache_map)); |
| @@ -80,7 +80,7 @@ static struct syscore mtrr_syscore = { · 79 unmodified lines | |||
| 80 | 80 | ||
| 81 | void mtrr_register_syscore(void) | 81 | void mtrr_register_syscore(void) |
| 82 | { | 82 | { |
| 83 | mtrr_value = kzalloc_objs(*mtrr_value, num_var_ranges, GFP_KERNEL); | 83 | mtrr_value = kzalloc_objs(*mtrr_value, num_var_ranges); |
| 84 | 84 | ||
| 85 | /* | 85 | /* |
| 86 | * The CPU has no MTRR and seems to not support SMP. They have | 86 | * The CPU has no MTRR and seems to not support SMP. They have |
| @@ -19,7 +19,7 @@ static int __sgx_open(struct inode *inode, struct file *file) · 18 unmodified lines | |||
| 19 | struct sgx_encl *encl; | 19 | struct sgx_encl *encl; |
| 20 | int ret; | 20 | int ret; |
| 21 | 21 | ||
| 22 | encl = kzalloc_obj(*encl, GFP_KERNEL); | 22 | encl = kzalloc_obj(*encl); |
| 23 | if (!encl) | 23 | if (!encl) |
| 24 | return -ENOMEM; | 24 | return -ENOMEM; |
| 25 | 25 | ||
| @@ -854,7 +854,7 @@ int sgx_encl_mm_add(struct sgx_encl *encl, struct mm_struct *mm) · 853 unmodified lines | |||
| 854 | if (sgx_encl_find_mm(encl, mm)) | 854 | if (sgx_encl_find_mm(encl, mm)) |
| 855 | return 0; | 855 | return 0; |
| 856 | 856 | ||
| 857 | encl_mm = kzalloc_obj(*encl_mm, GFP_KERNEL); | 857 | encl_mm = kzalloc_obj(*encl_mm); |
| 858 | if (!encl_mm) | 858 | if (!encl_mm) |
| 859 | return -ENOMEM; | 859 | return -ENOMEM; |
| 860 | 860 | ||
| @@ -1163,7 +1163,7 @@ struct sgx_encl_page *sgx_encl_page_alloc(struct sgx_encl *encl, · 302 unmodified lines | |||
| 1163 | struct sgx_encl_page *encl_page; | 1163 | struct sgx_encl_page *encl_page; |
| 1164 | unsigned long prot; | 1164 | unsigned long prot; |
| 1165 | 1165 | ||
| 1166 | encl_page = kzalloc_obj(*encl_page, GFP_KERNEL); | 1166 | encl_page = kzalloc_obj(*encl_page); |
| 1167 | if (!encl_page) | 1167 | if (!encl_page) |
| 1168 | return ERR_PTR(-ENOMEM); | 1168 | return ERR_PTR(-ENOMEM); |
| 1169 | 1169 | ||
| @@ -27,7 +27,7 @@ struct sgx_va_page *sgx_encl_grow(struct sgx_encl *encl, bool reclaim) · 26 unmodified lines | |||
| 27 | (SGX_ENCL_PAGE_VA_OFFSET_MASK >> 3) + 1); | 27 | (SGX_ENCL_PAGE_VA_OFFSET_MASK >> 3) + 1); |
| 28 | 28 | ||
| 29 | if (!(encl->page_cnt % SGX_VA_SLOT_COUNT)) { | 29 | if (!(encl->page_cnt % SGX_VA_SLOT_COUNT)) { |
| 30 | va_page = kzalloc_obj(*va_page, GFP_KERNEL); | 30 | va_page = kzalloc_obj(*va_page); |
| 31 | if (!va_page) | 31 | if (!va_page) |
| 32 | return ERR_PTR(-ENOMEM); | 32 | return ERR_PTR(-ENOMEM); |
| 33 | 33 | ||
| @@ -264,7 +264,7 @@ static int __sgx_vepc_open(struct inode *inode, struct file *file) · 263 unmodified lines | |||
| 264 | { | 264 | { |
| 265 | struct sgx_vepc *vepc; | 265 | struct sgx_vepc *vepc; |
| 266 | 266 | ||
| 267 | vepc = kzalloc_obj(struct sgx_vepc, GFP_KERNEL); | 267 | vepc = kzalloc_obj(struct sgx_vepc); |
| 268 | if (!vepc) | 268 | if (!vepc) |
| 269 | return -ENOMEM; | 269 | return -ENOMEM; |
| 270 | mutex_init(&vepc->lock); | 270 | mutex_init(&vepc->lock); |
| @@ -544,7 +544,7 @@ static struct irq_domain *hpet_create_irq_domain(int hpet_id) · 543 unmodified lines | |||
| 544 | if (x86_vector_domain == NULL) | 544 | if (x86_vector_domain == NULL) |
| 545 | return NULL; | 545 | return NULL; |
| 546 | 546 | ||
| 547 | domain_info = kzalloc_obj(*domain_info, GFP_KERNEL); | 547 | domain_info = kzalloc_obj(*domain_info); |
| 548 | if (!domain_info) | 548 | if (!domain_info) |
| 549 | return NULL; | 549 | return NULL; |
| 550 | 550 | ||
| @@ -1038,7 +1038,7 @@ int __init hpet_enable(void) · 487 unmodified lines | |||
| 1038 | if (IS_ENABLED(CONFIG_HPET_EMULATE_RTC) && channels < 2) | 1038 | if (IS_ENABLED(CONFIG_HPET_EMULATE_RTC) && channels < 2) |
| 1039 | goto out_nohpet; | 1039 | goto out_nohpet; |
| 1040 | 1040 | ||
| 1041 | hc = kzalloc_objs(*hc, channels, GFP_KERNEL); | 1041 | hc = kzalloc_objs(*hc, channels); |
| 1042 | if (!hc) { | 1042 | if (!hc) { |
| 1043 | pr_warn("Disabling HPET.\n"); | 1043 | pr_warn("Disabling HPET.\n"); |
| 1044 | goto out_nohpet; | 1044 | goto out_nohpet; |
| @@ -90,7 +90,7 @@ long ksys_ioperm(unsigned long from, unsigned long num, int turn_on) · 89 unmodified lines | |||
| 90 | /* No point to allocate a bitmap just to clear permissions */ | 90 | /* No point to allocate a bitmap just to clear permissions */ |
| 91 | if (!turn_on) | 91 | if (!turn_on) |
| 92 | return 0; | 92 | return 0; |
| 93 | iobm = kmalloc_obj(*iobm, GFP_KERNEL); | 93 | iobm = kmalloc_obj(*iobm); |
| 94 | if (!iobm) | 94 | if (!iobm) |
| 95 | return -ENOMEM; | 95 | return -ENOMEM; |
| 96 | 96 | ||
| @@ -102,7 +102,7 @@ static int __init create_setup_data_nodes(struct dentry *parent) · 101 unmodified lines | |||
| 102 | pa_data = boot_params.hdr.setup_data; | 102 | pa_data = boot_params.hdr.setup_data; |
| 103 | 103 | ||
| 104 | while (pa_data) { | 104 | while (pa_data) { |
| 105 | node = kmalloc_obj(*node, GFP_KERNEL); | 105 | node = kmalloc_obj(*node); |
| 106 | if (!node) { | 106 | if (!node) { |
| 107 | error = -ENOMEM; | 107 | error = -ENOMEM; |
| 108 | goto err_dir; | 108 | goto err_dir; |
| @@ -682,7 +682,7 @@ static void *bzImage64_load(struct kimage *image, char *kernel, · 681 unmodified lines | |||
| 682 | goto out_free_params; | 682 | goto out_free_params; |
| 683 | 683 | ||
| 684 | /* Allocate loader specific data */ | 684 | /* Allocate loader specific data */ |
| 685 | ldata = kzalloc_obj(struct bzimage64_data, GFP_KERNEL); | 685 | ldata = kzalloc_obj(struct bzimage64_data); |
| 686 | if (!ldata) { | 686 | if (!ldata) { |
| 687 | ret = -ENOMEM; | 687 | ret = -ENOMEM; |
| 688 | goto out_free_params; | 688 | goto out_free_params; |
| @@ -344,7 +344,7 @@ static int __init create_setup_data_nodes(struct kobject *parent) · 343 unmodified lines | |||
| 344 | if (ret) | 344 | if (ret) |
| 345 | goto out_setup_data_kobj; | 345 | goto out_setup_data_kobj; |
| 346 | 346 | ||
| 347 | kobjp = kmalloc_objs(*kobjp, nr, GFP_KERNEL); | 347 | kobjp = kmalloc_objs(*kobjp, nr); |
| 348 | if (!kobjp) { | 348 | if (!kobjp) { |
| 349 | ret = -ENOMEM; | 349 | ret = -ENOMEM; |
| 350 | goto out_setup_data_kobj; | 350 | goto out_setup_data_kobj; |
| @@ -696,7 +696,7 @@ static struct uprobe_trampoline *create_uprobe_trampoline(unsigned long vaddr) · 695 unmodified lines | |||
| 696 | if (IS_ERR_VALUE(vaddr)) | 696 | if (IS_ERR_VALUE(vaddr)) |
| 697 | return NULL; | 697 | return NULL; |
| 698 | 698 | ||
| 699 | tramp = kzalloc_obj(*tramp, GFP_KERNEL); | 699 | tramp = kzalloc_obj(*tramp); |
| 700 | if (unlikely(!tramp)) | 700 | if (unlikely(!tramp)) |
| 701 | return NULL; | 701 | return NULL; |
| 702 | 702 | ||
| @@ -232,7 +232,7 @@ static long do_sys_vm86(struct vm86plus_struct __user *user_vm86, bool plus) · 231 unmodified lines | |||
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | if (!vm86) { | 234 | if (!vm86) { |
| 235 | if (!(vm86 = kzalloc_obj(*vm86, GFP_KERNEL))) | 235 | if (!(vm86 = kzalloc_obj(*vm86))) |
| 236 | return -ENOMEM; | 236 | return -ENOMEM; |
| 237 | tsk->thread.vm86 = vm86; | 237 | tsk->thread.vm86 = vm86; |
| 238 | } | 238 | } |
| @@ -1781,7 +1781,7 @@ static int svm_get_nested_state(struct kvm_vcpu *vcpu, · 1780 unmodified lines | |||
| 1781 | if (clear_user(user_vmcb, KVM_STATE_NESTED_SVM_VMCB_SIZE)) | 1781 | if (clear_user(user_vmcb, KVM_STATE_NESTED_SVM_VMCB_SIZE)) |
| 1782 | return -EFAULT; | 1782 | return -EFAULT; |
| 1783 | 1783 | ||
| 1784 | ctl = kzalloc_obj(*ctl, GFP_KERNEL); | 1784 | ctl = kzalloc_obj(*ctl); |
| 1785 | if (!ctl) | 1785 | if (!ctl) |
| 1786 | return -ENOMEM; | 1786 | return -ENOMEM; |
| 1787 | 1787 | ||
| @@ -2743,7 +2743,7 @@ static int tdx_td_init(struct kvm *kvm, struct kvm_tdx_cmd *cmd) · 2742 unmodified lines | |||
| 2743 | goto out; | 2743 | goto out; |
| 2744 | } | 2744 | } |
| 2745 | 2745 | ||
| 2746 | td_params = kzalloc_obj(struct td_params, GFP_KERNEL); | 2746 | td_params = kzalloc_obj(struct td_params); |
| 2747 | if (!td_params) { | 2747 | if (!td_params) { |
| 2748 | ret = -ENOMEM; | 2748 | ret = -ENOMEM; |
| 2749 | goto out; | 2749 | goto out; |
| @@ -6208,7 +6208,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, · 6207 unmodified lines | |||
| 6208 | r = -EINVAL; | 6208 | r = -EINVAL; |
| 6209 | if (!lapic_in_kernel(vcpu)) | 6209 | if (!lapic_in_kernel(vcpu)) |
| 6210 | goto out; | 6210 | goto out; |
| 6211 | u.lapic = kzalloc_obj(struct kvm_lapic_state, GFP_KERNEL); | 6211 | u.lapic = kzalloc_obj(struct kvm_lapic_state); |
| 6212 | 6212 | ||
| 6213 | r = -ENOMEM; | 6213 | r = -ENOMEM; |
| 6214 | if (!u.lapic) | 6214 | if (!u.lapic) |
| @@ -6410,7 +6410,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, · 195 unmodified lines | |||
| 6410 | if (vcpu->arch.guest_fpu.uabi_size > sizeof(struct kvm_xsave)) | 6410 | if (vcpu->arch.guest_fpu.uabi_size > sizeof(struct kvm_xsave)) |
| 6411 | break; | 6411 | break; |
| 6412 | 6412 | ||
| 6413 | u.xsave = kzalloc_obj(struct kvm_xsave, GFP_KERNEL); | 6413 | u.xsave = kzalloc_obj(struct kvm_xsave); |
| 6414 | r = -ENOMEM; | 6414 | r = -ENOMEM; |
| 6415 | if (!u.xsave) | 6415 | if (!u.xsave) |
| 6416 | break; | 6416 | break; |
| @@ -6459,7 +6459,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, · 42 unmodified lines | |||
| 6459 | } | 6459 | } |
| 6460 | 6460 | ||
| 6461 | case KVM_GET_XCRS: { | 6461 | case KVM_GET_XCRS: { |
| 6462 | u.xcrs = kzalloc_obj(struct kvm_xcrs, GFP_KERNEL); | 6462 | u.xcrs = kzalloc_obj(struct kvm_xcrs); |
| 6463 | r = -ENOMEM; | 6463 | r = -ENOMEM; |
| 6464 | if (!u.xcrs) | 6464 | if (!u.xcrs) |
| 6465 | break; | 6465 | break; |
| @@ -6619,7 +6619,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, · 153 unmodified lines | |||
| 6619 | vcpu->arch.guest_state_protected) | 6619 | vcpu->arch.guest_state_protected) |
| 6620 | goto out; | 6620 | goto out; |
| 6621 | 6621 | ||
| 6622 | u.sregs2 = kzalloc_obj(struct kvm_sregs2, GFP_KERNEL); | 6622 | u.sregs2 = kzalloc_obj(struct kvm_sregs2); |
| 6623 | r = -ENOMEM; | 6623 | r = -ENOMEM; |
| 6624 | if (!u.sregs2) | 6624 | if (!u.sregs2) |
| 6625 | goto out; | 6625 | goto out; |
| @@ -1514,7 +1514,7 @@ static bool kvm_xen_schedop_poll(struct kvm_vcpu *vcpu, bool longmode, · 1513 unmodified lines | |||
| 1514 | return true; | 1514 | return true; |
| 1515 | } | 1515 | } |
| 1516 | 1516 | ||
| 1517 | ports = kmalloc_objs(*ports, sched_poll.nr_ports, GFP_KERNEL); | 1517 | ports = kmalloc_objs(*ports, sched_poll.nr_ports); |
| 1518 | if (!ports) { | 1518 | if (!ports) { |
| 1519 | *r = -ENOMEM; | 1519 | *r = -ENOMEM; |
| 1520 | return true; | 1520 | return true; |
| @@ -2115,7 +2115,7 @@ static int kvm_xen_eventfd_assign(struct kvm *kvm, · 594 unmodified lines | |||
| 2115 | struct evtchnfd *evtchnfd; | 2115 | struct evtchnfd *evtchnfd; |
| 2116 | int ret = -EINVAL; | 2116 | int ret = -EINVAL; |
| 2117 | 2117 | ||
| 2118 | evtchnfd = kzalloc_obj(struct evtchnfd, GFP_KERNEL); | 2118 | evtchnfd = kzalloc_obj(struct evtchnfd); |
| 2119 | if (!evtchnfd) | 2119 | if (!evtchnfd) |
| 2120 | return -ENOMEM; | 2120 | return -ENOMEM; |
| 2121 | 2121 | ||
| @@ -2213,7 +2213,7 @@ static int kvm_xen_eventfd_reset(struct kvm *kvm) · 91 unmodified lines | |||
| 2213 | idr_for_each_entry(&kvm->arch.xen.evtchn_ports, evtchnfd, i) | 2213 | idr_for_each_entry(&kvm->arch.xen.evtchn_ports, evtchnfd, i) |
| 2214 | n++; | 2214 | n++; |
| 2215 | 2215 | ||
| 2216 | all_evtchnfds = kmalloc_objs(struct evtchnfd *, n, GFP_KERNEL); | 2216 | all_evtchnfds = kmalloc_objs(struct evtchnfd *, n); |
| 2217 | if (!all_evtchnfds) { | 2217 | if (!all_evtchnfds) { |
| 2218 | mutex_unlock(&kvm->arch.xen.xen_lock); | 2218 | mutex_unlock(&kvm->arch.xen.xen_lock); |
| 2219 | return -ENOMEM; | 2219 | return -ENOMEM; |
| @@ -220,7 +220,7 @@ static void ioremap_trace_core(resource_size_t offset, unsigned long size, · 219 unmodified lines | |||
| 220 | void __iomem *addr) | 220 | void __iomem *addr) |
| 221 | { | 221 | { |
| 222 | static atomic_t next_id; | 222 | static atomic_t next_id; |
| 223 | struct remap_trace *trace = kmalloc_obj(*trace, GFP_KERNEL); | 223 | struct remap_trace *trace = kmalloc_obj(*trace); |
| 224 | /* These are page-unaligned. */ | 224 | /* These are page-unaligned. */ |
| 225 | struct mmiotrace_map map = { | 225 | struct mmiotrace_map map = { |
| 226 | .phys = offset, | 226 | .phys = offset, |
| @@ -574,7 +574,7 @@ int memtype_reserve(u64 start, u64 end, enum page_cache_mode req_type, · 573 unmodified lines | |||
| 574 | return -EINVAL; | 574 | return -EINVAL; |
| 575 | } | 575 | } |
| 576 | 576 | ||
| 577 | entry_new = kzalloc_obj(struct memtype, GFP_KERNEL); | 577 | entry_new = kzalloc_obj(struct memtype); |
| 578 | if (!entry_new) | 578 | if (!entry_new) |
| 579 | return -ENOMEM; | 579 | return -ENOMEM; |
| 580 | 580 | ||
| @@ -966,7 +966,7 @@ static struct memtype *memtype_get_idx(loff_t pos) · 385 unmodified lines | |||
| 966 | struct memtype *entry_print; | 966 | struct memtype *entry_print; |
| 967 | int ret; | 967 | int ret; |
| 968 | 968 | ||
| 969 | entry_print = kzalloc_obj(struct memtype, GFP_KERNEL); | 969 | entry_print = kzalloc_obj(struct memtype); |
| 970 | if (!entry_print) | 970 | if (!entry_print) |
| 971 | return NULL; | 971 | return NULL; |
| 972 | 972 | ||
| @@ -3758,7 +3758,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 3757 unmodified lines | |||
| 3758 | 3758 | ||
| 3759 | jit_data = prog->aux->jit_data; | 3759 | jit_data = prog->aux->jit_data; |
| 3760 | if (!jit_data) { | 3760 | if (!jit_data) { |
| 3761 | jit_data = kzalloc_obj(*jit_data, GFP_KERNEL); | 3761 | jit_data = kzalloc_obj(*jit_data); |
| 3762 | if (!jit_data) { | 3762 | if (!jit_data) { |
| 3763 | prog = orig_prog; | 3763 | prog = orig_prog; |
| 3764 | goto out; | 3764 | goto out; |
| @@ -3794,7 +3794,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 29 unmodified lines | |||
| 3794 | padding = true; | 3794 | padding = true; |
| 3795 | goto skip_init_addrs; | 3795 | goto skip_init_addrs; |
| 3796 | } | 3796 | } |
| 3797 | addrs = kvmalloc_objs(*addrs, prog->len + 1, GFP_KERNEL); | 3797 | addrs = kvmalloc_objs(*addrs, prog->len + 1); |
| 3798 | if (!addrs) { | 3798 | if (!addrs) { |
| 3799 | prog = orig_prog; | 3799 | prog = orig_prog; |
| 3800 | goto out_addrs; | 3800 | goto out_addrs; |
| @@ -2545,7 +2545,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) · 2544 unmodified lines | |||
| 2545 | prog = tmp; | 2545 | prog = tmp; |
| 2546 | } | 2546 | } |
| 2547 | 2547 | ||
| 2548 | addrs = kmalloc_objs(*addrs, prog->len, GFP_KERNEL); | 2548 | addrs = kmalloc_objs(*addrs, prog->len); |
| 2549 | if (!addrs) { | 2549 | if (!addrs) { |
| 2550 | prog = orig_prog; | 2550 | prog = orig_prog; |
| 2551 | goto out; | 2551 | goto out; |
| @@ -562,7 +562,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) · 561 unmodified lines | |||
| 562 | } else { | 562 | } else { |
| 563 | struct pci_root_info *info; | 563 | struct pci_root_info *info; |
| 564 | 564 | ||
| 565 | info = kzalloc_obj(*info, GFP_KERNEL); | 565 | info = kzalloc_obj(*info); |
| 566 | if (!info) | 566 | if (!info) |
| 567 | dev_err(&root->device->dev, | 567 | dev_err(&root->device->dev, |
| 568 | "pci_bus %04x:%02x: ignored (out of memory)\n", | 568 | "pci_bus %04x:%02x: ignored (out of memory)\n", |
| @@ -72,7 +72,7 @@ struct pci_root_info __init *alloc_pci_root_info(int bus_min, int bus_max, · 71 unmodified lines | |||
| 72 | { | 72 | { |
| 73 | struct pci_root_info *info; | 73 | struct pci_root_info *info; |
| 74 | 74 | ||
| 75 | info = kzalloc_obj(*info, GFP_KERNEL); | 75 | info = kzalloc_obj(*info); |
| 76 | 76 | ||
| 77 | if (!info) | 77 | if (!info) |
| 78 | return info; | 78 | return info; |
| @@ -132,7 +132,7 @@ void update_res(struct pci_root_info *info, resource_size_t start, · 53 unmodified lines | |||
| 132 | addit: | 132 | addit: |
| 133 | 133 | ||
| 134 | /* need to add that */ | 134 | /* need to add that */ |
| 135 | root_res = kzalloc_obj(*root_res, GFP_KERNEL); | 135 | root_res = kzalloc_obj(*root_res); |
| 136 | if (!root_res) | 136 | if (!root_res) |
| 137 | return; | 137 | return; |
| 138 | 138 | ||
| @@ -461,7 +461,7 @@ void pcibios_scan_root(int busnum) · 460 unmodified lines | |||
| 461 | struct pci_sysdata *sd; | 461 | struct pci_sysdata *sd; |
| 462 | LIST_HEAD(resources); | 462 | LIST_HEAD(resources); |
| 463 | 463 | ||
| 464 | sd = kzalloc_obj(*sd, GFP_KERNEL); | 464 | sd = kzalloc_obj(*sd); |
| 465 | if (!sd) { | 465 | if (!sd) { |
| 466 | printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busnum); | 466 | printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busnum); |
| 467 | return; | 467 | return; |
| @@ -771,7 +771,7 @@ static void pci_amd_enable_64bit_bar(struct pci_dev *dev) · 770 unmodified lines | |||
| 771 | if (i == 8) | 771 | if (i == 8) |
| 772 | return; | 772 | return; |
| 773 | 773 | ||
| 774 | res = kzalloc_obj(*res, GFP_KERNEL); | 774 | res = kzalloc_obj(*res); |
| 775 | if (!res) | 775 | if (!res) |
| 776 | return; | 776 | return; |
| 777 | 777 | ||
| @@ -81,7 +81,7 @@ pcibios_save_fw_addr(struct pci_dev *dev, int idx, resource_size_t fw_addr) · 80 unmodified lines | |||
| 81 | map = pcibios_fwaddrmap_lookup(dev); | 81 | map = pcibios_fwaddrmap_lookup(dev); |
| 82 | if (!map) { | 82 | if (!map) { |
| 83 | spin_unlock_irqrestore(&pcibios_fwaddrmap_lock, flags); | 83 | spin_unlock_irqrestore(&pcibios_fwaddrmap_lock, flags); |
| 84 | map = kzalloc_obj(*map, GFP_KERNEL); | 84 | map = kzalloc_obj(*map); |
| 85 | if (!map) | 85 | if (!map) |
| 86 | return; | 86 | return; |
| 87 | 87 | ||
| @@ -77,7 +77,7 @@ static struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, int start, · 76 unmodified lines | |||
| 77 | if (addr == 0) | 77 | if (addr == 0) |
| 78 | return NULL; | 78 | return NULL; |
| 79 | 79 | ||
| 80 | new = kzalloc_obj(*new, GFP_KERNEL); | 80 | new = kzalloc_obj(*new); |
| 81 | if (!new) | 81 | if (!new) |
| 82 | return NULL; | 82 | return NULL; |
| 83 | 83 | ||
| @@ -173,7 +173,7 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) · 172 unmodified lines | |||
| 173 | if (type == PCI_CAP_ID_MSI && nvec > 1) | 173 | if (type == PCI_CAP_ID_MSI && nvec > 1) |
| 174 | return 1; | 174 | return 1; |
| 175 | 175 | ||
| 176 | v = kzalloc_objs(int, max(1, nvec), GFP_KERNEL); | 176 | v = kzalloc_objs(int, max(1, nvec)); |
| 177 | if (!v) | 177 | if (!v) |
| 178 | return -ENOMEM; | 178 | return -ENOMEM; |
| 179 | 179 | ||
| @@ -114,7 +114,7 @@ add_sysfs_runtime_map_entry(struct kobject *kobj, int nr, · 113 unmodified lines | |||
| 114 | return ERR_PTR(-ENOMEM); | 114 | return ERR_PTR(-ENOMEM); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 117 | entry = kzalloc_obj(*entry); |
| 118 | if (!entry) { | 118 | if (!entry) { |
| 119 | kset_unregister(map_kset); | 119 | kset_unregister(map_kset); |
| 120 | map_kset = NULL; | 120 | map_kset = NULL; |
| @@ -166,7 +166,7 @@ static int __init efi_runtime_map_init(void) · 45 unmodified lines | |||
| 166 | if (!efi_enabled(EFI_MEMMAP) || !efi_kobj) | 166 | if (!efi_enabled(EFI_MEMMAP) || !efi_kobj) |
| 167 | return 0; | 167 | return 0; |
| 168 | 168 | ||
| 169 | map_entries = kzalloc_objs(entry, efi.memmap.nr_map, GFP_KERNEL); | 169 | map_entries = kzalloc_objs(entry, efi.memmap.nr_map); |
| 170 | if (!map_entries) { | 170 | if (!map_entries) { |
| 171 | ret = -ENOMEM; | 171 | ret = -ENOMEM; |
| 172 | goto out; | 172 | goto out; |
| @@ -113,7 +113,7 @@ int __init geode_create_leds(const char *label, const struct geode_led *leds, · 112 unmodified lines | |||
| 113 | return -EINVAL; | 113 | return -EINVAL; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | swnodes = kzalloc_objs(*swnodes, n_leds, GFP_KERNEL); | 116 | swnodes = kzalloc_objs(*swnodes, n_leds); |
| 117 | if (!swnodes) | 117 | if (!swnodes) |
| 118 | return -ENOMEM; | 118 | return -ENOMEM; |
| 119 | 119 | ||
| @@ -121,7 +121,7 @@ int __init geode_create_leds(const char *label, const struct geode_led *leds, · 1 unmodified line | |||
| 121 | * Each LED is represented by 3 properties: "gpios", | 121 | * Each LED is represented by 3 properties: "gpios", |
| 122 | * "linux,default-trigger", and am empty terminator. | 122 | * "linux,default-trigger", and am empty terminator. |
| 123 | */ | 123 | */ |
| 124 | props = kzalloc_objs(*props, n_leds * 3, GFP_KERNEL); | 124 | props = kzalloc_objs(*props, n_leds * 3); |
| 125 | if (!props) { | 125 | if (!props) { |
| 126 | err = -ENOMEM; | 126 | err = -ENOMEM; |
| 127 | goto err_free_swnodes; | 127 | goto err_free_swnodes; |
| @@ -394,7 +394,7 @@ static int msr_build_context(const u32 *msr_id, const int num) · 393 unmodified lines | |||
| 394 | 394 | ||
| 395 | total_num = saved_msrs->num + num; | 395 | total_num = saved_msrs->num + num; |
| 396 | 396 | ||
| 397 | msr_array = kmalloc_objs(struct saved_msr, total_num, GFP_KERNEL); | 397 | msr_array = kmalloc_objs(struct saved_msr, total_num); |
| 398 | if (!msr_array) { | 398 | if (!msr_array) { |
| 399 | pr_err("x86/pm: Can not allocate memory to save/restore MSRs during suspend.\n"); | 399 | pr_err("x86/pm: Can not allocate memory to save/restore MSRs during suspend.\n"); |
| 400 | return -ENOMEM; | 400 | return -ENOMEM; |
| @@ -313,7 +313,7 @@ static bool __init alloc_rmp_segment_desc(u64 segment_pa, u64 segment_size, u64 · 312 unmodified lines | |||
| 313 | return false; | 313 | return false; |
| 314 | } | 314 | } |
| 315 | 315 | ||
| 316 | desc = kzalloc_obj(*desc, GFP_KERNEL); | 316 | desc = kzalloc_obj(*desc); |
| 317 | if (!desc) { | 317 | if (!desc) { |
| 318 | memunmap(rmp_segment); | 318 | memunmap(rmp_segment); |
| 319 | return false; | 319 | return false; |
| @@ -194,7 +194,7 @@ static int add_tdx_memblock(struct list_head *tmb_list, unsigned long start_pfn, · 193 unmodified lines | |||
| 194 | { | 194 | { |
| 195 | struct tdx_memblock *tmb; | 195 | struct tdx_memblock *tmb; |
| 196 | 196 | ||
| 197 | tmb = kmalloc_obj(*tmb, GFP_KERNEL); | 197 | tmb = kmalloc_obj(*tmb); |
| 198 | if (!tmb) | 198 | if (!tmb) |
| 199 | return -ENOMEM; | 199 | return -ENOMEM; |
| 200 | 200 | ||
| @@ -101,7 +101,7 @@ static int gnttab_apply(pte_t *pte, unsigned long addr, void *data) · 100 unmodified lines | |||
| 101 | 101 | ||
| 102 | static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) | 102 | static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) |
| 103 | { | 103 | { |
| 104 | area->ptes = kmalloc_objs(*area->ptes, nr_frames, GFP_KERNEL); | 104 | area->ptes = kmalloc_objs(*area->ptes, nr_frames); |
| 105 | if (area->ptes == NULL) | 105 | if (area->ptes == NULL) |
| 106 | return -ENOMEM; | 106 | return -ENOMEM; |
| 107 | area->area = get_vm_area(PAGE_SIZE * nr_frames, VM_IOREMAP); | 107 | area->area = get_vm_area(PAGE_SIZE * nr_frames, VM_IOREMAP); |
| @@ -230,7 +230,7 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle) · 229 unmodified lines | |||
| 230 | if (cpumask_test_and_set_cpu(cpu, xen_cpu_initialized_map)) | 230 | if (cpumask_test_and_set_cpu(cpu, xen_cpu_initialized_map)) |
| 231 | return 0; | 231 | return 0; |
| 232 | 232 | ||
| 233 | ctxt = kzalloc_obj(*ctxt, GFP_KERNEL); | 233 | ctxt = kzalloc_obj(*ctxt); |
| 234 | if (ctxt == NULL) { | 234 | if (ctxt == NULL) { |
| 235 | cpumask_clear_cpu(cpu, xen_cpu_initialized_map); | 235 | cpumask_clear_cpu(cpu, xen_cpu_initialized_map); |
| 236 | return -ENOMEM; | 236 | return -ENOMEM; |
| @@ -123,7 +123,7 @@ static int tie_get(struct task_struct *target, · 122 unmodified lines | |||
| 123 | int ret; | 123 | int ret; |
| 124 | struct pt_regs *regs = task_pt_regs(target); | 124 | struct pt_regs *regs = task_pt_regs(target); |
| 125 | struct thread_info *ti = task_thread_info(target); | 125 | struct thread_info *ti = task_thread_info(target); |
| 126 | elf_xtregs_t *newregs = kzalloc_obj(elf_xtregs_t, GFP_KERNEL); | 126 | elf_xtregs_t *newregs = kzalloc_obj(elf_xtregs_t); |
| 127 | 127 | ||
| 128 | if (!newregs) | 128 | if (!newregs) |
| 129 | return -ENOMEM; | 129 | return -ENOMEM; |
| @@ -156,7 +156,7 @@ static int tie_set(struct task_struct *target, · 26 unmodified lines | |||
| 156 | int ret; | 156 | int ret; |
| 157 | struct pt_regs *regs = task_pt_regs(target); | 157 | struct pt_regs *regs = task_pt_regs(target); |
| 158 | struct thread_info *ti = task_thread_info(target); | 158 | struct thread_info *ti = task_thread_info(target); |
| 159 | elf_xtregs_t *newregs = kzalloc_obj(elf_xtregs_t, GFP_KERNEL); | 159 | elf_xtregs_t *newregs = kzalloc_obj(elf_xtregs_t); |
| 160 | 160 | ||
| 161 | if (!newregs) | 161 | if (!newregs) |
| 162 | return -ENOMEM; | 162 | return -ENOMEM; |
| @@ -320,7 +320,7 @@ static int __init simdisk_init(void) · 319 unmodified lines | |||
| 320 | if (simdisk_count > MAX_SIMDISK_COUNT) | 320 | if (simdisk_count > MAX_SIMDISK_COUNT) |
| 321 | simdisk_count = MAX_SIMDISK_COUNT; | 321 | simdisk_count = MAX_SIMDISK_COUNT; |
| 322 | 322 | ||
| 323 | sddev = kmalloc_objs(*sddev, simdisk_count, GFP_KERNEL); | 323 | sddev = kmalloc_objs(*sddev, simdisk_count); |
| 324 | if (sddev == NULL) | 324 | if (sddev == NULL) |
| 325 | goto out_unregister; | 325 | goto out_unregister; |
| 326 | 326 | ||
| @@ -322,7 +322,7 @@ int bio_integrity_map_user(struct bio *bio, struct iov_iter *iter) · 321 unmodified lines | |||
| 322 | if (nr_vecs > BIO_MAX_VECS) | 322 | if (nr_vecs > BIO_MAX_VECS) |
| 323 | return -E2BIG; | 323 | return -E2BIG; |
| 324 | if (nr_vecs > UIO_FASTIOV) { | 324 | if (nr_vecs > UIO_FASTIOV) { |
| 325 | bvec = kzalloc_objs(*bvec, nr_vecs, GFP_KERNEL); | 325 | bvec = kzalloc_objs(*bvec, nr_vecs); |
| 326 | if (!bvec) | 326 | if (!bvec) |
| 327 | return -ENOMEM; | 327 | return -ENOMEM; |
| 328 | pages = NULL; | 328 | pages = NULL; |
| @@ -84,7 +84,7 @@ static DEFINE_XARRAY(bio_slabs); · 83 unmodified lines | |||
| 84 | 84 | ||
| 85 | static struct bio_slab *create_bio_slab(unsigned int size) | 85 | static struct bio_slab *create_bio_slab(unsigned int size) |
| 86 | { | 86 | { |
| 87 | struct bio_slab *bslab = kzalloc_obj(*bslab, GFP_KERNEL); | 87 | struct bio_slab *bslab = kzalloc_obj(*bslab); |
| 88 | 88 | ||
| 89 | if (!bslab) | 89 | if (!bslab) |
| 90 | return NULL; | 90 | return NULL; |
| @@ -1417,7 +1417,7 @@ blkcg_css_alloc(struct cgroup_subsys_state *parent_css) · 1416 unmodified lines | |||
| 1417 | if (!parent_css) { | 1417 | if (!parent_css) { |
| 1418 | blkcg = &blkcg_root; | 1418 | blkcg = &blkcg_root; |
| 1419 | } else { | 1419 | } else { |
| 1420 | blkcg = kzalloc_obj(*blkcg, GFP_KERNEL); | 1420 | blkcg = kzalloc_obj(*blkcg); |
| 1421 | if (!blkcg) | 1421 | if (!blkcg) |
| 1422 | goto unlock; | 1422 | goto unlock; |
| 1423 | } | 1423 | } |
| @@ -93,7 +93,7 @@ int blk_crypto_profile_init(struct blk_crypto_profile *profile, · 92 unmodified lines | |||
| 93 | 93 | ||
| 94 | /* Initialize keyslot management data. */ | 94 | /* Initialize keyslot management data. */ |
| 95 | 95 | ||
| 96 | profile->slots = kvzalloc_objs(profile->slots[0], num_slots, GFP_KERNEL); | 96 | profile->slots = kvzalloc_objs(profile->slots[0], num_slots); |
| 97 | if (!profile->slots) | 97 | if (!profile->slots) |
| 98 | goto err_destroy; | 98 | goto err_destroy; |
| 99 | 99 | ||
| @@ -170,7 +170,7 @@ int blk_crypto_sysfs_register(struct gendisk *disk) · 169 unmodified lines | |||
| 170 | if (!q->crypto_profile) | 170 | if (!q->crypto_profile) |
| 171 | return 0; | 171 | return 0; |
| 172 | 172 | ||
| 173 | obj = kzalloc_obj(*obj, GFP_KERNEL); | 173 | obj = kzalloc_obj(*obj); |
| 174 | if (!obj) | 174 | if (!obj) |
| 175 | return -ENOMEM; | 175 | return -ENOMEM; |
| 176 | obj->profile = q->crypto_profile; | 176 | obj->profile = q->crypto_profile; |
| @@ -2882,7 +2882,7 @@ static int blk_iocost_init(struct gendisk *disk) · 2881 unmodified lines | |||
| 2882 | struct ioc *ioc; | 2882 | struct ioc *ioc; |
| 2883 | int i, cpu, ret; | 2883 | int i, cpu, ret; |
| 2884 | 2884 | ||
| 2885 | ioc = kzalloc_obj(*ioc, GFP_KERNEL); | 2885 | ioc = kzalloc_obj(*ioc); |
| 2886 | if (!ioc) | 2886 | if (!ioc) |
| 2887 | return -ENOMEM; | 2887 | return -ENOMEM; |
| 2888 | 2888 | ||
| @@ -760,7 +760,7 @@ static int blk_iolatency_init(struct gendisk *disk) · 759 unmodified lines | |||
| 760 | struct blk_iolatency *blkiolat; | 760 | struct blk_iolatency *blkiolat; |
| 761 | int ret; | 761 | int ret; |
| 762 | 762 | ||
| 763 | blkiolat = kzalloc_obj(*blkiolat, GFP_KERNEL); | 763 | blkiolat = kzalloc_obj(*blkiolat); |
| 764 | if (!blkiolat) | 764 | if (!blkiolat) |
| 765 | return -ENOMEM; | 765 | return -ENOMEM; |
| 766 | 766 | ||
| @@ -489,7 +489,7 @@ int blk_mq_alloc_sched_ctx_batch(struct xarray *elv_tbl, · 488 unmodified lines | |||
| 489 | lockdep_assert_held_write(&set->update_nr_hwq_lock); | 489 | lockdep_assert_held_write(&set->update_nr_hwq_lock); |
| 490 | 490 | ||
| 491 | list_for_each_entry(q, &set->tag_list, tag_set_list) { | 491 | list_for_each_entry(q, &set->tag_list, tag_set_list) { |
| 492 | ctx = kzalloc_obj(struct elv_change_ctx, GFP_KERNEL); | 492 | ctx = kzalloc_obj(struct elv_change_ctx); |
| 493 | if (!ctx) | 493 | if (!ctx) |
| 494 | return -ENOMEM; | 494 | return -ENOMEM; |
| 495 | 495 | ||
| @@ -4362,7 +4362,7 @@ static int blk_mq_alloc_ctxs(struct request_queue *q) · 4361 unmodified lines | |||
| 4362 | struct blk_mq_ctxs *ctxs; | 4362 | struct blk_mq_ctxs *ctxs; |
| 4363 | int cpu; | 4363 | int cpu; |
| 4364 | 4364 | ||
| 4365 | ctxs = kzalloc_obj(*ctxs, GFP_KERNEL); | 4365 | ctxs = kzalloc_obj(*ctxs); |
| 4366 | if (!ctxs) | 4366 | if (!ctxs) |
| 4367 | return -ENOMEM; | 4367 | return -ENOMEM; |
| 4368 | 4368 | ||
| @@ -4879,7 +4879,7 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set) · 510 unmodified lines | |||
| 4879 | set->nr_hw_queues = nr_cpu_ids; | 4879 | set->nr_hw_queues = nr_cpu_ids; |
| 4880 | 4880 | ||
| 4881 | if (set->flags & BLK_MQ_F_BLOCKING) { | 4881 | if (set->flags & BLK_MQ_F_BLOCKING) { |
| 4882 | set->srcu = kmalloc_obj(*set->srcu, GFP_KERNEL); | 4882 | set->srcu = kmalloc_obj(*set->srcu); |
| 4883 | if (!set->srcu) | 4883 | if (!set->srcu) |
| 4884 | return -ENOMEM; | 4884 | return -ENOMEM; |
| 4885 | ret = init_srcu_struct(set->srcu); | 4885 | ret = init_srcu_struct(set->srcu); |
| @@ -103,11 +103,11 @@ blk_stat_alloc_callback(void (*timer_fn)(struct blk_stat_callback *), · 102 unmodified lines | |||
| 103 | { | 103 | { |
| 104 | struct blk_stat_callback *cb; | 104 | struct blk_stat_callback *cb; |
| 105 | 105 | ||
| 106 | cb = kmalloc_obj(*cb, GFP_KERNEL); | 106 | cb = kmalloc_obj(*cb); |
| 107 | if (!cb) | 107 | if (!cb) |
| 108 | return NULL; | 108 | return NULL; |
| 109 | 109 | ||
| 110 | cb->stat = kmalloc_objs(struct blk_rq_stat, buckets, GFP_KERNEL); | 110 | cb->stat = kmalloc_objs(struct blk_rq_stat, buckets); |
| 111 | if (!cb->stat) { | 111 | if (!cb->stat) { |
| 112 | kfree(cb); | 112 | kfree(cb); |
| 113 | return NULL; | 113 | return NULL; |
| @@ -206,7 +206,7 @@ struct blk_queue_stats *blk_alloc_queue_stats(void) · 92 unmodified lines | |||
| 206 | { | 206 | { |
| 207 | struct blk_queue_stats *stats; | 207 | struct blk_queue_stats *stats; |
| 208 | 208 | ||
| 209 | stats = kmalloc_obj(*stats, GFP_KERNEL); | 209 | stats = kmalloc_obj(*stats); |
| 210 | if (!stats) | 210 | if (!stats) |
| 211 | return NULL; | 211 | return NULL; |
| 212 | 212 | ||
| @@ -713,7 +713,7 @@ static int wbt_data_dir(const struct request *rq) · 712 unmodified lines | |||
| 713 | 713 | ||
| 714 | static struct rq_wb *wbt_alloc(void) | 714 | static struct rq_wb *wbt_alloc(void) |
| 715 | { | 715 | { |
| 716 | struct rq_wb *rwb = kzalloc_obj(*rwb, GFP_KERNEL); | 716 | struct rq_wb *rwb = kzalloc_obj(*rwb); |
| 717 | 717 | ||
| 718 | if (!rwb) | 718 | if (!rwb) |
| 719 | return NULL; | 719 | return NULL; |
| @@ -368,7 +368,7 @@ struct request_queue *bsg_setup_queue(struct device *dev, const char *name, · 367 unmodified lines | |||
| 368 | struct request_queue *q; | 368 | struct request_queue *q; |
| 369 | int ret = -ENOMEM; | 369 | int ret = -ENOMEM; |
| 370 | 370 | ||
| 371 | bset = kzalloc_obj(*bset, GFP_KERNEL); | 371 | bset = kzalloc_obj(*bset); |
| 372 | if (!bset) | 372 | if (!bset) |
| 373 | return ERR_PTR(-ENOMEM); | 373 | return ERR_PTR(-ENOMEM); |
| 374 | 374 | ||
| @@ -192,7 +192,7 @@ struct bsg_device *bsg_register_queue(struct request_queue *q, · 191 unmodified lines | |||
| 192 | struct bsg_device *bd; | 192 | struct bsg_device *bd; |
| 193 | int ret; | 193 | int ret; |
| 194 | 194 | ||
| 195 | bd = kzalloc_obj(*bd, GFP_KERNEL); | 195 | bd = kzalloc_obj(*bd); |
| 196 | if (!bd) | 196 | if (!bd) |
| 197 | return ERR_PTR(-ENOMEM); | 197 | return ERR_PTR(-ENOMEM); |
| 198 | bd->max_queue = BSG_DEFAULT_CMDS; | 198 | bd->max_queue = BSG_DEFAULT_CMDS; |
| @@ -436,7 +436,7 @@ int disk_alloc_events(struct gendisk *disk) · 435 unmodified lines | |||
| 436 | if (!disk->fops->check_events || !disk->events) | 436 | if (!disk->fops->check_events || !disk->events) |
| 437 | return 0; | 437 | return 0; |
| 438 | 438 | ||
| 439 | ev = kzalloc_obj(*ev, GFP_KERNEL); | 439 | ev = kzalloc_obj(*ev); |
| 440 | if (!ev) { | 440 | if (!ev) { |
| 441 | pr_warn("%s: failed to initialize events\n", disk->disk_name); | 441 | pr_warn("%s: failed to initialize events\n", disk->disk_name); |
| 442 | return -ENOMEM; | 442 | return -ENOMEM; |
| @@ -65,7 +65,7 @@ static ssize_t __blkdev_direct_IO_simple(struct kiocb *iocb, · 64 unmodified lines | |||
| 65 | if (nr_pages <= DIO_INLINE_BIO_VECS) | 65 | if (nr_pages <= DIO_INLINE_BIO_VECS) |
| 66 | vecs = inline_vecs; | 66 | vecs = inline_vecs; |
| 67 | else { | 67 | else { |
| 68 | vecs = kmalloc_objs(struct bio_vec, nr_pages, GFP_KERNEL); | 68 | vecs = kmalloc_objs(struct bio_vec, nr_pages); |
| 69 | if (!vecs) | 69 | if (!vecs) |
| 70 | return -ENOMEM; | 70 | return -ENOMEM; |
| 71 | } | 71 | } |
| @@ -264,7 +264,7 @@ int __register_blkdev(unsigned int major, const char *name, · 263 unmodified lines | |||
| 264 | goto out; | 264 | goto out; |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | p = kmalloc_obj(struct blk_major_name, GFP_KERNEL); | 267 | p = kmalloc_obj(struct blk_major_name); |
| 268 | if (p == NULL) { | 268 | if (p == NULL) { |
| 269 | ret = -ENOMEM; | 269 | ret = -ENOMEM; |
| 270 | goto out; | 270 | goto out; |
| @@ -914,7 +914,7 @@ static void *disk_seqf_start(struct seq_file *seqf, loff_t *pos) · 643 unmodified lines | |||
| 914 | struct class_dev_iter *iter; | 914 | struct class_dev_iter *iter; |
| 915 | struct device *dev; | 915 | struct device *dev; |
| 916 | 916 | ||
| 917 | iter = kmalloc_obj(*iter, GFP_KERNEL); | 917 | iter = kmalloc_obj(*iter); |
| 918 | if (!iter) | 918 | if (!iter) |
| 919 | return ERR_PTR(-ENOMEM); | 919 | return ERR_PTR(-ENOMEM); |
| 920 | 920 | ||
| @@ -92,7 +92,7 @@ int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) · 91 unmodified lines | |||
| 92 | goto out_unlock; | 92 | goto out_unlock; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | holder = kzalloc_obj(*holder, GFP_KERNEL); | 95 | holder = kzalloc_obj(*holder); |
| 96 | if (!holder) { | 96 | if (!holder) { |
| 97 | ret = -ENOMEM; | 97 | ret = -ENOMEM; |
| 98 | goto out_unlock; | 98 | goto out_unlock; |
| @@ -199,7 +199,7 @@ int aix_partition(struct parsed_partitions *state) · 198 unmodified lines | |||
| 199 | numlvs = be16_to_cpu(p->numlvs); | 199 | numlvs = be16_to_cpu(p->numlvs); |
| 200 | put_dev_sector(sect); | 200 | put_dev_sector(sect); |
| 201 | } | 201 | } |
| 202 | lvip = kzalloc_objs(struct lv_info, state->limit, GFP_KERNEL); | 202 | lvip = kzalloc_objs(struct lv_info, state->limit); |
| 203 | if (!lvip) | 203 | if (!lvip) |
| 204 | return 0; | 204 | return 0; |
| 205 | if (numlvs && (d = read_part_sector(state, vgda_sector + 1, §))) { | 205 | if (numlvs && (d = read_part_sector(state, vgda_sector + 1, §))) { |
| @@ -46,7 +46,7 @@ static int parse_subpart(struct cmdline_subpart **subpart, char *partdef) · 45 unmodified lines | |||
| 46 | 46 | ||
| 47 | *subpart = NULL; | 47 | *subpart = NULL; |
| 48 | 48 | ||
| 49 | new_subpart = kzalloc_obj(struct cmdline_subpart, GFP_KERNEL); | 49 | new_subpart = kzalloc_obj(struct cmdline_subpart); |
| 50 | if (!new_subpart) | 50 | if (!new_subpart) |
| 51 | return -ENOMEM; | 51 | return -ENOMEM; |
| 52 | 52 | ||
| @@ -122,7 +122,7 @@ static int parse_parts(struct cmdline_parts **parts, char *bdevdef) · 69 unmodified lines | |||
| 122 | 122 | ||
| 123 | *parts = NULL; | 123 | *parts = NULL; |
| 124 | 124 | ||
| 125 | newparts = kzalloc_obj(struct cmdline_parts, GFP_KERNEL); | 125 | newparts = kzalloc_obj(struct cmdline_parts); |
| 126 | if (!newparts) | 126 | if (!newparts) |
| 127 | return -ENOMEM; | 127 | return -ENOMEM; |
| 128 | 128 | ||
| @@ -94,7 +94,7 @@ static struct parsed_partitions *allocate_partitions(struct gendisk *hd) · 93 unmodified lines | |||
| 94 | struct parsed_partitions *state; | 94 | struct parsed_partitions *state; |
| 95 | int nr = DISK_MAX_PARTS; | 95 | int nr = DISK_MAX_PARTS; |
| 96 | 96 | ||
| 97 | state = kzalloc_obj(*state, GFP_KERNEL); | 97 | state = kzalloc_obj(*state); |
| 98 | if (!state) | 98 | if (!state) |
| 99 | return NULL; | 99 | return NULL; |
| 100 | 100 | ||
| @@ -595,7 +595,7 @@ static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt, · 594 unmodified lines | |||
| 595 | lastlba = last_lba(state->disk); | 595 | lastlba = last_lba(state->disk); |
| 596 | if (!force_gpt) { | 596 | if (!force_gpt) { |
| 597 | /* This will be added to the EFI Spec. per Intel after v1.02. */ | 597 | /* This will be added to the EFI Spec. per Intel after v1.02. */ |
| 598 | legacymbr = kzalloc_obj(*legacymbr, GFP_KERNEL); | 598 | legacymbr = kzalloc_obj(*legacymbr); |
| 599 | if (!legacymbr) | 599 | if (!legacymbr) |
| 600 | goto fail; | 600 | goto fail; |
| 601 | 601 | ||
| @@ -347,13 +347,13 @@ int ibm_partition(struct parsed_partitions *state) · 346 unmodified lines | |||
| 347 | nr_sectors = bdev_nr_sectors(bdev); | 347 | nr_sectors = bdev_nr_sectors(bdev); |
| 348 | if (nr_sectors == 0) | 348 | if (nr_sectors == 0) |
| 349 | goto out_symbol; | 349 | goto out_symbol; |
| 350 | info = kmalloc_obj(dasd_information2_t, GFP_KERNEL); | 350 | info = kmalloc_obj(dasd_information2_t); |
| 351 | if (info == NULL) | 351 | if (info == NULL) |
| 352 | goto out_symbol; | 352 | goto out_symbol; |
| 353 | geo = kmalloc_obj(struct hd_geometry, GFP_KERNEL); | 353 | geo = kmalloc_obj(struct hd_geometry); |
| 354 | if (geo == NULL) | 354 | if (geo == NULL) |
| 355 | goto out_nogeo; | 355 | goto out_nogeo; |
| 356 | label = kmalloc_obj(union label_t, GFP_KERNEL); | 356 | label = kmalloc_obj(union label_t); |
| 357 | if (label == NULL) | 357 | if (label == NULL) |
| 358 | goto out_nolab; | 358 | goto out_nolab; |
| 359 | /* set start if not filled by getgeo function e.g. virtblk */ | 359 | /* set start if not filled by getgeo function e.g. virtblk */ |
| @@ -273,8 +273,8 @@ static bool ldm_validate_privheads(struct parsed_partitions *state, · 272 unmodified lines | |||
| 273 | 273 | ||
| 274 | BUG_ON (!state || !ph1); | 274 | BUG_ON (!state || !ph1); |
| 275 | 275 | ||
| 276 | ph[1] = kmalloc_obj(*ph[1], GFP_KERNEL); | 276 | ph[1] = kmalloc_obj(*ph[1]); |
| 277 | ph[2] = kmalloc_obj(*ph[2], GFP_KERNEL); | 277 | ph[2] = kmalloc_obj(*ph[2]); |
| 278 | if (!ph[1] || !ph[2]) { | 278 | if (!ph[1] || !ph[2]) { |
| 279 | ldm_crit ("Out of memory."); | 279 | ldm_crit ("Out of memory."); |
| 280 | goto out; | 280 | goto out; |
| @@ -362,7 +362,7 @@ static bool ldm_validate_tocblocks(struct parsed_partitions *state, · 81 unmodified lines | |||
| 362 | BUG_ON(!state || !ldb); | 362 | BUG_ON(!state || !ldb); |
| 363 | ph = &ldb->ph; | 363 | ph = &ldb->ph; |
| 364 | tb[0] = &ldb->toc; | 364 | tb[0] = &ldb->toc; |
| 365 | tb[1] = kmalloc_objs(*tb[1], 3, GFP_KERNEL); | 365 | tb[1] = kmalloc_objs(*tb[1], 3); |
| 366 | if (!tb[1]) { | 366 | if (!tb[1]) { |
| 367 | ldm_crit("Out of memory."); | 367 | ldm_crit("Out of memory."); |
| 368 | goto err; | 368 | goto err; |
| @@ -1158,7 +1158,7 @@ static bool ldm_ldmdb_add (u8 *data, int len, struct ldmdb *ldb) · 789 unmodified lines | |||
| 1158 | 1158 | ||
| 1159 | BUG_ON (!data || !ldb); | 1159 | BUG_ON (!data || !ldb); |
| 1160 | 1160 | ||
| 1161 | vb = kmalloc_obj(*vb, GFP_KERNEL); | 1161 | vb = kmalloc_obj(*vb); |
| 1162 | if (!vb) { | 1162 | if (!vb) { |
| 1163 | ldm_crit ("Out of memory."); | 1163 | ldm_crit ("Out of memory."); |
| 1164 | return false; | 1164 | return false; |
| @@ -1438,7 +1438,7 @@ int ldm_partition(struct parsed_partitions *state) · 273 unmodified lines | |||
| 1438 | if (!ldm_validate_partition_table(state)) | 1438 | if (!ldm_validate_partition_table(state)) |
| 1439 | return 0; | 1439 | return 0; |
| 1440 | 1440 | ||
| 1441 | ldb = kmalloc_obj(*ldb, GFP_KERNEL); | 1441 | ldb = kmalloc_obj(*ldb); |
| 1442 | if (!ldb) { | 1442 | if (!ldb) { |
| 1443 | ldm_crit ("Out of memory."); | 1443 | ldm_crit ("Out of memory."); |
| 1444 | goto out; | 1444 | goto out; |
| @@ -2512,7 +2512,7 @@ struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv) · 2511 unmodified lines | |||
| 2512 | { | 2512 | { |
| 2513 | struct opal_dev *dev; | 2513 | struct opal_dev *dev; |
| 2514 | 2514 | ||
| 2515 | dev = kmalloc_obj(*dev, GFP_KERNEL); | 2515 | dev = kmalloc_obj(*dev); |
| 2516 | if (!dev) | 2516 | if (!dev) |
| 2517 | return NULL; | 2517 | return NULL; |
| 2518 | 2518 | ||
| @@ -2719,7 +2719,7 @@ static int opal_save(struct opal_dev *dev, struct opal_lock_unlock *lk_unlk) · 200 unmodified lines | |||
| 2719 | { | 2719 | { |
| 2720 | struct opal_suspend_data *suspend; | 2720 | struct opal_suspend_data *suspend; |
| 2721 | 2721 | ||
| 2722 | suspend = kzalloc_obj(*suspend, GFP_KERNEL); | 2722 | suspend = kzalloc_obj(*suspend); |
| 2723 | if (!suspend) | 2723 | if (!suspend) |
| 2724 | return -ENOMEM; | 2724 | return -ENOMEM; |
| 2725 | 2725 | ||
| @@ -328,7 +328,7 @@ static int __init blacklist_init(void) · 327 unmodified lines | |||
| 328 | if (register_key_type(&key_type_blacklist) < 0) | 328 | if (register_key_type(&key_type_blacklist) < 0) |
| 329 | panic("Can't allocate system blacklist key type\n"); | 329 | panic("Can't allocate system blacklist key type\n"); |
| 330 | 330 | ||
| 331 | restriction = kzalloc_obj(*restriction, GFP_KERNEL); | 331 | restriction = kzalloc_obj(*restriction); |
| 332 | if (!restriction) | 332 | if (!restriction) |
| 333 | panic("Can't allocate blacklist keyring restriction\n"); | 333 | panic("Can't allocate blacklist keyring restriction\n"); |
| 334 | restriction->check = restrict_link_for_blacklist; | 334 | restriction->check = restrict_link_for_blacklist; |
| @@ -140,7 +140,7 @@ static __init struct key_restriction *get_builtin_and_secondary_restriction(void · 139 unmodified lines | |||
| 140 | { | 140 | { |
| 141 | struct key_restriction *restriction; | 141 | struct key_restriction *restriction; |
| 142 | 142 | ||
| 143 | restriction = kzalloc_obj(struct key_restriction, GFP_KERNEL); | 143 | restriction = kzalloc_obj(struct key_restriction); |
| 144 | 144 | ||
| 145 | if (!restriction) | 145 | if (!restriction) |
| 146 | panic("Can't allocate secondary trusted keyring restriction\n"); | 146 | panic("Can't allocate secondary trusted keyring restriction\n"); |
| @@ -70,7 +70,7 @@ int af_alg_register_type(const struct af_alg_type *type) · 69 unmodified lines | |||
| 70 | goto unlock; | 70 | goto unlock; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | node = kmalloc_obj(*node, GFP_KERNEL); | 73 | node = kmalloc_obj(*node); |
| 74 | err = -ENOMEM; | 74 | err = -ENOMEM; |
| 75 | if (!node) | 75 | if (!node) |
| 76 | goto unlock; | 76 | goto unlock; |
| @@ -84,7 +84,7 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval) · 83 unmodified lines | |||
| 84 | if (!try_module_get(THIS_MODULE)) | 84 | if (!try_module_get(THIS_MODULE)) |
| 85 | goto err; | 85 | goto err; |
| 86 | 86 | ||
| 87 | param = kzalloc_obj(*param, GFP_KERNEL); | 87 | param = kzalloc_obj(*param); |
| 88 | if (!param) | 88 | if (!param) |
| 89 | goto err_put_module; | 89 | goto err_put_module; |
| 90 | 90 | ||
| @@ -195,7 +195,7 @@ static int cryptomgr_schedule_test(struct crypto_alg *alg) · 104 unmodified lines | |||
| 195 | if (!try_module_get(THIS_MODULE)) | 195 | if (!try_module_get(THIS_MODULE)) |
| 196 | goto err; | 196 | goto err; |
| 197 | 197 | ||
| 198 | param = kzalloc_obj(*param, GFP_KERNEL); | 198 | param = kzalloc_obj(*param); |
| 199 | if (!param) | 199 | if (!param) |
| 200 | goto err_put_module; | 200 | goto err_put_module; |
| 201 | 201 | ||
| @@ -202,7 +202,7 @@ static void *rng_bind(const char *name, u32 type, u32 mask) · 201 unmodified lines | |||
| 202 | struct rng_parent_ctx *pctx; | 202 | struct rng_parent_ctx *pctx; |
| 203 | struct crypto_rng *rng; | 203 | struct crypto_rng *rng; |
| 204 | 204 | ||
| 205 | pctx = kzalloc_obj(*pctx, GFP_KERNEL); | 205 | pctx = kzalloc_obj(*pctx); |
| 206 | if (!pctx) | 206 | if (!pctx) |
| 207 | return ERR_PTR(-ENOMEM); | 207 | return ERR_PTR(-ENOMEM); |
| 208 | 208 | ||
| @@ -105,7 +105,7 @@ struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) · 104 unmodified lines | |||
| 105 | { | 105 | { |
| 106 | struct crypto_larval *larval; | 106 | struct crypto_larval *larval; |
| 107 | 107 | ||
| 108 | larval = kzalloc_obj(*larval, GFP_KERNEL); | 108 | larval = kzalloc_obj(*larval); |
| 109 | if (!larval) | 109 | if (!larval) |
| 110 | return ERR_PTR(-ENOMEM); | 110 | return ERR_PTR(-ENOMEM); |
| 111 | 111 | ||
| @@ -486,7 +486,7 @@ static struct key_restriction *asymmetric_restriction_alloc( · 485 unmodified lines | |||
| 486 | struct key *key) | 486 | struct key *key) |
| 487 | { | 487 | { |
| 488 | struct key_restriction *keyres = | 488 | struct key_restriction *keyres = |
| 489 | kzalloc_obj(struct key_restriction, GFP_KERNEL); | 489 | kzalloc_obj(struct key_restriction); |
| 490 | 490 | ||
| 491 | if (!keyres) | 491 | if (!keyres) |
| 492 | return ERR_PTR(-ENOMEM); | 492 | return ERR_PTR(-ENOMEM); |
| @@ -133,16 +133,16 @@ struct pkcs7_message *pkcs7_parse_message(const void *data, size_t datalen) · 132 unmodified lines | |||
| 133 | struct pkcs7_message *msg = ERR_PTR(-ENOMEM); | 133 | struct pkcs7_message *msg = ERR_PTR(-ENOMEM); |
| 134 | int ret; | 134 | int ret; |
| 135 | 135 | ||
| 136 | ctx = kzalloc_obj(struct pkcs7_parse_context, GFP_KERNEL); | 136 | ctx = kzalloc_obj(struct pkcs7_parse_context); |
| 137 | if (!ctx) | 137 | if (!ctx) |
| 138 | goto out_no_ctx; | 138 | goto out_no_ctx; |
| 139 | ctx->msg = kzalloc_obj(struct pkcs7_message, GFP_KERNEL); | 139 | ctx->msg = kzalloc_obj(struct pkcs7_message); |
| 140 | if (!ctx->msg) | 140 | if (!ctx->msg) |
| 141 | goto out_no_msg; | 141 | goto out_no_msg; |
| 142 | ctx->sinfo = kzalloc_obj(struct pkcs7_signed_info, GFP_KERNEL); | 142 | ctx->sinfo = kzalloc_obj(struct pkcs7_signed_info); |
| 143 | if (!ctx->sinfo) | 143 | if (!ctx->sinfo) |
| 144 | goto out_no_sinfo; | 144 | goto out_no_sinfo; |
| 145 | ctx->sinfo->sig = kzalloc_obj(struct public_key_signature, GFP_KERNEL); | 145 | ctx->sinfo->sig = kzalloc_obj(struct public_key_signature); |
| 146 | if (!ctx->sinfo->sig) | 146 | if (!ctx->sinfo->sig) |
| 147 | goto out_no_sig; | 147 | goto out_no_sig; |
| 148 | 148 | ||
| @@ -728,10 +728,10 @@ int pkcs7_note_signed_info(void *context, size_t hdrlen, · 579 unmodified lines | |||
| 728 | sinfo->index = ++ctx->sinfo_index; | 728 | sinfo->index = ++ctx->sinfo_index; |
| 729 | *ctx->ppsinfo = sinfo; | 729 | *ctx->ppsinfo = sinfo; |
| 730 | ctx->ppsinfo = &sinfo->next; | 730 | ctx->ppsinfo = &sinfo->next; |
| 731 | ctx->sinfo = kzalloc_obj(struct pkcs7_signed_info, GFP_KERNEL); | 731 | ctx->sinfo = kzalloc_obj(struct pkcs7_signed_info); |
| 732 | if (!ctx->sinfo) | 732 | if (!ctx->sinfo) |
| 733 | return -ENOMEM; | 733 | return -ENOMEM; |
| 734 | ctx->sinfo->sig = kzalloc_obj(struct public_key_signature, GFP_KERNEL); | 734 | ctx->sinfo->sig = kzalloc_obj(struct public_key_signature); |
| 735 | if (!ctx->sinfo->sig) | 735 | if (!ctx->sinfo->sig) |
| 736 | return -ENOMEM; | 736 | return -ENOMEM; |
| 737 | return 0; | 737 | return 0; |
| @@ -103,7 +103,7 @@ static struct public_key *pkcs8_parse(const void *data, size_t datalen) · 102 unmodified lines | |||
| 103 | memset(&ctx, 0, sizeof(ctx)); | 103 | memset(&ctx, 0, sizeof(ctx)); |
| 104 | 104 | ||
| 105 | ret = -ENOMEM; | 105 | ret = -ENOMEM; |
| 106 | ctx.pub = kzalloc_obj(struct public_key, GFP_KERNEL); | 106 | ctx.pub = kzalloc_obj(struct public_key); |
| 107 | if (!ctx.pub) | 107 | if (!ctx.pub) |
| 108 | goto error; | 108 | goto error; |
| 109 | 109 | ||
| @@ -65,16 +65,16 @@ struct x509_certificate *x509_cert_parse(const void *data, size_t datalen) · 64 unmodified lines | |||
| 65 | struct asymmetric_key_id *kid; | 65 | struct asymmetric_key_id *kid; |
| 66 | long ret; | 66 | long ret; |
| 67 | 67 | ||
| 68 | cert = kzalloc_obj(struct x509_certificate, GFP_KERNEL); | 68 | cert = kzalloc_obj(struct x509_certificate); |
| 69 | if (!cert) | 69 | if (!cert) |
| 70 | return ERR_PTR(-ENOMEM); | 70 | return ERR_PTR(-ENOMEM); |
| 71 | cert->pub = kzalloc_obj(struct public_key, GFP_KERNEL); | 71 | cert->pub = kzalloc_obj(struct public_key); |
| 72 | if (!cert->pub) | 72 | if (!cert->pub) |
| 73 | return ERR_PTR(-ENOMEM); | 73 | return ERR_PTR(-ENOMEM); |
| 74 | cert->sig = kzalloc_obj(struct public_key_signature, GFP_KERNEL); | 74 | cert->sig = kzalloc_obj(struct public_key_signature); |
| 75 | if (!cert->sig) | 75 | if (!cert->sig) |
| 76 | return ERR_PTR(-ENOMEM); | 76 | return ERR_PTR(-ENOMEM); |
| 77 | ctx = kzalloc_obj(struct x509_parse_context, GFP_KERNEL); | 77 | ctx = kzalloc_obj(struct x509_parse_context); |
| 78 | if (!ctx) | 78 | if (!ctx) |
| 79 | return ERR_PTR(-ENOMEM); | 79 | return ERR_PTR(-ENOMEM); |
| 80 | 80 | ||
| @@ -210,7 +210,7 @@ static int x509_key_preparse(struct key_preparsed_payload *prep) · 209 unmodified lines | |||
| 210 | p = bin2hex(p, q, srlen); | 210 | p = bin2hex(p, q, srlen); |
| 211 | *p = 0; | 211 | *p = 0; |
| 212 | 212 | ||
| 213 | kids = kmalloc_obj(struct asymmetric_key_ids, GFP_KERNEL); | 213 | kids = kmalloc_obj(struct asymmetric_key_ids); |
| 214 | if (!kids) | 214 | if (!kids) |
| 215 | return -ENOMEM; | 215 | return -ENOMEM; |
| 216 | kids->id[0] = cert->id; | 216 | kids->id[0] = cert->id; |
| @@ -1522,7 +1522,7 @@ static int drbg_init_sym_kernel(struct drbg_state *drbg) · 1521 unmodified lines | |||
| 1522 | unsigned int alignmask; | 1522 | unsigned int alignmask; |
| 1523 | char ctr_name[CRYPTO_MAX_ALG_NAME]; | 1523 | char ctr_name[CRYPTO_MAX_ALG_NAME]; |
| 1524 | 1524 | ||
| 1525 | aeskey = kzalloc_obj(*aeskey, GFP_KERNEL); | 1525 | aeskey = kzalloc_obj(*aeskey); |
| 1526 | if (!aeskey) | 1526 | if (!aeskey) |
| 1527 | return -ENOMEM; | 1527 | return -ENOMEM; |
| 1528 | drbg->priv_data = aeskey; | 1528 | drbg->priv_data = aeskey; |
| @@ -1761,7 +1761,7 @@ static inline int __init drbg_healthcheck_sanity(void) · 232 unmodified lines | |||
| 1761 | drbg_convert_tfm_core("drbg_nopr_hmac_sha512", &coreref, &pr); | 1761 | drbg_convert_tfm_core("drbg_nopr_hmac_sha512", &coreref, &pr); |
| 1762 | #endif | 1762 | #endif |
| 1763 | 1763 | ||
| 1764 | drbg = kzalloc_obj(struct drbg_state, GFP_KERNEL); | 1764 | drbg = kzalloc_obj(struct drbg_state); |
| 1765 | if (!drbg) | 1765 | if (!drbg) |
| 1766 | return -ENOMEM; | 1766 | return -ENOMEM; |
| 1767 | 1767 | ||
| @@ -98,7 +98,7 @@ struct ecc_point *ecc_alloc_point(unsigned int ndigits) · 97 unmodified lines | |||
| 98 | if (!ndigits) | 98 | if (!ndigits) |
| 99 | return NULL; | 99 | return NULL; |
| 100 | 100 | ||
| 101 | p = kmalloc_obj(*p, GFP_KERNEL); | 101 | p = kmalloc_obj(*p); |
| 102 | if (!p) | 102 | if (!p) |
| 103 | return NULL; | 103 | return NULL; |
| 104 | 104 | ||
| @@ -1098,7 +1098,7 @@ static int __init crypto_gcm_module_init(void) · 1097 unmodified lines | |||
| 1098 | { | 1098 | { |
| 1099 | int err; | 1099 | int err; |
| 1100 | 1100 | ||
| 1101 | gcm_zeroes = kzalloc_obj(*gcm_zeroes, GFP_KERNEL); | 1101 | gcm_zeroes = kzalloc_obj(*gcm_zeroes); |
| 1102 | if (!gcm_zeroes) | 1102 | if (!gcm_zeroes) |
| 1103 | return -ENOMEM; | 1103 | return -ENOMEM; |
| 1104 | 1104 | ||
| @@ -145,7 +145,7 @@ struct simd_skcipher_alg *simd_skcipher_create_compat(struct skcipher_alg *ialg, · 144 unmodified lines | |||
| 145 | struct skcipher_alg *alg; | 145 | struct skcipher_alg *alg; |
| 146 | int err; | 146 | int err; |
| 147 | 147 | ||
| 148 | salg = kzalloc_obj(*salg, GFP_KERNEL); | 148 | salg = kzalloc_obj(*salg); |
| 149 | if (!salg) { | 149 | if (!salg) { |
| 150 | salg = ERR_PTR(-ENOMEM); | 150 | salg = ERR_PTR(-ENOMEM); |
| 151 | goto out; | 151 | goto out; |
| @@ -370,7 +370,7 @@ static struct simd_aead_alg *simd_aead_create_compat(struct aead_alg *ialg, · 218 unmodified lines | |||
| 370 | struct aead_alg *alg; | 370 | struct aead_alg *alg; |
| 371 | int err; | 371 | int err; |
| 372 | 372 | ||
| 373 | salg = kzalloc_obj(*salg, GFP_KERNEL); | 373 | salg = kzalloc_obj(*salg); |
| 374 | if (!salg) { | 374 | if (!salg) { |
| 375 | salg = ERR_PTR(-ENOMEM); | 375 | salg = ERR_PTR(-ENOMEM); |
| 376 | goto out; | 376 | goto out; |
| @@ -180,7 +180,7 @@ static int test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc, · 179 unmodified lines | |||
| 180 | int ret = 0; | 180 | int ret = 0; |
| 181 | int *rc; | 181 | int *rc; |
| 182 | 182 | ||
| 183 | rc = kzalloc_objs(*rc, num_mb, GFP_KERNEL); | 183 | rc = kzalloc_objs(*rc, num_mb); |
| 184 | if (!rc) | 184 | if (!rc) |
| 185 | return -ENOMEM; | 185 | return -ENOMEM; |
| 186 | 186 | ||
| @@ -207,7 +207,7 @@ static int test_mb_aead_cycles(struct test_mb_aead_data *data, int enc, · 20 unmodified lines | |||
| 207 | int i; | 207 | int i; |
| 208 | int *rc; | 208 | int *rc; |
| 209 | 209 | ||
| 210 | rc = kzalloc_objs(*rc, num_mb, GFP_KERNEL); | 210 | rc = kzalloc_objs(*rc, num_mb); |
| 211 | if (!rc) | 211 | if (!rc) |
| 212 | return -ENOMEM; | 212 | return -ENOMEM; |
| 213 | 213 | ||
| @@ -270,7 +270,7 @@ static void test_mb_aead_speed(const char *algo, int enc, int secs, · 56 unmodified lines | |||
| 270 | else | 270 | else |
| 271 | e = "decryption"; | 271 | e = "decryption"; |
| 272 | 272 | ||
| 273 | data = kzalloc_objs(*data, num_mb, GFP_KERNEL); | 273 | data = kzalloc_objs(*data, num_mb); |
| 274 | if (!data) | 274 | if (!data) |
| 275 | goto out_free_iv; | 275 | goto out_free_iv; |
| 276 | 276 | ||
| @@ -997,7 +997,7 @@ static int test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc, · 720 unmodified lines | |||
| 997 | int ret = 0; | 997 | int ret = 0; |
| 998 | int *rc; | 998 | int *rc; |
| 999 | 999 | ||
| 1000 | rc = kzalloc_objs(*rc, num_mb, GFP_KERNEL); | 1000 | rc = kzalloc_objs(*rc, num_mb); |
| 1001 | if (!rc) | 1001 | if (!rc) |
| 1002 | return -ENOMEM; | 1002 | return -ENOMEM; |
| 1003 | 1003 | ||
| @@ -1024,7 +1024,7 @@ static int test_mb_acipher_cycles(struct test_mb_skcipher_data *data, int enc, · 20 unmodified lines | |||
| 1024 | int i; | 1024 | int i; |
| 1025 | int *rc; | 1025 | int *rc; |
| 1026 | 1026 | ||
| 1027 | rc = kzalloc_objs(*rc, num_mb, GFP_KERNEL); | 1027 | rc = kzalloc_objs(*rc, num_mb); |
| 1028 | if (!rc) | 1028 | if (!rc) |
| 1029 | return -ENOMEM; | 1029 | return -ENOMEM; |
| 1030 | 1030 | ||
| @@ -1075,7 +1075,7 @@ static void test_mb_skcipher_speed(const char *algo, int enc, int secs, · 44 unmodified lines | |||
| 1075 | else | 1075 | else |
| 1076 | e = "decryption"; | 1076 | e = "decryption"; |
| 1077 | 1077 | ||
| 1078 | data = kzalloc_objs(*data, num_mb, GFP_KERNEL); | 1078 | data = kzalloc_objs(*data, num_mb); |
| 1079 | if (!data) | 1079 | if (!data) |
| 1080 | return; | 1080 | return; |
| 1081 | 1081 | ||
| @@ -739,7 +739,7 @@ static struct cipher_test_sglists *alloc_cipher_test_sglists(void) · 738 unmodified lines | |||
| 739 | { | 739 | { |
| 740 | struct cipher_test_sglists *tsgls; | 740 | struct cipher_test_sglists *tsgls; |
| 741 | 741 | ||
| 742 | tsgls = kmalloc_obj(*tsgls, GFP_KERNEL); | 742 | tsgls = kmalloc_obj(*tsgls); |
| 743 | if (!tsgls) | 743 | if (!tsgls) |
| 744 | return NULL; | 744 | return NULL; |
| 745 | 745 | ||
| @@ -1796,7 +1796,7 @@ static int test_hash_vs_generic_impl(const char *generic_driver, · 1050 unmodified lines | |||
| 1796 | return err; | 1796 | return err; |
| 1797 | } | 1797 | } |
| 1798 | 1798 | ||
| 1799 | cfg = kzalloc_obj(*cfg, GFP_KERNEL); | 1799 | cfg = kzalloc_obj(*cfg); |
| 1800 | if (!cfg) { | 1800 | if (!cfg) { |
| 1801 | err = -ENOMEM; | 1801 | err = -ENOMEM; |
| 1802 | goto out; | 1802 | goto out; |
| @@ -1941,7 +1941,7 @@ static int __alg_test_hash(const struct hash_testvec *vecs, · 138 unmodified lines | |||
| 1941 | if (err) | 1941 | if (err) |
| 1942 | goto out; | 1942 | goto out; |
| 1943 | 1943 | ||
| 1944 | tsgl = kmalloc_obj(*tsgl, GFP_KERNEL); | 1944 | tsgl = kmalloc_obj(*tsgl); |
| 1945 | if (!tsgl || init_test_sglist(tsgl) != 0) { | 1945 | if (!tsgl || init_test_sglist(tsgl) != 0) { |
| 1946 | pr_err("alg: hash: failed to allocate test buffers for %s\n", | 1946 | pr_err("alg: hash: failed to allocate test buffers for %s\n", |
| 1947 | driver); | 1947 | driver); |
| @@ -2598,7 +2598,7 @@ static int test_aead_slow(const struct alg_test_desc *test_desc, · 650 unmodified lines | |||
| 2598 | if (noslowtests) | 2598 | if (noslowtests) |
| 2599 | return 0; | 2599 | return 0; |
| 2600 | 2600 | ||
| 2601 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 2601 | ctx = kzalloc_obj(*ctx); |
| 2602 | if (!ctx) | 2602 | if (!ctx) |
| 2603 | return -ENOMEM; | 2603 | return -ENOMEM; |
| 2604 | init_rnd_state(&ctx->rng); | 2604 | init_rnd_state(&ctx->rng); |
| @@ -3106,7 +3106,7 @@ static int test_skcipher_vs_generic_impl(const char *generic_driver, · 501 unmodified lines | |||
| 3106 | return err; | 3106 | return err; |
| 3107 | } | 3107 | } |
| 3108 | 3108 | ||
| 3109 | cfg = kzalloc_obj(*cfg, GFP_KERNEL); | 3109 | cfg = kzalloc_obj(*cfg); |
| 3110 | if (!cfg) { | 3110 | if (!cfg) { |
| 3111 | err = -ENOMEM; | 3111 | err = -ENOMEM; |
| 3112 | goto out; | 3112 | goto out; |
| @@ -464,7 +464,7 @@ static int aie2_alloc_resource(struct amdxdna_hwctx *hwctx) · 463 unmodified lines | |||
| 464 | return aie2_create_context(xdna->dev_handle, hwctx); | 464 | return aie2_create_context(xdna->dev_handle, hwctx); |
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | xrs_req = kzalloc_obj(*xrs_req, GFP_KERNEL); | 467 | xrs_req = kzalloc_obj(*xrs_req); |
| 468 | if (!xrs_req) | 468 | if (!xrs_req) |
| 469 | return -ENOMEM; | 469 | return -ENOMEM; |
| 470 | 470 | ||
| @@ -559,7 +559,7 @@ int aie2_hwctx_init(struct amdxdna_hwctx *hwctx) · 88 unmodified lines | |||
| 559 | struct amdxdna_gem_obj *heap; | 559 | struct amdxdna_gem_obj *heap; |
| 560 | int i, ret; | 560 | int i, ret; |
| 561 | 561 | ||
| 562 | priv = kzalloc_obj(*hwctx->priv, GFP_KERNEL); | 562 | priv = kzalloc_obj(*hwctx->priv); |
| 563 | if (!priv) | 563 | if (!priv) |
| 564 | return -ENOMEM; | 564 | return -ENOMEM; |
| 565 | hwctx->priv = priv; | 565 | hwctx->priv = priv; |
| @@ -653,7 +653,7 @@ static int aie2_get_aie_metadata(struct amdxdna_client *client, · 652 unmodified lines | |||
| 653 | int ret = 0; | 653 | int ret = 0; |
| 654 | 654 | ||
| 655 | ndev = xdna->dev_handle; | 655 | ndev = xdna->dev_handle; |
| 656 | meta = kzalloc_obj(*meta, GFP_KERNEL); | 656 | meta = kzalloc_obj(*meta); |
| 657 | if (!meta) | 657 | if (!meta) |
| 658 | return -ENOMEM; | 658 | return -ENOMEM; |
| 659 | 659 | ||
| @@ -748,7 +748,7 @@ static int aie2_get_clock_metadata(struct amdxdna_client *client, · 88 unmodified lines | |||
| 748 | int ret = 0; | 748 | int ret = 0; |
| 749 | 749 | ||
| 750 | ndev = xdna->dev_handle; | 750 | ndev = xdna->dev_handle; |
| 751 | clock = kzalloc_obj(*clock, GFP_KERNEL); | 751 | clock = kzalloc_obj(*clock); |
| 752 | if (!clock) | 752 | if (!clock) |
| 753 | return -ENOMEM; | 753 | return -ENOMEM; |
| 754 | 754 | ||
| @@ -775,7 +775,7 @@ static int aie2_hwctx_status_cb(struct amdxdna_hwctx *hwctx, void *arg) · 20 unmodified lines | |||
| 775 | if (!array_args->num_element) | 775 | if (!array_args->num_element) |
| 776 | return -EINVAL; | 776 | return -EINVAL; |
| 777 | 777 | ||
| 778 | tmp = kzalloc_obj(*tmp, GFP_KERNEL); | 778 | tmp = kzalloc_obj(*tmp); |
| 779 | if (!tmp) | 779 | if (!tmp) |
| 780 | return -ENOMEM; | 780 | return -ENOMEM; |
| 781 | 781 | ||
| @@ -197,7 +197,7 @@ static int get_free_partition(struct solver_state *xrs, · 196 unmodified lines | |||
| 197 | if (i == snode->cols_len) | 197 | if (i == snode->cols_len) |
| 198 | return -ENODEV; | 198 | return -ENODEV; |
| 199 | 199 | ||
| 200 | pt_node = kzalloc_obj(*pt_node, GFP_KERNEL); | 200 | pt_node = kzalloc_obj(*pt_node); |
| 201 | if (!pt_node) | 201 | if (!pt_node) |
| 202 | return -ENOMEM; | 202 | return -ENOMEM; |
| 203 | 203 | ||
| @@ -50,7 +50,7 @@ static struct dma_fence *amdxdna_fence_create(struct amdxdna_hwctx *hwctx) · 49 unmodified lines | |||
| 50 | { | 50 | { |
| 51 | struct amdxdna_fence *fence; | 51 | struct amdxdna_fence *fence; |
| 52 | 52 | ||
| 53 | fence = kzalloc_obj(*fence, GFP_KERNEL); | 53 | fence = kzalloc_obj(*fence); |
| 54 | if (!fence) | 54 | if (!fence) |
| 55 | return NULL; | 55 | return NULL; |
| 56 | 56 | ||
| @@ -161,7 +161,7 @@ int amdxdna_drm_create_hwctx_ioctl(struct drm_device *dev, void *data, struct dr · 104 unmodified lines | |||
| 161 | if (args->ext || args->ext_flags) | 161 | if (args->ext || args->ext_flags) |
| 162 | return -EINVAL; | 162 | return -EINVAL; |
| 163 | 163 | ||
| 164 | hwctx = kzalloc_obj(*hwctx, GFP_KERNEL); | 164 | hwctx = kzalloc_obj(*hwctx); |
| 165 | if (!hwctx) | 165 | if (!hwctx) |
| 166 | return -ENOMEM; | 166 | return -ENOMEM; |
| 167 | 167 | ||
| @@ -205,7 +205,7 @@ static int amdxdna_hmm_register(struct amdxdna_gem_obj *abo, · 204 unmodified lines | |||
| 205 | if (!xdna->dev_info->ops->hmm_invalidate) | 205 | if (!xdna->dev_info->ops->hmm_invalidate) |
| 206 | return 0; | 206 | return 0; |
| 207 | 207 | ||
| 208 | mapp = kzalloc_obj(*mapp, GFP_KERNEL); | 208 | mapp = kzalloc_obj(*mapp); |
| 209 | if (!mapp) | 209 | if (!mapp) |
| 210 | return -ENOMEM; | 210 | return -ENOMEM; |
| 211 | 211 | ||
| @@ -499,7 +499,7 @@ amdxdna_gem_create_obj(struct drm_device *dev, size_t size) · 287 unmodified lines | |||
| 499 | { | 499 | { |
| 500 | struct amdxdna_gem_obj *abo; | 500 | struct amdxdna_gem_obj *abo; |
| 501 | 501 | ||
| 502 | abo = kzalloc_obj(*abo, GFP_KERNEL); | 502 | abo = kzalloc_obj(*abo); |
| 503 | if (!abo) | 503 | if (!abo) |
| 504 | return ERR_PTR(-ENOMEM); | 504 | return ERR_PTR(-ENOMEM); |
| 505 | 505 | ||
| @@ -475,7 +475,7 @@ xdna_mailbox_create_channel(struct mailbox *mb, · 474 unmodified lines | |||
| 475 | return NULL; | 475 | return NULL; |
| 476 | } | 476 | } |
| 477 | 477 | ||
| 478 | mb_chann = kzalloc_obj(*mb_chann, GFP_KERNEL); | 478 | mb_chann = kzalloc_obj(*mb_chann); |
| 479 | if (!mb_chann) | 479 | if (!mb_chann) |
| 480 | return NULL; | 480 | return NULL; |
| 481 | 481 | ||
| @@ -63,7 +63,7 @@ static int amdxdna_drm_open(struct drm_device *ddev, struct drm_file *filp) · 62 unmodified lines | |||
| 63 | struct amdxdna_client *client; | 63 | struct amdxdna_client *client; |
| 64 | int ret; | 64 | int ret; |
| 65 | 65 | ||
| 66 | client = kzalloc_obj(*client, GFP_KERNEL); | 66 | client = kzalloc_obj(*client); |
| 67 | if (!client) | 67 | if (!client) |
| 68 | return -ENOMEM; | 68 | return -ENOMEM; |
| 69 | 69 | ||
| @@ -27,7 +27,7 @@ static struct sg_table *amdxdna_ubuf_map(struct dma_buf_attachment *attach, · 26 unmodified lines | |||
| 27 | struct sg_table *sg; | 27 | struct sg_table *sg; |
| 28 | int ret; | 28 | int ret; |
| 29 | 29 | ||
| 30 | sg = kzalloc_obj(*sg, GFP_KERNEL); | 30 | sg = kzalloc_obj(*sg); |
| 31 | if (!sg) | 31 | if (!sg) |
| 32 | return ERR_PTR(-ENOMEM); | 32 | return ERR_PTR(-ENOMEM); |
| 33 | 33 | ||
| @@ -147,7 +147,7 @@ struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev, · 113 unmodified lines | |||
| 147 | if (!can_do_mlock()) | 147 | if (!can_do_mlock()) |
| 148 | return ERR_PTR(-EPERM); | 148 | return ERR_PTR(-EPERM); |
| 149 | 149 | ||
| 150 | ubuf = kzalloc_obj(*ubuf, GFP_KERNEL); | 150 | ubuf = kzalloc_obj(*ubuf); |
| 151 | if (!ubuf) | 151 | if (!ubuf) |
| 152 | return ERR_PTR(-ENOMEM); | 152 | return ERR_PTR(-ENOMEM); |
| 153 | 153 | ||
| @@ -155,7 +155,7 @@ struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev, · 1 unmodified line | |||
| 155 | ubuf->mm = current->mm; | 155 | ubuf->mm = current->mm; |
| 156 | mmgrab(ubuf->mm); | 156 | mmgrab(ubuf->mm); |
| 157 | 157 | ||
| 158 | va_ent = kvzalloc_objs(*va_ent, num_entries, GFP_KERNEL); | 158 | va_ent = kvzalloc_objs(*va_ent, num_entries); |
| 159 | if (!va_ent) { | 159 | if (!va_ent) { |
| 160 | ret = -ENOMEM; | 160 | ret = -ENOMEM; |
| 161 | goto free_ubuf; | 161 | goto free_ubuf; |
| @@ -189,7 +189,7 @@ struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev, · 27 unmodified lines | |||
| 189 | goto sub_pin_cnt; | 189 | goto sub_pin_cnt; |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | ubuf->pages = kvmalloc_objs(*ubuf->pages, ubuf->nr_pages, GFP_KERNEL); | 192 | ubuf->pages = kvmalloc_objs(*ubuf->pages, ubuf->nr_pages); |
| 193 | if (!ubuf->pages) { | 193 | if (!ubuf->pages) { |
| 194 | ret = -ENOMEM; | 194 | ret = -ENOMEM; |
| 195 | goto sub_pin_cnt; | 195 | goto sub_pin_cnt; |
| @@ -50,7 +50,7 @@ struct drm_gem_object *ethosu_gem_create_object(struct drm_device *ddev, size_t · 49 unmodified lines | |||
| 50 | { | 50 | { |
| 51 | struct ethosu_gem_object *obj; | 51 | struct ethosu_gem_object *obj; |
| 52 | 52 | ||
| 53 | obj = kzalloc_obj(*obj, GFP_KERNEL); | 53 | obj = kzalloc_obj(*obj); |
| 54 | if (!obj) | 54 | if (!obj) |
| 55 | return ERR_PTR(-ENOMEM); | 55 | return ERR_PTR(-ENOMEM); |
| 56 | 56 | ||
| @@ -375,7 +375,7 @@ static int ethosu_ioctl_submit_job(struct drm_device *dev, struct drm_file *file · 374 unmodified lines | |||
| 375 | if (edev->npu_info.sram_size < job->sram_size) | 375 | if (edev->npu_info.sram_size < job->sram_size) |
| 376 | return -EINVAL; | 376 | return -EINVAL; |
| 377 | 377 | ||
| 378 | ejob = kzalloc_obj(*ejob, GFP_KERNEL); | 378 | ejob = kzalloc_obj(*ejob); |
| 379 | if (!ejob) | 379 | if (!ejob) |
| 380 | return -ENOMEM; | 380 | return -ENOMEM; |
| 381 | 381 | ||
| @@ -384,7 +384,7 @@ static int ethosu_ioctl_submit_job(struct drm_device *dev, struct drm_file *file · 2 unmodified lines | |||
| 384 | ejob->dev = edev; | 384 | ejob->dev = edev; |
| 385 | ejob->sram_size = job->sram_size; | 385 | ejob->sram_size = job->sram_size; |
| 386 | 386 | ||
| 387 | ejob->done_fence = kzalloc_obj(*ejob->done_fence, GFP_KERNEL); | 387 | ejob->done_fence = kzalloc_obj(*ejob->done_fence); |
| 388 | if (!ejob->done_fence) { | 388 | if (!ejob->done_fence) { |
| 389 | ret = -ENOMEM; | 389 | ret = -ENOMEM; |
| 390 | goto out_cleanup_job; | 390 | goto out_cleanup_job; |
| @@ -476,7 +476,7 @@ int ethosu_ioctl_submit(struct drm_device *dev, void *data, struct drm_file *fil · 85 unmodified lines | |||
| 476 | } | 476 | } |
| 477 | 477 | ||
| 478 | struct drm_ethosu_job __free(kvfree) *jobs = | 478 | struct drm_ethosu_job __free(kvfree) *jobs = |
| 479 | kvmalloc_objs(*jobs, args->job_count, GFP_KERNEL); | 479 | kvmalloc_objs(*jobs, args->job_count); |
| 480 | if (!jobs) | 480 | if (!jobs) |
| 481 | return -ENOMEM; | 481 | return -ENOMEM; |
| 482 | 482 | ||
| @@ -119,7 +119,7 @@ static struct hl_cb *hl_cb_alloc(struct hl_device *hdev, u32 cb_size, · 118 unmodified lines | |||
| 119 | cb = kzalloc_obj(*cb, GFP_ATOMIC); | 119 | cb = kzalloc_obj(*cb, GFP_ATOMIC); |
| 120 | 120 | ||
| 121 | if (!cb) | 121 | if (!cb) |
| 122 | cb = kzalloc_obj(*cb, GFP_KERNEL); | 122 | cb = kzalloc_obj(*cb); |
| 123 | 123 | ||
| 124 | if (!cb) | 124 | if (!cb) |
| 125 | return NULL; | 125 | return NULL; |
| @@ -909,7 +909,7 @@ static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, · 908 unmodified lines | |||
| 909 | 909 | ||
| 910 | cs = kzalloc_obj(*cs, GFP_ATOMIC); | 910 | cs = kzalloc_obj(*cs, GFP_ATOMIC); |
| 911 | if (!cs) | 911 | if (!cs) |
| 912 | cs = kzalloc_obj(*cs, GFP_KERNEL); | 912 | cs = kzalloc_obj(*cs); |
| 913 | 913 | ||
| 914 | if (!cs) { | 914 | if (!cs) { |
| 915 | atomic64_inc(&ctx->cs_counters.out_of_mem_drop_cnt); | 915 | atomic64_inc(&ctx->cs_counters.out_of_mem_drop_cnt); |
| @@ -938,7 +938,7 @@ static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, · 22 unmodified lines | |||
| 938 | 938 | ||
| 939 | cs_cmpl = kzalloc_obj(*cs_cmpl, GFP_ATOMIC); | 939 | cs_cmpl = kzalloc_obj(*cs_cmpl, GFP_ATOMIC); |
| 940 | if (!cs_cmpl) | 940 | if (!cs_cmpl) |
| 941 | cs_cmpl = kzalloc_obj(*cs_cmpl, GFP_KERNEL); | 941 | cs_cmpl = kzalloc_obj(*cs_cmpl); |
| 942 | 942 | ||
| 943 | if (!cs_cmpl) { | 943 | if (!cs_cmpl) { |
| 944 | atomic64_inc(&ctx->cs_counters.out_of_mem_drop_cnt); | 944 | atomic64_inc(&ctx->cs_counters.out_of_mem_drop_cnt); |
| @@ -1304,7 +1304,7 @@ struct hl_cs_job *hl_cs_allocate_job(struct hl_device *hdev, · 359 unmodified lines | |||
| 1304 | 1304 | ||
| 1305 | job = kzalloc_obj(*job, GFP_ATOMIC); | 1305 | job = kzalloc_obj(*job, GFP_ATOMIC); |
| 1306 | if (!job) | 1306 | if (!job) |
| 1307 | job = kzalloc_obj(*job, GFP_KERNEL); | 1307 | job = kzalloc_obj(*job); |
| 1308 | 1308 | ||
| 1309 | if (!job) | 1309 | if (!job) |
| 1310 | return NULL; | 1310 | return NULL; |
| @@ -2039,7 +2039,7 @@ static int cs_ioctl_reserve_signals(struct hl_fpriv *hpriv, · 728 unmodified lines | |||
| 2039 | 2039 | ||
| 2040 | prop = &hdev->kernel_queues[q_idx].sync_stream_prop; | 2040 | prop = &hdev->kernel_queues[q_idx].sync_stream_prop; |
| 2041 | 2041 | ||
| 2042 | handle = kzalloc_obj(*handle, GFP_KERNEL); | 2042 | handle = kzalloc_obj(*handle); |
| 2043 | if (!handle) { | 2043 | if (!handle) { |
| 2044 | rc = -ENOMEM; | 2044 | rc = -ENOMEM; |
| 2045 | goto out; | 2045 | goto out; |
| @@ -3052,7 +3052,7 @@ static int hl_multi_cs_wait_ioctl(struct hl_fpriv *hpriv, void *data) · 1006 unmodified lines | |||
| 3052 | } | 3052 | } |
| 3053 | 3053 | ||
| 3054 | /* allocate array for the fences */ | 3054 | /* allocate array for the fences */ |
| 3055 | fence_arr = kmalloc_objs(struct hl_fence *, seq_arr_len, GFP_KERNEL); | 3055 | fence_arr = kmalloc_objs(struct hl_fence *, seq_arr_len); |
| 3056 | if (!fence_arr) { | 3056 | if (!fence_arr) { |
| 3057 | rc = -ENOMEM; | 3057 | rc = -ENOMEM; |
| 3058 | goto free_seq_arr; | 3058 | goto free_seq_arr; |
| @@ -3411,7 +3411,7 @@ static int _hl_interrupt_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx, · 352 unmodified lines | |||
| 3411 | goto put_cq_cb; | 3411 | goto put_cq_cb; |
| 3412 | } | 3412 | } |
| 3413 | 3413 | ||
| 3414 | pend = kzalloc_obj(*pend, GFP_KERNEL); | 3414 | pend = kzalloc_obj(*pend); |
| 3415 | if (!pend) { | 3415 | if (!pend) { |
| 3416 | rc = -ENOMEM; | 3416 | rc = -ENOMEM; |
| 3417 | goto put_cq_cb; | 3417 | goto put_cq_cb; |
| @@ -3520,7 +3520,7 @@ static int _hl_interrupt_wait_ioctl_user_addr(struct hl_device *hdev, struct hl_ · 102 unmodified lines | |||
| 3520 | 3520 | ||
| 3521 | hl_ctx_get(ctx); | 3521 | hl_ctx_get(ctx); |
| 3522 | 3522 | ||
| 3523 | pend = kzalloc_obj(*pend, GFP_KERNEL); | 3523 | pend = kzalloc_obj(*pend); |
| 3524 | if (!pend) { | 3524 | if (!pend) { |
| 3525 | hl_ctx_put(ctx); | 3525 | hl_ctx_put(ctx); |
| 3526 | return -ENOMEM; | 3526 | return -ENOMEM; |
| @@ -155,7 +155,7 @@ int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv) · 154 unmodified lines | |||
| 155 | struct hl_ctx *ctx; | 155 | struct hl_ctx *ctx; |
| 156 | int rc; | 156 | int rc; |
| 157 | 157 | ||
| 158 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 158 | ctx = kzalloc_obj(*ctx); |
| 159 | if (!ctx) { | 159 | if (!ctx) { |
| 160 | rc = -ENOMEM; | 160 | rc = -ENOMEM; |
| 161 | goto out_err; | 161 | goto out_err; |
| @@ -98,7 +98,7 @@ int hl_dec_init(struct hl_device *hdev) · 97 unmodified lines | |||
| 98 | if (!prop->max_dec) | 98 | if (!prop->max_dec) |
| 99 | return 0; | 99 | return 0; |
| 100 | 100 | ||
| 101 | hdev->dec = kzalloc_objs(struct hl_dec, prop->max_dec, GFP_KERNEL); | 101 | hdev->dec = kzalloc_objs(struct hl_dec, prop->max_dec); |
| 102 | if (!hdev->dec) | 102 | if (!hdev->dec) |
| 103 | return -ENOMEM; | 103 | return -ENOMEM; |
| 104 | 104 | ||
| @@ -722,7 +722,7 @@ static int device_init_cdev(struct hl_device *hdev, const struct class *class, · 721 unmodified lines | |||
| 722 | cdev_init(cdev, fops); | 722 | cdev_init(cdev, fops); |
| 723 | cdev->owner = THIS_MODULE; | 723 | cdev->owner = THIS_MODULE; |
| 724 | 724 | ||
| 725 | *dev = kzalloc_obj(**dev, GFP_KERNEL); | 725 | *dev = kzalloc_obj(**dev); |
| 726 | if (!*dev) | 726 | if (!*dev) |
| 727 | return -ENOMEM; | 727 | return -ENOMEM; |
| 728 | 728 | ||
| @@ -945,7 +945,7 @@ static int device_early_init(struct hl_device *hdev) · 216 unmodified lines | |||
| 945 | goto free_ts_free_wq; | 945 | goto free_ts_free_wq; |
| 946 | } | 946 | } |
| 947 | 947 | ||
| 948 | hdev->hl_chip_info = kzalloc_obj(struct hwmon_chip_info, GFP_KERNEL); | 948 | hdev->hl_chip_info = kzalloc_obj(struct hwmon_chip_info); |
| 949 | if (!hdev->hl_chip_info) { | 949 | if (!hdev->hl_chip_info) { |
| 950 | rc = -ENOMEM; | 950 | rc = -ENOMEM; |
| 951 | goto free_prefetch_wq; | 951 | goto free_prefetch_wq; |
| @@ -1851,7 +1851,7 @@ kill_processes: · 899 unmodified lines | |||
| 1851 | } | 1851 | } |
| 1852 | 1852 | ||
| 1853 | /* Allocate the kernel context */ | 1853 | /* Allocate the kernel context */ |
| 1854 | hdev->kernel_ctx = kzalloc_obj(*hdev->kernel_ctx, GFP_KERNEL); | 1854 | hdev->kernel_ctx = kzalloc_obj(*hdev->kernel_ctx); |
| 1855 | if (!hdev->kernel_ctx) { | 1855 | if (!hdev->kernel_ctx) { |
| 1856 | rc = -ENOMEM; | 1856 | rc = -ENOMEM; |
| 1857 | hl_mmu_fini(hdev); | 1857 | hl_mmu_fini(hdev); |
| @@ -2275,7 +2275,7 @@ int hl_device_init(struct hl_device *hdev) · 417 unmodified lines | |||
| 2275 | } | 2275 | } |
| 2276 | 2276 | ||
| 2277 | /* Allocate the kernel context */ | 2277 | /* Allocate the kernel context */ |
| 2278 | hdev->kernel_ctx = kzalloc_obj(*hdev->kernel_ctx, GFP_KERNEL); | 2278 | hdev->kernel_ctx = kzalloc_obj(*hdev->kernel_ctx); |
| 2279 | if (!hdev->kernel_ctx) { | 2279 | if (!hdev->kernel_ctx) { |
| 2280 | rc = -ENOMEM; | 2280 | rc = -ENOMEM; |
| 2281 | goto mmu_fini; | 2281 | goto mmu_fini; |
| @@ -2681,7 +2681,7 @@ static int hl_fw_dynamic_send_msg(struct hl_device *hdev, · 2680 unmodified lines | |||
| 2681 | struct lkd_msg_comms *msg; | 2681 | struct lkd_msg_comms *msg; |
| 2682 | int rc; | 2682 | int rc; |
| 2683 | 2683 | ||
| 2684 | msg = kzalloc_obj(*msg, GFP_KERNEL); | 2684 | msg = kzalloc_obj(*msg); |
| 2685 | if (!msg) | 2685 | if (!msg) |
| 2686 | return -ENOMEM; | 2686 | return -ENOMEM; |
| 2687 | 2687 | ||
| @@ -181,7 +181,7 @@ int hl_device_open(struct drm_device *ddev, struct drm_file *file_priv) · 180 unmodified lines | |||
| 181 | struct hl_fpriv *hpriv; | 181 | struct hl_fpriv *hpriv; |
| 182 | int rc; | 182 | int rc; |
| 183 | 183 | ||
| 184 | hpriv = kzalloc_obj(*hpriv, GFP_KERNEL); | 184 | hpriv = kzalloc_obj(*hpriv); |
| 185 | if (!hpriv) | 185 | if (!hpriv) |
| 186 | return -ENOMEM; | 186 | return -ENOMEM; |
| 187 | 187 | ||
| @@ -291,7 +291,7 @@ int hl_device_open_ctrl(struct inode *inode, struct file *filp) · 103 unmodified lines | |||
| 291 | return -ENXIO; | 291 | return -ENXIO; |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | hpriv = kzalloc_obj(*hpriv, GFP_KERNEL); | 294 | hpriv = kzalloc_obj(*hpriv); |
| 295 | if (!hpriv) | 295 | if (!hpriv) |
| 296 | return -ENOMEM; | 296 | return -ENOMEM; |
| 297 | 297 | ||
| @@ -201,7 +201,7 @@ static int debug_coresight(struct hl_device *hdev, struct hl_ctx *ctx, struct hl · 200 unmodified lines | |||
| 201 | void *input = NULL, *output = NULL; | 201 | void *input = NULL, *output = NULL; |
| 202 | int rc; | 202 | int rc; |
| 203 | 203 | ||
| 204 | params = kzalloc_obj(*params, GFP_KERNEL); | 204 | params = kzalloc_obj(*params); |
| 205 | if (!params) | 205 | if (!params) |
| 206 | return -ENOMEM; | 206 | return -ENOMEM; |
| 207 | 207 | ||
| @@ -682,11 +682,11 @@ static int sec_attest_info(struct hl_fpriv *hpriv, struct hl_info_args *args) · 474 unmodified lines | |||
| 682 | if ((!max_size) || (!out)) | 682 | if ((!max_size) || (!out)) |
| 683 | return -EINVAL; | 683 | return -EINVAL; |
| 684 | 684 | ||
| 685 | sec_attest_info = kmalloc_obj(*sec_attest_info, GFP_KERNEL); | 685 | sec_attest_info = kmalloc_obj(*sec_attest_info); |
| 686 | if (!sec_attest_info) | 686 | if (!sec_attest_info) |
| 687 | return -ENOMEM; | 687 | return -ENOMEM; |
| 688 | 688 | ||
| 689 | info = kzalloc_obj(*info, GFP_KERNEL); | 689 | info = kzalloc_obj(*info); |
| 690 | if (!info) { | 690 | if (!info) { |
| 691 | rc = -ENOMEM; | 691 | rc = -ENOMEM; |
| 692 | goto free_sec_attest_info; | 692 | goto free_sec_attest_info; |
| @@ -731,11 +731,11 @@ static int dev_info_signed(struct hl_fpriv *hpriv, struct hl_info_args *args) · 38 unmodified lines | |||
| 731 | if ((!max_size) || (!out)) | 731 | if ((!max_size) || (!out)) |
| 732 | return -EINVAL; | 732 | return -EINVAL; |
| 733 | 733 | ||
| 734 | dev_info_signed = kzalloc_obj(*dev_info_signed, GFP_KERNEL); | 734 | dev_info_signed = kzalloc_obj(*dev_info_signed); |
| 735 | if (!dev_info_signed) | 735 | if (!dev_info_signed) |
| 736 | return -ENOMEM; | 736 | return -ENOMEM; |
| 737 | 737 | ||
| 738 | info = kzalloc_obj(*info, GFP_KERNEL); | 738 | info = kzalloc_obj(*info); |
| 739 | if (!info) { | 739 | if (!info) { |
| 740 | rc = -ENOMEM; | 740 | rc = -ENOMEM; |
| 741 | goto free_dev_info_signed; | 741 | goto free_dev_info_signed; |
| @@ -308,7 +308,7 @@ int hl_dio_ssd2hl(struct hl_device *hdev, struct hl_ctx *ctx, int fd, · 307 unmodified lines | |||
| 308 | 308 | ||
| 309 | dev_dbg(hdev->dev, "SSD2HL fd=%d va=%#llx len=%#lx\n", fd, device_va, len_bytes); | 309 | dev_dbg(hdev->dev, "SSD2HL fd=%d va=%#llx len=%#lx\n", fd, device_va, len_bytes); |
| 310 | 310 | ||
| 311 | io = kzalloc_obj(*io, GFP_KERNEL); | 311 | io = kzalloc_obj(*io); |
| 312 | if (!io) { | 312 | if (!io) { |
| 313 | rc = -ENOMEM; | 313 | rc = -ENOMEM; |
| 314 | goto out; | 314 | goto out; |
| @@ -203,7 +203,7 @@ int hl_build_hwmon_channel_info(struct hl_device *hdev, struct cpucp_sensor *sen · 202 unmodified lines | |||
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | for (i = 0 ; i < num_active_sensor_types ; i++) { | 205 | for (i = 0 ; i < num_active_sensor_types ; i++) { |
| 206 | channels_info[i] = kzalloc_obj(*channels_info[i], GFP_KERNEL); | 206 | channels_info[i] = kzalloc_obj(*channels_info[i]); |
| 207 | if (!channels_info[i]) { | 207 | if (!channels_info[i]) { |
| 208 | rc = -ENOMEM; | 208 | rc = -ENOMEM; |
| 209 | goto channel_info_err; | 209 | goto channel_info_err; |
| @@ -125,7 +125,7 @@ static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args, · 124 unmodified lines | |||
| 125 | } | 125 | } |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | phys_pg_pack = kzalloc_obj(*phys_pg_pack, GFP_KERNEL); | 128 | phys_pg_pack = kzalloc_obj(*phys_pg_pack); |
| 129 | if (!phys_pg_pack) { | 129 | if (!phys_pg_pack) { |
| 130 | rc = -ENOMEM; | 130 | rc = -ENOMEM; |
| 131 | goto pages_pack_err; | 131 | goto pages_pack_err; |
| @@ -228,7 +228,7 @@ static int dma_map_host_va(struct hl_device *hdev, u64 addr, u64 size, · 96 unmodified lines | |||
| 228 | struct hl_userptr *userptr; | 228 | struct hl_userptr *userptr; |
| 229 | int rc; | 229 | int rc; |
| 230 | 230 | ||
| 231 | userptr = kzalloc_obj(*userptr, GFP_KERNEL); | 231 | userptr = kzalloc_obj(*userptr); |
| 232 | if (!userptr) { | 232 | if (!userptr) { |
| 233 | rc = -ENOMEM; | 233 | rc = -ENOMEM; |
| 234 | goto userptr_err; | 234 | goto userptr_err; |
| @@ -501,7 +501,7 @@ static int add_va_block_locked(struct hl_device *hdev, · 266 unmodified lines | |||
| 501 | res = va_block; | 501 | res = va_block; |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | va_block = kmalloc_obj(*va_block, GFP_KERNEL); | 504 | va_block = kmalloc_obj(*va_block); |
| 505 | if (!va_block) | 505 | if (!va_block) |
| 506 | return -ENOMEM; | 506 | return -ENOMEM; |
| 507 | 507 | ||
| @@ -850,7 +850,7 @@ static int init_phys_pg_pack_from_userptr(struct hl_ctx *ctx, · 342 unmodified lines | |||
| 850 | dma_addr_t dma_addr; | 850 | dma_addr_t dma_addr; |
| 851 | int rc, i, j; | 851 | int rc, i, j; |
| 852 | 852 | ||
| 853 | phys_pg_pack = kzalloc_obj(*phys_pg_pack, GFP_KERNEL); | 853 | phys_pg_pack = kzalloc_obj(*phys_pg_pack); |
| 854 | if (!phys_pg_pack) | 854 | if (!phys_pg_pack) |
| 855 | return -ENOMEM; | 855 | return -ENOMEM; |
| 856 | 856 | ||
| @@ -1152,7 +1152,7 @@ static int map_device_va(struct hl_ctx *ctx, struct hl_mem_in *args, u64 *device · 295 unmodified lines | |||
| 1152 | goto shared_err; | 1152 | goto shared_err; |
| 1153 | } | 1153 | } |
| 1154 | 1154 | ||
| 1155 | hnode = kzalloc_obj(*hnode, GFP_KERNEL); | 1155 | hnode = kzalloc_obj(*hnode); |
| 1156 | if (!hnode) { | 1156 | if (!hnode) { |
| 1157 | rc = -ENOMEM; | 1157 | rc = -ENOMEM; |
| 1158 | goto hnode_err; | 1158 | goto hnode_err; |
| @@ -1482,7 +1482,7 @@ int hl_hw_block_mmap(struct hl_fpriv *hpriv, struct vm_area_struct *vma) · 323 unmodified lines | |||
| 1482 | return -EINVAL; | 1482 | return -EINVAL; |
| 1483 | } | 1483 | } |
| 1484 | 1484 | ||
| 1485 | lnode = kzalloc_obj(*lnode, GFP_KERNEL); | 1485 | lnode = kzalloc_obj(*lnode); |
| 1486 | if (!lnode) | 1486 | if (!lnode) |
| 1487 | return -ENOMEM; | 1487 | return -ENOMEM; |
| 1488 | 1488 | ||
| @@ -1553,7 +1553,7 @@ static struct sg_table *alloc_sgt_from_device_pages(struct hl_device *hdev, u64 · 64 unmodified lines | |||
| 1553 | return ERR_PTR(-EINVAL); | 1553 | return ERR_PTR(-EINVAL); |
| 1554 | } | 1554 | } |
| 1555 | 1555 | ||
| 1556 | sgt = kzalloc_obj(*sgt, GFP_KERNEL); | 1556 | sgt = kzalloc_obj(*sgt); |
| 1557 | if (!sgt) | 1557 | if (!sgt) |
| 1558 | return ERR_PTR(-ENOMEM); | 1558 | return ERR_PTR(-ENOMEM); |
| 1559 | 1559 | ||
| @@ -2046,7 +2046,7 @@ static int export_dmabuf_from_addr(struct hl_ctx *ctx, u64 addr, u64 size, u64 o · 486 unmodified lines | |||
| 2046 | return -EINVAL; | 2046 | return -EINVAL; |
| 2047 | } | 2047 | } |
| 2048 | 2048 | ||
| 2049 | hl_dmabuf = kzalloc_obj(*hl_dmabuf, GFP_KERNEL); | 2049 | hl_dmabuf = kzalloc_obj(*hl_dmabuf); |
| 2050 | if (!hl_dmabuf) | 2050 | if (!hl_dmabuf) |
| 2051 | return -ENOMEM; | 2051 | return -ENOMEM; |
| 2052 | 2052 | ||
| @@ -2323,7 +2323,7 @@ static int get_user_memory(struct hl_device *hdev, u64 addr, u64 size, · 270 unmodified lines | |||
| 2323 | return -EFAULT; | 2323 | return -EFAULT; |
| 2324 | } | 2324 | } |
| 2325 | 2325 | ||
| 2326 | userptr->pages = kvmalloc_objs(struct page *, npages, GFP_KERNEL); | 2326 | userptr->pages = kvmalloc_objs(struct page *, npages); |
| 2327 | if (!userptr->pages) | 2327 | if (!userptr->pages) |
| 2328 | return -ENOMEM; | 2328 | return -ENOMEM; |
| 2329 | 2329 | ||
| @@ -2395,7 +2395,7 @@ int hl_pin_host_memory(struct hl_device *hdev, u64 addr, u64 size, · 65 unmodified lines | |||
| 2395 | } | 2395 | } |
| 2396 | 2396 | ||
| 2397 | userptr->pid = current->pid; | 2397 | userptr->pid = current->pid; |
| 2398 | userptr->sgt = kzalloc_obj(*userptr->sgt, GFP_KERNEL); | 2398 | userptr->sgt = kzalloc_obj(*userptr->sgt); |
| 2399 | if (!userptr->sgt) | 2399 | if (!userptr->sgt) |
| 2400 | return -ENOMEM; | 2400 | return -ENOMEM; |
| 2401 | 2401 | ||
| @@ -2611,7 +2611,7 @@ static int vm_ctx_init_with_ranges(struct hl_ctx *ctx, · 209 unmodified lines | |||
| 2611 | 2611 | ||
| 2612 | for (i = 0 ; i < HL_VA_RANGE_TYPE_MAX ; i++) { | 2612 | for (i = 0 ; i < HL_VA_RANGE_TYPE_MAX ; i++) { |
| 2613 | ctx->va_range[i] = | 2613 | ctx->va_range[i] = |
| 2614 | kzalloc_obj(struct hl_va_range, GFP_KERNEL); | 2614 | kzalloc_obj(struct hl_va_range); |
| 2615 | if (!ctx->va_range[i]) { | 2615 | if (!ctx->va_range[i]) { |
| 2616 | rc = -ENOMEM; | 2616 | rc = -ENOMEM; |
| 2617 | goto free_va_range; | 2617 | goto free_va_range; |
| @@ -697,7 +697,7 @@ int hl_mmu_prefetch_cache_range(struct hl_ctx *ctx, u32 flags, u32 asid, u64 va, · 696 unmodified lines | |||
| 697 | { | 697 | { |
| 698 | struct hl_prefetch_work *handle_prefetch_work; | 698 | struct hl_prefetch_work *handle_prefetch_work; |
| 699 | 699 | ||
| 700 | handle_prefetch_work = kmalloc_obj(*handle_prefetch_work, GFP_KERNEL); | 700 | handle_prefetch_work = kmalloc_obj(*handle_prefetch_work); |
| 701 | if (!handle_prefetch_work) | 701 | if (!handle_prefetch_work) |
| 702 | return -ENOMEM; | 702 | return -ENOMEM; |
| 703 | 703 | ||
| @@ -1072,7 +1072,7 @@ struct pgt_info *hl_mmu_hr_alloc_hop(struct hl_ctx *ctx, struct hl_mmu_hr_priv * · 368 unmodified lines | |||
| 1072 | void *virt_addr; | 1072 | void *virt_addr; |
| 1073 | int i, retry = 1; | 1073 | int i, retry = 1; |
| 1074 | 1074 | ||
| 1075 | pgt_info = kmalloc_obj(*pgt_info, GFP_KERNEL); | 1075 | pgt_info = kmalloc_obj(*pgt_info); |
| 1076 | if (!pgt_info) | 1076 | if (!pgt_info) |
| 1077 | return NULL; | 1077 | return NULL; |
| 1078 | 1078 | ||
| @@ -1326,7 +1326,7 @@ u64 hl_mmu_dr_alloc_hop(struct hl_ctx *ctx) · 247 unmodified lines | |||
| 1326 | struct pgt_info *pgt_info; | 1326 | struct pgt_info *pgt_info; |
| 1327 | u64 phys_addr, shadow_addr; | 1327 | u64 phys_addr, shadow_addr; |
| 1328 | 1328 | ||
| 1329 | pgt_info = kmalloc_obj(*pgt_info, GFP_KERNEL); | 1329 | pgt_info = kmalloc_obj(*pgt_info); |
| 1330 | if (!pgt_info) | 1330 | if (!pgt_info) |
| 1331 | return ULLONG_MAX; | 1331 | return ULLONG_MAX; |
| 1332 | 1332 | ||
| @@ -400,7 +400,7 @@ static int hl_state_dump_print_syncs(struct hl_device *hdev, · 399 unmodified lines | |||
| 400 | u32 index; | 400 | u32 index; |
| 401 | int rc = 0; | 401 | int rc = 0; |
| 402 | 402 | ||
| 403 | map = kzalloc_obj(*map, GFP_KERNEL); | 403 | map = kzalloc_obj(*map); |
| 404 | if (!map) | 404 | if (!map) |
| 405 | return -ENOMEM; | 405 | return -ENOMEM; |
| 406 | 406 | ||
| @@ -1852,7 +1852,7 @@ static int gaudi_sw_init(struct hl_device *hdev) · 1851 unmodified lines | |||
| 1852 | int rc; | 1852 | int rc; |
| 1853 | 1853 | ||
| 1854 | /* Allocate device structure */ | 1854 | /* Allocate device structure */ |
| 1855 | gaudi = kzalloc_obj(*gaudi, GFP_KERNEL); | 1855 | gaudi = kzalloc_obj(*gaudi); |
| 1856 | if (!gaudi) | 1856 | if (!gaudi) |
| 1857 | return -ENOMEM; | 1857 | return -ENOMEM; |
| 1858 | 1858 | ||
| @@ -4905,7 +4905,7 @@ static int gaudi_pin_memory_before_cs(struct hl_device *hdev, · 3046 unmodified lines | |||
| 4905 | parser->job_userptr_list, &userptr)) | 4905 | parser->job_userptr_list, &userptr)) |
| 4906 | goto already_pinned; | 4906 | goto already_pinned; |
| 4907 | 4907 | ||
| 4908 | userptr = kzalloc_obj(*userptr, GFP_KERNEL); | 4908 | userptr = kzalloc_obj(*userptr); |
| 4909 | if (!userptr) | 4909 | if (!userptr) |
| 4910 | return -ENOMEM; | 4910 | return -ENOMEM; |
| 4911 | 4911 | ||
| @@ -8842,7 +8842,7 @@ static int gaudi_add_sync_to_engine_map_entry( · 3930 unmodified lines | |||
| 8842 | reg_value -= lower_32_bits(CFG_BASE); | 8842 | reg_value -= lower_32_bits(CFG_BASE); |
| 8843 | 8843 | ||
| 8844 | /* create a new hash entry */ | 8844 | /* create a new hash entry */ |
| 8845 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 8845 | entry = kzalloc_obj(*entry); |
| 8846 | if (!entry) | 8846 | if (!entry) |
| 8847 | return -ENOMEM; | 8847 | return -ENOMEM; |
| 8848 | entry->engine_type = engine_type; | 8848 | entry->engine_type = engine_type; |
| @@ -4057,7 +4057,7 @@ static int gaudi2_sw_init(struct hl_device *hdev) · 4056 unmodified lines | |||
| 4057 | int i, rc; | 4057 | int i, rc; |
| 4058 | 4058 | ||
| 4059 | /* Allocate device structure */ | 4059 | /* Allocate device structure */ |
| 4060 | gaudi2 = kzalloc_obj(*gaudi2, GFP_KERNEL); | 4060 | gaudi2 = kzalloc_obj(*gaudi2); |
| 4061 | if (!gaudi2) | 4061 | if (!gaudi2) |
| 4062 | return -ENOMEM; | 4062 | return -ENOMEM; |
| 4063 | 4063 | ||
| @@ -969,7 +969,7 @@ static int goya_sw_init(struct hl_device *hdev) · 968 unmodified lines | |||
| 969 | int rc; | 969 | int rc; |
| 970 | 970 | ||
| 971 | /* Allocate device structure */ | 971 | /* Allocate device structure */ |
| 972 | goya = kzalloc_obj(*goya, GFP_KERNEL); | 972 | goya = kzalloc_obj(*goya); |
| 973 | if (!goya) | 973 | if (!goya) |
| 974 | return -ENOMEM; | 974 | return -ENOMEM; |
| 975 | 975 | ||
| @@ -1030,7 +1030,7 @@ static int goya_sw_init(struct hl_device *hdev) · 54 unmodified lines | |||
| 1030 | 1030 | ||
| 1031 | hdev->asic_funcs->set_pci_memory_regions(hdev); | 1031 | hdev->asic_funcs->set_pci_memory_regions(hdev); |
| 1032 | 1032 | ||
| 1033 | goya->goya_work = kmalloc_obj(struct goya_work_freq, GFP_KERNEL); | 1033 | goya->goya_work = kmalloc_obj(struct goya_work_freq); |
| 1034 | if (!goya->goya_work) { | 1034 | if (!goya->goya_work) { |
| 1035 | rc = -ENOMEM; | 1035 | rc = -ENOMEM; |
| 1036 | goto free_cpu_accessible_dma_pool; | 1036 | goto free_cpu_accessible_dma_pool; |
| @@ -3335,7 +3335,7 @@ static int goya_pin_memory_before_cs(struct hl_device *hdev, · 2298 unmodified lines | |||
| 3335 | parser->job_userptr_list, &userptr)) | 3335 | parser->job_userptr_list, &userptr)) |
| 3336 | goto already_pinned; | 3336 | goto already_pinned; |
| 3337 | 3337 | ||
| 3338 | userptr = kzalloc_obj(*userptr, GFP_KERNEL); | 3338 | userptr = kzalloc_obj(*userptr); |
| 3339 | if (!userptr) | 3339 | if (!userptr) |
| 3340 | return -ENOMEM; | 3340 | return -ENOMEM; |
| 3341 | 3341 | ||
| @@ -237,7 +237,7 @@ static int ivpu_open(struct drm_device *dev, struct drm_file *file) · 236 unmodified lines | |||
| 237 | if (!drm_dev_enter(dev, &idx)) | 237 | if (!drm_dev_enter(dev, &idx)) |
| 238 | return -ENODEV; | 238 | return -ENODEV; |
| 239 | 239 | ||
| 240 | file_priv = kzalloc_obj(*file_priv, GFP_KERNEL); | 240 | file_priv = kzalloc_obj(*file_priv); |
| 241 | if (!file_priv) { | 241 | if (!file_priv) { |
| 242 | ret = -ENOMEM; | 242 | ret = -ENOMEM; |
| 243 | goto err_dev_exit; | 243 | goto err_dev_exit; |
| @@ -77,7 +77,7 @@ ivpu_create_userptr_dmabuf(struct ivpu_device *vdev, void __user *user_ptr, · 76 unmodified lines | |||
| 77 | if (!(flags & DRM_IVPU_BO_READ_ONLY)) | 77 | if (!(flags & DRM_IVPU_BO_READ_ONLY)) |
| 78 | gup_flags |= FOLL_WRITE; | 78 | gup_flags |= FOLL_WRITE; |
| 79 | 79 | ||
| 80 | pages = kvmalloc_objs(*pages, nr_pages, GFP_KERNEL); | 80 | pages = kvmalloc_objs(*pages, nr_pages); |
| 81 | if (!pages) | 81 | if (!pages) |
| 82 | return ERR_PTR(-ENOMEM); | 82 | return ERR_PTR(-ENOMEM); |
| 83 | 83 | ||
| @@ -94,7 +94,7 @@ ivpu_create_userptr_dmabuf(struct ivpu_device *vdev, void __user *user_ptr, · 10 unmodified lines | |||
| 94 | goto unpin_pages; | 94 | goto unpin_pages; |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | sgt = kmalloc_obj(*sgt, GFP_KERNEL); | 97 | sgt = kmalloc_obj(*sgt); |
| 98 | if (!sgt) { | 98 | if (!sgt) { |
| 99 | ret = -ENOMEM; | 99 | ret = -ENOMEM; |
| 100 | goto unpin_pages; | 100 | goto unpin_pages; |
| @@ -98,7 +98,7 @@ static struct ivpu_cmdq *ivpu_cmdq_alloc(struct ivpu_file_priv *file_priv) · 97 unmodified lines | |||
| 98 | struct ivpu_device *vdev = file_priv->vdev; | 98 | struct ivpu_device *vdev = file_priv->vdev; |
| 99 | struct ivpu_cmdq *cmdq; | 99 | struct ivpu_cmdq *cmdq; |
| 100 | 100 | ||
| 101 | cmdq = kzalloc_obj(*cmdq, GFP_KERNEL); | 101 | cmdq = kzalloc_obj(*cmdq); |
| 102 | if (!cmdq) | 102 | if (!cmdq) |
| 103 | return NULL; | 103 | return NULL; |
| 104 | 104 | ||
| @@ -491,7 +491,7 @@ static struct dma_fence *ivpu_fence_create(struct ivpu_device *vdev) · 386 unmodified lines | |||
| 491 | { | 491 | { |
| 492 | struct ivpu_fence *fence; | 492 | struct ivpu_fence *fence; |
| 493 | 493 | ||
| 494 | fence = kzalloc_obj(*fence, GFP_KERNEL); | 494 | fence = kzalloc_obj(*fence); |
| 495 | if (!fence) | 495 | if (!fence) |
| 496 | return NULL; | 496 | return NULL; |
| 497 | 497 | ||
| @@ -59,7 +59,7 @@ int ivpu_ms_start_ioctl(struct drm_device *dev, void *data, struct drm_file *fil · 58 unmodified lines | |||
| 59 | goto unlock; | 59 | goto unlock; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | ms = kzalloc_obj(*ms, GFP_KERNEL); | 62 | ms = kzalloc_obj(*ms); |
| 63 | if (!ms) { | 63 | if (!ms) { |
| 64 | ret = -ENOMEM; | 64 | ret = -ENOMEM; |
| 65 | goto unlock; | 65 | goto unlock; |
| @@ -443,7 +443,7 @@ static int find_and_map_user_pages(struct qaic_device *qdev, · 442 unmodified lines | |||
| 443 | goto put_pages; | 443 | goto put_pages; |
| 444 | } | 444 | } |
| 445 | 445 | ||
| 446 | sgt = kmalloc_obj(*sgt, GFP_KERNEL); | 446 | sgt = kmalloc_obj(*sgt); |
| 447 | if (!sgt) { | 447 | if (!sgt) { |
| 448 | ret = -ENOMEM; | 448 | ret = -ENOMEM; |
| 449 | goto put_pages; | 449 | goto put_pages; |
| @@ -582,7 +582,7 @@ static int encode_dma(struct qaic_device *qdev, void *trans, struct wrapper_list · 132 unmodified lines | |||
| 582 | QAIC_MANAGE_WIRE_MSG_LENGTH) | 582 | QAIC_MANAGE_WIRE_MSG_LENGTH) |
| 583 | return -ENOMEM; | 583 | return -ENOMEM; |
| 584 | 584 | ||
| 585 | xfer = kmalloc_obj(*xfer, GFP_KERNEL); | 585 | xfer = kmalloc_obj(*xfer); |
| 586 | if (!xfer) | 586 | if (!xfer) |
| 587 | return -ENOMEM; | 587 | return -ENOMEM; |
| 588 | 588 | ||
| @@ -1166,7 +1166,7 @@ static struct wrapper_list *alloc_wrapper_list(void) · 577 unmodified lines | |||
| 1166 | { | 1166 | { |
| 1167 | struct wrapper_list *wrappers; | 1167 | struct wrapper_list *wrappers; |
| 1168 | 1168 | ||
| 1169 | wrappers = kmalloc_obj(*wrappers, GFP_KERNEL); | 1169 | wrappers = kmalloc_obj(*wrappers); |
| 1170 | if (!wrappers) | 1170 | if (!wrappers) |
| 1171 | return NULL; | 1171 | return NULL; |
| 1172 | INIT_LIST_HEAD(&wrappers->list); | 1172 | INIT_LIST_HEAD(&wrappers->list); |
| @@ -213,7 +213,7 @@ static int clone_range_of_sgt_for_slice(struct qaic_device *qdev, struct sg_tabl · 212 unmodified lines | |||
| 213 | goto out; | 213 | goto out; |
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | sgt = kzalloc_obj(*sgt, GFP_KERNEL); | 216 | sgt = kzalloc_obj(*sgt); |
| 217 | if (!sgt) { | 217 | if (!sgt) { |
| 218 | ret = -ENOMEM; | 218 | ret = -ENOMEM; |
| 219 | goto out; | 219 | goto out; |
| @@ -399,13 +399,13 @@ static int qaic_map_one_slice(struct qaic_device *qdev, struct qaic_bo *bo, · 179 unmodified lines | |||
| 399 | if (ret) | 399 | if (ret) |
| 400 | goto out; | 400 | goto out; |
| 401 | 401 | ||
| 402 | slice = kmalloc_obj(*slice, GFP_KERNEL); | 402 | slice = kmalloc_obj(*slice); |
| 403 | if (!slice) { | 403 | if (!slice) { |
| 404 | ret = -ENOMEM; | 404 | ret = -ENOMEM; |
| 405 | goto free_sgt; | 405 | goto free_sgt; |
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | slice->reqs = kvzalloc_objs(*slice->reqs, sgt->nents, GFP_KERNEL); | 408 | slice->reqs = kvzalloc_objs(*slice->reqs, sgt->nents); |
| 409 | if (!slice->reqs) { | 409 | if (!slice->reqs) { |
| 410 | ret = -ENOMEM; | 410 | ret = -ENOMEM; |
| 411 | goto free_slice; | 411 | goto free_slice; |
| @@ -507,7 +507,7 @@ static int create_sgt(struct qaic_device *qdev, struct sg_table **sgt_out, u64 s · 95 unmodified lines | |||
| 507 | i++; | 507 | i++; |
| 508 | } | 508 | } |
| 509 | 509 | ||
| 510 | sgt = kmalloc_obj(*sgt, GFP_KERNEL); | 510 | sgt = kmalloc_obj(*sgt); |
| 511 | if (!sgt) { | 511 | if (!sgt) { |
| 512 | ret = -ENOMEM; | 512 | ret = -ENOMEM; |
| 513 | goto free_partial_alloc; | 513 | goto free_partial_alloc; |
| @@ -653,7 +653,7 @@ static struct sg_table *qaic_get_sg_table(struct drm_gem_object *obj) · 139 unmodified lines | |||
| 653 | 653 | ||
| 654 | sgt_in = bo->sgt; | 654 | sgt_in = bo->sgt; |
| 655 | 655 | ||
| 656 | sgt = kmalloc_obj(*sgt, GFP_KERNEL); | 656 | sgt = kmalloc_obj(*sgt); |
| 657 | if (!sgt) | 657 | if (!sgt) |
| 658 | return ERR_PTR(-ENOMEM); | 658 | return ERR_PTR(-ENOMEM); |
| 659 | 659 | ||
| @@ -697,7 +697,7 @@ static struct qaic_bo *qaic_alloc_init_bo(void) · 37 unmodified lines | |||
| 697 | { | 697 | { |
| 698 | struct qaic_bo *bo; | 698 | struct qaic_bo *bo; |
| 699 | 699 | ||
| 700 | bo = kzalloc_obj(*bo, GFP_KERNEL); | 700 | bo = kzalloc_obj(*bo); |
| 701 | if (!bo) | 701 | if (!bo) |
| 702 | return ERR_PTR(-ENOMEM); | 702 | return ERR_PTR(-ENOMEM); |
| 703 | 703 | ||
| @@ -152,7 +152,7 @@ static int qaic_open(struct drm_device *dev, struct drm_file *file) · 151 unmodified lines | |||
| 152 | goto dev_unlock; | 152 | goto dev_unlock; |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | usr = kmalloc_obj(*usr, GFP_KERNEL); | 155 | usr = kmalloc_obj(*usr); |
| 156 | if (!usr) { | 156 | if (!usr) { |
| 157 | ret = -ENOMEM; | 157 | ret = -ENOMEM; |
| 158 | goto dev_unlock; | 158 | goto dev_unlock; |
| @@ -556,7 +556,7 @@ static int qaic_ras_mhi_probe(struct mhi_device *mhi_dev, const struct mhi_devic · 555 unmodified lines | |||
| 556 | if (ret) | 556 | if (ret) |
| 557 | return ret; | 557 | return ret; |
| 558 | 558 | ||
| 559 | resp = kzalloc_obj(*resp, GFP_KERNEL); | 559 | resp = kzalloc_obj(*resp); |
| 560 | if (!resp) { | 560 | if (!resp) { |
| 561 | mhi_unprepare_from_transfer(mhi_dev); | 561 | mhi_unprepare_from_transfer(mhi_dev); |
| 562 | return -ENOMEM; | 562 | return -ENOMEM; |
| @@ -260,7 +260,7 @@ static int send_xfer_done(struct qaic_device *qdev, void *resp, u32 dbc_id) · 259 unmodified lines | |||
| 260 | struct ssr_debug_transfer_done *xfer_done; | 260 | struct ssr_debug_transfer_done *xfer_done; |
| 261 | int ret; | 261 | int ret; |
| 262 | 262 | ||
| 263 | xfer_done = kmalloc_obj(*xfer_done, GFP_KERNEL); | 263 | xfer_done = kmalloc_obj(*xfer_done); |
| 264 | if (!xfer_done) { | 264 | if (!xfer_done) { |
| 265 | ret = -ENOMEM; | 265 | ret = -ENOMEM; |
| 266 | goto out; | 266 | goto out; |
| @@ -450,7 +450,7 @@ static struct ssr_dump_info *alloc_dump_info(struct qaic_device *qdev, · 183 unmodified lines | |||
| 450 | } | 450 | } |
| 451 | 451 | ||
| 452 | /* Allocate SSR crashdump book keeping structure */ | 452 | /* Allocate SSR crashdump book keeping structure */ |
| 453 | dump_info = kzalloc_obj(*dump_info, GFP_KERNEL); | 453 | dump_info = kzalloc_obj(*dump_info); |
| 454 | if (!dump_info) { | 454 | if (!dump_info) { |
| 455 | ret = -ENOMEM; | 455 | ret = -ENOMEM; |
| 456 | goto out; | 456 | goto out; |
| @@ -491,7 +491,7 @@ static int dbg_xfer_info_rsp(struct qaic_device *qdev, struct dma_bridge_chan *d · 34 unmodified lines | |||
| 491 | struct ssr_crashdump *ssr_crash = NULL; | 491 | struct ssr_crashdump *ssr_crash = NULL; |
| 492 | int ret = 0, ret2; | 492 | int ret = 0, ret2; |
| 493 | 493 | ||
| 494 | debug_rsp = kmalloc_obj(*debug_rsp, GFP_KERNEL); | 494 | debug_rsp = kmalloc_obj(*debug_rsp); |
| 495 | if (!debug_rsp) | 495 | if (!debug_rsp) |
| 496 | return -ENOMEM; | 496 | return -ENOMEM; |
| 497 | 497 | ||
| @@ -641,7 +641,7 @@ static void ssr_worker(struct work_struct *work) · 143 unmodified lines | |||
| 641 | break; | 641 | break; |
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | event_rsp = kmalloc_obj(*event_rsp, GFP_KERNEL); | 644 | event_rsp = kmalloc_obj(*event_rsp); |
| 645 | if (!event_rsp) | 645 | if (!event_rsp) |
| 646 | break; | 646 | break; |
| 647 | 647 | ||
| @@ -185,7 +185,7 @@ static int qaic_timesync_probe(struct mhi_device *mhi_dev, const struct mhi_devi · 184 unmodified lines | |||
| 185 | struct timer_list *timer; | 185 | struct timer_list *timer; |
| 186 | int ret; | 186 | int ret; |
| 187 | 187 | ||
| 188 | mqtsdev = kzalloc_obj(*mqtsdev, GFP_KERNEL); | 188 | mqtsdev = kzalloc_obj(*mqtsdev); |
| 189 | if (!mqtsdev) { | 189 | if (!mqtsdev) { |
| 190 | ret = -ENOMEM; | 190 | ret = -ENOMEM; |
| 191 | goto out; | 191 | goto out; |
| @@ -196,7 +196,7 @@ static int qaic_timesync_probe(struct mhi_device *mhi_dev, const struct mhi_devi · 4 unmodified lines | |||
| 196 | mqtsdev->qdev = qdev; | 196 | mqtsdev->qdev = qdev; |
| 197 | mqtsdev->dev = &qdev->pdev->dev; | 197 | mqtsdev->dev = &qdev->pdev->dev; |
| 198 | 198 | ||
| 199 | mqtsdev->sync_msg = kzalloc_obj(*mqtsdev->sync_msg, GFP_KERNEL); | 199 | mqtsdev->sync_msg = kzalloc_obj(*mqtsdev->sync_msg); |
| 200 | if (!mqtsdev->sync_msg) { | 200 | if (!mqtsdev->sync_msg) { |
| 201 | ret = -ENOMEM; | 201 | ret = -ENOMEM; |
| 202 | goto free_mqts_dev; | 202 | goto free_mqts_dev; |
| @@ -275,7 +275,7 @@ static void qaic_boot_timesync_worker(struct work_struct *work) · 72 unmodified lines | |||
| 275 | 275 | ||
| 276 | switch (data.hdr.msg_type) { | 276 | switch (data.hdr.msg_type) { |
| 277 | case QAIC_TS_CMD_TO_HOST: | 277 | case QAIC_TS_CMD_TO_HOST: |
| 278 | req = kzalloc_obj(*req, GFP_KERNEL); | 278 | req = kzalloc_obj(*req); |
| 279 | if (!req) | 279 | if (!req) |
| 280 | break; | 280 | break; |
| 281 | 281 | ||
| @@ -304,7 +304,7 @@ static int qaic_boot_timesync_queue_resp(struct mhi_device *mhi_dev, struct qaic · 22 unmodified lines | |||
| 304 | struct qts_resp *resp; | 304 | struct qts_resp *resp; |
| 305 | int ret; | 305 | int ret; |
| 306 | 306 | ||
| 307 | resp = kzalloc_obj(*resp, GFP_KERNEL); | 307 | resp = kzalloc_obj(*resp); |
| 308 | if (!resp) | 308 | if (!resp) |
| 309 | return -ENOMEM; | 309 | return -ENOMEM; |
| 310 | 310 | ||
| @@ -38,7 +38,7 @@ rocket_iommu_domain_destroy(struct kref *kref) · 37 unmodified lines | |||
| 38 | static struct rocket_iommu_domain* | 38 | static struct rocket_iommu_domain* |
| 39 | rocket_iommu_domain_create(struct device *dev) | 39 | rocket_iommu_domain_create(struct device *dev) |
| 40 | { | 40 | { |
| 41 | struct rocket_iommu_domain *domain = kmalloc_obj(*domain, GFP_KERNEL); | 41 | struct rocket_iommu_domain *domain = kmalloc_obj(*domain); |
| 42 | void *err; | 42 | void *err; |
| 43 | 43 | ||
| 44 | if (!domain) | 44 | if (!domain) |
| @@ -79,7 +79,7 @@ rocket_open(struct drm_device *dev, struct drm_file *file) · 34 unmodified lines | |||
| 79 | if (!try_module_get(THIS_MODULE)) | 79 | if (!try_module_get(THIS_MODULE)) |
| 80 | return -EINVAL; | 80 | return -EINVAL; |
| 81 | 81 | ||
| 82 | rocket_priv = kzalloc_obj(*rocket_priv, GFP_KERNEL); | 82 | rocket_priv = kzalloc_obj(*rocket_priv); |
| 83 | if (!rocket_priv) { | 83 | if (!rocket_priv) { |
| 84 | ret = -ENOMEM; | 84 | ret = -ENOMEM; |
| 85 | goto err_put_mod; | 85 | goto err_put_mod; |
| @@ -48,7 +48,7 @@ struct drm_gem_object *rocket_gem_create_object(struct drm_device *dev, size_t s · 47 unmodified lines | |||
| 48 | { | 48 | { |
| 49 | struct rocket_gem_object *obj; | 49 | struct rocket_gem_object *obj; |
| 50 | 50 | ||
| 51 | obj = kzalloc_obj(*obj, GFP_KERNEL); | 51 | obj = kzalloc_obj(*obj); |
| 52 | if (!obj) | 52 | if (!obj) |
| 53 | return ERR_PTR(-ENOMEM); | 53 | return ERR_PTR(-ENOMEM); |
| 54 | 54 | ||
| @@ -45,7 +45,7 @@ static struct dma_fence *rocket_fence_create(struct rocket_core *core) · 44 unmodified lines | |||
| 45 | { | 45 | { |
| 46 | struct dma_fence *fence; | 46 | struct dma_fence *fence; |
| 47 | 47 | ||
| 48 | fence = kzalloc_obj(*fence, GFP_KERNEL); | 48 | fence = kzalloc_obj(*fence); |
| 49 | if (!fence) | 49 | if (!fence) |
| 50 | return ERR_PTR(-ENOMEM); | 50 | return ERR_PTR(-ENOMEM); |
| 51 | 51 | ||
| @@ -71,7 +71,7 @@ rocket_copy_tasks(struct drm_device *dev, · 19 unmodified lines | |||
| 71 | if (!rjob->task_count) | 71 | if (!rjob->task_count) |
| 72 | return 0; | 72 | return 0; |
| 73 | 73 | ||
| 74 | rjob->tasks = kvmalloc_objs(*rjob->tasks, job->task_count, GFP_KERNEL); | 74 | rjob->tasks = kvmalloc_objs(*rjob->tasks, job->task_count); |
| 75 | if (!rjob->tasks) { | 75 | if (!rjob->tasks) { |
| 76 | drm_dbg(dev, "Failed to allocate task array\n"); | 76 | drm_dbg(dev, "Failed to allocate task array\n"); |
| 77 | return -ENOMEM; | 77 | return -ENOMEM; |
| @@ -543,7 +543,7 @@ static int rocket_ioctl_submit_job(struct drm_device *dev, struct drm_file *file · 465 unmodified lines | |||
| 543 | if (job->task_count == 0) | 543 | if (job->task_count == 0) |
| 544 | return -EINVAL; | 544 | return -EINVAL; |
| 545 | 545 | ||
| 546 | rjob = kzalloc_obj(*rjob, GFP_KERNEL); | 546 | rjob = kzalloc_obj(*rjob); |
| 547 | if (!rjob) | 547 | if (!rjob) |
| 548 | return -ENOMEM; | 548 | return -ENOMEM; |
| 549 | 549 | ||
| @@ -610,7 +610,7 @@ int rocket_ioctl_submit(struct drm_device *dev, void *data, struct drm_file *fil · 60 unmodified lines | |||
| 610 | return -EINVAL; | 610 | return -EINVAL; |
| 611 | } | 611 | } |
| 612 | 612 | ||
| 613 | jobs = kvmalloc_objs(*jobs, args->job_count, GFP_KERNEL); | 613 | jobs = kvmalloc_objs(*jobs, args->job_count); |
| 614 | if (!jobs) { | 614 | if (!jobs) { |
| 615 | drm_dbg(dev, "Failed to allocate incoming job array\n"); | 615 | drm_dbg(dev, "Failed to allocate incoming job array\n"); |
| 616 | return -ENOMEM; | 616 | return -ENOMEM; |
| @@ -55,7 +55,7 @@ static int spk_ttyio_ldisc_open(struct tty_struct *tty) · 54 unmodified lines | |||
| 55 | if (!tty->ops->write) | 55 | if (!tty->ops->write) |
| 56 | return -EOPNOTSUPP; | 56 | return -EOPNOTSUPP; |
| 57 | 57 | ||
| 58 | ldisc_data = kmalloc_obj(*ldisc_data, GFP_KERNEL); | 58 | ldisc_data = kmalloc_obj(*ldisc_data); |
| 59 | if (!ldisc_data) | 59 | if (!ldisc_data) |
| 60 | return -ENOMEM; | 60 | return -ENOMEM; |
| 61 | 61 | ||
| @@ -208,7 +208,7 @@ static int acpi_ac_probe(struct platform_device *pdev) · 207 unmodified lines | |||
| 208 | struct acpi_ac *ac; | 208 | struct acpi_ac *ac; |
| 209 | int result; | 209 | int result; |
| 210 | 210 | ||
| 211 | ac = kzalloc_obj(struct acpi_ac, GFP_KERNEL); | 211 | ac = kzalloc_obj(struct acpi_ac); |
| 212 | if (!ac) | 212 | if (!ac) |
| 213 | return -ENOMEM; | 213 | return -ENOMEM; |
| 214 | 214 | ||
| @@ -202,7 +202,7 @@ static int acpi_apd_create_device(struct acpi_device *adev, · 201 unmodified lines | |||
| 202 | return IS_ERR_OR_NULL(pdev) ? PTR_ERR(pdev) : 1; | 202 | return IS_ERR_OR_NULL(pdev) ? PTR_ERR(pdev) : 1; |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | pdata = kzalloc_obj(*pdata, GFP_KERNEL); | 205 | pdata = kzalloc_obj(*pdata); |
| 206 | if (!pdata) | 206 | if (!pdata) |
| 207 | return -ENOMEM; | 207 | return -ENOMEM; |
| 208 | 208 | ||
| @@ -210,7 +210,7 @@ static struct config_item *acpi_table_make_item(struct config_group *group, · 209 unmodified lines | |||
| 210 | { | 210 | { |
| 211 | struct acpi_table *table; | 211 | struct acpi_table *table; |
| 212 | 212 | ||
| 213 | table = kzalloc_obj(*table, GFP_KERNEL); | 213 | table = kzalloc_obj(*table); |
| 214 | if (!table) | 214 | if (!table) |
| 215 | return ERR_PTR(-ENOMEM); | 215 | return ERR_PTR(-ENOMEM); |
| 216 | 216 | ||
| @@ -117,7 +117,7 @@ ipmi_dev_alloc(int iface, struct device *dev, acpi_handle handle) · 116 unmodified lines | |||
| 117 | int err; | 117 | int err; |
| 118 | struct ipmi_user *user; | 118 | struct ipmi_user *user; |
| 119 | 119 | ||
| 120 | ipmi_device = kzalloc_obj(*ipmi_device, GFP_KERNEL); | 120 | ipmi_device = kzalloc_obj(*ipmi_device); |
| 121 | if (!ipmi_device) | 121 | if (!ipmi_device) |
| 122 | return NULL; | 122 | return NULL; |
| 123 | 123 | ||
| @@ -197,7 +197,7 @@ static struct acpi_ipmi_msg *ipmi_msg_alloc(void) · 73 unmodified lines | |||
| 197 | if (!ipmi) | 197 | if (!ipmi) |
| 198 | return NULL; | 198 | return NULL; |
| 199 | 199 | ||
| 200 | ipmi_msg = kzalloc_obj(struct acpi_ipmi_msg, GFP_KERNEL); | 200 | ipmi_msg = kzalloc_obj(struct acpi_ipmi_msg); |
| 201 | if (!ipmi_msg) { | 201 | if (!ipmi_msg) { |
| 202 | acpi_ipmi_dev_put(ipmi); | 202 | acpi_ipmi_dev_put(ipmi); |
| 203 | return NULL; | 203 | return NULL; |
| @@ -104,7 +104,7 @@ struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(acpi_handle · 103 unmodified lines | |||
| 104 | (obj_p->package.count % 2) || (obj_p->package.count < 4)) | 104 | (obj_p->package.count % 2) || (obj_p->package.count < 4)) |
| 105 | goto out; | 105 | goto out; |
| 106 | 106 | ||
| 107 | lpat = kzalloc_objs(int, obj_p->package.count, GFP_KERNEL); | 107 | lpat = kzalloc_objs(int, obj_p->package.count); |
| 108 | if (!lpat) | 108 | if (!lpat) |
| 109 | goto out; | 109 | goto out; |
| 110 | 110 | ||
| @@ -117,7 +117,7 @@ struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(acpi_handle · 6 unmodified lines | |||
| 117 | lpat[i] = (s64)obj_e->integer.value; | 117 | lpat[i] = (s64)obj_e->integer.value; |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | lpat_table = kzalloc_obj(*lpat_table, GFP_KERNEL); | 120 | lpat_table = kzalloc_obj(*lpat_table); |
| 121 | if (!lpat_table) { | 121 | if (!lpat_table) { |
| 122 | kfree(lpat); | 122 | kfree(lpat); |
| 123 | goto out; | 123 | goto out; |
| @@ -80,7 +80,7 @@ acpi_memory_get_resource(struct acpi_resource *resource, void *context) · 79 unmodified lines | |||
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | new = kzalloc_obj(struct acpi_memory_info, GFP_KERNEL); | 83 | new = kzalloc_obj(struct acpi_memory_info); |
| 84 | if (!new) | 84 | if (!new) |
| 85 | return AE_ERROR; | 85 | return AE_ERROR; |
| 86 | 86 | ||
| @@ -290,7 +290,7 @@ static int acpi_memory_device_add(struct acpi_device *device, · 203 unmodified lines | |||
| 290 | if (!device) | 290 | if (!device) |
| 291 | return -EINVAL; | 291 | return -EINVAL; |
| 292 | 292 | ||
| 293 | mem_device = kzalloc_obj(struct acpi_memory_device, GFP_KERNEL); | 293 | mem_device = kzalloc_obj(struct acpi_memory_device); |
| 294 | if (!mem_device) | 294 | if (!mem_device) |
| 295 | return -ENOMEM; | 295 | return -ENOMEM; |
| 296 | 296 | ||
| @@ -161,7 +161,7 @@ static __init int add_boot_memory_ranges(void) · 160 unmodified lines | |||
| 161 | if (!pkobj) | 161 | if (!pkobj) |
| 162 | return -ENOMEM; | 162 | return -ENOMEM; |
| 163 | 163 | ||
| 164 | kobjs = kzalloc_objs(*kobjs, mrrm_mem_entry_num, GFP_KERNEL); | 164 | kobjs = kzalloc_objs(*kobjs, mrrm_mem_entry_num); |
| 165 | if (!kobjs) { | 165 | if (!kobjs) { |
| 166 | kobject_put(pkobj); | 166 | kobject_put(pkobj); |
| 167 | return -ENOMEM; | 167 | return -ENOMEM; |
| @@ -54,7 +54,7 @@ acpi_pcc_address_space_setup(acpi_handle region_handle, u32 function, · 53 unmodified lines | |||
| 54 | struct pcc_mbox_chan *pcc_chan; | 54 | struct pcc_mbox_chan *pcc_chan; |
| 55 | acpi_status ret; | 55 | acpi_status ret; |
| 56 | 56 | ||
| 57 | data = kzalloc_obj(*data, GFP_KERNEL); | 57 | data = kzalloc_obj(*data); |
| 58 | if (!data) | 58 | if (!data) |
| 59 | return AE_NO_MEMORY; | 59 | return AE_NO_MEMORY; |
| 60 | 60 | ||
| @@ -145,7 +145,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev, · 144 unmodified lines | |||
| 145 | if (count > 0) { | 145 | if (count > 0) { |
| 146 | struct resource_entry *rentry; | 146 | struct resource_entry *rentry; |
| 147 | 147 | ||
| 148 | resources = kzalloc_objs(*resources, count, GFP_KERNEL); | 148 | resources = kzalloc_objs(*resources, count); |
| 149 | if (!resources) { | 149 | if (!resources) { |
| 150 | acpi_dev_free_resource_list(&resource_list); | 150 | acpi_dev_free_resource_list(&resource_list); |
| 151 | return ERR_PTR(-ENOMEM); | 151 | return ERR_PTR(-ENOMEM); |
| @@ -428,7 +428,7 @@ static int acpi_processor_add(struct acpi_device *device, · 427 unmodified lines | |||
| 428 | if (!acpi_device_is_enabled(device)) | 428 | if (!acpi_device_is_enabled(device)) |
| 429 | return -ENODEV; | 429 | return -ENODEV; |
| 430 | 430 | ||
| 431 | pr = kzalloc_obj(struct acpi_processor, GFP_KERNEL); | 431 | pr = kzalloc_obj(struct acpi_processor); |
| 432 | if (!pr) | 432 | if (!pr) |
| 433 | return -ENOMEM; | 433 | return -ENOMEM; |
| 434 | 434 | ||
| @@ -825,7 +825,7 @@ int acpi_video_get_levels(struct acpi_device *device, · 824 unmodified lines | |||
| 825 | goto out; | 825 | goto out; |
| 826 | } | 826 | } |
| 827 | 827 | ||
| 828 | br = kzalloc_obj(*br, GFP_KERNEL); | 828 | br = kzalloc_obj(*br); |
| 829 | if (!br) { | 829 | if (!br) { |
| 830 | result = -ENOMEM; | 830 | result = -ENOMEM; |
| 831 | goto out; | 831 | goto out; |
| @@ -1141,7 +1141,7 @@ static int acpi_video_bus_get_one_device(struct acpi_device *device, void *arg) · 309 unmodified lines | |||
| 1141 | if (acpi_get_local_u64_address(device->handle, &device_id)) | 1141 | if (acpi_get_local_u64_address(device->handle, &device_id)) |
| 1142 | goto exit; | 1142 | goto exit; |
| 1143 | 1143 | ||
| 1144 | data = kzalloc_obj(struct acpi_video_device, GFP_KERNEL); | 1144 | data = kzalloc_obj(struct acpi_video_device); |
| 1145 | if (!data) { | 1145 | if (!data) { |
| 1146 | dev_dbg(&device->dev, "Cannot attach\n"); | 1146 | dev_dbg(&device->dev, "Cannot attach\n"); |
| 1147 | return -ENOMEM; | 1147 | return -ENOMEM; |
| @@ -2003,7 +2003,7 @@ static int acpi_video_bus_probe(struct platform_device *pdev) · 855 unmodified lines | |||
| 2003 | return -ENODEV; | 2003 | return -ENODEV; |
| 2004 | } | 2004 | } |
| 2005 | 2005 | ||
| 2006 | video = kzalloc_obj(struct acpi_video_bus, GFP_KERNEL); | 2006 | video = kzalloc_obj(struct acpi_video_bus); |
| 2007 | if (!video) | 2007 | if (!video) |
| 2008 | return -ENOMEM; | 2008 | return -ENOMEM; |
| 2009 | 2009 | ||
| @@ -166,7 +166,7 @@ void __init acpi_watchdog_init(void) · 165 unmodified lines | |||
| 166 | } | 166 | } |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | resources = kzalloc_objs(*resources, nresources, GFP_KERNEL); | 169 | resources = kzalloc_objs(*resources, nresources); |
| 170 | if (!resources) | 170 | if (!resources) |
| 171 | goto fail_free_resource_list; | 171 | goto fail_free_resource_list; |
| 172 | 172 | ||
| @@ -316,7 +316,7 @@ repeat: · 315 unmodified lines | |||
| 316 | if (res_ins) | 316 | if (res_ins) |
| 317 | list_add(&res_ins->list, res_list); | 317 | list_add(&res_ins->list, res_list); |
| 318 | else { | 318 | else { |
| 319 | res_ins = kmalloc_obj(*res_ins, GFP_KERNEL); | 319 | res_ins = kmalloc_obj(*res_ins); |
| 320 | if (!res_ins) | 320 | if (!res_ins) |
| 321 | return -ENOMEM; | 321 | return -ENOMEM; |
| 322 | res_ins->start = start; | 322 | res_ins->start = start; |
| @@ -345,7 +345,7 @@ static int apei_res_sub(struct list_head *res_list1, · 22 unmodified lines | |||
| 345 | break; | 345 | break; |
| 346 | } else if (res1->end > res2->end && | 346 | } else if (res1->end > res2->end && |
| 347 | res1->start < res2->start) { | 347 | res1->start < res2->start) { |
| 348 | res = kmalloc_obj(*res, GFP_KERNEL); | 348 | res = kmalloc_obj(*res); |
| 349 | if (!res) | 349 | if (!res) |
| 350 | return -ENOMEM; | 350 | return -ENOMEM; |
| 351 | res->start = res2->end; | 351 | res->start = res2->end; |
| @@ -272,7 +272,7 @@ static struct ghes *ghes_new(struct acpi_hest_generic *generic) · 271 unmodified lines | |||
| 272 | unsigned int error_block_length; | 272 | unsigned int error_block_length; |
| 273 | int rc; | 273 | int rc; |
| 274 | 274 | ||
| 275 | ghes = kzalloc_obj(*ghes, GFP_KERNEL); | 275 | ghes = kzalloc_obj(*ghes); |
| 276 | if (!ghes) | 276 | if (!ghes) |
| 277 | return ERR_PTR(-ENOMEM); | 277 | return ERR_PTR(-ENOMEM); |
| 278 | 278 | ||
| @@ -33,7 +33,7 @@ int acpi_ffh_address_space_arch_setup(void *handler_ctxt, void **region_ctxt) · 32 unmodified lines | |||
| 33 | return -EOPNOTSUPP; | 33 | return -EOPNOTSUPP; |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | ffh_ctxt = kzalloc_obj(*ffh_ctxt, GFP_KERNEL); | 36 | ffh_ctxt = kzalloc_obj(*ffh_ctxt); |
| 37 | if (!ffh_ctxt) | 37 | if (!ffh_ctxt) |
| 38 | return -ENOMEM; | 38 | return -ENOMEM; |
| 39 | 39 | ||
| @@ -165,7 +165,7 @@ int iort_register_domain_token(int trans_id, phys_addr_t base, · 164 unmodified lines | |||
| 165 | { | 165 | { |
| 166 | struct iort_its_msi_chip *its_msi_chip; | 166 | struct iort_its_msi_chip *its_msi_chip; |
| 167 | 167 | ||
| 168 | its_msi_chip = kzalloc_obj(*its_msi_chip, GFP_KERNEL); | 168 | its_msi_chip = kzalloc_obj(*its_msi_chip); |
| 169 | if (!its_msi_chip) | 169 | if (!its_msi_chip) |
| 170 | return -ENOMEM; | 170 | return -ENOMEM; |
| 171 | 171 | ||
| @@ -938,7 +938,7 @@ static struct iommu_iort_rmr_data *iort_rmr_alloc( · 766 unmodified lines | |||
| 938 | u32 *sids_copy; | 938 | u32 *sids_copy; |
| 939 | u64 addr = rmr_desc->base_address, size = rmr_desc->length; | 939 | u64 addr = rmr_desc->base_address, size = rmr_desc->length; |
| 940 | 940 | ||
| 941 | rmr_data = kmalloc_obj(*rmr_data, GFP_KERNEL); | 941 | rmr_data = kmalloc_obj(*rmr_data); |
| 942 | if (!rmr_data) | 942 | if (!rmr_data) |
| 943 | return NULL; | 943 | return NULL; |
| 944 | 944 | ||
| @@ -1942,7 +1942,7 @@ static int __init iort_add_platform_device(struct acpi_iort_node *node, · 997 unmodified lines | |||
| 1942 | 1942 | ||
| 1943 | count = ops->dev_count_resources(node); | 1943 | count = ops->dev_count_resources(node); |
| 1944 | 1944 | ||
| 1945 | r = kzalloc_objs(*r, count, GFP_KERNEL); | 1945 | r = kzalloc_objs(*r, count); |
| 1946 | if (!r) { | 1946 | if (!r) { |
| 1947 | ret = -ENOMEM; | 1947 | ret = -ENOMEM; |
| 1948 | goto dev_put; | 1948 | goto dev_put; |
| @@ -544,7 +544,7 @@ static int acpi_button_probe(struct platform_device *pdev) · 543 unmodified lines | |||
| 544 | lid_init_state == ACPI_BUTTON_LID_INIT_DISABLED) | 544 | lid_init_state == ACPI_BUTTON_LID_INIT_DISABLED) |
| 545 | return -ENODEV; | 545 | return -ENODEV; |
| 546 | 546 | ||
| 547 | button = kzalloc_obj(struct acpi_button, GFP_KERNEL); | 547 | button = kzalloc_obj(struct acpi_button); |
| 548 | if (!button) | 548 | if (!button) |
| 549 | return -ENOMEM; | 549 | return -ENOMEM; |
| 550 | 550 | ||
| @@ -52,7 +52,7 @@ static int container_device_attach(struct acpi_device *adev, · 51 unmodified lines | |||
| 52 | if (adev->flags.is_dock_station) | 52 | if (adev->flags.is_dock_station) |
| 53 | return 0; | 53 | return 0; |
| 54 | 54 | ||
| 55 | cdev = kzalloc_obj(*cdev, GFP_KERNEL); | 55 | cdev = kzalloc_obj(*cdev); |
| 56 | if (!cdev) | 56 | if (!cdev) |
| 57 | return -ENOMEM; | 57 | return -ENOMEM; |
| 58 | 58 | ||
| @@ -712,7 +712,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr) · 711 unmodified lines | |||
| 712 | 712 | ||
| 713 | out_obj = (union acpi_object *) output.pointer; | 713 | out_obj = (union acpi_object *) output.pointer; |
| 714 | 714 | ||
| 715 | cpc_ptr = kzalloc_obj(struct cpc_desc, GFP_KERNEL); | 715 | cpc_ptr = kzalloc_obj(struct cpc_desc); |
| 716 | if (!cpc_ptr) { | 716 | if (!cpc_ptr) { |
| 717 | ret = -ENOMEM; | 717 | ret = -ENOMEM; |
| 718 | goto out_buf_free; | 718 | goto out_buf_free; |
| @@ -73,7 +73,7 @@ static int add_dock_dependent_device(struct dock_station *ds, · 72 unmodified lines | |||
| 73 | { | 73 | { |
| 74 | struct dock_dependent_device *dd; | 74 | struct dock_dependent_device *dd; |
| 75 | 75 | ||
| 76 | dd = kzalloc_obj(*dd, GFP_KERNEL); | 76 | dd = kzalloc_obj(*dd); |
| 77 | if (!dd) | 77 | if (!dd) |
| 78 | return -ENOMEM; | 78 | return -ENOMEM; |
| 79 | 79 | ||
| @@ -1100,7 +1100,7 @@ int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit, · 1099 unmodified lines | |||
| 1100 | if (!handle && !func) | 1100 | if (!handle && !func) |
| 1101 | return -EINVAL; | 1101 | return -EINVAL; |
| 1102 | 1102 | ||
| 1103 | handler = kzalloc_obj(*handler, GFP_KERNEL); | 1103 | handler = kzalloc_obj(*handler); |
| 1104 | if (!handler) | 1104 | if (!handler) |
| 1105 | return -ENOMEM; | 1105 | return -ENOMEM; |
| 1106 | 1106 | ||
| @@ -1177,7 +1177,7 @@ static struct acpi_ec_query *acpi_ec_create_query(struct acpi_ec *ec, u8 *pval) · 70 unmodified lines | |||
| 1177 | struct acpi_ec_query *q; | 1177 | struct acpi_ec_query *q; |
| 1178 | struct transaction *t; | 1178 | struct transaction *t; |
| 1179 | 1179 | ||
| 1180 | q = kzalloc_obj(struct acpi_ec_query, GFP_KERNEL); | 1180 | q = kzalloc_obj(struct acpi_ec_query); |
| 1181 | if (!q) | 1181 | if (!q) |
| 1182 | return NULL; | 1182 | return NULL; |
| 1183 | 1183 | ||
| @@ -1422,7 +1422,7 @@ static void acpi_ec_free(struct acpi_ec *ec) · 238 unmodified lines | |||
| 1422 | 1422 | ||
| 1423 | static struct acpi_ec *acpi_ec_alloc(void) | 1423 | static struct acpi_ec *acpi_ec_alloc(void) |
| 1424 | { | 1424 | { |
| 1425 | struct acpi_ec *ec = kzalloc_obj(struct acpi_ec, GFP_KERNEL); | 1425 | struct acpi_ec *ec = kzalloc_obj(struct acpi_ec); |
| 1426 | 1426 | ||
| 1427 | if (!ec) | 1427 | if (!ec) |
| 1428 | return NULL; | 1428 | return NULL; |
| @@ -246,7 +246,7 @@ int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev) · 245 unmodified lines | |||
| 246 | 246 | ||
| 247 | acpi_dev_get(acpi_dev); | 247 | acpi_dev_get(acpi_dev); |
| 248 | get_device(dev); | 248 | get_device(dev); |
| 249 | physical_node = kzalloc_obj(*physical_node, GFP_KERNEL); | 249 | physical_node = kzalloc_obj(*physical_node); |
| 250 | if (!physical_node) { | 250 | if (!physical_node) { |
| 251 | retval = -ENOMEM; | 251 | retval = -ENOMEM; |
| 252 | goto err; | 252 | goto err; |
| @@ -120,7 +120,7 @@ static acpi_status handle_ioapic_add(acpi_handle handle, u32 lvl, · 119 unmodified lines | |||
| 120 | goto exit; | 120 | goto exit; |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | ioapic = kzalloc_obj(*ioapic, GFP_KERNEL); | 123 | ioapic = kzalloc_obj(*ioapic); |
| 124 | if (!ioapic) { | 124 | if (!ioapic) { |
| 125 | pr_err("cannot allocate memory for new IOAPIC\n"); | 125 | pr_err("cannot allocate memory for new IOAPIC\n"); |
| 126 | goto exit; | 126 | goto exit; |
| @@ -111,7 +111,7 @@ static struct crs_csi2 *acpi_mipi_add_crs_csi2(acpi_handle handle, · 110 unmodified lines | |||
| 111 | { | 111 | { |
| 112 | struct crs_csi2 *csi2; | 112 | struct crs_csi2 *csi2; |
| 113 | 113 | ||
| 114 | csi2 = kzalloc_obj(*csi2, GFP_KERNEL); | 114 | csi2 = kzalloc_obj(*csi2); |
| 115 | if (!csi2) | 115 | if (!csi2) |
| 116 | return NULL; | 116 | return NULL; |
| 117 | 117 | ||
| @@ -2271,9 +2271,9 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc, · 2270 unmodified lines | |||
| 2271 | { | 2271 | { |
| 2272 | u16 nr = ndr_desc->num_mappings; | 2272 | u16 nr = ndr_desc->num_mappings; |
| 2273 | struct nfit_set_info2 *info2 __free(kfree) = | 2273 | struct nfit_set_info2 *info2 __free(kfree) = |
| 2274 | kzalloc_objs(*info2, nr, GFP_KERNEL); | 2274 | kzalloc_objs(*info2, nr); |
| 2275 | struct nfit_set_info *info __free(kfree) = | 2275 | struct nfit_set_info *info __free(kfree) = |
| 2276 | kzalloc_objs(*info, nr, GFP_KERNEL); | 2276 | kzalloc_objs(*info, nr); |
| 2277 | struct device *dev = acpi_desc->dev; | 2277 | struct device *dev = acpi_desc->dev; |
| 2278 | struct nd_interleave_set *nd_set; | 2278 | struct nd_interleave_set *nd_set; |
| 2279 | int i; | 2279 | int i; |
| @@ -202,7 +202,7 @@ static __init void alloc_memory_initiator(unsigned int cpu_pxm) · 201 unmodified lines | |||
| 202 | if (initiator) | 202 | if (initiator) |
| 203 | return; | 203 | return; |
| 204 | 204 | ||
| 205 | initiator = kzalloc_obj(*initiator, GFP_KERNEL); | 205 | initiator = kzalloc_obj(*initiator); |
| 206 | if (!initiator) | 206 | if (!initiator) |
| 207 | return; | 207 | return; |
| 208 | 208 | ||
| @@ -217,7 +217,7 @@ static __init struct memory_target *alloc_target(unsigned int mem_pxm) · 8 unmodified lines | |||
| 217 | 217 | ||
| 218 | target = find_mem_target(mem_pxm); | 218 | target = find_mem_target(mem_pxm); |
| 219 | if (!target) { | 219 | if (!target) { |
| 220 | target = kzalloc_obj(*target, GFP_KERNEL); | 220 | target = kzalloc_obj(*target); |
| 221 | if (!target) | 221 | if (!target) |
| 222 | return NULL; | 222 | return NULL; |
| 223 | target->memory_pxm = mem_pxm; | 223 | target->memory_pxm = mem_pxm; |
| @@ -371,7 +371,7 @@ static __init void hmat_add_locality(struct acpi_hmat_locality *hmat_loc) · 147 unmodified lines | |||
| 371 | { | 371 | { |
| 372 | struct memory_locality *loc; | 372 | struct memory_locality *loc; |
| 373 | 373 | ||
| 374 | loc = kzalloc_obj(*loc, GFP_KERNEL); | 374 | loc = kzalloc_obj(*loc); |
| 375 | if (!loc) { | 375 | if (!loc) { |
| 376 | pr_notice_once("Failed to allocate HMAT locality\n"); | 376 | pr_notice_once("Failed to allocate HMAT locality\n"); |
| 377 | return; | 377 | return; |
| @@ -502,7 +502,7 @@ static __init int hmat_parse_cache(union acpi_subtable_headers *header, · 124 unmodified lines | |||
| 502 | if (!target) | 502 | if (!target) |
| 503 | return 0; | 503 | return 0; |
| 504 | 504 | ||
| 505 | tcache = kzalloc_obj(*tcache, GFP_KERNEL); | 505 | tcache = kzalloc_obj(*tcache); |
| 506 | if (!tcache) { | 506 | if (!tcache) { |
| 507 | pr_notice_once("Failed to allocate HMAT cache info\n"); | 507 | pr_notice_once("Failed to allocate HMAT cache info\n"); |
| 508 | return 0; | 508 | return 0; |
| @@ -39,7 +39,7 @@ int acpi_nvs_register(__u64 start, __u64 size) · 38 unmodified lines | |||
| 39 | { | 39 | { |
| 40 | struct nvs_region *region; | 40 | struct nvs_region *region; |
| 41 | 41 | ||
| 42 | region = kmalloc_obj(*region, GFP_KERNEL); | 42 | region = kmalloc_obj(*region); |
| 43 | if (!region) | 43 | if (!region) |
| 44 | return -ENOMEM; | 44 | return -ENOMEM; |
| 45 | region->phys_start = start; | 45 | region->phys_start = start; |
| @@ -102,7 +102,7 @@ static int suspend_nvs_register(unsigned long start, unsigned long size) · 56 unmodified lines | |||
| 102 | while (size > 0) { | 102 | while (size > 0) { |
| 103 | unsigned int nr_bytes; | 103 | unsigned int nr_bytes; |
| 104 | 104 | ||
| 105 | entry = kzalloc_obj(struct nvs_page, GFP_KERNEL); | 105 | entry = kzalloc_obj(struct nvs_page); |
| 106 | if (!entry) | 106 | if (!entry) |
| 107 | goto Error; | 107 | goto Error; |
| 108 | 108 | ||
| @@ -344,7 +344,7 @@ void __iomem __ref · 343 unmodified lines | |||
| 344 | goto out; | 344 | goto out; |
| 345 | } | 345 | } |
| 346 | 346 | ||
| 347 | map = kzalloc_obj(*map, GFP_KERNEL); | 347 | map = kzalloc_obj(*map); |
| 348 | if (!map) { | 348 | if (!map) { |
| 349 | mutex_unlock(&acpi_ioremap_lock); | 349 | mutex_unlock(&acpi_ioremap_lock); |
| 350 | return NULL; | 350 | return NULL; |
| @@ -1197,7 +1197,7 @@ acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src) · 846 unmodified lines | |||
| 1197 | "Scheduling hotplug event %u for deferred handling\n", | 1197 | "Scheduling hotplug event %u for deferred handling\n", |
| 1198 | src); | 1198 | src); |
| 1199 | 1199 | ||
| 1200 | hpw = kmalloc_obj(*hpw, GFP_KERNEL); | 1200 | hpw = kmalloc_obj(*hpw); |
| 1201 | if (!hpw) | 1201 | if (!hpw) |
| 1202 | return AE_NO_MEMORY; | 1202 | return AE_NO_MEMORY; |
| 1203 | 1203 | ||
| @@ -147,7 +147,7 @@ static int acpi_pci_irq_check_entry(acpi_handle handle, struct pci_dev *dev, · 146 unmodified lines | |||
| 147 | prt->pin + 1 != pin) | 147 | prt->pin + 1 != pin) |
| 148 | return -ENODEV; | 148 | return -ENODEV; |
| 149 | 149 | ||
| 150 | entry = kzalloc_obj(struct acpi_prt_entry, GFP_KERNEL); | 150 | entry = kzalloc_obj(struct acpi_prt_entry); |
| 151 | if (!entry) | 151 | if (!entry) |
| 152 | return -ENOMEM; | 152 | return -ENOMEM; |
| 153 | 153 | ||
| @@ -720,7 +720,7 @@ static int acpi_pci_link_add(struct acpi_device *device, · 719 unmodified lines | |||
| 720 | int result; | 720 | int result; |
| 721 | int i; | 721 | int i; |
| 722 | 722 | ||
| 723 | link = kzalloc_obj(struct acpi_pci_link, GFP_KERNEL); | 723 | link = kzalloc_obj(struct acpi_pci_link); |
| 724 | if (!link) | 724 | if (!link) |
| 725 | return -ENOMEM; | 725 | return -ENOMEM; |
| 726 | 726 | ||
| @@ -304,7 +304,7 @@ static __init int pci_mcfg_parse(struct acpi_table_header *header) · 303 unmodified lines | |||
| 304 | mcfg = (struct acpi_table_mcfg *)header; | 304 | mcfg = (struct acpi_table_mcfg *)header; |
| 305 | mptr = (struct acpi_mcfg_allocation *) &mcfg[1]; | 305 | mptr = (struct acpi_mcfg_allocation *) &mcfg[1]; |
| 306 | 306 | ||
| 307 | arr = kzalloc_objs(*arr, n, GFP_KERNEL); | 307 | arr = kzalloc_objs(*arr, n); |
| 308 | if (!arr) | 308 | if (!arr) |
| 309 | return -ENOMEM; | 309 | return -ENOMEM; |
| 310 | 310 | ||
| @@ -648,7 +648,7 @@ static int acpi_pci_root_add(struct acpi_device *device, · 647 unmodified lines | |||
| 648 | bool hotadd = system_state == SYSTEM_RUNNING; | 648 | bool hotadd = system_state == SYSTEM_RUNNING; |
| 649 | const char *acpi_hid; | 649 | const char *acpi_hid; |
| 650 | 650 | ||
| 651 | root = kzalloc_obj(struct acpi_pci_root, GFP_KERNEL); | 651 | root = kzalloc_obj(struct acpi_pci_root); |
| 652 | if (!root) | 652 | if (!root) |
| 653 | return -ENOMEM; | 653 | return -ENOMEM; |
| 654 | 654 | ||
| @@ -104,7 +104,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) · 103 unmodified lines | |||
| 104 | return AE_OK; | 104 | return AE_OK; |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | slot = kmalloc_obj(*slot, GFP_KERNEL); | 107 | slot = kmalloc_obj(*slot); |
| 108 | if (!slot) | 108 | if (!slot) |
| 109 | return AE_OK; | 109 | return AE_OK; |
| 110 | 110 | ||
| @@ -104,7 +104,7 @@ static int acpi_power_resources_list_add(acpi_handle handle, · 103 unmodified lines | |||
| 104 | if (!resource || !list) | 104 | if (!resource || !list) |
| 105 | return -EINVAL; | 105 | return -EINVAL; |
| 106 | 106 | ||
| 107 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 107 | entry = kzalloc_obj(*entry); |
| 108 | if (!entry) | 108 | if (!entry) |
| 109 | return -ENOMEM; | 109 | return -ENOMEM; |
| 110 | 110 | ||
| @@ -265,7 +265,7 @@ acpi_power_resource_add_dependent(struct acpi_power_resource *resource, · 154 unmodified lines | |||
| 265 | goto unlock; | 265 | goto unlock; |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | dep = kzalloc_obj(*dep, GFP_KERNEL); | 268 | dep = kzalloc_obj(*dep); |
| 269 | if (!dep) { | 269 | if (!dep) { |
| 270 | ret = -ENOMEM; | 270 | ret = -ENOMEM; |
| 271 | goto unlock; | 271 | goto unlock; |
| @@ -945,7 +945,7 @@ struct acpi_device *acpi_add_power_resource(acpi_handle handle) · 673 unmodified lines | |||
| 945 | if (device) | 945 | if (device) |
| 946 | return device; | 946 | return device; |
| 947 | 947 | ||
| 948 | resource = kzalloc_obj(*resource, GFP_KERNEL); | 948 | resource = kzalloc_obj(*resource); |
| 949 | if (!resource) | 949 | if (!resource) |
| 950 | return NULL; | 950 | return NULL; |
| 951 | 951 | ||
| @@ -135,7 +135,7 @@ acpi_parse_prmt(union acpi_subtable_headers *header, const unsigned long end) · 134 unmodified lines | |||
| 135 | goto parse_prmt_out4; | 135 | goto parse_prmt_out4; |
| 136 | memmove(tm->mmio_info, temp_mmio, mmio_range_size); | 136 | memmove(tm->mmio_info, temp_mmio, mmio_range_size); |
| 137 | } else { | 137 | } else { |
| 138 | tm->mmio_info = kmalloc_obj(*tm->mmio_info, GFP_KERNEL); | 138 | tm->mmio_info = kmalloc_obj(*tm->mmio_info); |
| 139 | if (!tm->mmio_info) | 139 | if (!tm->mmio_info) |
| 140 | goto parse_prmt_out2; | 140 | goto parse_prmt_out2; |
| 141 | 141 | ||
| @@ -910,7 +910,7 @@ static int acpi_processor_evaluate_lpi(acpi_handle handle, · 909 unmodified lines | |||
| 910 | goto end; | 910 | goto end; |
| 911 | } | 911 | } |
| 912 | 912 | ||
| 913 | lpi_state = kzalloc_objs(*lpi_state, pkg_count, GFP_KERNEL); | 913 | lpi_state = kzalloc_objs(*lpi_state, pkg_count); |
| 914 | if (!lpi_state) { | 914 | if (!lpi_state) { |
| 915 | ret = -ENOMEM; | 915 | ret = -ENOMEM; |
| 916 | goto end; | 916 | goto end; |
| @@ -1417,7 +1417,7 @@ void acpi_processor_power_init(struct acpi_processor *pr) · 500 unmodified lines | |||
| 1417 | if (!pr->flags.power) | 1417 | if (!pr->flags.power) |
| 1418 | return; | 1418 | return; |
| 1419 | 1419 | ||
| 1420 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 1420 | dev = kzalloc_obj(*dev); |
| 1421 | if (!dev) | 1421 | if (!dev) |
| 1422 | return; | 1422 | return; |
| 1423 | 1423 | ||
| @@ -32,11 +32,11 @@ static struct acpi_object_list *acpi_processor_alloc_pdc(void) · 31 unmodified lines | |||
| 32 | u32 *buf; | 32 | u32 *buf; |
| 33 | 33 | ||
| 34 | /* allocate and initialize pdc. It will be used later. */ | 34 | /* allocate and initialize pdc. It will be used later. */ |
| 35 | obj_list = kmalloc_obj(struct acpi_object_list, GFP_KERNEL); | 35 | obj_list = kmalloc_obj(struct acpi_object_list); |
| 36 | if (!obj_list) | 36 | if (!obj_list) |
| 37 | goto out; | 37 | goto out; |
| 38 | 38 | ||
| 39 | obj = kmalloc_obj(union acpi_object, GFP_KERNEL); | 39 | obj = kmalloc_obj(union acpi_object); |
| 40 | if (!obj) { | 40 | if (!obj) { |
| 41 | kfree(obj_list); | 41 | kfree(obj_list); |
| 42 | goto out; | 42 | goto out; |
| @@ -89,7 +89,7 @@ static bool acpi_nondev_subnode_extract(union acpi_object *desc, · 88 unmodified lines | |||
| 89 | if (acpi_graph_ignore_port(handle)) | 89 | if (acpi_graph_ignore_port(handle)) |
| 90 | return false; | 90 | return false; |
| 91 | 91 | ||
| 92 | dn = kzalloc_obj(*dn, GFP_KERNEL); | 92 | dn = kzalloc_obj(*dn); |
| 93 | if (!dn) | 93 | if (!dn) |
| 94 | return false; | 94 | return false; |
| 95 | 95 | ||
| @@ -383,7 +383,7 @@ acpi_data_add_props(struct acpi_device_data *data, const guid_t *guid, · 287 unmodified lines | |||
| 383 | { | 383 | { |
| 384 | struct acpi_device_properties *props; | 384 | struct acpi_device_properties *props; |
| 385 | 385 | ||
| 386 | props = kzalloc_obj(*props, GFP_KERNEL); | 386 | props = kzalloc_obj(*props); |
| 387 | if (props) { | 387 | if (props) { |
| 388 | INIT_LIST_HEAD(&props->list); | 388 | INIT_LIST_HEAD(&props->list); |
| 389 | props->guid = guid; | 389 | props->guid = guid; |
| @@ -136,7 +136,7 @@ static int __init riscv_acpi_register_ext_intc(u32 gsi_base, u32 nr_irqs, u32 nr · 135 unmodified lines | |||
| 136 | { | 136 | { |
| 137 | struct riscv_ext_intc_list *ext_intc_element, *node, *prev; | 137 | struct riscv_ext_intc_list *ext_intc_element, *node, *prev; |
| 138 | 138 | ||
| 139 | ext_intc_element = kzalloc_obj(*ext_intc_element, GFP_KERNEL); | 139 | ext_intc_element = kzalloc_obj(*ext_intc_element); |
| 140 | if (!ext_intc_element) | 140 | if (!ext_intc_element) |
| 141 | return -ENOMEM; | 141 | return -ENOMEM; |
| 142 | 142 | ||
| @@ -636,7 +636,7 @@ static int acpi_sbs_probe(struct platform_device *pdev) · 635 unmodified lines | |||
| 636 | int result = 0; | 636 | int result = 0; |
| 637 | int id; | 637 | int id; |
| 638 | 638 | ||
| 639 | sbs = kzalloc_obj(struct acpi_sbs, GFP_KERNEL); | 639 | sbs = kzalloc_obj(struct acpi_sbs); |
| 640 | if (!sbs) { | 640 | if (!sbs) { |
| 641 | result = -ENOMEM; | 641 | result = -ENOMEM; |
| 642 | goto end; | 642 | goto end; |
| @@ -254,7 +254,7 @@ static int acpi_smbus_hc_probe(struct platform_device *pdev) · 253 unmodified lines | |||
| 254 | strscpy(acpi_device_name(device), ACPI_SMB_HC_DEVICE_NAME); | 254 | strscpy(acpi_device_name(device), ACPI_SMB_HC_DEVICE_NAME); |
| 255 | strscpy(acpi_device_class(device), ACPI_SMB_HC_CLASS); | 255 | strscpy(acpi_device_class(device), ACPI_SMB_HC_CLASS); |
| 256 | 256 | ||
| 257 | hc = kzalloc_obj(struct acpi_smb_hc, GFP_KERNEL); | 257 | hc = kzalloc_obj(struct acpi_smb_hc); |
| 258 | if (!hc) | 258 | if (!hc) |
| 259 | return -ENOMEM; | 259 | return -ENOMEM; |
| 260 | mutex_init(&hc->lock); | 260 | mutex_init(&hc->lock); |
| @@ -1330,7 +1330,7 @@ static void acpi_add_id(struct acpi_device_pnp *pnp, const char *dev_id) · 1329 unmodified lines | |||
| 1330 | { | 1330 | { |
| 1331 | struct acpi_hardware_id *id; | 1331 | struct acpi_hardware_id *id; |
| 1332 | 1332 | ||
| 1333 | id = kmalloc_obj(*id, GFP_KERNEL); | 1333 | id = kmalloc_obj(*id); |
| 1334 | if (!id) | 1334 | if (!id) |
| 1335 | return; | 1335 | return; |
| 1336 | 1336 | ||
| @@ -1568,7 +1568,7 @@ int acpi_dma_get_range(struct device *dev, const struct bus_dma_region **map) · 231 unmodified lines | |||
| 1568 | 1568 | ||
| 1569 | ret = acpi_dev_get_dma_resources(adev, &list); | 1569 | ret = acpi_dev_get_dma_resources(adev, &list); |
| 1570 | if (ret > 0) { | 1570 | if (ret > 0) { |
| 1571 | r = kzalloc_objs(*r, ret + 1, GFP_KERNEL); | 1571 | r = kzalloc_objs(*r, ret + 1); |
| 1572 | if (!r) { | 1572 | if (!r) { |
| 1573 | ret = -ENOMEM; | 1573 | ret = -ENOMEM; |
| 1574 | goto out; | 1574 | goto out; |
| @@ -1863,7 +1863,7 @@ static int acpi_add_single_object(struct acpi_device **child, · 288 unmodified lines | |||
| 1863 | bool release_dep_lock = false; | 1863 | bool release_dep_lock = false; |
| 1864 | int result; | 1864 | int result; |
| 1865 | 1865 | ||
| 1866 | device = kzalloc_obj(struct acpi_device, GFP_KERNEL); | 1866 | device = kzalloc_obj(struct acpi_device); |
| 1867 | if (!device) | 1867 | if (!device) |
| 1868 | return -ENOMEM; | 1868 | return -ENOMEM; |
| 1869 | 1869 | ||
| @@ -2028,7 +2028,7 @@ int acpi_scan_add_dep(acpi_handle handle, struct acpi_handle_list *dep_devices) · 158 unmodified lines | |||
| 2028 | if (skip) | 2028 | if (skip) |
| 2029 | continue; | 2029 | continue; |
| 2030 | 2030 | ||
| 2031 | dep = kzalloc_obj(*dep, GFP_KERNEL); | 2031 | dep = kzalloc_obj(*dep); |
| 2032 | if (!dep) | 2032 | if (!dep) |
| 2033 | continue; | 2033 | continue; |
| 2034 | 2034 | ||
| @@ -2225,7 +2225,7 @@ static void acpi_default_enumeration(struct acpi_device *device) · 190 unmodified lines | |||
| 2225 | * other device objects have been processed and PCI has claimed | 2225 | * other device objects have been processed and PCI has claimed |
| 2226 | * BARs in case there are resource conflicts. | 2226 | * BARs in case there are resource conflicts. |
| 2227 | */ | 2227 | */ |
| 2228 | sd = kmalloc_obj(*sd, GFP_KERNEL); | 2228 | sd = kmalloc_obj(*sd); |
| 2229 | if (sd) { | 2229 | if (sd) { |
| 2230 | sd->adev = device; | 2230 | sd->adev = device; |
| 2231 | list_add_tail(&sd->node, &acpi_scan_system_dev_list); | 2231 | list_add_tail(&sd->node, &acpi_scan_system_dev_list); |
| @@ -2899,7 +2899,7 @@ void acpi_scan_table_notify(void) · 667 unmodified lines | |||
| 2899 | if (!acpi_scan_initialized) | 2899 | if (!acpi_scan_initialized) |
| 2900 | return; | 2900 | return; |
| 2901 | 2901 | ||
| 2902 | work = kmalloc_obj(*work, GFP_KERNEL); | 2902 | work = kmalloc_obj(*work); |
| 2903 | if (!work) | 2903 | if (!work) |
| 2904 | return; | 2904 | return; |
| 2905 | 2905 | ||
| @@ -385,7 +385,7 @@ acpi_status acpi_sysfs_table_handler(u32 event, void *table, void *context) · 384 unmodified lines | |||
| 385 | 385 | ||
| 386 | switch (event) { | 386 | switch (event) { |
| 387 | case ACPI_TABLE_EVENT_INSTALL: | 387 | case ACPI_TABLE_EVENT_INSTALL: |
| 388 | table_attr = kzalloc_obj(*table_attr, GFP_KERNEL); | 388 | table_attr = kzalloc_obj(*table_attr); |
| 389 | if (!table_attr) | 389 | if (!table_attr) |
| 390 | return AE_NO_MEMORY; | 390 | return AE_NO_MEMORY; |
| 391 | 391 | ||
| @@ -491,7 +491,7 @@ static int acpi_table_data_init(struct acpi_table_header *th) · 99 unmodified lines | |||
| 491 | 491 | ||
| 492 | for (i = 0; i < NUM_ACPI_DATA_OBJS; i++) { | 492 | for (i = 0; i < NUM_ACPI_DATA_OBJS; i++) { |
| 493 | if (ACPI_COMPARE_NAMESEG(th->signature, acpi_data_objs[i].name)) { | 493 | if (ACPI_COMPARE_NAMESEG(th->signature, acpi_data_objs[i].name)) { |
| 494 | data_attr = kzalloc_obj(*data_attr, GFP_KERNEL); | 494 | data_attr = kzalloc_obj(*data_attr); |
| 495 | if (!data_attr) | 495 | if (!data_attr) |
| 496 | return -ENOMEM; | 496 | return -ENOMEM; |
| 497 | sysfs_attr_init(&data_attr->attr.attr); | 497 | sysfs_attr_init(&data_attr->attr.attr); |
| @@ -532,7 +532,7 @@ static int acpi_tables_sysfs_init(void) · 34 unmodified lines | |||
| 532 | if (ACPI_FAILURE(status)) | 532 | if (ACPI_FAILURE(status)) |
| 533 | continue; | 533 | continue; |
| 534 | 534 | ||
| 535 | table_attr = kzalloc_obj(*table_attr, GFP_KERNEL); | 535 | table_attr = kzalloc_obj(*table_attr); |
| 536 | if (!table_attr) | 536 | if (!table_attr) |
| 537 | return -ENOMEM; | 537 | return -ENOMEM; |
| 538 | 538 | ||
| @@ -864,11 +864,11 @@ void acpi_irq_stats_init(void) · 325 unmodified lines | |||
| 864 | num_gpes = acpi_current_gpe_count; | 864 | num_gpes = acpi_current_gpe_count; |
| 865 | num_counters = num_gpes + ACPI_NUM_FIXED_EVENTS + NUM_COUNTERS_EXTRA; | 865 | num_counters = num_gpes + ACPI_NUM_FIXED_EVENTS + NUM_COUNTERS_EXTRA; |
| 866 | 866 | ||
| 867 | all_attrs = kzalloc_objs(*all_attrs, num_counters + 1, GFP_KERNEL); | 867 | all_attrs = kzalloc_objs(*all_attrs, num_counters + 1); |
| 868 | if (all_attrs == NULL) | 868 | if (all_attrs == NULL) |
| 869 | return; | 869 | return; |
| 870 | 870 | ||
| 871 | all_counters = kzalloc_objs(*all_counters, num_counters, GFP_KERNEL); | 871 | all_counters = kzalloc_objs(*all_counters, num_counters); |
| 872 | if (all_counters == NULL) | 872 | if (all_counters == NULL) |
| 873 | goto fail; | 873 | goto fail; |
| 874 | 874 | ||
| @@ -876,7 +876,7 @@ void acpi_irq_stats_init(void) · 1 unmodified line | |||
| 876 | if (ACPI_FAILURE(status)) | 876 | if (ACPI_FAILURE(status)) |
| 877 | goto fail; | 877 | goto fail; |
| 878 | 878 | ||
| 879 | counter_attrs = kzalloc_objs(*counter_attrs, num_counters, GFP_KERNEL); | 879 | counter_attrs = kzalloc_objs(*counter_attrs, num_counters); |
| 880 | if (counter_attrs == NULL) | 880 | if (counter_attrs == NULL) |
| 881 | goto fail; | 881 | goto fail; |
| 882 | 882 | ||
| @@ -792,7 +792,7 @@ static int acpi_thermal_probe(struct platform_device *pdev) · 791 unmodified lines | |||
| 792 | if (!device) | 792 | if (!device) |
| 793 | return -EINVAL; | 793 | return -EINVAL; |
| 794 | 794 | ||
| 795 | tz = kzalloc_obj(struct acpi_thermal, GFP_KERNEL); | 795 | tz = kzalloc_obj(struct acpi_thermal); |
| 796 | if (!tz) | 796 | if (!tz) |
| 797 | return -ENOMEM; | 797 | return -ENOMEM; |
| 798 | 798 | ||
| @@ -365,7 +365,7 @@ bool acpi_evaluate_reference(acpi_handle handle, acpi_string pathname, · 364 unmodified lines | |||
| 365 | goto err; | 365 | goto err; |
| 366 | 366 | ||
| 367 | list->count = package->package.count; | 367 | list->count = package->package.count; |
| 368 | list->handles = kzalloc_objs(*list->handles, list->count, GFP_KERNEL); | 368 | list->handles = kzalloc_objs(*list->handles, list->count); |
| 369 | if (!list->handles) | 369 | if (!list->handles) |
| 370 | goto err_clear; | 370 | goto err_clear; |
| 371 | 371 | ||
| @@ -142,7 +142,7 @@ static struct viot_iommu * __init viot_get_iommu(unsigned int offset) · 141 unmodified lines | |||
| 142 | if (viot_check_bounds(hdr)) | 142 | if (viot_check_bounds(hdr)) |
| 143 | return NULL; | 143 | return NULL; |
| 144 | 144 | ||
| 145 | viommu = kzalloc_obj(*viommu, GFP_KERNEL); | 145 | viommu = kzalloc_obj(*viommu); |
| 146 | if (!viommu) | 146 | if (!viommu) |
| 147 | return NULL; | 147 | return NULL; |
| 148 | 148 | ||
| @@ -193,7 +193,7 @@ static int __init viot_parse_node(const struct acpi_viot_header *hdr) · 44 unmodified lines | |||
| 193 | hdr->type == ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO) | 193 | hdr->type == ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO) |
| 194 | return 0; | 194 | return 0; |
| 195 | 195 | ||
| 196 | ep = kzalloc_obj(*ep, GFP_KERNEL); | 196 | ep = kzalloc_obj(*ep); |
| 197 | if (!ep) | 197 | if (!ep) |
| 198 | return -ENOMEM; | 198 | return -ENOMEM; |
| 199 | 199 | ||
| @@ -120,7 +120,7 @@ int acpi_register_wakeup_handler(int wake_irq, bool (*wakeup)(void *context), · 119 unmodified lines | |||
| 120 | if (!acpi_sci_irq_valid() || wake_irq != acpi_sci_irq) | 120 | if (!acpi_sci_irq_valid() || wake_irq != acpi_sci_irq) |
| 121 | return 0; | 121 | return 0; |
| 122 | 122 | ||
| 123 | handler = kmalloc_obj(*handler, GFP_KERNEL); | 123 | handler = kmalloc_obj(*handler); |
| 124 | if (!handler) | 124 | if (!handler) |
| 125 | return -ENOMEM; | 125 | return -ENOMEM; |
| 126 | 126 | ||
| @@ -623,7 +623,7 @@ static int acpi_lpss_create_device(struct acpi_device *adev, · 622 unmodified lines | |||
| 623 | if (!dev_desc) | 623 | if (!dev_desc) |
| 624 | return -EINVAL; | 624 | return -EINVAL; |
| 625 | 625 | ||
| 626 | pdata = kzalloc_obj(*pdata, GFP_KERNEL); | 626 | pdata = kzalloc_obj(*pdata); |
| 627 | if (!pdata) | 627 | if (!pdata) |
| 628 | return -ENOMEM; | 628 | return -ENOMEM; |
| 629 | 629 | ||
| @@ -611,7 +611,7 @@ struct amba_device *amba_device_alloc(const char *name, resource_size_t base, · 610 unmodified lines | |||
| 611 | { | 611 | { |
| 612 | struct amba_device *dev; | 612 | struct amba_device *dev; |
| 613 | 613 | ||
| 614 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 614 | dev = kzalloc_obj(*dev); |
| 615 | if (dev) { | 615 | if (dev) { |
| 616 | amba_device_initialize(dev, name); | 616 | amba_device_initialize(dev, name); |
| 617 | dev->res.start = base; | 617 | dev->res.start = base; |
| @@ -795,7 +795,7 @@ static struct binder_node *binder_new_node(struct binder_proc *proc, · 794 unmodified lines | |||
| 795 | struct flat_binder_object *fp) | 795 | struct flat_binder_object *fp) |
| 796 | { | 796 | { |
| 797 | struct binder_node *node; | 797 | struct binder_node *node; |
| 798 | struct binder_node *new_node = kzalloc_obj(*node, GFP_KERNEL); | 798 | struct binder_node *new_node = kzalloc_obj(*node); |
| 799 | 799 | ||
| 800 | if (!new_node) | 800 | if (!new_node) |
| 801 | return NULL; | 801 | return NULL; |
| @@ -1469,7 +1469,7 @@ static int binder_inc_ref_for_node(struct binder_proc *proc, · 667 unmodified lines | |||
| 1469 | ref = binder_get_ref_for_node_olocked(proc, node, NULL); | 1469 | ref = binder_get_ref_for_node_olocked(proc, node, NULL); |
| 1470 | if (!ref) { | 1470 | if (!ref) { |
| 1471 | binder_proc_unlock(proc); | 1471 | binder_proc_unlock(proc); |
| 1472 | new_ref = kzalloc_obj(*ref, GFP_KERNEL); | 1472 | new_ref = kzalloc_obj(*ref); |
| 1473 | if (!new_ref) | 1473 | if (!new_ref) |
| 1474 | return -ENOMEM; | 1474 | return -ENOMEM; |
| 1475 | binder_proc_lock(proc); | 1475 | binder_proc_lock(proc); |
| @@ -2009,7 +2009,7 @@ static void binder_deferred_fd_close(int fd) · 533 unmodified lines | |||
| 2009 | { | 2009 | { |
| 2010 | struct binder_task_work_cb *twcb; | 2010 | struct binder_task_work_cb *twcb; |
| 2011 | 2011 | ||
| 2012 | twcb = kzalloc_obj(*twcb, GFP_KERNEL); | 2012 | twcb = kzalloc_obj(*twcb); |
| 2013 | if (!twcb) | 2013 | if (!twcb) |
| 2014 | return; | 2014 | return; |
| 2015 | init_task_work(&twcb->twork, binder_do_fd_close); | 2015 | init_task_work(&twcb->twork, binder_do_fd_close); |
| @@ -2386,7 +2386,7 @@ static int binder_translate_fd(u32 fd, binder_size_t fd_offset, · 370 unmodified lines | |||
| 2386 | * of the fd in the target needs to be done from a | 2386 | * of the fd in the target needs to be done from a |
| 2387 | * target thread. | 2387 | * target thread. |
| 2388 | */ | 2388 | */ |
| 2389 | fixup = kzalloc_obj(*fixup, GFP_KERNEL); | 2389 | fixup = kzalloc_obj(*fixup); |
| 2390 | if (!fixup) { | 2390 | if (!fixup) { |
| 2391 | ret = -ENOMEM; | 2391 | ret = -ENOMEM; |
| 2392 | goto err_alloc; | 2392 | goto err_alloc; |
| @@ -2579,7 +2579,7 @@ static void binder_cleanup_deferred_txn_lists(struct list_head *sgc_head, · 186 unmodified lines | |||
| 2579 | static int binder_defer_copy(struct list_head *sgc_head, binder_size_t offset, | 2579 | static int binder_defer_copy(struct list_head *sgc_head, binder_size_t offset, |
| 2580 | const void __user *sender_uaddr, size_t length) | 2580 | const void __user *sender_uaddr, size_t length) |
| 2581 | { | 2581 | { |
| 2582 | struct binder_sg_copy *bc = kzalloc_obj(*bc, GFP_KERNEL); | 2582 | struct binder_sg_copy *bc = kzalloc_obj(*bc); |
| 2583 | 2583 | ||
| 2584 | if (!bc) | 2584 | if (!bc) |
| 2585 | return -ENOMEM; | 2585 | return -ENOMEM; |
| @@ -2622,7 +2622,7 @@ static int binder_defer_copy(struct list_head *sgc_head, binder_size_t offset, · 36 unmodified lines | |||
| 2622 | static int binder_add_fixup(struct list_head *pf_head, binder_size_t offset, | 2622 | static int binder_add_fixup(struct list_head *pf_head, binder_size_t offset, |
| 2623 | binder_uintptr_t fixup, size_t skip_size) | 2623 | binder_uintptr_t fixup, size_t skip_size) |
| 2624 | { | 2624 | { |
| 2625 | struct binder_ptr_fixup *pf = kzalloc_obj(*pf, GFP_KERNEL); | 2625 | struct binder_ptr_fixup *pf = kzalloc_obj(*pf); |
| 2626 | struct binder_ptr_fixup *tmppf; | 2626 | struct binder_ptr_fixup *tmppf; |
| 2627 | 2627 | ||
| 2628 | if (!pf) | 2628 | if (!pf) |
| @@ -3101,7 +3101,7 @@ static void binder_transaction(struct binder_proc *proc, · 472 unmodified lines | |||
| 3101 | binder_set_extended_error(&thread->ee, t_debug_id, BR_OK, 0); | 3101 | binder_set_extended_error(&thread->ee, t_debug_id, BR_OK, 0); |
| 3102 | binder_inner_proc_unlock(proc); | 3102 | binder_inner_proc_unlock(proc); |
| 3103 | 3103 | ||
| 3104 | t = kzalloc_obj(*t, GFP_KERNEL); | 3104 | t = kzalloc_obj(*t); |
| 3105 | if (!t) { | 3105 | if (!t) { |
| 3106 | binder_txn_error("%d:%d cannot allocate transaction\n", | 3106 | binder_txn_error("%d:%d cannot allocate transaction\n", |
| 3107 | thread->pid, proc->pid); | 3107 | thread->pid, proc->pid); |
| @@ -3320,7 +3320,7 @@ static void binder_transaction(struct binder_proc *proc, · 212 unmodified lines | |||
| 3320 | e->to_thread = target_thread->pid; | 3320 | e->to_thread = target_thread->pid; |
| 3321 | e->to_proc = target_proc->pid; | 3321 | e->to_proc = target_proc->pid; |
| 3322 | 3322 | ||
| 3323 | tcomplete = kzalloc_obj(*tcomplete, GFP_KERNEL); | 3323 | tcomplete = kzalloc_obj(*tcomplete); |
| 3324 | if (tcomplete == NULL) { | 3324 | if (tcomplete == NULL) { |
| 3325 | binder_txn_error("%d:%d cannot allocate work for transaction\n", | 3325 | binder_txn_error("%d:%d cannot allocate work for transaction\n", |
| 3326 | thread->pid, proc->pid); | 3326 | thread->pid, proc->pid); |
| @@ -3926,7 +3926,7 @@ binder_request_freeze_notification(struct binder_proc *proc, · 599 unmodified lines | |||
| 3926 | struct binder_ref_freeze *freeze; | 3926 | struct binder_ref_freeze *freeze; |
| 3927 | struct binder_ref *ref; | 3927 | struct binder_ref *ref; |
| 3928 | 3928 | ||
| 3929 | freeze = kzalloc_obj(*freeze, GFP_KERNEL); | 3929 | freeze = kzalloc_obj(*freeze); |
| 3930 | if (!freeze) | 3930 | if (!freeze) |
| 3931 | return -ENOMEM; | 3931 | return -ENOMEM; |
| 3932 | binder_proc_lock(proc); | 3932 | binder_proc_lock(proc); |
| @@ -4394,7 +4394,7 @@ static int binder_thread_write(struct binder_proc *proc, · 461 unmodified lines | |||
| 4394 | * Allocate memory for death notification | 4394 | * Allocate memory for death notification |
| 4395 | * before taking lock | 4395 | * before taking lock |
| 4396 | */ | 4396 | */ |
| 4397 | death = kzalloc_obj(*death, GFP_KERNEL); | 4397 | death = kzalloc_obj(*death); |
| 4398 | if (death == NULL) { | 4398 | if (death == NULL) { |
| 4399 | WARN_ON(thread->return_error.cmd != | 4399 | WARN_ON(thread->return_error.cmd != |
| 4400 | BR_OK); | 4400 | BR_OK); |
| @@ -5293,7 +5293,7 @@ static struct binder_thread *binder_get_thread(struct binder_proc *proc) · 892 unmodified lines | |||
| 5293 | thread = binder_get_thread_ilocked(proc, NULL); | 5293 | thread = binder_get_thread_ilocked(proc, NULL); |
| 5294 | binder_inner_proc_unlock(proc); | 5294 | binder_inner_proc_unlock(proc); |
| 5295 | if (!thread) { | 5295 | if (!thread) { |
| 5296 | new_thread = kzalloc_obj(*thread, GFP_KERNEL); | 5296 | new_thread = kzalloc_obj(*thread); |
| 5297 | if (new_thread == NULL) | 5297 | if (new_thread == NULL) |
| 5298 | return NULL; | 5298 | return NULL; |
| 5299 | binder_inner_proc_lock(proc); | 5299 | binder_inner_proc_lock(proc); |
| @@ -6060,7 +6060,7 @@ static int binder_open(struct inode *nodp, struct file *filp) · 760 unmodified lines | |||
| 6060 | binder_debug(BINDER_DEBUG_OPEN_CLOSE, "%s: %d:%d\n", __func__, | 6060 | binder_debug(BINDER_DEBUG_OPEN_CLOSE, "%s: %d:%d\n", __func__, |
| 6061 | current->tgid, current->pid); | 6061 | current->tgid, current->pid); |
| 6062 | 6062 | ||
| 6063 | proc = kzalloc_obj(*proc, GFP_KERNEL); | 6063 | proc = kzalloc_obj(*proc); |
| 6064 | if (proc == NULL) | 6064 | if (proc == NULL) |
| 6065 | return -ENOMEM; | 6065 | return -ENOMEM; |
| 6066 | 6066 | ||
| @@ -7064,7 +7064,7 @@ static int __init init_binder_device(const char *name) · 997 unmodified lines | |||
| 7064 | int ret; | 7064 | int ret; |
| 7065 | struct binder_device *binder_device; | 7065 | struct binder_device *binder_device; |
| 7066 | 7066 | ||
| 7067 | binder_device = kzalloc_obj(*binder_device, GFP_KERNEL); | 7067 | binder_device = kzalloc_obj(*binder_device); |
| 7068 | if (!binder_device) | 7068 | if (!binder_device) |
| 7069 | return -ENOMEM; | 7069 | return -ENOMEM; |
| 7070 | 7070 | ||
| @@ -145,7 +145,7 @@ static int binderfs_binder_device_create(struct inode *ref_inode, · 144 unmodified lines | |||
| 145 | mutex_unlock(&binderfs_minors_mutex); | 145 | mutex_unlock(&binderfs_minors_mutex); |
| 146 | 146 | ||
| 147 | ret = -ENOMEM; | 147 | ret = -ENOMEM; |
| 148 | device = kzalloc_obj(*device, GFP_KERNEL); | 148 | device = kzalloc_obj(*device); |
| 149 | if (!device) | 149 | if (!device) |
| 150 | goto err; | 150 | goto err; |
| 151 | 151 | ||
| @@ -387,7 +387,7 @@ static int binderfs_binder_ctl_create(struct super_block *sb) · 235 unmodified lines | |||
| 387 | bool use_reserve = true; | 387 | bool use_reserve = true; |
| 388 | #endif | 388 | #endif |
| 389 | 389 | ||
| 390 | device = kzalloc_obj(*device, GFP_KERNEL); | 390 | device = kzalloc_obj(*device); |
| 391 | if (!device) | 391 | if (!device) |
| 392 | return -ENOMEM; | 392 | return -ENOMEM; |
| 393 | 393 | ||
| @@ -642,7 +642,7 @@ static int binderfs_fill_super(struct super_block *sb, struct fs_context *fc) · 248 unmodified lines | |||
| 642 | sb->s_op = &binderfs_super_ops; | 642 | sb->s_op = &binderfs_super_ops; |
| 643 | sb->s_time_gran = 1; | 643 | sb->s_time_gran = 1; |
| 644 | 644 | ||
| 645 | sb->s_fs_info = kzalloc_obj(struct binderfs_info, GFP_KERNEL); | 645 | sb->s_fs_info = kzalloc_obj(struct binderfs_info); |
| 646 | if (!sb->s_fs_info) | 646 | if (!sb->s_fs_info) |
| 647 | return -ENOMEM; | 647 | return -ENOMEM; |
| 648 | info = sb->s_fs_info; | 648 | info = sb->s_fs_info; |
| @@ -721,7 +721,7 @@ static int binderfs_init_fs_context(struct fs_context *fc) · 72 unmodified lines | |||
| 721 | { | 721 | { |
| 722 | struct binderfs_mount_opts *ctx; | 722 | struct binderfs_mount_opts *ctx; |
| 723 | 723 | ||
| 724 | ctx = kzalloc_obj(struct binderfs_mount_opts, GFP_KERNEL); | 724 | ctx = kzalloc_obj(struct binderfs_mount_opts); |
| 725 | if (!ctx) | 725 | if (!ctx) |
| 726 | return -ENOMEM; | 726 | return -ENOMEM; |
| 727 | 727 | ||
| @@ -289,7 +289,7 @@ static struct page *binder_page_alloc(struct binder_alloc *alloc, · 288 unmodified lines | |||
| 289 | return NULL; | 289 | return NULL; |
| 290 | 290 | ||
| 291 | /* allocate and install shrinker metadata under page->private */ | 291 | /* allocate and install shrinker metadata under page->private */ |
| 292 | mdata = kzalloc_obj(*mdata, GFP_KERNEL); | 292 | mdata = kzalloc_obj(*mdata); |
| 293 | if (!mdata) { | 293 | if (!mdata) { |
| 294 | __free_page(page); | 294 | __free_page(page); |
| 295 | return NULL; | 295 | return NULL; |
| @@ -672,7 +672,7 @@ struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc, · 376 unmodified lines | |||
| 672 | } | 672 | } |
| 673 | 673 | ||
| 674 | /* Preallocate the next buffer */ | 674 | /* Preallocate the next buffer */ |
| 675 | next = kzalloc_obj(*next, GFP_KERNEL); | 675 | next = kzalloc_obj(*next); |
| 676 | if (!next) | 676 | if (!next) |
| 677 | return ERR_PTR(-ENOMEM); | 677 | return ERR_PTR(-ENOMEM); |
| 678 | 678 | ||
| @@ -924,7 +924,7 @@ int binder_alloc_mmap_handler(struct binder_alloc *alloc, · 245 unmodified lines | |||
| 924 | goto err_alloc_pages_failed; | 924 | goto err_alloc_pages_failed; |
| 925 | } | 925 | } |
| 926 | 926 | ||
| 927 | buffer = kzalloc_obj(*buffer, GFP_KERNEL); | 927 | buffer = kzalloc_obj(*buffer); |
| 928 | if (!buffer) { | 928 | if (!buffer) { |
| 929 | ret = -ENOMEM; | 929 | ret = -ENOMEM; |
| 930 | failure_string = "alloc buffer struct"; | 930 | failure_string = "alloc buffer struct"; |
| @@ -145,7 +145,7 @@ static int binderfs_binder_device_create(struct inode *ref_inode, · 144 unmodified lines | |||
| 145 | mutex_unlock(&binderfs_minors_mutex); | 145 | mutex_unlock(&binderfs_minors_mutex); |
| 146 | 146 | ||
| 147 | ret = -ENOMEM; | 147 | ret = -ENOMEM; |
| 148 | device = kzalloc_obj(*device, GFP_KERNEL); | 148 | device = kzalloc_obj(*device); |
| 149 | if (!device) | 149 | if (!device) |
| 150 | goto err; | 150 | goto err; |
| 151 | 151 | ||
| @@ -396,7 +396,7 @@ static int binderfs_binder_ctl_create(struct super_block *sb) · 244 unmodified lines | |||
| 396 | bool use_reserve = true; | 396 | bool use_reserve = true; |
| 397 | #endif | 397 | #endif |
| 398 | 398 | ||
| 399 | device = kzalloc_obj(*device, GFP_KERNEL); | 399 | device = kzalloc_obj(*device); |
| 400 | if (!device) | 400 | if (!device) |
| 401 | return -ENOMEM; | 401 | return -ENOMEM; |
| 402 | 402 | ||
| @@ -638,7 +638,7 @@ static int binderfs_fill_super(struct super_block *sb, struct fs_context *fc) · 235 unmodified lines | |||
| 638 | sb->s_op = &binderfs_super_ops; | 638 | sb->s_op = &binderfs_super_ops; |
| 639 | sb->s_time_gran = 1; | 639 | sb->s_time_gran = 1; |
| 640 | 640 | ||
| 641 | sb->s_fs_info = kzalloc_obj(struct binderfs_info, GFP_KERNEL); | 641 | sb->s_fs_info = kzalloc_obj(struct binderfs_info); |
| 642 | if (!sb->s_fs_info) | 642 | if (!sb->s_fs_info) |
| 643 | return -ENOMEM; | 643 | return -ENOMEM; |
| 644 | info = sb->s_fs_info; | 644 | info = sb->s_fs_info; |
| @@ -717,7 +717,7 @@ static int binderfs_init_fs_context(struct fs_context *fc) · 72 unmodified lines | |||
| 717 | { | 717 | { |
| 718 | struct binderfs_mount_opts *ctx; | 718 | struct binderfs_mount_opts *ctx; |
| 719 | 719 | ||
| 720 | ctx = kzalloc_obj(struct binderfs_mount_opts, GFP_KERNEL); | 720 | ctx = kzalloc_obj(struct binderfs_mount_opts); |
| 721 | if (!ctx) | 721 | if (!ctx) |
| 722 | return -ENOMEM; | 722 | return -ENOMEM; |
| 723 | 723 | ||
| @@ -194,7 +194,7 @@ void ata_acpi_bind_port(struct ata_port *ap) · 193 unmodified lines | |||
| 194 | if (!adev || adev->hp) | 194 | if (!adev || adev->hp) |
| 195 | return; | 195 | return; |
| 196 | 196 | ||
| 197 | context = kzalloc_obj(*context, GFP_KERNEL); | 197 | context = kzalloc_obj(*context); |
| 198 | if (!context) | 198 | if (!context) |
| 199 | return; | 199 | return; |
| 200 | 200 | ||
| @@ -236,7 +236,7 @@ void ata_acpi_bind_dev(struct ata_device *dev) · 35 unmodified lines | |||
| 236 | if (!adev || adev->hp) | 236 | if (!adev || adev->hp) |
| 237 | return; | 237 | return; |
| 238 | 238 | ||
| 239 | context = kzalloc_obj(*context, GFP_KERNEL); | 239 | context = kzalloc_obj(*context); |
| 240 | if (!context) | 240 | if (!context) |
| 241 | return; | 241 | return; |
| 242 | 242 | ||
| @@ -2557,7 +2557,7 @@ static int ata_dev_init_cdl_resources(struct ata_device *dev) · 2556 unmodified lines | |||
| 2557 | unsigned int err_mask; | 2557 | unsigned int err_mask; |
| 2558 | 2558 | ||
| 2559 | if (!cdl) { | 2559 | if (!cdl) { |
| 2560 | cdl = kzalloc_obj(*cdl, GFP_KERNEL); | 2560 | cdl = kzalloc_obj(*cdl); |
| 2561 | if (!cdl) | 2561 | if (!cdl) |
| 2562 | return -ENOMEM; | 2562 | return -ENOMEM; |
| 2563 | dev->cdl = cdl; | 2563 | dev->cdl = cdl; |
| @@ -5638,7 +5638,7 @@ struct ata_port *ata_port_alloc(struct ata_host *host) · 3074 unmodified lines | |||
| 5638 | struct ata_port *ap; | 5638 | struct ata_port *ap; |
| 5639 | int id; | 5639 | int id; |
| 5640 | 5640 | ||
| 5641 | ap = kzalloc_obj(*ap, GFP_KERNEL); | 5641 | ap = kzalloc_obj(*ap); |
| 5642 | if (!ap) | 5642 | if (!ap) |
| 5643 | return NULL; | 5643 | return NULL; |
| 5644 | 5644 | ||
| @@ -6714,7 +6714,7 @@ static void __init ata_parse_force_param(void) · 1069 unmodified lines | |||
| 6714 | if (*p == ',') | 6714 | if (*p == ',') |
| 6715 | size++; | 6715 | size++; |
| 6716 | 6716 | ||
| 6717 | ata_force_tbl = kzalloc_objs(ata_force_tbl[0], size, GFP_KERNEL); | 6717 | ata_force_tbl = kzalloc_objs(ata_force_tbl[0], size); |
| 6718 | if (!ata_force_tbl) { | 6718 | if (!ata_force_tbl) { |
| 6719 | printk(KERN_WARNING "ata: failed to extend force table, " | 6719 | printk(KERN_WARNING "ata: failed to extend force table, " |
| 6720 | "libata.force ignored\n"); | 6720 | "libata.force ignored\n"); |
| @@ -849,7 +849,7 @@ int ata_slave_link_init(struct ata_port *ap) · 848 unmodified lines | |||
| 849 | WARN_ON(ap->slave_link); | 849 | WARN_ON(ap->slave_link); |
| 850 | WARN_ON(ap->flags & ATA_FLAG_PMP); | 850 | WARN_ON(ap->flags & ATA_FLAG_PMP); |
| 851 | 851 | ||
| 852 | link = kzalloc_obj(*link, GFP_KERNEL); | 852 | link = kzalloc_obj(*link); |
| 853 | if (!link) | 853 | if (!link) |
| 854 | return -ENOMEM; | 854 | return -ENOMEM; |
| 855 | 855 | ||
| @@ -758,7 +758,7 @@ struct scsi_transport_template *ata_attach_transport(void) · 757 unmodified lines | |||
| 758 | struct ata_internal *i; | 758 | struct ata_internal *i; |
| 759 | int count; | 759 | int count; |
| 760 | 760 | ||
| 761 | i = kzalloc_obj(struct ata_internal, GFP_KERNEL); | 761 | i = kzalloc_obj(struct ata_internal); |
| 762 | if (!i) | 762 | if (!i) |
| 763 | return NULL; | 763 | return NULL; |
| 764 | 764 | ||
| @@ -274,7 +274,7 @@ void zpodd_init(struct ata_device *dev) · 273 unmodified lines | |||
| 274 | if (mech_type == ODD_MECH_TYPE_UNSUPPORTED) | 274 | if (mech_type == ODD_MECH_TYPE_UNSUPPORTED) |
| 275 | return; | 275 | return; |
| 276 | 276 | ||
| 277 | zpodd = kzalloc_obj(struct zpodd, GFP_KERNEL); | 277 | zpodd = kzalloc_obj(struct zpodd); |
| 278 | if (!zpodd) | 278 | if (!zpodd) |
| 279 | return; | 279 | return; |
| 280 | 280 | ||
| @@ -511,7 +511,7 @@ static struct pi_adapter *pi_init_one(struct parport *parport, · 510 unmodified lines | |||
| 511 | if (id < 0) | 511 | if (id < 0) |
| 512 | return NULL; | 512 | return NULL; |
| 513 | 513 | ||
| 514 | pi = kzalloc_obj(struct pi_adapter, GFP_KERNEL); | 514 | pi = kzalloc_obj(struct pi_adapter); |
| 515 | if (!pi) { | 515 | if (!pi) { |
| 516 | ida_free(&pata_parport_bus_dev_ids, id); | 516 | ida_free(&pata_parport_bus_dev_ids, id); |
| 517 | return NULL; | 517 | return NULL; |
| @@ -850,7 +850,7 @@ static int sata_dwc_port_start(struct ata_port *ap) · 849 unmodified lines | |||
| 850 | } | 850 | } |
| 851 | 851 | ||
| 852 | /* Allocate Port Struct */ | 852 | /* Allocate Port Struct */ |
| 853 | hsdevp = kzalloc_obj(*hsdevp, GFP_KERNEL); | 853 | hsdevp = kzalloc_obj(*hsdevp); |
| 854 | if (!hsdevp) { | 854 | if (!hsdevp) { |
| 855 | err = -ENOMEM; | 855 | err = -ENOMEM; |
| 856 | goto CLEANUP; | 856 | goto CLEANUP; |
| @@ -706,7 +706,7 @@ static int sata_fsl_port_start(struct ata_port *ap) · 705 unmodified lines | |||
| 706 | void __iomem *hcr_base = host_priv->hcr_base; | 706 | void __iomem *hcr_base = host_priv->hcr_base; |
| 707 | u32 temp; | 707 | u32 temp; |
| 708 | 708 | ||
| 709 | pp = kzalloc_obj(*pp, GFP_KERNEL); | 709 | pp = kzalloc_obj(*pp); |
| 710 | if (!pp) | 710 | if (!pp) |
| 711 | return -ENOMEM; | 711 | return -ENOMEM; |
| 712 | 712 | ||
| @@ -1451,7 +1451,7 @@ static int sata_fsl_probe(struct platform_device *ofdev) · 738 unmodified lines | |||
| 1451 | dev_dbg(&ofdev->dev, "@reset i/o = 0x%x\n", | 1451 | dev_dbg(&ofdev->dev, "@reset i/o = 0x%x\n", |
| 1452 | ioread32(csr_base + TRANSCFG)); | 1452 | ioread32(csr_base + TRANSCFG)); |
| 1453 | 1453 | ||
| 1454 | host_priv = kzalloc_obj(struct sata_fsl_host_priv, GFP_KERNEL); | 1454 | host_priv = kzalloc_obj(struct sata_fsl_host_priv); |
| 1455 | if (!host_priv) | 1455 | if (!host_priv) |
| 1456 | goto error_exit_with_cleanup; | 1456 | goto error_exit_with_cleanup; |
| 1457 | 1457 | ||
| @@ -148,7 +148,7 @@ static int __init adummy_init(void) · 147 unmodified lines | |||
| 148 | 148 | ||
| 149 | printk(KERN_ERR "adummy: version %s\n", DRV_VERSION); | 149 | printk(KERN_ERR "adummy: version %s\n", DRV_VERSION); |
| 150 | 150 | ||
| 151 | adummy_dev = kzalloc_obj(struct adummy_dev, GFP_KERNEL); | 151 | adummy_dev = kzalloc_obj(struct adummy_dev); |
| 152 | if (!adummy_dev) { | 152 | if (!adummy_dev) { |
| 153 | printk(KERN_ERR DEV_LABEL ": kzalloc() failed\n"); | 153 | printk(KERN_ERR DEV_LABEL ": kzalloc() failed\n"); |
| 154 | err = -ENOMEM; | 154 | err = -ENOMEM; |
| @@ -375,7 +375,7 @@ static int atmtcp_create(int itf,int persist,struct atm_dev **result) · 374 unmodified lines | |||
| 375 | struct atmtcp_dev_data *dev_data; | 375 | struct atmtcp_dev_data *dev_data; |
| 376 | struct atm_dev *dev; | 376 | struct atm_dev *dev; |
| 377 | 377 | ||
| 378 | dev_data = kmalloc_obj(*dev_data, GFP_KERNEL); | 378 | dev_data = kmalloc_obj(*dev_data); |
| 379 | if (!dev_data) | 379 | if (!dev_data) |
| 380 | return -ENOMEM; | 380 | return -ENOMEM; |
| 381 | 381 | ||
| @@ -1925,7 +1925,7 @@ static int eni_open(struct atm_vcc *vcc) · 1924 unmodified lines | |||
| 1925 | DPRINTK(DEV_LABEL "(itf %d): open %d.%d\n",vcc->dev->number,vcc->vpi, | 1925 | DPRINTK(DEV_LABEL "(itf %d): open %d.%d\n",vcc->dev->number,vcc->vpi, |
| 1926 | vcc->vci); | 1926 | vcc->vci); |
| 1927 | if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) { | 1927 | if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) { |
| 1928 | eni_vcc = kmalloc_obj(struct eni_vcc, GFP_KERNEL); | 1928 | eni_vcc = kmalloc_obj(struct eni_vcc); |
| 1929 | if (!eni_vcc) return -ENOMEM; | 1929 | if (!eni_vcc) return -ENOMEM; |
| 1930 | vcc->dev_data = eni_vcc; | 1930 | vcc->dev_data = eni_vcc; |
| 1931 | eni_vcc->tx = NULL; /* for eni_close after open_rx */ | 1931 | eni_vcc->tx = NULL; /* for eni_close after open_rx */ |
| @@ -2229,7 +2229,7 @@ static int eni_init_one(struct pci_dev *pci_dev, · 297 unmodified lines | |||
| 2229 | goto err_disable; | 2229 | goto err_disable; |
| 2230 | 2230 | ||
| 2231 | rc = -ENOMEM; | 2231 | rc = -ENOMEM; |
| 2232 | eni_dev = kmalloc_obj(struct eni_dev, GFP_KERNEL); | 2232 | eni_dev = kmalloc_obj(struct eni_dev); |
| 2233 | if (!eni_dev) | 2233 | if (!eni_dev) |
| 2234 | goto err_disable; | 2234 | goto err_disable; |
| 2235 | 2235 | ||
| @@ -1676,7 +1676,7 @@ fore200e_getstats(struct fore200e* fore200e) · 1675 unmodified lines | |||
| 1676 | u32 stats_dma_addr; | 1676 | u32 stats_dma_addr; |
| 1677 | 1677 | ||
| 1678 | if (fore200e->stats == NULL) { | 1678 | if (fore200e->stats == NULL) { |
| 1679 | fore200e->stats = kzalloc_obj(struct stats, GFP_KERNEL); | 1679 | fore200e->stats = kzalloc_obj(struct stats); |
| 1680 | if (fore200e->stats == NULL) | 1680 | if (fore200e->stats == NULL) |
| 1681 | return -ENOMEM; | 1681 | return -ENOMEM; |
| 1682 | } | 1682 | } |
| @@ -1955,7 +1955,7 @@ static int fore200e_irq_request(struct fore200e *fore200e) · 272 unmodified lines | |||
| 1955 | 1955 | ||
| 1956 | static int fore200e_get_esi(struct fore200e *fore200e) | 1956 | static int fore200e_get_esi(struct fore200e *fore200e) |
| 1957 | { | 1957 | { |
| 1958 | struct prom_data* prom = kzalloc_obj(struct prom_data, GFP_KERNEL); | 1958 | struct prom_data* prom = kzalloc_obj(struct prom_data); |
| 1959 | int ok, i; | 1959 | int ok, i; |
| 1960 | 1960 | ||
| 1961 | if (!prom) | 1961 | if (!prom) |
| @@ -2000,7 +2000,7 @@ static int fore200e_alloc_rx_buf(struct fore200e *fore200e) · 38 unmodified lines | |||
| 2000 | DPRINTK(2, "rx buffers %d / %d are being allocated\n", scheme, magn); | 2000 | DPRINTK(2, "rx buffers %d / %d are being allocated\n", scheme, magn); |
| 2001 | 2001 | ||
| 2002 | /* allocate the array of receive buffers */ | 2002 | /* allocate the array of receive buffers */ |
| 2003 | buffer = bsq->buffer = kzalloc_objs(struct buffer, nbr, GFP_KERNEL); | 2003 | buffer = bsq->buffer = kzalloc_objs(struct buffer, nbr); |
| 2004 | 2004 | ||
| 2005 | if (buffer == NULL) | 2005 | if (buffer == NULL) |
| 2006 | return -ENOMEM; | 2006 | return -ENOMEM; |
| @@ -2528,7 +2528,7 @@ static int fore200e_sba_probe(struct platform_device *op) · 521 unmodified lines | |||
| 2528 | static int index = 0; | 2528 | static int index = 0; |
| 2529 | int err; | 2529 | int err; |
| 2530 | 2530 | ||
| 2531 | fore200e = kzalloc_obj(struct fore200e, GFP_KERNEL); | 2531 | fore200e = kzalloc_obj(struct fore200e); |
| 2532 | if (!fore200e) | 2532 | if (!fore200e) |
| 2533 | return -ENOMEM; | 2533 | return -ENOMEM; |
| 2534 | 2534 | ||
| @@ -2596,7 +2596,7 @@ static int fore200e_pca_detect(struct pci_dev *pci_dev, · 61 unmodified lines | |||
| 2596 | goto out; | 2596 | goto out; |
| 2597 | } | 2597 | } |
| 2598 | 2598 | ||
| 2599 | fore200e = kzalloc_obj(struct fore200e, GFP_KERNEL); | 2599 | fore200e = kzalloc_obj(struct fore200e); |
| 2600 | if (fore200e == NULL) { | 2600 | if (fore200e == NULL) { |
| 2601 | err = -ENOMEM; | 2601 | err = -ENOMEM; |
| 2602 | goto out_disable; | 2602 | goto out_disable; |
| @@ -372,7 +372,7 @@ static int he_init_one(struct pci_dev *pci_dev, · 371 unmodified lines | |||
| 372 | } | 372 | } |
| 373 | pci_set_drvdata(pci_dev, atm_dev); | 373 | pci_set_drvdata(pci_dev, atm_dev); |
| 374 | 374 | ||
| 375 | he_dev = kzalloc_obj(struct he_dev, GFP_KERNEL); | 375 | he_dev = kzalloc_obj(struct he_dev); |
| 376 | if (!he_dev) { | 376 | if (!he_dev) { |
| 377 | err = -ENOMEM; | 377 | err = -ENOMEM; |
| 378 | goto init_one_failure; | 378 | goto init_one_failure; |
| @@ -262,7 +262,7 @@ static int idt77105_start(struct atm_dev *dev) · 261 unmodified lines | |||
| 262 | { | 262 | { |
| 263 | unsigned long flags; | 263 | unsigned long flags; |
| 264 | 264 | ||
| 265 | if (!(dev->phy_data = kmalloc_obj(struct idt77105_priv, GFP_KERNEL))) | 265 | if (!(dev->phy_data = kmalloc_obj(struct idt77105_priv))) |
| 266 | return -ENOMEM; | 266 | return -ENOMEM; |
| 267 | PRIV(dev)->dev = dev; | 267 | PRIV(dev)->dev = dev; |
| 268 | spin_lock_irqsave(&idt77105_priv_lock, flags); | 268 | spin_lock_irqsave(&idt77105_priv_lock, flags); |
| @@ -638,7 +638,7 @@ alloc_scq(struct idt77252_dev *card, int class) · 637 unmodified lines | |||
| 638 | { | 638 | { |
| 639 | struct scq_info *scq; | 639 | struct scq_info *scq; |
| 640 | 640 | ||
| 641 | scq = kzalloc_obj(struct scq_info, GFP_KERNEL); | 641 | scq = kzalloc_obj(struct scq_info); |
| 642 | if (!scq) | 642 | if (!scq) |
| 643 | return NULL; | 643 | return NULL; |
| 644 | scq->base = dma_alloc_coherent(&card->pcidev->dev, SCQ_SIZE, | 644 | scq->base = dma_alloc_coherent(&card->pcidev->dev, SCQ_SIZE, |
| @@ -2116,7 +2116,7 @@ idt77252_init_est(struct vc_map *vc, int pcr) · 1471 unmodified lines | |||
| 2116 | { | 2116 | { |
| 2117 | struct rate_estimator *est; | 2117 | struct rate_estimator *est; |
| 2118 | 2118 | ||
| 2119 | est = kzalloc_obj(struct rate_estimator, GFP_KERNEL); | 2119 | est = kzalloc_obj(struct rate_estimator); |
| 2120 | if (!est) | 2120 | if (!est) |
| 2121 | return NULL; | 2121 | return NULL; |
| 2122 | est->maxcps = pcr < 0 ? -pcr : pcr; | 2122 | est->maxcps = pcr < 0 ? -pcr : pcr; |
| @@ -2424,7 +2424,7 @@ idt77252_open(struct atm_vcc *vcc) · 301 unmodified lines | |||
| 2424 | 2424 | ||
| 2425 | index = VPCI2VC(card, vpi, vci); | 2425 | index = VPCI2VC(card, vpi, vci); |
| 2426 | if (!card->vcs[index]) { | 2426 | if (!card->vcs[index]) { |
| 2427 | card->vcs[index] = kzalloc_obj(struct vc_map, GFP_KERNEL); | 2427 | card->vcs[index] = kzalloc_obj(struct vc_map); |
| 2428 | if (!card->vcs[index]) { | 2428 | if (!card->vcs[index]) { |
| 2429 | printk("%s: can't alloc vc in open()\n", card->name); | 2429 | printk("%s: can't alloc vc in open()\n", card->name); |
| 2430 | mutex_unlock(&card->mutex); | 2430 | mutex_unlock(&card->mutex); |
| @@ -2855,7 +2855,7 @@ open_card_oam(struct idt77252_dev *card) · 424 unmodified lines | |||
| 2855 | for (vci = 3; vci < 5; vci++) { | 2855 | for (vci = 3; vci < 5; vci++) { |
| 2856 | index = VPCI2VC(card, vpi, vci); | 2856 | index = VPCI2VC(card, vpi, vci); |
| 2857 | 2857 | ||
| 2858 | vc = kzalloc_obj(struct vc_map, GFP_KERNEL); | 2858 | vc = kzalloc_obj(struct vc_map); |
| 2859 | if (!vc) { | 2859 | if (!vc) { |
| 2860 | printk("%s: can't alloc vc\n", card->name); | 2860 | printk("%s: can't alloc vc\n", card->name); |
| 2861 | return -ENOMEM; | 2861 | return -ENOMEM; |
| @@ -2923,7 +2923,7 @@ open_card_ubr0(struct idt77252_dev *card) · 61 unmodified lines | |||
| 2923 | { | 2923 | { |
| 2924 | struct vc_map *vc; | 2924 | struct vc_map *vc; |
| 2925 | 2925 | ||
| 2926 | vc = kzalloc_obj(struct vc_map, GFP_KERNEL); | 2926 | vc = kzalloc_obj(struct vc_map); |
| 2927 | if (!vc) { | 2927 | if (!vc) { |
| 2928 | printk("%s: can't alloc vc\n", card->name); | 2928 | printk("%s: can't alloc vc\n", card->name); |
| 2929 | return -ENOMEM; | 2929 | return -ENOMEM; |
| @@ -3621,7 +3621,7 @@ static int idt77252_init_one(struct pci_dev *pcidev, · 691 unmodified lines | |||
| 3621 | goto err_out_disable_pdev; | 3621 | goto err_out_disable_pdev; |
| 3622 | } | 3622 | } |
| 3623 | 3623 | ||
| 3624 | card = kzalloc_obj(struct idt77252_dev, GFP_KERNEL); | 3624 | card = kzalloc_obj(struct idt77252_dev); |
| 3625 | if (!card) { | 3625 | if (!card) { |
| 3626 | printk("idt77252-%d: can't allocate private data\n", index); | 3626 | printk("idt77252-%d: can't allocate private data\n", index); |
| 3627 | err = -ENOMEM; | 3627 | err = -ENOMEM; |
| @@ -2709,7 +2709,7 @@ static int ia_open(struct atm_vcc *vcc) · 2708 unmodified lines | |||
| 2709 | vcc->dev->number, vcc->vpi, vcc->vci);) | 2709 | vcc->dev->number, vcc->vpi, vcc->vci);) |
| 2710 | 2710 | ||
| 2711 | /* Device dependent initialization */ | 2711 | /* Device dependent initialization */ |
| 2712 | ia_vcc = kmalloc_obj(*ia_vcc, GFP_KERNEL); | 2712 | ia_vcc = kmalloc_obj(*ia_vcc); |
| 2713 | if (!ia_vcc) return -ENOMEM; | 2713 | if (!ia_vcc) return -ENOMEM; |
| 2714 | vcc->dev_data = ia_vcc; | 2714 | vcc->dev_data = ia_vcc; |
| 2715 | 2715 | ||
| @@ -2795,7 +2795,7 @@ static int ia_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg) · 79 unmodified lines | |||
| 2795 | rfredn_t *rfL; | 2795 | rfredn_t *rfL; |
| 2796 | 2796 | ||
| 2797 | if (!capable(CAP_NET_ADMIN)) return -EPERM; | 2797 | if (!capable(CAP_NET_ADMIN)) return -EPERM; |
| 2798 | regs_local = kmalloc_obj(*regs_local, GFP_KERNEL); | 2798 | regs_local = kmalloc_obj(*regs_local); |
| 2799 | if (!regs_local) return -ENOMEM; | 2799 | if (!regs_local) return -ENOMEM; |
| 2800 | ffL = ®s_local->ffredn; | 2800 | ffL = ®s_local->ffredn; |
| 2801 | rfL = ®s_local->rfredn; | 2801 | rfL = ®s_local->rfredn; |
| @@ -3165,7 +3165,7 @@ static int ia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) · 363 unmodified lines | |||
| 3165 | IADEV *iadev; | 3165 | IADEV *iadev; |
| 3166 | int ret; | 3166 | int ret; |
| 3167 | 3167 | ||
| 3168 | iadev = kzalloc_obj(*iadev, GFP_KERNEL); | 3168 | iadev = kzalloc_obj(*iadev); |
| 3169 | if (!iadev) { | 3169 | if (!iadev) { |
| 3170 | ret = -ENOMEM; | 3170 | ret = -ENOMEM; |
| 3171 | goto err_out; | 3171 | goto err_out; |
| @@ -1464,7 +1464,7 @@ static inline void vcc_table_deallocate(const struct lanai_dev *lanai) · 1463 unmodified lines | |||
| 1464 | static inline struct lanai_vcc *new_lanai_vcc(void) | 1464 | static inline struct lanai_vcc *new_lanai_vcc(void) |
| 1465 | { | 1465 | { |
| 1466 | struct lanai_vcc *lvcc; | 1466 | struct lanai_vcc *lvcc; |
| 1467 | lvcc = kzalloc_obj(*lvcc, GFP_KERNEL); | 1467 | lvcc = kzalloc_obj(*lvcc); |
| 1468 | if (likely(lvcc != NULL)) { | 1468 | if (likely(lvcc != NULL)) { |
| 1469 | skb_queue_head_init(&lvcc->tx.backlog); | 1469 | skb_queue_head_init(&lvcc->tx.backlog); |
| 1470 | #ifdef DEBUG | 1470 | #ifdef DEBUG |
| @@ -2555,7 +2555,7 @@ static int lanai_init_one(struct pci_dev *pci, · 1084 unmodified lines | |||
| 2555 | struct atm_dev *atmdev; | 2555 | struct atm_dev *atmdev; |
| 2556 | int result; | 2556 | int result; |
| 2557 | 2557 | ||
| 2558 | lanai = kzalloc_obj(*lanai, GFP_KERNEL); | 2558 | lanai = kzalloc_obj(*lanai); |
| 2559 | if (lanai == NULL) { | 2559 | if (lanai == NULL) { |
| 2560 | printk(KERN_ERR DEV_LABEL | 2560 | printk(KERN_ERR DEV_LABEL |
| 2561 | ": couldn't allocate dev_data structure!\n"); | 2561 | ": couldn't allocate dev_data structure!\n"); |
| @@ -373,7 +373,7 @@ static int ns_init_card(int i, struct pci_dev *pcidev) · 372 unmodified lines | |||
| 373 | return error; | 373 | return error; |
| 374 | } | 374 | } |
| 375 | 375 | ||
| 376 | card = kmalloc_obj(*card, GFP_KERNEL); | 376 | card = kmalloc_obj(*card); |
| 377 | if (!card) { | 377 | if (!card) { |
| 378 | printk | 378 | printk |
| 379 | ("nicstar%d: can't allocate memory for device structure.\n", | 379 | ("nicstar%d: can't allocate memory for device structure.\n", |
| @@ -867,7 +867,7 @@ static scq_info *get_scq(ns_dev *card, int size, u32 scd) · 487 unmodified lines | |||
| 867 | if (size != VBR_SCQSIZE && size != CBR_SCQSIZE) | 867 | if (size != VBR_SCQSIZE && size != CBR_SCQSIZE) |
| 868 | return NULL; | 868 | return NULL; |
| 869 | 869 | ||
| 870 | scq = kmalloc_obj(*scq, GFP_KERNEL); | 870 | scq = kmalloc_obj(*scq); |
| 871 | if (!scq) | 871 | if (!scq) |
| 872 | return NULL; | 872 | return NULL; |
| 873 | scq->org = dma_alloc_coherent(&card->pcidev->dev, | 873 | scq->org = dma_alloc_coherent(&card->pcidev->dev, |
| @@ -876,7 +876,7 @@ static scq_info *get_scq(ns_dev *card, int size, u32 scd) · 2 unmodified lines | |||
| 876 | kfree(scq); | 876 | kfree(scq); |
| 877 | return NULL; | 877 | return NULL; |
| 878 | } | 878 | } |
| 879 | scq->skb = kzalloc_objs(*scq->skb, size / NS_SCQE_SIZE, GFP_KERNEL); | 879 | scq->skb = kzalloc_objs(*scq->skb, size / NS_SCQE_SIZE); |
| 880 | if (!scq->skb) { | 880 | if (!scq->skb) { |
| 881 | dma_free_coherent(&card->pcidev->dev, | 881 | dma_free_coherent(&card->pcidev->dev, |
| 882 | 2 * size, scq->org, scq->dma); | 882 | 2 * size, scq->org, scq->dma); |
| @@ -1196,7 +1196,7 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id) · 1195 unmodified lines | |||
| 1196 | uint32_t data32; | 1196 | uint32_t data32; |
| 1197 | struct solos_card *card; | 1197 | struct solos_card *card; |
| 1198 | 1198 | ||
| 1199 | card = kzalloc_obj(*card, GFP_KERNEL); | 1199 | card = kzalloc_obj(*card); |
| 1200 | if (!card) | 1200 | if (!card) |
| 1201 | return -ENOMEM; | 1201 | return -ENOMEM; |
| 1202 | 1202 | ||
| @@ -367,7 +367,7 @@ int suni_init(struct atm_dev *dev) · 366 unmodified lines | |||
| 367 | { | 367 | { |
| 368 | unsigned char mri; | 368 | unsigned char mri; |
| 369 | 369 | ||
| 370 | if (!(dev->phy_data = kmalloc_obj(struct suni_priv, GFP_KERNEL))) | 370 | if (!(dev->phy_data = kmalloc_obj(struct suni_priv))) |
| 371 | return -ENOMEM; | 371 | return -ENOMEM; |
| 372 | PRIV(dev)->dev = dev; | 372 | PRIV(dev)->dev = dev; |
| 373 | 373 | ||
| @@ -226,7 +226,7 @@ static int hd44780_probe(struct platform_device *pdev) · 225 unmodified lines | |||
| 226 | if (!lcd) | 226 | if (!lcd) |
| 227 | return -ENOMEM; | 227 | return -ENOMEM; |
| 228 | 228 | ||
| 229 | hd = kzalloc_obj(*hd, GFP_KERNEL); | 229 | hd = kzalloc_obj(*hd); |
| 230 | if (!hd) | 230 | if (!hd) |
| 231 | goto fail2; | 231 | goto fail2; |
| 232 | 232 | ||
| @@ -56,7 +56,7 @@ static int create_attachment(struct device *dev, struct linedisp *linedisp, bool · 55 unmodified lines | |||
| 56 | { | 56 | { |
| 57 | struct linedisp_attachment *attachment; | 57 | struct linedisp_attachment *attachment; |
| 58 | 58 | ||
| 59 | attachment = kzalloc_obj(*attachment, GFP_KERNEL); | 59 | attachment = kzalloc_obj(*attachment); |
| 60 | if (!attachment) | 60 | if (!attachment) |
| 61 | return -ENOMEM; | 61 | return -ENOMEM; |
| 62 | 62 | ||
| @@ -390,7 +390,7 @@ static int linedisp_init_map(struct linedisp *linedisp) · 327 unmodified lines | |||
| 390 | if (err < 0) | 390 | if (err < 0) |
| 391 | return err; | 391 | return err; |
| 392 | 392 | ||
| 393 | map = kmalloc_obj(*map, GFP_KERNEL); | 393 | map = kmalloc_obj(*map); |
| 394 | if (!map) | 394 | if (!map) |
| 395 | return -ENOMEM; | 395 | return -ENOMEM; |
| 396 | 396 | ||
| @@ -1428,7 +1428,7 @@ static struct logical_input *panel_bind_key(const char *name, const char *press, · 1427 unmodified lines | |||
| 1428 | { | 1428 | { |
| 1429 | struct logical_input *key; | 1429 | struct logical_input *key; |
| 1430 | 1430 | ||
| 1431 | key = kzalloc_obj(*key, GFP_KERNEL); | 1431 | key = kzalloc_obj(*key); |
| 1432 | if (!key) | 1432 | if (!key) |
| 1433 | return NULL; | 1433 | return NULL; |
| 1434 | 1434 | ||
| @@ -892,7 +892,7 @@ __weak int __init parse_acpi_topology(void) · 891 unmodified lines | |||
| 892 | hetero_id = find_acpi_cpu_topology_hetero_id(cpu); | 892 | hetero_id = find_acpi_cpu_topology_hetero_id(cpu); |
| 893 | entry = xa_load(&hetero_cpu, hetero_id); | 893 | entry = xa_load(&hetero_cpu, hetero_id); |
| 894 | if (!entry) { | 894 | if (!entry) { |
| 895 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 895 | entry = kzalloc_obj(*entry); |
| 896 | WARN_ON_ONCE(!entry); | 896 | WARN_ON_ONCE(!entry); |
| 897 | 897 | ||
| 898 | if (entry) { | 898 | if (entry) { |
| @@ -153,7 +153,7 @@ attribute_container_add_device(struct device *dev, · 152 unmodified lines | |||
| 153 | if (!cont->match(cont, dev)) | 153 | if (!cont->match(cont, dev)) |
| 154 | continue; | 154 | continue; |
| 155 | 155 | ||
| 156 | ic = kzalloc_obj(*ic, GFP_KERNEL); | 156 | ic = kzalloc_obj(*ic); |
| 157 | if (!ic) { | 157 | if (!ic) { |
| 158 | dev_err(dev, "failed to allocate class container\n"); | 158 | dev_err(dev, "failed to allocate class container\n"); |
| 159 | continue; | 159 | continue; |
| @@ -420,7 +420,7 @@ struct auxiliary_device *auxiliary_device_create(struct device *dev, · 419 unmodified lines | |||
| 420 | struct auxiliary_device *auxdev; | 420 | struct auxiliary_device *auxdev; |
| 421 | int ret; | 421 | int ret; |
| 422 | 422 | ||
| 423 | auxdev = kzalloc_obj(*auxdev, GFP_KERNEL); | 423 | auxdev = kzalloc_obj(*auxdev); |
| 424 | if (!auxdev) | 424 | if (!auxdev) |
| 425 | return NULL; | 425 | return NULL; |
| 426 | 426 | ||
| @@ -63,7 +63,7 @@ int auxiliary_device_sysfs_irq_add(struct auxiliary_device *auxdev, int irq) · 62 unmodified lines | |||
| 63 | if (ret) | 63 | if (ret) |
| 64 | return ret; | 64 | return ret; |
| 65 | 65 | ||
| 66 | info = kzalloc_obj(*info, GFP_KERNEL); | 66 | info = kzalloc_obj(*info); |
| 67 | if (!info) | 67 | if (!info) |
| 68 | return -ENOMEM; | 68 | return -ENOMEM; |
| 69 | 69 | ||
| @@ -696,7 +696,7 @@ int bus_add_driver(struct device_driver *drv) · 695 unmodified lines | |||
| 696 | */ | 696 | */ |
| 697 | pr_debug("bus: '%s': add driver %s\n", sp->bus->name, drv->name); | 697 | pr_debug("bus: '%s': add driver %s\n", sp->bus->name, drv->name); |
| 698 | 698 | ||
| 699 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 699 | priv = kzalloc_obj(*priv); |
| 700 | if (!priv) { | 700 | if (!priv) { |
| 701 | error = -ENOMEM; | 701 | error = -ENOMEM; |
| 702 | goto out_put_bus; | 702 | goto out_put_bus; |
| @@ -897,7 +897,7 @@ int bus_register(const struct bus_type *bus) · 194 unmodified lines | |||
| 897 | struct kobject *bus_kobj; | 897 | struct kobject *bus_kobj; |
| 898 | struct lock_class_key *key; | 898 | struct lock_class_key *key; |
| 899 | 899 | ||
| 900 | priv = kzalloc_obj(struct subsys_private, GFP_KERNEL); | 900 | priv = kzalloc_obj(struct subsys_private); |
| 901 | if (!priv) | 901 | if (!priv) |
| 902 | return -ENOMEM; | 902 | return -ENOMEM; |
| 903 | 903 | ||
| @@ -1263,7 +1263,7 @@ static int subsys_register(const struct bus_type *subsys, · 359 unmodified lines | |||
| 1263 | goto err_sp; | 1263 | goto err_sp; |
| 1264 | } | 1264 | } |
| 1265 | 1265 | ||
| 1266 | dev = kzalloc_obj(struct device, GFP_KERNEL); | 1266 | dev = kzalloc_obj(struct device); |
| 1267 | if (!dev) { | 1267 | if (!dev) { |
| 1268 | err = -ENOMEM; | 1268 | err = -ENOMEM; |
| 1269 | goto err_dev; | 1269 | goto err_dev; |
| @@ -194,7 +194,7 @@ int class_register(const struct class *cls) · 193 unmodified lines | |||
| 194 | return -EINVAL; | 194 | return -EINVAL; |
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | cp = kzalloc_obj(*cp, GFP_KERNEL); | 197 | cp = kzalloc_obj(*cp); |
| 198 | if (!cp) | 198 | if (!cp) |
| 199 | return -ENOMEM; | 199 | return -ENOMEM; |
| 200 | klist_init(&cp->klist_devices, klist_class_dev_get, klist_class_dev_put); | 200 | klist_init(&cp->klist_devices, klist_class_dev_get, klist_class_dev_put); |
| @@ -268,7 +268,7 @@ struct class *class_create(const char *name) · 67 unmodified lines | |||
| 268 | struct class *cls; | 268 | struct class *cls; |
| 269 | int retval; | 269 | int retval; |
| 270 | 270 | ||
| 271 | cls = kzalloc_obj(*cls, GFP_KERNEL); | 271 | cls = kzalloc_obj(*cls); |
| 272 | if (!cls) { | 272 | if (!cls) { |
| 273 | retval = -ENOMEM; | 273 | retval = -ENOMEM; |
| 274 | goto error; | 274 | goto error; |
| @@ -573,7 +573,7 @@ struct class_compat *class_compat_register(const char *name) · 298 unmodified lines | |||
| 573 | { | 573 | { |
| 574 | struct class_compat *cls; | 574 | struct class_compat *cls; |
| 575 | 575 | ||
| 576 | cls = kmalloc_obj(struct class_compat, GFP_KERNEL); | 576 | cls = kmalloc_obj(struct class_compat); |
| 577 | if (!cls) | 577 | if (!cls) |
| 578 | return NULL; | 578 | return NULL; |
| 579 | cls->kobj = kobject_create_and_add(name, &class_kset->kobj); | 579 | cls->kobj = kobject_create_and_add(name, &class_kset->kobj); |
| @@ -363,7 +363,7 @@ static int component_match_realloc(struct component_match *match, size_t num) · 362 unmodified lines | |||
| 363 | if (match->alloc == num) | 363 | if (match->alloc == num) |
| 364 | return 0; | 364 | return 0; |
| 365 | 365 | ||
| 366 | new = kmalloc_objs(*new, num, GFP_KERNEL); | 366 | new = kmalloc_objs(*new, num); |
| 367 | if (!new) | 367 | if (!new) |
| 368 | return -ENOMEM; | 368 | return -ENOMEM; |
| 369 | 369 | ||
| @@ -521,7 +521,7 @@ int component_master_add_with_match(struct device *parent, · 151 unmodified lines | |||
| 521 | if (ret) | 521 | if (ret) |
| 522 | return ret; | 522 | return ret; |
| 523 | 523 | ||
| 524 | adev = kzalloc_obj(*adev, GFP_KERNEL); | 524 | adev = kzalloc_obj(*adev); |
| 525 | if (!adev) | 525 | if (!adev) |
| 526 | return -ENOMEM; | 526 | return -ENOMEM; |
| 527 | 527 | ||
| @@ -732,7 +732,7 @@ static int __component_add(struct device *dev, const struct component_ops *ops, · 204 unmodified lines | |||
| 732 | struct component *component; | 732 | struct component *component; |
| 733 | int ret; | 733 | int ret; |
| 734 | 734 | ||
| 735 | component = kzalloc_obj(*component, GFP_KERNEL); | 735 | component = kzalloc_obj(*component); |
| 736 | if (!component) | 736 | if (!component) |
| 737 | return -ENOMEM; | 737 | return -ENOMEM; |
| 738 | 738 | ||
| @@ -76,7 +76,7 @@ static int __fwnode_link_add(struct fwnode_handle *con, · 75 unmodified lines | |||
| 76 | return 0; | 76 | return 0; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | link = kzalloc_obj(*link, GFP_KERNEL); | 79 | link = kzalloc_obj(*link); |
| 80 | if (!link) | 80 | if (!link) |
| 81 | return -ENOMEM; | 81 | return -ENOMEM; |
| 82 | 82 | ||
| @@ -844,7 +844,7 @@ struct device_link *device_link_add(struct device *consumer, · 761 unmodified lines | |||
| 844 | goto out; | 844 | goto out; |
| 845 | } | 845 | } |
| 846 | 846 | ||
| 847 | link = kzalloc_obj(*link, GFP_KERNEL); | 847 | link = kzalloc_obj(*link); |
| 848 | if (!link) | 848 | if (!link) |
| 849 | goto out; | 849 | goto out; |
| 850 | 850 | ||
| @@ -2748,7 +2748,7 @@ static ssize_t uevent_show(struct device *dev, struct device_attribute *attr, · 1897 unmodified lines | |||
| 2748 | if (!kset->uevent_ops->filter(&dev->kobj)) | 2748 | if (!kset->uevent_ops->filter(&dev->kobj)) |
| 2749 | goto out; | 2749 | goto out; |
| 2750 | 2750 | ||
| 2751 | env = kzalloc_obj(struct kobj_uevent_env, GFP_KERNEL); | 2751 | env = kzalloc_obj(struct kobj_uevent_env); |
| 2752 | if (!env) | 2752 | if (!env) |
| 2753 | return -ENOMEM; | 2753 | return -ENOMEM; |
| 2754 | 2754 | ||
| @@ -3220,7 +3220,7 @@ static struct kobject *class_dir_create_and_add(struct subsys_private *sp, · 465 unmodified lines | |||
| 3220 | struct class_dir *dir; | 3220 | struct class_dir *dir; |
| 3221 | int retval; | 3221 | int retval; |
| 3222 | 3222 | ||
| 3223 | dir = kzalloc_obj(*dir, GFP_KERNEL); | 3223 | dir = kzalloc_obj(*dir); |
| 3224 | if (!dir) | 3224 | if (!dir) |
| 3225 | return ERR_PTR(-ENOMEM); | 3225 | return ERR_PTR(-ENOMEM); |
| 3226 | 3226 | ||
| @@ -3531,7 +3531,7 @@ static void device_remove_sys_dev_entry(struct device *dev) · 304 unmodified lines | |||
| 3531 | 3531 | ||
| 3532 | static int device_private_init(struct device *dev) | 3532 | static int device_private_init(struct device *dev) |
| 3533 | { | 3533 | { |
| 3534 | dev->p = kzalloc_obj(*dev->p, GFP_KERNEL); | 3534 | dev->p = kzalloc_obj(*dev->p); |
| 3535 | if (!dev->p) | 3535 | if (!dev->p) |
| 3536 | return -ENOMEM; | 3536 | return -ENOMEM; |
| 3537 | dev->p->device = dev; | 3537 | dev->p->device = dev; |
| @@ -4278,7 +4278,7 @@ struct device *__root_device_register(const char *name, struct module *owner) · 740 unmodified lines | |||
| 4278 | struct root_device *root; | 4278 | struct root_device *root; |
| 4279 | int err = -ENOMEM; | 4279 | int err = -ENOMEM; |
| 4280 | 4280 | ||
| 4281 | root = kzalloc_obj(struct root_device, GFP_KERNEL); | 4281 | root = kzalloc_obj(struct root_device); |
| 4282 | if (!root) | 4282 | if (!root) |
| 4283 | return ERR_PTR(err); | 4283 | return ERR_PTR(err); |
| 4284 | 4284 | ||
| @@ -4350,7 +4350,7 @@ device_create_groups_vargs(const struct class *class, struct device *parent, · 65 unmodified lines | |||
| 4350 | if (IS_ERR_OR_NULL(class)) | 4350 | if (IS_ERR_OR_NULL(class)) |
| 4351 | goto error; | 4351 | goto error; |
| 4352 | 4352 | ||
| 4353 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 4353 | dev = kzalloc_obj(*dev); |
| 4354 | if (!dev) { | 4354 | if (!dev) { |
| 4355 | retval = -ENOMEM; | 4355 | retval = -ENOMEM; |
| 4356 | goto error; | 4356 | goto error; |
| @@ -466,7 +466,7 @@ __cpu_device_create(struct device *parent, void *drvdata, · 465 unmodified lines | |||
| 466 | struct device *dev = NULL; | 466 | struct device *dev = NULL; |
| 467 | int retval = -ENOMEM; | 467 | int retval = -ENOMEM; |
| 468 | 468 | ||
| 469 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 469 | dev = kzalloc_obj(*dev); |
| 470 | if (!dev) | 470 | if (!dev) |
| 471 | goto error; | 471 | goto error; |
| 472 | 472 | ||
| @@ -133,7 +133,7 @@ struct faux_device *faux_device_create_with_groups(const char *name, · 132 unmodified lines | |||
| 133 | struct device *dev; | 133 | struct device *dev; |
| 134 | int ret; | 134 | int ret; |
| 135 | 135 | ||
| 136 | faux_obj = kzalloc_obj(*faux_obj, GFP_KERNEL); | 136 | faux_obj = kzalloc_obj(*faux_obj); |
| 137 | if (!faux_obj) | 137 | if (!faux_obj) |
| 138 | return NULL; | 138 | return NULL; |
| 139 | 139 | ||
| @@ -234,7 +234,7 @@ int __init faux_bus_init(void) · 94 unmodified lines | |||
| 234 | { | 234 | { |
| 235 | int ret; | 235 | int ret; |
| 236 | 236 | ||
| 237 | faux_bus_root = kzalloc_obj(*faux_bus_root, GFP_KERNEL); | 237 | faux_bus_root = kzalloc_obj(*faux_bus_root); |
| 238 | if (!faux_bus_root) | 238 | if (!faux_bus_root) |
| 239 | return -ENOMEM; | 239 | return -ENOMEM; |
| 240 | 240 | ||
| @@ -747,7 +747,7 @@ _request_firmware_prepare(struct firmware **firmware_p, const char *name, · 746 unmodified lines | |||
| 747 | struct fw_priv *fw_priv; | 747 | struct fw_priv *fw_priv; |
| 748 | int ret; | 748 | int ret; |
| 749 | 749 | ||
| 750 | *firmware_p = firmware = kzalloc_obj(*firmware, GFP_KERNEL); | 750 | *firmware_p = firmware = kzalloc_obj(*firmware); |
| 751 | if (!firmware) { | 751 | if (!firmware) { |
| 752 | dev_err(device, "%s: kmalloc(struct firmware) failed\n", | 752 | dev_err(device, "%s: kmalloc(struct firmware) failed\n", |
| 753 | __func__); | 753 | __func__); |
| @@ -405,7 +405,7 @@ fw_create_instance(struct firmware *firmware, const char *fw_name, · 404 unmodified lines | |||
| 405 | struct fw_sysfs *fw_sysfs; | 405 | struct fw_sysfs *fw_sysfs; |
| 406 | struct device *f_dev; | 406 | struct device *f_dev; |
| 407 | 407 | ||
| 408 | fw_sysfs = kzalloc_obj(*fw_sysfs, GFP_KERNEL); | 408 | fw_sysfs = kzalloc_obj(*fw_sysfs); |
| 409 | if (!fw_sysfs) { | 409 | if (!fw_sysfs) { |
| 410 | fw_sysfs = ERR_PTR(-ENOMEM); | 410 | fw_sysfs = ERR_PTR(-ENOMEM); |
| 411 | goto exit; | 411 | goto exit; |
| @@ -315,13 +315,13 @@ firmware_upload_register(struct module *module, struct device *parent, · 314 unmodified lines | |||
| 315 | if (!try_module_get(module)) | 315 | if (!try_module_get(module)) |
| 316 | return ERR_PTR(-EFAULT); | 316 | return ERR_PTR(-EFAULT); |
| 317 | 317 | ||
| 318 | fw_upload = kzalloc_obj(*fw_upload, GFP_KERNEL); | 318 | fw_upload = kzalloc_obj(*fw_upload); |
| 319 | if (!fw_upload) { | 319 | if (!fw_upload) { |
| 320 | ret = -ENOMEM; | 320 | ret = -ENOMEM; |
| 321 | goto exit_module_put; | 321 | goto exit_module_put; |
| 322 | } | 322 | } |
| 323 | 323 | ||
| 324 | fw_upload_priv = kzalloc_obj(*fw_upload_priv, GFP_KERNEL); | 324 | fw_upload_priv = kzalloc_obj(*fw_upload_priv); |
| 325 | if (!fw_upload_priv) { | 325 | if (!fw_upload_priv) { |
| 326 | ret = -ENOMEM; | 326 | ret = -ENOMEM; |
| 327 | goto free_fw_upload; | 327 | goto free_fw_upload; |
| @@ -125,7 +125,7 @@ int isa_register_driver(struct isa_driver *isa_driver, unsigned int ndev) · 124 unmodified lines | |||
| 125 | for (id = 0; id < ndev; id++) { | 125 | for (id = 0; id < ndev; id++) { |
| 126 | struct isa_dev *isa_dev; | 126 | struct isa_dev *isa_dev; |
| 127 | 127 | ||
| 128 | isa_dev = kzalloc_obj(*isa_dev, GFP_KERNEL); | 128 | isa_dev = kzalloc_obj(*isa_dev); |
| 129 | if (!isa_dev) { | 129 | if (!isa_dev) { |
| 130 | error = -ENOMEM; | 130 | error = -ENOMEM; |
| 131 | break; | 131 | break; |
| @@ -41,7 +41,7 @@ int kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range, · 40 unmodified lines | |||
| 41 | if (n > 255) | 41 | if (n > 255) |
| 42 | n = 255; | 42 | n = 255; |
| 43 | 43 | ||
| 44 | p = kmalloc_objs(struct probe, n, GFP_KERNEL); | 44 | p = kmalloc_objs(struct probe, n); |
| 45 | if (p == NULL) | 45 | if (p == NULL) |
| 46 | return -ENOMEM; | 46 | return -ENOMEM; |
| 47 | 47 | ||
| @@ -134,8 +134,8 @@ retry: · 86 unmodified lines | |||
| 134 | 134 | ||
| 135 | struct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock) | 135 | struct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock) |
| 136 | { | 136 | { |
| 137 | struct kobj_map *p = kmalloc_obj(struct kobj_map, GFP_KERNEL); | 137 | struct kobj_map *p = kmalloc_obj(struct kobj_map); |
| 138 | struct probe *base = kzalloc_obj(*base, GFP_KERNEL); | 138 | struct probe *base = kzalloc_obj(*base); |
| 139 | int i; | 139 | int i; |
| 140 | 140 | ||
| 141 | if ((p == NULL) || (base == NULL)) { | 141 | if ((p == NULL) || (base == NULL)) { |
| @@ -800,7 +800,7 @@ static int add_memory_block(unsigned long block_id, int nid, unsigned long state · 799 unmodified lines | |||
| 800 | put_device(&mem->dev); | 800 | put_device(&mem->dev); |
| 801 | return -EEXIST; | 801 | return -EEXIST; |
| 802 | } | 802 | } |
| 803 | mem = kzalloc_obj(*mem, GFP_KERNEL); | 803 | mem = kzalloc_obj(*mem); |
| 804 | if (!mem) | 804 | if (!mem) |
| 805 | return -ENOMEM; | 805 | return -ENOMEM; |
| 806 | 806 | ||
| @@ -1078,7 +1078,7 @@ static int memory_group_register(struct memory_group group) · 271 unmodified lines | |||
| 1078 | if (!node_possible(group.nid)) | 1078 | if (!node_possible(group.nid)) |
| 1079 | return -EINVAL; | 1079 | return -EINVAL; |
| 1080 | 1080 | ||
| 1081 | new_group = kzalloc_obj(group, GFP_KERNEL); | 1081 | new_group = kzalloc_obj(group); |
| 1082 | if (!new_group) | 1082 | if (!new_group) |
| 1083 | return -ENOMEM; | 1083 | return -ENOMEM; |
| 1084 | *new_group = group; | 1084 | *new_group = group; |
| @@ -158,7 +158,7 @@ static struct node_access_nodes *node_init_node_access(struct node *node, · 157 unmodified lines | |||
| 158 | if (access_node->access == access) | 158 | if (access_node->access == access) |
| 159 | return access_node; | 159 | return access_node; |
| 160 | 160 | ||
| 161 | access_node = kzalloc_obj(*access_node, GFP_KERNEL); | 161 | access_node = kzalloc_obj(*access_node); |
| 162 | if (!access_node) | 162 | if (!access_node) |
| 163 | return NULL; | 163 | return NULL; |
| 164 | 164 | ||
| @@ -340,7 +340,7 @@ static void node_init_cache_dev(struct node *node) · 175 unmodified lines | |||
| 340 | { | 340 | { |
| 341 | struct device *dev; | 341 | struct device *dev; |
| 342 | 342 | ||
| 343 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 343 | dev = kzalloc_obj(*dev); |
| 344 | if (!dev) | 344 | if (!dev) |
| 345 | return; | 345 | return; |
| 346 | 346 | ||
| @@ -389,7 +389,7 @@ void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) · 42 unmodified lines | |||
| 389 | if (!node->cache_dev) | 389 | if (!node->cache_dev) |
| 390 | return; | 390 | return; |
| 391 | 391 | ||
| 392 | info = kzalloc_obj(*info, GFP_KERNEL); | 392 | info = kzalloc_obj(*info); |
| 393 | if (!info) | 393 | if (!info) |
| 394 | return; | 394 | return; |
| 395 | 395 | ||
| @@ -875,7 +875,7 @@ int register_node(int nid) · 479 unmodified lines | |||
| 875 | int cpu; | 875 | int cpu; |
| 876 | struct node *node; | 876 | struct node *node; |
| 877 | 877 | ||
| 878 | node = kzalloc_obj(struct node, GFP_KERNEL); | 878 | node = kzalloc_obj(struct node); |
| 879 | if (!node) | 879 | if (!node) |
| 880 | return -ENOMEM; | 880 | return -ENOMEM; |
| 881 | 881 | ||
| @@ -201,7 +201,7 @@ static int __pm_clk_add(struct device *dev, const char *con_id, · 200 unmodified lines | |||
| 201 | if (!psd) | 201 | if (!psd) |
| 202 | return -EINVAL; | 202 | return -EINVAL; |
| 203 | 203 | ||
| 204 | ce = kzalloc_obj(*ce, GFP_KERNEL); | 204 | ce = kzalloc_obj(*ce); |
| 205 | if (!ce) | 205 | if (!ce) |
| 206 | return -ENOMEM; | 206 | return -ENOMEM; |
| 207 | 207 | ||
| @@ -282,7 +282,7 @@ int of_pm_clk_add_clks(struct device *dev) · 74 unmodified lines | |||
| 282 | if (count <= 0) | 282 | if (count <= 0) |
| 283 | return -ENODEV; | 283 | return -ENODEV; |
| 284 | 284 | ||
| 285 | clks = kzalloc_objs(*clks, count, GFP_KERNEL); | 285 | clks = kzalloc_objs(*clks, count); |
| 286 | if (!clks) | 286 | if (!clks) |
| 287 | return -ENOMEM; | 287 | return -ENOMEM; |
| 288 | 288 | ||
| @@ -27,7 +27,7 @@ int dev_pm_get_subsys_data(struct device *dev) · 26 unmodified lines | |||
| 27 | { | 27 | { |
| 28 | struct pm_subsys_data *psd; | 28 | struct pm_subsys_data *psd; |
| 29 | 29 | ||
| 30 | psd = kzalloc_obj(*psd, GFP_KERNEL); | 30 | psd = kzalloc_obj(*psd); |
| 31 | if (!psd) | 31 | if (!psd) |
| 32 | return -ENOMEM; | 32 | return -ENOMEM; |
| 33 | 33 | ||
| @@ -222,7 +222,7 @@ int dev_pm_domain_attach_list(struct device *dev, · 188 unmodified lines | |||
| 222 | if (num_pds <= 0) | 222 | if (num_pds <= 0) |
| 223 | return 0; | 223 | return 0; |
| 224 | 224 | ||
| 225 | pds = kzalloc_obj(*pds, GFP_KERNEL); | 225 | pds = kzalloc_obj(*pds); |
| 226 | if (!pds) | 226 | if (!pds) |
| 227 | return -ENOMEM; | 227 | return -ENOMEM; |
| 228 | 228 | ||
| @@ -198,11 +198,11 @@ static int dev_pm_qos_constraints_allocate(struct device *dev) · 197 unmodified lines | |||
| 198 | struct pm_qos_constraints *c; | 198 | struct pm_qos_constraints *c; |
| 199 | struct blocking_notifier_head *n; | 199 | struct blocking_notifier_head *n; |
| 200 | 200 | ||
| 201 | qos = kzalloc_obj(*qos, GFP_KERNEL); | 201 | qos = kzalloc_obj(*qos); |
| 202 | if (!qos) | 202 | if (!qos) |
| 203 | return -ENOMEM; | 203 | return -ENOMEM; |
| 204 | 204 | ||
| 205 | n = kzalloc_objs(*n, 3, GFP_KERNEL); | 205 | n = kzalloc_objs(*n, 3); |
| 206 | if (!n) { | 206 | if (!n) { |
| 207 | kfree(qos); | 207 | kfree(qos); |
| 208 | return -ENOMEM; | 208 | return -ENOMEM; |
| @@ -704,7 +704,7 @@ int dev_pm_qos_expose_latency_limit(struct device *dev, s32 value) · 495 unmodified lines | |||
| 704 | if (!device_is_registered(dev) || value < 0) | 704 | if (!device_is_registered(dev) || value < 0) |
| 705 | return -EINVAL; | 705 | return -EINVAL; |
| 706 | 706 | ||
| 707 | req = kzalloc_obj(*req, GFP_KERNEL); | 707 | req = kzalloc_obj(*req); |
| 708 | if (!req) | 708 | if (!req) |
| 709 | return -ENOMEM; | 709 | return -ENOMEM; |
| 710 | 710 | ||
| @@ -780,7 +780,7 @@ int dev_pm_qos_expose_flags(struct device *dev, s32 val) · 69 unmodified lines | |||
| 780 | if (!device_is_registered(dev)) | 780 | if (!device_is_registered(dev)) |
| 781 | return -EINVAL; | 781 | return -EINVAL; |
| 782 | 782 | ||
| 783 | req = kzalloc_obj(*req, GFP_KERNEL); | 783 | req = kzalloc_obj(*req); |
| 784 | if (!req) | 784 | if (!req) |
| 785 | return -ENOMEM; | 785 | return -ENOMEM; |
| 786 | 786 | ||
| @@ -919,7 +919,7 @@ int dev_pm_qos_update_user_latency_tolerance(struct device *dev, s32 val) · 132 unmodified lines | |||
| 919 | ret = -EINVAL; | 919 | ret = -EINVAL; |
| 920 | goto out; | 920 | goto out; |
| 921 | } | 921 | } |
| 922 | req = kzalloc_obj(*req, GFP_KERNEL); | 922 | req = kzalloc_obj(*req); |
| 923 | if (!req) { | 923 | if (!req) { |
| 924 | ret = -ENOMEM; | 924 | ret = -ENOMEM; |
| 925 | goto out; | 925 | goto out; |
| @@ -55,7 +55,7 @@ int dev_pm_set_wake_irq(struct device *dev, int irq) · 54 unmodified lines | |||
| 55 | if (irq < 0) | 55 | if (irq < 0) |
| 56 | return -EINVAL; | 56 | return -EINVAL; |
| 57 | 57 | ||
| 58 | wirq = kzalloc_obj(*wirq, GFP_KERNEL); | 58 | wirq = kzalloc_obj(*wirq); |
| 59 | if (!wirq) | 59 | if (!wirq) |
| 60 | return -ENOMEM; | 60 | return -ENOMEM; |
| 61 | 61 | ||
| @@ -179,7 +179,7 @@ static int __dev_pm_set_dedicated_wake_irq(struct device *dev, int irq, unsigned · 117 unmodified lines | |||
| 179 | if (irq < 0) | 179 | if (irq < 0) |
| 180 | return -EINVAL; | 180 | return -EINVAL; |
| 181 | 181 | ||
| 182 | wirq = kzalloc_obj(*wirq, GFP_KERNEL); | 182 | wirq = kzalloc_obj(*wirq); |
| 183 | if (!wirq) | 183 | if (!wirq) |
| 184 | return -ENOMEM; | 184 | return -ENOMEM; |
| 185 | 185 | ||
| @@ -83,7 +83,7 @@ static struct wakeup_source *wakeup_source_create(const char *name) · 82 unmodified lines | |||
| 83 | const char *ws_name; | 83 | const char *ws_name; |
| 84 | int id; | 84 | int id; |
| 85 | 85 | ||
| 86 | ws = kzalloc_obj(*ws, GFP_KERNEL); | 86 | ws = kzalloc_obj(*ws); |
| 87 | if (!ws) | 87 | if (!ws) |
| 88 | goto err_ws; | 88 | goto err_ws; |
| 89 | 89 | ||
| @@ -141,7 +141,7 @@ static struct device *wakeup_source_device_create(struct device *parent, · 140 unmodified lines | |||
| 141 | struct device *dev = NULL; | 141 | struct device *dev = NULL; |
| 142 | int retval; | 142 | int retval; |
| 143 | 143 | ||
| 144 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 144 | dev = kzalloc_obj(*dev); |
| 145 | if (!dev) { | 145 | if (!dev) { |
| 146 | retval = -ENOMEM; | 146 | retval = -ENOMEM; |
| 147 | goto error; | 147 | goto error; |
| @@ -66,7 +66,7 @@ static int regcache_hw_init(struct regmap *map) · 65 unmodified lines | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | map->num_reg_defaults = count; | 68 | map->num_reg_defaults = count; |
| 69 | map->reg_defaults = kmalloc_objs(struct reg_default, count, GFP_KERNEL); | 69 | map->reg_defaults = kmalloc_objs(struct reg_default, count); |
| 70 | if (!map->reg_defaults) | 70 | if (!map->reg_defaults) |
| 71 | return -ENOMEM; | 71 | return -ENOMEM; |
| 72 | 72 | ||
| @@ -130,7 +130,7 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, · 129 unmodified lines | |||
| 130 | 130 | ||
| 131 | /* No cache entry? Start a new one */ | 131 | /* No cache entry? Start a new one */ |
| 132 | if (!c) { | 132 | if (!c) { |
| 133 | c = kzalloc_obj(*c, GFP_KERNEL); | 133 | c = kzalloc_obj(*c); |
| 134 | if (!c) { | 134 | if (!c) { |
| 135 | regmap_debugfs_free_dump_cache(map); | 135 | regmap_debugfs_free_dump_cache(map); |
| 136 | mutex_unlock(&map->cache_lock); | 136 | mutex_unlock(&map->cache_lock); |
| @@ -555,7 +555,7 @@ void regmap_debugfs_init(struct regmap *map) · 418 unmodified lines | |||
| 555 | /* If we don't have the debugfs root yet, postpone init */ | 555 | /* If we don't have the debugfs root yet, postpone init */ |
| 556 | if (!regmap_debugfs_root) { | 556 | if (!regmap_debugfs_root) { |
| 557 | struct regmap_debugfs_node *node; | 557 | struct regmap_debugfs_node *node; |
| 558 | node = kzalloc_obj(*node, GFP_KERNEL); | 558 | node = kzalloc_obj(*node); |
| 559 | if (!node) | 559 | if (!node) |
| 560 | return; | 560 | return; |
| 561 | node->map = map; | 561 | node->map = map; |
| @@ -706,7 +706,7 @@ int regmap_add_irq_chip_fwnode(struct fwnode_handle *fwnode, · 705 unmodified lines | |||
| 706 | } | 706 | } |
| 707 | } | 707 | } |
| 708 | 708 | ||
| 709 | d = kzalloc_obj(*d, GFP_KERNEL); | 709 | d = kzalloc_obj(*d); |
| 710 | if (!d) | 710 | if (!d) |
| 711 | return -ENOMEM; | 711 | return -ENOMEM; |
| 712 | 712 | ||
| @@ -211,7 +211,7 @@ static struct regmap *gen_regmap(struct kunit *test, · 210 unmodified lines | |||
| 211 | 211 | ||
| 212 | get_random_bytes(buf, size); | 212 | get_random_bytes(buf, size); |
| 213 | 213 | ||
| 214 | *data = kzalloc_obj(**data, GFP_KERNEL); | 214 | *data = kzalloc_obj(**data); |
| 215 | if (!(*data)) | 215 | if (!(*data)) |
| 216 | goto out_free; | 216 | goto out_free; |
| 217 | (*data)->vals = buf; | 217 | (*data)->vals = buf; |
| @@ -1759,7 +1759,7 @@ static struct regmap *gen_raw_regmap(struct kunit *test, · 1541 unmodified lines | |||
| 1759 | 1759 | ||
| 1760 | get_random_bytes(buf, size); | 1760 | get_random_bytes(buf, size); |
| 1761 | 1761 | ||
| 1762 | *data = kzalloc_obj(**data, GFP_KERNEL); | 1762 | *data = kzalloc_obj(**data); |
| 1763 | if (!(*data)) | 1763 | if (!(*data)) |
| 1764 | goto out_free; | 1764 | goto out_free; |
| 1765 | (*data)->vals = (void *)buf; | 1765 | (*data)->vals = (void *)buf; |
| @@ -430,7 +430,7 @@ static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev, · 429 unmodified lines | |||
| 430 | if (config->use_relaxed_mmio && config->io_port) | 430 | if (config->use_relaxed_mmio && config->io_port) |
| 431 | return ERR_PTR(-EINVAL); | 431 | return ERR_PTR(-EINVAL); |
| 432 | 432 | ||
| 433 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 433 | ctx = kzalloc_obj(*ctx); |
| 434 | if (!ctx) | 434 | if (!ctx) |
| 435 | return ERR_PTR(-ENOMEM); | 435 | return ERR_PTR(-ENOMEM); |
| 436 | 436 | ||
| @@ -66,11 +66,11 @@ struct regmap *__regmap_init_ram(struct device *dev, · 65 unmodified lines | |||
| 66 | return ERR_PTR(-EINVAL); | 66 | return ERR_PTR(-EINVAL); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | data->read = kzalloc_objs(bool, config->max_register + 1, GFP_KERNEL); | 69 | data->read = kzalloc_objs(bool, config->max_register + 1); |
| 70 | if (!data->read) | 70 | if (!data->read) |
| 71 | return ERR_PTR(-ENOMEM); | 71 | return ERR_PTR(-ENOMEM); |
| 72 | 72 | ||
| 73 | data->written = kzalloc_objs(bool, config->max_register + 1, GFP_KERNEL); | 73 | data->written = kzalloc_objs(bool, config->max_register + 1); |
| 74 | if (!data->written) | 74 | if (!data->written) |
| 75 | return ERR_PTR(-ENOMEM); | 75 | return ERR_PTR(-ENOMEM); |
| 76 | 76 | ||
| @@ -123,11 +123,11 @@ struct regmap *__regmap_init_raw_ram(struct device *dev, · 122 unmodified lines | |||
| 123 | return ERR_PTR(-EINVAL); | 123 | return ERR_PTR(-EINVAL); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | data->read = kzalloc_objs(bool, config->max_register + 1, GFP_KERNEL); | 126 | data->read = kzalloc_objs(bool, config->max_register + 1); |
| 127 | if (!data->read) | 127 | if (!data->read) |
| 128 | return ERR_PTR(-ENOMEM); | 128 | return ERR_PTR(-ENOMEM); |
| 129 | 129 | ||
| 130 | data->written = kzalloc_objs(bool, config->max_register + 1, GFP_KERNEL); | 130 | data->written = kzalloc_objs(bool, config->max_register + 1); |
| 131 | if (!data->written) | 131 | if (!data->written) |
| 132 | return ERR_PTR(-ENOMEM); | 132 | return ERR_PTR(-ENOMEM); |
| 133 | 133 | ||
| @@ -630,7 +630,7 @@ spi_avmm_bridge_ctx_gen(struct spi_device *spi) · 629 unmodified lines | |||
| 630 | return ERR_PTR(-EINVAL); | 630 | return ERR_PTR(-EINVAL); |
| 631 | } | 631 | } |
| 632 | 632 | ||
| 633 | br = kzalloc_obj(*br, GFP_KERNEL); | 633 | br = kzalloc_obj(*br); |
| 634 | if (!br) | 634 | if (!br) |
| 635 | return ERR_PTR(-ENOMEM); | 635 | return ERR_PTR(-ENOMEM); |
| 636 | 636 | ||
| @@ -81,7 +81,7 @@ static struct regmap_async *regmap_spi_async_alloc(void) · 80 unmodified lines | |||
| 81 | { | 81 | { |
| 82 | struct regmap_async_spi *async_spi; | 82 | struct regmap_async_spi *async_spi; |
| 83 | 83 | ||
| 84 | async_spi = kzalloc_obj(*async_spi, GFP_KERNEL); | 84 | async_spi = kzalloc_obj(*async_spi); |
| 85 | if (!async_spi) | 85 | if (!async_spi) |
| 86 | return NULL; | 86 | return NULL; |
| 87 | 87 | ||
| @@ -689,7 +689,7 @@ struct regmap *__regmap_init(struct device *dev, · 688 unmodified lines | |||
| 689 | if (!config) | 689 | if (!config) |
| 690 | goto err; | 690 | goto err; |
| 691 | 691 | ||
| 692 | map = kzalloc_obj(*map, GFP_KERNEL); | 692 | map = kzalloc_obj(*map); |
| 693 | if (map == NULL) { | 693 | if (map == NULL) { |
| 694 | ret = -ENOMEM; | 694 | ret = -ENOMEM; |
| 695 | goto err; | 695 | goto err; |
| @@ -1117,7 +1117,7 @@ skip_format_initialization: · 421 unmodified lines | |||
| 1117 | } | 1117 | } |
| 1118 | } | 1118 | } |
| 1119 | 1119 | ||
| 1120 | new = kzalloc_obj(*new, GFP_KERNEL); | 1120 | new = kzalloc_obj(*new); |
| 1121 | if (new == NULL) { | 1121 | if (new == NULL) { |
| 1122 | ret = -ENOMEM; | 1122 | ret = -ENOMEM; |
| 1123 | goto err_range; | 1123 | goto err_range; |
| @@ -1274,7 +1274,7 @@ int regmap_field_bulk_alloc(struct regmap *regmap, · 150 unmodified lines | |||
| 1274 | struct regmap_field *rf; | 1274 | struct regmap_field *rf; |
| 1275 | int i; | 1275 | int i; |
| 1276 | 1276 | ||
| 1277 | rf = kzalloc_objs(*rf, num_fields, GFP_KERNEL); | 1277 | rf = kzalloc_objs(*rf, num_fields); |
| 1278 | if (!rf) | 1278 | if (!rf) |
| 1279 | return -ENOMEM; | 1279 | return -ENOMEM; |
| 1280 | 1280 | ||
| @@ -1384,7 +1384,7 @@ EXPORT_SYMBOL_GPL(devm_regmap_field_free); · 103 unmodified lines | |||
| 1384 | struct regmap_field *regmap_field_alloc(struct regmap *regmap, | 1384 | struct regmap_field *regmap_field_alloc(struct regmap *regmap, |
| 1385 | struct reg_field reg_field) | 1385 | struct reg_field reg_field) |
| 1386 | { | 1386 | { |
| 1387 | struct regmap_field *rm_field = kzalloc_obj(*rm_field, GFP_KERNEL); | 1387 | struct regmap_field *rm_field = kzalloc_obj(*rm_field); |
| 1388 | 1388 | ||
| 1389 | if (!rm_field) | 1389 | if (!rm_field) |
| 1390 | return ERR_PTR(-ENOMEM); | 1390 | return ERR_PTR(-ENOMEM); |
| @@ -140,13 +140,13 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr · 139 unmodified lines | |||
| 140 | return NULL; | 140 | return NULL; |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | soc_dev = kzalloc_obj(*soc_dev, GFP_KERNEL); | 143 | soc_dev = kzalloc_obj(*soc_dev); |
| 144 | if (!soc_dev) { | 144 | if (!soc_dev) { |
| 145 | ret = -ENOMEM; | 145 | ret = -ENOMEM; |
| 146 | goto out1; | 146 | goto out1; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | soc_attr_groups = kzalloc_objs(*soc_attr_groups, 3, GFP_KERNEL); | 149 | soc_attr_groups = kzalloc_objs(*soc_attr_groups, 3); |
| 150 | if (!soc_attr_groups) { | 150 | if (!soc_attr_groups) { |
| 151 | ret = -ENOMEM; | 151 | ret = -ENOMEM; |
| 152 | goto out2; | 152 | goto out2; |
| @@ -332,7 +332,7 @@ property_entries_dup(const struct property_entry *properties) · 331 unmodified lines | |||
| 332 | while (properties[n].name) | 332 | while (properties[n].name) |
| 333 | n++; | 333 | n++; |
| 334 | 334 | ||
| 335 | p = kzalloc_objs(*p, n + 1, GFP_KERNEL); | 335 | p = kzalloc_objs(*p, n + 1); |
| 336 | if (!p) | 336 | if (!p) |
| 337 | return ERR_PTR(-ENOMEM); | 337 | return ERR_PTR(-ENOMEM); |
| 338 | 338 | ||
| @@ -758,7 +758,7 @@ static struct software_node *software_node_alloc(const struct property_entry *pr · 419 unmodified lines | |||
| 758 | if (IS_ERR(props)) | 758 | if (IS_ERR(props)) |
| 759 | return ERR_CAST(props); | 759 | return ERR_CAST(props); |
| 760 | 760 | ||
| 761 | node = kzalloc_obj(*node, GFP_KERNEL); | 761 | node = kzalloc_obj(*node); |
| 762 | if (!node) { | 762 | if (!node) { |
| 763 | property_entries_free(props); | 763 | property_entries_free(props); |
| 764 | return ERR_PTR(-ENOMEM); | 764 | return ERR_PTR(-ENOMEM); |
| @@ -805,7 +805,7 @@ swnode_register(const struct software_node *node, struct swnode *parent, · 40 unmodified lines | |||
| 805 | struct swnode *swnode; | 805 | struct swnode *swnode; |
| 806 | int ret; | 806 | int ret; |
| 807 | 807 | ||
| 808 | swnode = kzalloc_obj(*swnode, GFP_KERNEL); | 808 | swnode = kzalloc_obj(*swnode); |
| 809 | if (!swnode) | 809 | if (!swnode) |
| 810 | return ERR_PTR(-ENOMEM); | 810 | return ERR_PTR(-ENOMEM); |
| 811 | 811 | ||
| @@ -399,7 +399,7 @@ void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) · 398 unmodified lines | |||
| 399 | return; | 399 | return; |
| 400 | } | 400 | } |
| 401 | 401 | ||
| 402 | pc_host = kzalloc_obj(*pc_host, GFP_KERNEL); | 402 | pc_host = kzalloc_obj(*pc_host); |
| 403 | if (!pc_host) { | 403 | if (!pc_host) { |
| 404 | bcma_err(bus, "can not allocate memory"); | 404 | bcma_err(bus, "can not allocate memory"); |
| 405 | return; | 405 | return; |
| @@ -165,7 +165,7 @@ static int bcma_host_pci_probe(struct pci_dev *dev, · 164 unmodified lines | |||
| 165 | u32 val; | 165 | u32 val; |
| 166 | 166 | ||
| 167 | /* Alloc */ | 167 | /* Alloc */ |
| 168 | bus = kzalloc_obj(*bus, GFP_KERNEL); | 168 | bus = kzalloc_obj(*bus); |
| 169 | if (!bus) | 169 | if (!bus) |
| 170 | goto out; | 170 | goto out; |
| 171 | 171 | ||
| @@ -479,7 +479,7 @@ int bcma_bus_scan(struct bcma_bus *bus) · 478 unmodified lines | |||
| 479 | 479 | ||
| 480 | while (eromptr < eromend) { | 480 | while (eromptr < eromend) { |
| 481 | struct bcma_device *other_core; | 481 | struct bcma_device *other_core; |
| 482 | struct bcma_device *core = kzalloc_obj(*core, GFP_KERNEL); | 482 | struct bcma_device *core = kzalloc_obj(*core); |
| 483 | if (!core) { | 483 | if (!core) { |
| 484 | err = -ENOMEM; | 484 | err = -ENOMEM; |
| 485 | goto out; | 485 | goto out; |
| @@ -1699,17 +1699,17 @@ aoecmd_init(void) · 1698 unmodified lines | |||
| 1699 | 1699 | ||
| 1700 | ncpus = num_online_cpus(); | 1700 | ncpus = num_online_cpus(); |
| 1701 | 1701 | ||
| 1702 | iocq = kzalloc_objs(struct iocq_ktio, ncpus, GFP_KERNEL); | 1702 | iocq = kzalloc_objs(struct iocq_ktio, ncpus); |
| 1703 | if (!iocq) | 1703 | if (!iocq) |
| 1704 | return -ENOMEM; | 1704 | return -ENOMEM; |
| 1705 | 1705 | ||
| 1706 | kts = kzalloc_objs(struct ktstate, ncpus, GFP_KERNEL); | 1706 | kts = kzalloc_objs(struct ktstate, ncpus); |
| 1707 | if (!kts) { | 1707 | if (!kts) { |
| 1708 | ret = -ENOMEM; | 1708 | ret = -ENOMEM; |
| 1709 | goto kts_fail; | 1709 | goto kts_fail; |
| 1710 | } | 1710 | } |
| 1711 | 1711 | ||
| 1712 | ktiowq = kzalloc_objs(wait_queue_head_t, ncpus, GFP_KERNEL); | 1712 | ktiowq = kzalloc_objs(wait_queue_head_t, ncpus); |
| 1713 | if (!ktiowq) { | 1713 | if (!ktiowq) { |
| 1714 | ret = -ENOMEM; | 1714 | ret = -ENOMEM; |
| 1715 | goto ktiowq_fail; | 1715 | goto ktiowq_fail; |
| @@ -272,7 +272,7 @@ static struct brd_device *brd_find_or_alloc_device(int i) · 271 unmodified lines | |||
| 272 | } | 272 | } |
| 273 | } | 273 | } |
| 274 | 274 | ||
| 275 | brd = kzalloc_obj(*brd, GFP_KERNEL); | 275 | brd = kzalloc_obj(*brd); |
| 276 | if (!brd) { | 276 | if (!brd) { |
| 277 | mutex_unlock(&brd_devices_mutex); | 277 | mutex_unlock(&brd_devices_mutex); |
| 278 | return ERR_PTR(-ENOMEM); | 278 | return ERR_PTR(-ENOMEM); |
| @@ -434,7 +434,7 @@ int drbd_bm_init(struct drbd_device *device) · 433 unmodified lines | |||
| 434 | { | 434 | { |
| 435 | struct drbd_bitmap *b = device->bitmap; | 435 | struct drbd_bitmap *b = device->bitmap; |
| 436 | WARN_ON(b != NULL); | 436 | WARN_ON(b != NULL); |
| 437 | b = kzalloc_obj(struct drbd_bitmap, GFP_KERNEL); | 437 | b = kzalloc_obj(struct drbd_bitmap); |
| 438 | if (!b) | 438 | if (!b) |
| 439 | return -ENOMEM; | 439 | return -ENOMEM; |
| 440 | spin_lock_init(&b->bm_lock); | 440 | spin_lock_init(&b->bm_lock); |
| @@ -2510,7 +2510,7 @@ struct drbd_resource *drbd_create_resource(const char *name) · 2509 unmodified lines | |||
| 2510 | { | 2510 | { |
| 2511 | struct drbd_resource *resource; | 2511 | struct drbd_resource *resource; |
| 2512 | 2512 | ||
| 2513 | resource = kzalloc_obj(struct drbd_resource, GFP_KERNEL); | 2513 | resource = kzalloc_obj(struct drbd_resource); |
| 2514 | if (!resource) | 2514 | if (!resource) |
| 2515 | goto fail; | 2515 | goto fail; |
| 2516 | resource->name = kstrdup(name, GFP_KERNEL); | 2516 | resource->name = kstrdup(name, GFP_KERNEL); |
| @@ -2543,7 +2543,7 @@ struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts) · 26 unmodified lines | |||
| 2543 | struct drbd_resource *resource; | 2543 | struct drbd_resource *resource; |
| 2544 | struct drbd_connection *connection; | 2544 | struct drbd_connection *connection; |
| 2545 | 2545 | ||
| 2546 | connection = kzalloc_obj(struct drbd_connection, GFP_KERNEL); | 2546 | connection = kzalloc_obj(struct drbd_connection); |
| 2547 | if (!connection) | 2547 | if (!connection) |
| 2548 | return NULL; | 2548 | return NULL; |
| 2549 | 2549 | ||
| @@ -2552,7 +2552,7 @@ struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts) · 2 unmodified lines | |||
| 2552 | if (drbd_alloc_socket(&connection->meta)) | 2552 | if (drbd_alloc_socket(&connection->meta)) |
| 2553 | goto fail; | 2553 | goto fail; |
| 2554 | 2554 | ||
| 2555 | connection->current_epoch = kzalloc_obj(struct drbd_epoch, GFP_KERNEL); | 2555 | connection->current_epoch = kzalloc_obj(struct drbd_epoch); |
| 2556 | if (!connection->current_epoch) | 2556 | if (!connection->current_epoch) |
| 2557 | goto fail; | 2557 | goto fail; |
| 2558 | 2558 | ||
| @@ -2666,7 +2666,7 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig · 107 unmodified lines | |||
| 2666 | return ERR_MINOR_OR_VOLUME_EXISTS; | 2666 | return ERR_MINOR_OR_VOLUME_EXISTS; |
| 2667 | 2667 | ||
| 2668 | /* GFP_KERNEL, we are outside of all write-out paths */ | 2668 | /* GFP_KERNEL, we are outside of all write-out paths */ |
| 2669 | device = kzalloc_obj(struct drbd_device, GFP_KERNEL); | 2669 | device = kzalloc_obj(struct drbd_device); |
| 2670 | if (!device) | 2670 | if (!device) |
| 2671 | return ERR_NOMEM; | 2671 | return ERR_NOMEM; |
| 2672 | kref_init(&device->kref); | 2672 | kref_init(&device->kref); |
| @@ -2725,7 +2725,7 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig · 52 unmodified lines | |||
| 2725 | INIT_LIST_HEAD(&device->peer_devices); | 2725 | INIT_LIST_HEAD(&device->peer_devices); |
| 2726 | INIT_LIST_HEAD(&device->pending_bitmap_io); | 2726 | INIT_LIST_HEAD(&device->pending_bitmap_io); |
| 2727 | for_each_connection(connection, resource) { | 2727 | for_each_connection(connection, resource) { |
| 2728 | peer_device = kzalloc_obj(struct drbd_peer_device, GFP_KERNEL); | 2728 | peer_device = kzalloc_obj(struct drbd_peer_device); |
| 2729 | if (!peer_device) | 2729 | if (!peer_device) |
| 2730 | goto out_idr_remove_from_resource; | 2730 | goto out_idr_remove_from_resource; |
| 2731 | peer_device->connection = connection; | 2731 | peer_device->connection = connection; |
| @@ -1536,7 +1536,7 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info) · 1535 unmodified lines | |||
| 1536 | goto out; | 1536 | goto out; |
| 1537 | } | 1537 | } |
| 1538 | 1538 | ||
| 1539 | new_disk_conf = kmalloc_obj(struct disk_conf, GFP_KERNEL); | 1539 | new_disk_conf = kmalloc_obj(struct disk_conf); |
| 1540 | if (!new_disk_conf) { | 1540 | if (!new_disk_conf) { |
| 1541 | retcode = ERR_NOMEM; | 1541 | retcode = ERR_NOMEM; |
| 1542 | goto fail; | 1542 | goto fail; |
| @@ -1785,14 +1785,14 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info) · 242 unmodified lines | |||
| 1785 | atomic_set(&device->rs_pending_cnt, 0); | 1785 | atomic_set(&device->rs_pending_cnt, 0); |
| 1786 | 1786 | ||
| 1787 | /* allocation not in the IO path, drbdsetup context */ | 1787 | /* allocation not in the IO path, drbdsetup context */ |
| 1788 | nbc = kzalloc_obj(struct drbd_backing_dev, GFP_KERNEL); | 1788 | nbc = kzalloc_obj(struct drbd_backing_dev); |
| 1789 | if (!nbc) { | 1789 | if (!nbc) { |
| 1790 | retcode = ERR_NOMEM; | 1790 | retcode = ERR_NOMEM; |
| 1791 | goto fail; | 1791 | goto fail; |
| 1792 | } | 1792 | } |
| 1793 | spin_lock_init(&nbc->md.uuid_lock); | 1793 | spin_lock_init(&nbc->md.uuid_lock); |
| 1794 | 1794 | ||
| 1795 | new_disk_conf = kzalloc_obj(struct disk_conf, GFP_KERNEL); | 1795 | new_disk_conf = kzalloc_obj(struct disk_conf); |
| 1796 | if (!new_disk_conf) { | 1796 | if (!new_disk_conf) { |
| 1797 | retcode = ERR_NOMEM; | 1797 | retcode = ERR_NOMEM; |
| 1798 | goto fail; | 1798 | goto fail; |
| @@ -2390,7 +2390,7 @@ int drbd_adm_net_opts(struct sk_buff *skb, struct genl_info *info) · 591 unmodified lines | |||
| 2390 | connection = adm_ctx.connection; | 2390 | connection = adm_ctx.connection; |
| 2391 | mutex_lock(&adm_ctx.resource->adm_mutex); | 2391 | mutex_lock(&adm_ctx.resource->adm_mutex); |
| 2392 | 2392 | ||
| 2393 | new_net_conf = kzalloc_obj(struct net_conf, GFP_KERNEL); | 2393 | new_net_conf = kzalloc_obj(struct net_conf); |
| 2394 | if (!new_net_conf) { | 2394 | if (!new_net_conf) { |
| 2395 | retcode = ERR_NOMEM; | 2395 | retcode = ERR_NOMEM; |
| 2396 | goto out; | 2396 | goto out; |
| @@ -2570,7 +2570,7 @@ int drbd_adm_connect(struct sk_buff *skb, struct genl_info *info) · 173 unmodified lines | |||
| 2570 | } | 2570 | } |
| 2571 | 2571 | ||
| 2572 | /* allocation not in the IO path, drbdsetup / netlink process context */ | 2572 | /* allocation not in the IO path, drbdsetup / netlink process context */ |
| 2573 | new_net_conf = kzalloc_obj(*new_net_conf, GFP_KERNEL); | 2573 | new_net_conf = kzalloc_obj(*new_net_conf); |
| 2574 | if (!new_net_conf) { | 2574 | if (!new_net_conf) { |
| 2575 | retcode = ERR_NOMEM; | 2575 | retcode = ERR_NOMEM; |
| 2576 | goto fail; | 2576 | goto fail; |
| @@ -2840,7 +2840,7 @@ int drbd_adm_resize(struct sk_buff *skb, struct genl_info *info) · 263 unmodified lines | |||
| 2840 | u_size = rcu_dereference(device->ldev->disk_conf)->disk_size; | 2840 | u_size = rcu_dereference(device->ldev->disk_conf)->disk_size; |
| 2841 | rcu_read_unlock(); | 2841 | rcu_read_unlock(); |
| 2842 | if (u_size != (sector_t)rs.resize_size) { | 2842 | if (u_size != (sector_t)rs.resize_size) { |
| 2843 | new_disk_conf = kmalloc_obj(struct disk_conf, GFP_KERNEL); | 2843 | new_disk_conf = kmalloc_obj(struct disk_conf); |
| 2844 | if (!new_disk_conf) { | 2844 | if (!new_disk_conf) { |
| 2845 | retcode = ERR_NOMEM; | 2845 | retcode = ERR_NOMEM; |
| 2846 | goto fail_ldev; | 2846 | goto fail_ldev; |
| @@ -3547,7 +3547,7 @@ static int receive_protocol(struct drbd_connection *connection, struct packet_in · 3546 unmodified lines | |||
| 3547 | } | 3547 | } |
| 3548 | } | 3548 | } |
| 3549 | 3549 | ||
| 3550 | new_net_conf = kmalloc_obj(struct net_conf, GFP_KERNEL); | 3550 | new_net_conf = kmalloc_obj(struct net_conf); |
| 3551 | if (!new_net_conf) | 3551 | if (!new_net_conf) |
| 3552 | goto disconnect; | 3552 | goto disconnect; |
| 3553 | 3553 | ||
| @@ -3708,7 +3708,7 @@ static int receive_SyncParam(struct drbd_connection *connection, struct packet_i · 154 unmodified lines | |||
| 3708 | mutex_lock(&connection->resource->conf_update); | 3708 | mutex_lock(&connection->resource->conf_update); |
| 3709 | old_net_conf = peer_device->connection->net_conf; | 3709 | old_net_conf = peer_device->connection->net_conf; |
| 3710 | if (get_ldev(device)) { | 3710 | if (get_ldev(device)) { |
| 3711 | new_disk_conf = kzalloc_obj(struct disk_conf, GFP_KERNEL); | 3711 | new_disk_conf = kzalloc_obj(struct disk_conf); |
| 3712 | if (!new_disk_conf) { | 3712 | if (!new_disk_conf) { |
| 3713 | put_ldev(device); | 3713 | put_ldev(device); |
| 3714 | mutex_unlock(&connection->resource->conf_update); | 3714 | mutex_unlock(&connection->resource->conf_update); |
| @@ -3794,7 +3794,7 @@ static int receive_SyncParam(struct drbd_connection *connection, struct packet_i · 79 unmodified lines | |||
| 3794 | } | 3794 | } |
| 3795 | 3795 | ||
| 3796 | if (verify_tfm || csums_tfm) { | 3796 | if (verify_tfm || csums_tfm) { |
| 3797 | new_net_conf = kzalloc_obj(struct net_conf, GFP_KERNEL); | 3797 | new_net_conf = kzalloc_obj(struct net_conf); |
| 3798 | if (!new_net_conf) | 3798 | if (!new_net_conf) |
| 3799 | goto disconnect; | 3799 | goto disconnect; |
| 3800 | 3800 | ||
| @@ -2009,7 +2009,7 @@ static int loop_add(int i) · 2008 unmodified lines | |||
| 2009 | int err; | 2009 | int err; |
| 2010 | 2010 | ||
| 2011 | err = -ENOMEM; | 2011 | err = -ENOMEM; |
| 2012 | lo = kzalloc_obj(*lo, GFP_KERNEL); | 2012 | lo = kzalloc_obj(*lo); |
| 2013 | if (!lo) | 2013 | if (!lo) |
| 2014 | goto out; | 2014 | goto out; |
| 2015 | lo->worker_tree = RB_ROOT; | 2015 | lo->worker_tree = RB_ROOT; |
| @@ -1274,7 +1274,7 @@ static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg, · 1273 unmodified lines | |||
| 1274 | goto put_socket; | 1274 | goto put_socket; |
| 1275 | } | 1275 | } |
| 1276 | 1276 | ||
| 1277 | nsock = kzalloc_obj(*nsock, GFP_KERNEL); | 1277 | nsock = kzalloc_obj(*nsock); |
| 1278 | if (!nsock) { | 1278 | if (!nsock) { |
| 1279 | err = -ENOMEM; | 1279 | err = -ENOMEM; |
| 1280 | goto put_socket; | 1280 | goto put_socket; |
| @@ -1322,7 +1322,7 @@ static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg) · 41 unmodified lines | |||
| 1322 | if (!sock) | 1322 | if (!sock) |
| 1323 | return err; | 1323 | return err; |
| 1324 | 1324 | ||
| 1325 | args = kzalloc_obj(*args, GFP_KERNEL); | 1325 | args = kzalloc_obj(*args); |
| 1326 | if (!args) { | 1326 | if (!args) { |
| 1327 | sockfd_put(sock); | 1327 | sockfd_put(sock); |
| 1328 | return -ENOMEM; | 1328 | return -ENOMEM; |
| @@ -1510,7 +1510,7 @@ retry: · 181 unmodified lines | |||
| 1510 | for (i = 0; i < num_connections; i++) { | 1510 | for (i = 0; i < num_connections; i++) { |
| 1511 | struct recv_thread_args *args; | 1511 | struct recv_thread_args *args; |
| 1512 | 1512 | ||
| 1513 | args = kzalloc_obj(*args, GFP_KERNEL); | 1513 | args = kzalloc_obj(*args); |
| 1514 | if (!args) { | 1514 | if (!args) { |
| 1515 | sock_shutdown(nbd); | 1515 | sock_shutdown(nbd); |
| 1516 | /* | 1516 | /* |
| @@ -1916,7 +1916,7 @@ static struct nbd_device *nbd_dev_add(int index, unsigned int refs) · 399 unmodified lines | |||
| 1916 | struct gendisk *disk; | 1916 | struct gendisk *disk; |
| 1917 | int err = -ENOMEM; | 1917 | int err = -ENOMEM; |
| 1918 | 1918 | ||
| 1919 | nbd = kzalloc_obj(struct nbd_device, GFP_KERNEL); | 1919 | nbd = kzalloc_obj(struct nbd_device); |
| 1920 | if (!nbd) | 1920 | if (!nbd) |
| 1921 | goto out; | 1921 | goto out; |
| 1922 | 1922 | ||
| @@ -778,7 +778,7 @@ static struct nullb_device *null_alloc_dev(void) · 777 unmodified lines | |||
| 778 | { | 778 | { |
| 779 | struct nullb_device *dev; | 779 | struct nullb_device *dev; |
| 780 | 780 | ||
| 781 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 781 | dev = kzalloc_obj(*dev); |
| 782 | if (!dev) | 782 | if (!dev) |
| 783 | return NULL; | 783 | return NULL; |
| 784 | 784 | ||
| @@ -1818,7 +1818,7 @@ static int setup_queues(struct nullb *nullb) · 1033 unmodified lines | |||
| 1818 | if (g_poll_queues) | 1818 | if (g_poll_queues) |
| 1819 | nqueues += g_poll_queues; | 1819 | nqueues += g_poll_queues; |
| 1820 | 1820 | ||
| 1821 | nullb->queues = kzalloc_objs(struct nullb_queue, nqueues, GFP_KERNEL); | 1821 | nullb->queues = kzalloc_objs(struct nullb_queue, nqueues); |
| 1822 | if (!nullb->queues) | 1822 | if (!nullb->queues) |
| 1823 | return -ENOMEM; | 1823 | return -ENOMEM; |
| 1824 | 1824 | ||
| @@ -416,7 +416,7 @@ static int ps3disk_probe(struct ps3_system_bus_device *_dev) · 415 unmodified lines | |||
| 416 | __set_bit(devidx, &ps3disk_mask); | 416 | __set_bit(devidx, &ps3disk_mask); |
| 417 | mutex_unlock(&ps3disk_mask_mutex); | 417 | mutex_unlock(&ps3disk_mask_mutex); |
| 418 | 418 | ||
| 419 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 419 | priv = kzalloc_obj(*priv); |
| 420 | if (!priv) { | 420 | if (!priv) { |
| 421 | error = -ENOMEM; | 421 | error = -ENOMEM; |
| 422 | goto fail; | 422 | goto fail; |
| @@ -612,7 +612,7 @@ static int ps3vram_probe(struct ps3_system_bus_device *dev) · 611 unmodified lines | |||
| 612 | reports_size, xdr_lpar; | 612 | reports_size, xdr_lpar; |
| 613 | char *rest; | 613 | char *rest; |
| 614 | 614 | ||
| 615 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 615 | priv = kzalloc_obj(*priv); |
| 616 | if (!priv) { | 616 | if (!priv) { |
| 617 | error = -ENOMEM; | 617 | error = -ENOMEM; |
| 618 | goto fail; | 618 | goto fail; |
| @@ -707,7 +707,7 @@ static struct rbd_client *rbd_client_create(struct ceph_options *ceph_opts) · 706 unmodified lines | |||
| 707 | int ret = -ENOMEM; | 707 | int ret = -ENOMEM; |
| 708 | 708 | ||
| 709 | dout("%s:\n", __func__); | 709 | dout("%s:\n", __func__); |
| 710 | rbdc = kmalloc_obj(struct rbd_client, GFP_KERNEL); | 710 | rbdc = kmalloc_obj(struct rbd_client); |
| 711 | if (!rbdc) | 711 | if (!rbdc) |
| 712 | goto out_opt; | 712 | goto out_opt; |
| 713 | 713 | ||
| @@ -5289,7 +5289,7 @@ static struct rbd_spec *rbd_spec_alloc(void) · 4575 unmodified lines | |||
| 5289 | { | 5289 | { |
| 5290 | struct rbd_spec *spec; | 5290 | struct rbd_spec *spec; |
| 5291 | 5291 | ||
| 5292 | spec = kzalloc_obj(*spec, GFP_KERNEL); | 5292 | spec = kzalloc_obj(*spec); |
| 5293 | if (!spec) | 5293 | if (!spec) |
| 5294 | return NULL; | 5294 | return NULL; |
| 5295 | 5295 | ||
| @@ -5352,7 +5352,7 @@ static struct rbd_device *__rbd_dev_create(struct rbd_spec *spec) · 56 unmodified lines | |||
| 5352 | { | 5352 | { |
| 5353 | struct rbd_device *rbd_dev; | 5353 | struct rbd_device *rbd_dev; |
| 5354 | 5354 | ||
| 5355 | rbd_dev = kzalloc_obj(*rbd_dev, GFP_KERNEL); | 5355 | rbd_dev = kzalloc_obj(*rbd_dev); |
| 5356 | if (!rbd_dev) | 5356 | if (!rbd_dev) |
| 5357 | return NULL; | 5357 | return NULL; |
| 5358 | 5358 | ||
| @@ -6509,7 +6509,7 @@ static int rbd_add_parse_args(const char *buf, · 1150 unmodified lines | |||
| 6509 | 6509 | ||
| 6510 | /* Initialize all rbd options to the defaults */ | 6510 | /* Initialize all rbd options to the defaults */ |
| 6511 | 6511 | ||
| 6512 | pctx.opts = kzalloc_obj(*pctx.opts, GFP_KERNEL); | 6512 | pctx.opts = kzalloc_obj(*pctx.opts); |
| 6513 | if (!pctx.opts) | 6513 | if (!pctx.opts) |
| 6514 | goto out_mem; | 6514 | goto out_mem; |
| 6515 | 6515 | ||
| @@ -591,7 +591,7 @@ static ssize_t rnbd_clt_map_device_store(struct kobject *kobj, · 590 unmodified lines | |||
| 591 | opt.dest_port = &port_nr; | 591 | opt.dest_port = &port_nr; |
| 592 | opt.access_mode = &access_mode; | 592 | opt.access_mode = &access_mode; |
| 593 | opt.nr_poll_queues = &nr_poll_queues; | 593 | opt.nr_poll_queues = &nr_poll_queues; |
| 594 | addrs = kzalloc_objs(*addrs, ARRAY_SIZE(paths) * 2, GFP_KERNEL); | 594 | addrs = kzalloc_objs(*addrs, ARRAY_SIZE(paths) * 2); |
| 595 | if (!addrs) | 595 | if (!addrs) |
| 596 | return -ENOMEM; | 596 | return -ENOMEM; |
| 597 | 597 | ||
| @@ -324,7 +324,7 @@ static struct rnbd_iu *rnbd_get_iu(struct rnbd_clt_session *sess, · 323 unmodified lines | |||
| 324 | struct rnbd_iu *iu; | 324 | struct rnbd_iu *iu; |
| 325 | struct rtrs_permit *permit; | 325 | struct rtrs_permit *permit; |
| 326 | 326 | ||
| 327 | iu = kzalloc_obj(*iu, GFP_KERNEL); | 327 | iu = kzalloc_obj(*iu); |
| 328 | if (!iu) | 328 | if (!iu) |
| 329 | return NULL; | 329 | return NULL; |
| 330 | 330 | ||
| @@ -541,7 +541,7 @@ static int send_msg_open(struct rnbd_clt_dev *dev, enum wait_type wait) · 210 unmodified lines | |||
| 541 | }; | 541 | }; |
| 542 | int err, errno; | 542 | int err, errno; |
| 543 | 543 | ||
| 544 | rsp = kzalloc_obj(*rsp, GFP_KERNEL); | 544 | rsp = kzalloc_obj(*rsp); |
| 545 | if (!rsp) | 545 | if (!rsp) |
| 546 | return -ENOMEM; | 546 | return -ENOMEM; |
| 547 | 547 | ||
| @@ -587,7 +587,7 @@ static int send_msg_sess_info(struct rnbd_clt_session *sess, enum wait_type wait · 39 unmodified lines | |||
| 587 | }; | 587 | }; |
| 588 | int err, errno; | 588 | int err, errno; |
| 589 | 589 | ||
| 590 | rsp = kzalloc_obj(*rsp, GFP_KERNEL); | 590 | rsp = kzalloc_obj(*rsp); |
| 591 | if (!rsp) | 591 | if (!rsp) |
| 592 | return -ENOMEM; | 592 | return -ENOMEM; |
| 593 | 593 | ||
| @@ -1564,7 +1564,7 @@ struct rnbd_clt_dev *rnbd_clt_map_device(const char *sessname, · 970 unmodified lines | |||
| 1564 | goto put_dev; | 1564 | goto put_dev; |
| 1565 | } | 1565 | } |
| 1566 | 1566 | ||
| 1567 | rsp = kzalloc_obj(*rsp, GFP_KERNEL); | 1567 | rsp = kzalloc_obj(*rsp); |
| 1568 | if (!rsp) { | 1568 | if (!rsp) { |
| 1569 | ret = -ENOMEM; | 1569 | ret = -ENOMEM; |
| 1570 | goto del_dev; | 1570 | goto del_dev; |
| @@ -128,7 +128,7 @@ static int process_rdma(struct rnbd_srv_session *srv_sess, · 127 unmodified lines | |||
| 128 | 128 | ||
| 129 | trace_process_rdma(srv_sess, msg, id, datalen, usrlen); | 129 | trace_process_rdma(srv_sess, msg, id, datalen, usrlen); |
| 130 | 130 | ||
| 131 | priv = kmalloc_obj(*priv, GFP_KERNEL); | 131 | priv = kmalloc_obj(*priv); |
| 132 | if (!priv) | 132 | if (!priv) |
| 133 | return -ENOMEM; | 133 | return -ENOMEM; |
| 134 | 134 | ||
| @@ -287,7 +287,7 @@ static int create_sess(struct rtrs_srv_sess *rtrs) · 152 unmodified lines | |||
| 287 | 287 | ||
| 288 | return err; | 288 | return err; |
| 289 | } | 289 | } |
| 290 | srv_sess = kzalloc_obj(*srv_sess, GFP_KERNEL); | 290 | srv_sess = kzalloc_obj(*srv_sess); |
| 291 | if (!srv_sess) | 291 | if (!srv_sess) |
| 292 | return -ENOMEM; | 292 | return -ENOMEM; |
| 293 | 293 | ||
| @@ -422,7 +422,7 @@ static struct rnbd_srv_sess_dev · 128 unmodified lines | |||
| 422 | struct rnbd_srv_sess_dev *sess_dev; | 422 | struct rnbd_srv_sess_dev *sess_dev; |
| 423 | int error; | 423 | int error; |
| 424 | 424 | ||
| 425 | sess_dev = kzalloc_obj(*sess_dev, GFP_KERNEL); | 425 | sess_dev = kzalloc_obj(*sess_dev); |
| 426 | if (!sess_dev) | 426 | if (!sess_dev) |
| 427 | return ERR_PTR(-ENOMEM); | 427 | return ERR_PTR(-ENOMEM); |
| 428 | 428 | ||
| @@ -441,7 +441,7 @@ static struct rnbd_srv_dev *rnbd_srv_init_srv_dev(struct block_device *bdev) · 12 unmodified lines | |||
| 441 | { | 441 | { |
| 442 | struct rnbd_srv_dev *dev; | 442 | struct rnbd_srv_dev *dev; |
| 443 | 443 | ||
| 444 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 444 | dev = kzalloc_obj(*dev); |
| 445 | if (!dev) | 445 | if (!dev) |
| 446 | return ERR_PTR(-ENOMEM); | 446 | return ERR_PTR(-ENOMEM); |
| 447 | 447 | ||
| @@ -992,7 +992,7 @@ static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) · 991 unmodified lines | |||
| 992 | goto err_out_release_mdesc; | 992 | goto err_out_release_mdesc; |
| 993 | } | 993 | } |
| 994 | 994 | ||
| 995 | port = kzalloc_obj(*port, GFP_KERNEL); | 995 | port = kzalloc_obj(*port); |
| 996 | if (!port) { | 996 | if (!port) { |
| 997 | err = -ENOMEM; | 997 | err = -ENOMEM; |
| 998 | goto err_out_release_mdesc; | 998 | goto err_out_release_mdesc; |
| @@ -896,7 +896,7 @@ static int swim_probe(struct platform_device *dev) · 895 unmodified lines | |||
| 896 | 896 | ||
| 897 | /* set platform driver data */ | 897 | /* set platform driver data */ |
| 898 | 898 | ||
| 899 | swd = kzalloc_obj(struct swim_priv, GFP_KERNEL); | 899 | swd = kzalloc_obj(struct swim_priv); |
| 900 | if (!swd) { | 900 | if (!swd) { |
| 901 | ret = -ENOMEM; | 901 | ret = -ENOMEM; |
| 902 | goto out_release_io; | 902 | goto out_release_io; |
| @@ -991,12 +991,12 @@ static int init_vq(struct virtio_blk *vblk) · 990 unmodified lines | |||
| 991 | vblk->io_queues[HCTX_TYPE_READ], | 991 | vblk->io_queues[HCTX_TYPE_READ], |
| 992 | vblk->io_queues[HCTX_TYPE_POLL]); | 992 | vblk->io_queues[HCTX_TYPE_POLL]); |
| 993 | 993 | ||
| 994 | vblk->vqs = kmalloc_objs(*vblk->vqs, num_vqs, GFP_KERNEL); | 994 | vblk->vqs = kmalloc_objs(*vblk->vqs, num_vqs); |
| 995 | if (!vblk->vqs) | 995 | if (!vblk->vqs) |
| 996 | return -ENOMEM; | 996 | return -ENOMEM; |
| 997 | 997 | ||
| 998 | vqs_info = kzalloc_objs(*vqs_info, num_vqs, GFP_KERNEL); | 998 | vqs_info = kzalloc_objs(*vqs_info, num_vqs); |
| 999 | vqs = kmalloc_objs(*vqs, num_vqs, GFP_KERNEL); | 999 | vqs = kmalloc_objs(*vqs, num_vqs); |
| 1000 | if (!vqs_info || !vqs) { | 1000 | if (!vqs_info || !vqs) { |
| 1001 | err = -ENOMEM; | 1001 | err = -ENOMEM; |
| 1002 | goto out; | 1002 | goto out; |
| @@ -1455,7 +1455,7 @@ static int virtblk_probe(struct virtio_device *vdev) · 452 unmodified lines | |||
| 1455 | goto out; | 1455 | goto out; |
| 1456 | index = err; | 1456 | index = err; |
| 1457 | 1457 | ||
| 1458 | vdev->priv = vblk = kmalloc_obj(*vblk, GFP_KERNEL); | 1458 | vdev->priv = vblk = kmalloc_obj(*vblk); |
| 1459 | if (!vblk) { | 1459 | if (!vblk) { |
| 1460 | err = -ENOMEM; | 1460 | err = -ENOMEM; |
| 1461 | goto out_free_index; | 1461 | goto out_free_index; |
| @@ -628,7 +628,7 @@ static int xen_blkbk_probe(struct xenbus_device *dev, · 627 unmodified lines | |||
| 628 | const struct xenbus_device_id *id) | 628 | const struct xenbus_device_id *id) |
| 629 | { | 629 | { |
| 630 | int err; | 630 | int err; |
| 631 | struct backend_info *be = kzalloc_obj(struct backend_info, GFP_KERNEL); | 631 | struct backend_info *be = kzalloc_obj(struct backend_info); |
| 632 | 632 | ||
| 633 | /* match the pr_debug in xen_blkbk_remove */ | 633 | /* match the pr_debug in xen_blkbk_remove */ |
| 634 | pr_debug("%s %p %d\n", __func__, dev, dev->otherend_id); | 634 | pr_debug("%s %p %d\n", __func__, dev, dev->otherend_id); |
| @@ -1009,7 +1009,7 @@ static int read_per_ring_refs(struct xen_blkif_ring *ring, const char *dir) · 374 unmodified lines | |||
| 1009 | 1009 | ||
| 1010 | err = -ENOMEM; | 1010 | err = -ENOMEM; |
| 1011 | for (i = 0; i < nr_grefs * XEN_BLKIF_REQS_PER_PAGE; i++) { | 1011 | for (i = 0; i < nr_grefs * XEN_BLKIF_REQS_PER_PAGE; i++) { |
| 1012 | req = kzalloc_obj(*req, GFP_KERNEL); | 1012 | req = kzalloc_obj(*req); |
| 1013 | if (!req) | 1013 | if (!req) |
| 1014 | goto fail; | 1014 | goto fail; |
| 1015 | list_add_tail(&req->free_list, &ring->pending_free); | 1015 | list_add_tail(&req->free_list, &ring->pending_free); |
| @@ -1980,7 +1980,7 @@ static int blkfront_probe(struct xenbus_device *dev, · 1979 unmodified lines | |||
| 1980 | } | 1980 | } |
| 1981 | kfree(type); | 1981 | kfree(type); |
| 1982 | } | 1982 | } |
| 1983 | info = kzalloc_obj(*info, GFP_KERNEL); | 1983 | info = kzalloc_obj(*info); |
| 1984 | if (!info) { | 1984 | if (!info) { |
| 1985 | xenbus_dev_fatal(dev, -ENOMEM, "allocating info structure"); | 1985 | xenbus_dev_fatal(dev, -ENOMEM, "allocating info structure"); |
| 1986 | return -ENOMEM; | 1986 | return -ENOMEM; |
| @@ -54,7 +54,7 @@ static int deflate_create(struct zcomp_params *params, struct zcomp_ctx *ctx) · 53 unmodified lines | |||
| 54 | size_t sz; | 54 | size_t sz; |
| 55 | int ret; | 55 | int ret; |
| 56 | 56 | ||
| 57 | zctx = kzalloc_obj(*zctx, GFP_KERNEL); | 57 | zctx = kzalloc_obj(*zctx); |
| 58 | if (!zctx) | 58 | if (!zctx) |
| 59 | return -ENOMEM; | 59 | return -ENOMEM; |
| 60 | 60 | ||
| @@ -41,7 +41,7 @@ static int lz4_create(struct zcomp_params *params, struct zcomp_ctx *ctx) · 40 unmodified lines | |||
| 41 | { | 41 | { |
| 42 | struct lz4_ctx *zctx; | 42 | struct lz4_ctx *zctx; |
| 43 | 43 | ||
| 44 | zctx = kzalloc_obj(*zctx, GFP_KERNEL); | 44 | zctx = kzalloc_obj(*zctx); |
| 45 | if (!zctx) | 45 | if (!zctx) |
| 46 | return -ENOMEM; | 46 | return -ENOMEM; |
| 47 | 47 | ||
| @@ -51,11 +51,11 @@ static int lz4_create(struct zcomp_params *params, struct zcomp_ctx *ctx) · 3 unmodified lines | |||
| 51 | if (!zctx->mem) | 51 | if (!zctx->mem) |
| 52 | goto error; | 52 | goto error; |
| 53 | } else { | 53 | } else { |
| 54 | zctx->dstrm = kzalloc_obj(*zctx->dstrm, GFP_KERNEL); | 54 | zctx->dstrm = kzalloc_obj(*zctx->dstrm); |
| 55 | if (!zctx->dstrm) | 55 | if (!zctx->dstrm) |
| 56 | goto error; | 56 | goto error; |
| 57 | 57 | ||
| 58 | zctx->cstrm = kzalloc_obj(*zctx->cstrm, GFP_KERNEL); | 58 | zctx->cstrm = kzalloc_obj(*zctx->cstrm); |
| 59 | if (!zctx->cstrm) | 59 | if (!zctx->cstrm) |
| 60 | goto error; | 60 | goto error; |
| 61 | } | 61 | } |
| @@ -41,7 +41,7 @@ static int lz4hc_create(struct zcomp_params *params, struct zcomp_ctx *ctx) · 40 unmodified lines | |||
| 41 | { | 41 | { |
| 42 | struct lz4hc_ctx *zctx; | 42 | struct lz4hc_ctx *zctx; |
| 43 | 43 | ||
| 44 | zctx = kzalloc_obj(*zctx, GFP_KERNEL); | 44 | zctx = kzalloc_obj(*zctx); |
| 45 | if (!zctx) | 45 | if (!zctx) |
| 46 | return -ENOMEM; | 46 | return -ENOMEM; |
| 47 | 47 | ||
| @@ -51,11 +51,11 @@ static int lz4hc_create(struct zcomp_params *params, struct zcomp_ctx *ctx) · 3 unmodified lines | |||
| 51 | if (!zctx->mem) | 51 | if (!zctx->mem) |
| 52 | goto error; | 52 | goto error; |
| 53 | } else { | 53 | } else { |
| 54 | zctx->dstrm = kzalloc_obj(*zctx->dstrm, GFP_KERNEL); | 54 | zctx->dstrm = kzalloc_obj(*zctx->dstrm); |
| 55 | if (!zctx->dstrm) | 55 | if (!zctx->dstrm) |
| 56 | goto error; | 56 | goto error; |
| 57 | 57 | ||
| 58 | zctx->cstrm = kzalloc_obj(*zctx->cstrm, GFP_KERNEL); | 58 | zctx->cstrm = kzalloc_obj(*zctx->cstrm); |
| 59 | if (!zctx->cstrm) | 59 | if (!zctx->cstrm) |
| 60 | goto error; | 60 | goto error; |
| 61 | } | 61 | } |
| @@ -53,7 +53,7 @@ static int zstd_setup_params(struct zcomp_params *params) · 52 unmodified lines | |||
| 53 | zstd_compression_parameters prm; | 53 | zstd_compression_parameters prm; |
| 54 | struct zstd_params *zp; | 54 | struct zstd_params *zp; |
| 55 | 55 | ||
| 56 | zp = kzalloc_obj(*zp, GFP_KERNEL); | 56 | zp = kzalloc_obj(*zp); |
| 57 | if (!zp) | 57 | if (!zp) |
| 58 | return -ENOMEM; | 58 | return -ENOMEM; |
| 59 | 59 | ||
| @@ -122,7 +122,7 @@ static int zstd_create(struct zcomp_params *params, struct zcomp_ctx *ctx) · 62 unmodified lines | |||
| 122 | zstd_parameters prm; | 122 | zstd_parameters prm; |
| 123 | size_t sz; | 123 | size_t sz; |
| 124 | 124 | ||
| 125 | zctx = kzalloc_obj(*zctx, GFP_KERNEL); | 125 | zctx = kzalloc_obj(*zctx); |
| 126 | if (!zctx) | 126 | if (!zctx) |
| 127 | return -ENOMEM; | 127 | return -ENOMEM; |
| 128 | 128 | ||
| @@ -238,7 +238,7 @@ struct zcomp *zcomp_create(const char *alg, struct zcomp_params *params) · 237 unmodified lines | |||
| 238 | */ | 238 | */ |
| 239 | BUILD_BUG_ON(ARRAY_SIZE(backends) <= 1); | 239 | BUILD_BUG_ON(ARRAY_SIZE(backends) <= 1); |
| 240 | 240 | ||
| 241 | comp = kzalloc_obj(struct zcomp, GFP_KERNEL); | 241 | comp = kzalloc_obj(struct zcomp); |
| 242 | if (!comp) | 242 | if (!comp) |
| 243 | return ERR_PTR(-ENOMEM); | 243 | return ERR_PTR(-ENOMEM); |
| 244 | 244 | ||
| @@ -250,7 +250,7 @@ static struct zram_pp_ctl *init_pp_ctl(void) · 249 unmodified lines | |||
| 250 | struct zram_pp_ctl *ctl; | 250 | struct zram_pp_ctl *ctl; |
| 251 | u32 idx; | 251 | u32 idx; |
| 252 | 252 | ||
| 253 | ctl = kmalloc_obj(*ctl, GFP_KERNEL); | 253 | ctl = kmalloc_obj(*ctl); |
| 254 | if (!ctl) | 254 | if (!ctl) |
| 255 | return NULL; | 255 | return NULL; |
| 256 | 256 | ||
| @@ -855,7 +855,7 @@ static struct zram_wb_ctl *init_wb_ctl(struct zram *zram) · 598 unmodified lines | |||
| 855 | struct zram_wb_ctl *wb_ctl; | 855 | struct zram_wb_ctl *wb_ctl; |
| 856 | int i; | 856 | int i; |
| 857 | 857 | ||
| 858 | wb_ctl = kmalloc_obj(*wb_ctl, GFP_KERNEL); | 858 | wb_ctl = kmalloc_obj(*wb_ctl); |
| 859 | if (!wb_ctl) | 859 | if (!wb_ctl) |
| 860 | return NULL; | 860 | return NULL; |
| 861 | 861 | ||
| @@ -3079,7 +3079,7 @@ static int zram_add(void) · 2217 unmodified lines | |||
| 3079 | struct zram *zram; | 3079 | struct zram *zram; |
| 3080 | int ret, device_id; | 3080 | int ret, device_id; |
| 3081 | 3081 | ||
| 3082 | zram = kzalloc_obj(struct zram, GFP_KERNEL); | 3082 | zram = kzalloc_obj(struct zram); |
| 3083 | if (!zram) | 3083 | if (!zram) |
| 3084 | return -ENOMEM; | 3084 | return -ENOMEM; |
| 3085 | 3085 | ||
| @@ -284,7 +284,7 @@ static int bpa10x_send_frame(struct hci_dev *hdev, struct sk_buff *skb) · 283 unmodified lines | |||
| 284 | 284 | ||
| 285 | switch (hci_skb_pkt_type(skb)) { | 285 | switch (hci_skb_pkt_type(skb)) { |
| 286 | case HCI_COMMAND_PKT: | 286 | case HCI_COMMAND_PKT: |
| 287 | dr = kmalloc_obj(*dr, GFP_KERNEL); | 287 | dr = kmalloc_obj(*dr); |
| 288 | if (!dr) { | 288 | if (!dr) { |
| 289 | usb_free_urb(urb); | 289 | usb_free_urb(urb); |
| 290 | return -ENOMEM; | 290 | return -ENOMEM; |
| @@ -871,7 +871,7 @@ struct regmap *btintel_regmap_init(struct hci_dev *hdev, u16 opcode_read, · 870 unmodified lines | |||
| 871 | bt_dev_info(hdev, "regmap: Init R%x-W%x region", opcode_read, | 871 | bt_dev_info(hdev, "regmap: Init R%x-W%x region", opcode_read, |
| 872 | opcode_write); | 872 | opcode_write); |
| 873 | 873 | ||
| 874 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 874 | ctx = kzalloc_obj(*ctx); |
| 875 | if (!ctx) | 875 | if (!ctx) |
| 876 | return ERR_PTR(-ENOMEM); | 876 | return ERR_PTR(-ENOMEM); |
| 877 | 877 | ||
| @@ -1665,7 +1665,7 @@ static int btintel_pcie_setup_txq_bufs(struct btintel_pcie_data *data, · 1664 unmodified lines | |||
| 1665 | struct data_buf *buf; | 1665 | struct data_buf *buf; |
| 1666 | 1666 | ||
| 1667 | /* Allocate the same number of buffers as the descriptor */ | 1667 | /* Allocate the same number of buffers as the descriptor */ |
| 1668 | txq->bufs = kmalloc_objs(*buf, txq->count, GFP_KERNEL); | 1668 | txq->bufs = kmalloc_objs(*buf, txq->count); |
| 1669 | if (!txq->bufs) | 1669 | if (!txq->bufs) |
| 1670 | return -ENOMEM; | 1670 | return -ENOMEM; |
| 1671 | 1671 | ||
| @@ -1709,7 +1709,7 @@ static int btintel_pcie_setup_rxq_bufs(struct btintel_pcie_data *data, · 37 unmodified lines | |||
| 1709 | struct data_buf *buf; | 1709 | struct data_buf *buf; |
| 1710 | 1710 | ||
| 1711 | /* Allocate the same number of buffers as the descriptor */ | 1711 | /* Allocate the same number of buffers as the descriptor */ |
| 1712 | rxq->bufs = kmalloc_objs(*buf, rxq->count, GFP_KERNEL); | 1712 | rxq->bufs = kmalloc_objs(*buf, rxq->count); |
| 1713 | if (!rxq->bufs) | 1713 | if (!rxq->bufs) |
| 1714 | return -ENOMEM; | 1714 | return -ENOMEM; |
| 1715 | 1715 | ||
| @@ -144,7 +144,7 @@ void btmrvl_debugfs_init(struct hci_dev *hdev) · 143 unmodified lines | |||
| 144 | if (!hdev->debugfs) | 144 | if (!hdev->debugfs) |
| 145 | return; | 145 | return; |
| 146 | 146 | ||
| 147 | dbg = kzalloc_obj(*dbg, GFP_KERNEL); | 147 | dbg = kzalloc_obj(*dbg); |
| 148 | priv->debugfs_data = dbg; | 148 | priv->debugfs_data = dbg; |
| 149 | 149 | ||
| 150 | if (!dbg) { | 150 | if (!dbg) { |
| @@ -710,13 +710,13 @@ struct btmrvl_private *btmrvl_add_card(void *card) · 709 unmodified lines | |||
| 710 | { | 710 | { |
| 711 | struct btmrvl_private *priv; | 711 | struct btmrvl_private *priv; |
| 712 | 712 | ||
| 713 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 713 | priv = kzalloc_obj(*priv); |
| 714 | if (!priv) { | 714 | if (!priv) { |
| 715 | BT_ERR("Can not allocate priv"); | 715 | BT_ERR("Can not allocate priv"); |
| 716 | goto err_priv; | 716 | goto err_priv; |
| 717 | } | 717 | } |
| 718 | 718 | ||
| 719 | priv->adapter = kzalloc_obj(*priv->adapter, GFP_KERNEL); | 719 | priv->adapter = kzalloc_obj(*priv->adapter); |
| 720 | if (!priv->adapter) { | 720 | if (!priv->adapter) { |
| 721 | BT_ERR("Allocate buffer for btmrvl_adapter failed!"); | 721 | BT_ERR("Allocate buffer for btmrvl_adapter failed!"); |
| 722 | goto err_adapter; | 722 | goto err_adapter; |
| @@ -537,7 +537,7 @@ static int btmtk_usb_submit_wmt_recv_urb(struct hci_dev *hdev) · 536 unmodified lines | |||
| 537 | if (!urb) | 537 | if (!urb) |
| 538 | return -ENOMEM; | 538 | return -ENOMEM; |
| 539 | 539 | ||
| 540 | dr = kmalloc_obj(*dr, GFP_KERNEL); | 540 | dr = kmalloc_obj(*dr); |
| 541 | if (!dr) { | 541 | if (!dr) { |
| 542 | usb_free_urb(urb); | 542 | usb_free_urb(urb); |
| 543 | return -ENOMEM; | 543 | return -ENOMEM; |
| @@ -112,7 +112,7 @@ static int rsi_hci_attach(void *priv, struct rsi_proto_ops *ops) · 111 unmodified lines | |||
| 112 | struct hci_dev *hdev; | 112 | struct hci_dev *hdev; |
| 113 | int err = 0; | 113 | int err = 0; |
| 114 | 114 | ||
| 115 | h_adapter = kzalloc_obj(*h_adapter, GFP_KERNEL); | 115 | h_adapter = kzalloc_obj(*h_adapter); |
| 116 | if (!h_adapter) | 116 | if (!h_adapter) |
| 117 | return -ENOMEM; | 117 | return -ENOMEM; |
| 118 | 118 | ||
| @@ -524,7 +524,7 @@ static int btrtl_parse_section(struct hci_dev *hdev, · 523 unmodified lines | |||
| 524 | break; | 524 | break; |
| 525 | } | 525 | } |
| 526 | 526 | ||
| 527 | subsec = kzalloc_obj(*subsec, GFP_KERNEL); | 527 | subsec = kzalloc_obj(*subsec); |
| 528 | if (!subsec) | 528 | if (!subsec) |
| 529 | return -ENOMEM; | 529 | return -ENOMEM; |
| 530 | subsec->opcode = opcode; | 530 | subsec->opcode = opcode; |
| @@ -828,7 +828,7 @@ static int rtl_download_firmware(struct hci_dev *hdev, · 297 unmodified lines | |||
| 828 | struct sk_buff *skb; | 828 | struct sk_buff *skb; |
| 829 | struct hci_rp_read_local_version *rp; | 829 | struct hci_rp_read_local_version *rp; |
| 830 | 830 | ||
| 831 | dl_cmd = kmalloc_obj(*dl_cmd, GFP_KERNEL); | 831 | dl_cmd = kmalloc_obj(*dl_cmd); |
| 832 | if (!dl_cmd) | 832 | if (!dl_cmd) |
| 833 | return -ENOMEM; | 833 | return -ENOMEM; |
| 834 | 834 | ||
| @@ -1077,7 +1077,7 @@ struct btrtl_device_info *btrtl_initialize(struct hci_dev *hdev, · 242 unmodified lines | |||
| 1077 | u8 key_id; | 1077 | u8 key_id; |
| 1078 | u8 reg_val[2]; | 1078 | u8 reg_val[2]; |
| 1079 | 1079 | ||
| 1080 | btrtl_dev = kzalloc_obj(*btrtl_dev, GFP_KERNEL); | 1080 | btrtl_dev = kzalloc_obj(*btrtl_dev); |
| 1081 | if (!btrtl_dev) { | 1081 | if (!btrtl_dev) { |
| 1082 | ret = -ENOMEM; | 1082 | ret = -ENOMEM; |
| 1083 | goto err_alloc; | 1083 | goto err_alloc; |
| @@ -2071,7 +2071,7 @@ static struct urb *alloc_ctrl_urb(struct hci_dev *hdev, struct sk_buff *skb) · 2070 unmodified lines | |||
| 2071 | if (!urb) | 2071 | if (!urb) |
| 2072 | return ERR_PTR(-ENOMEM); | 2072 | return ERR_PTR(-ENOMEM); |
| 2073 | 2073 | ||
| 2074 | dr = kmalloc_obj(*dr, GFP_KERNEL); | 2074 | dr = kmalloc_obj(*dr); |
| 2075 | if (!dr) { | 2075 | if (!dr) { |
| 2076 | usb_free_urb(urb); | 2076 | usb_free_urb(urb); |
| 2077 | return ERR_PTR(-ENOMEM); | 2077 | return ERR_PTR(-ENOMEM); |
| @@ -4059,7 +4059,7 @@ static int btusb_probe(struct usb_interface *intf, · 1981 unmodified lines | |||
| 4059 | return -ENODEV; | 4059 | return -ENODEV; |
| 4060 | } | 4060 | } |
| 4061 | 4061 | ||
| 4062 | data = kzalloc_obj(*data, GFP_KERNEL); | 4062 | data = kzalloc_obj(*data); |
| 4063 | if (!data) | 4063 | if (!data) |
| 4064 | return -ENOMEM; | 4064 | return -ENOMEM; |
| 4065 | 4065 | ||
| @@ -36,7 +36,7 @@ static int ag6xx_open(struct hci_uart *hu) · 35 unmodified lines | |||
| 36 | 36 | ||
| 37 | BT_DBG("hu %p", hu); | 37 | BT_DBG("hu %p", hu); |
| 38 | 38 | ||
| 39 | ag6xx = kzalloc_obj(*ag6xx, GFP_KERNEL); | 39 | ag6xx = kzalloc_obj(*ag6xx); |
| 40 | if (!ag6xx) | 40 | if (!ag6xx) |
| 41 | return -ENOMEM; | 41 | return -ENOMEM; |
| 42 | 42 | ||
| @@ -541,7 +541,7 @@ static int aml_open(struct hci_uart *hu) · 540 unmodified lines | |||
| 541 | return -EOPNOTSUPP; | 541 | return -EOPNOTSUPP; |
| 542 | } | 542 | } |
| 543 | 543 | ||
| 544 | aml_data = kzalloc_obj(*aml_data, GFP_KERNEL); | 544 | aml_data = kzalloc_obj(*aml_data); |
| 545 | if (!aml_data) | 545 | if (!aml_data) |
| 546 | return -ENOMEM; | 546 | return -ENOMEM; |
| 547 | 547 | ||
| @@ -101,7 +101,7 @@ static int ath_open(struct hci_uart *hu) · 100 unmodified lines | |||
| 101 | if (!hci_uart_has_flow_control(hu)) | 101 | if (!hci_uart_has_flow_control(hu)) |
| 102 | return -EOPNOTSUPP; | 102 | return -EOPNOTSUPP; |
| 103 | 103 | ||
| 104 | ath = kzalloc_obj(*ath, GFP_KERNEL); | 104 | ath = kzalloc_obj(*ath); |
| 105 | if (!ath) | 105 | if (!ath) |
| 106 | return -ENOMEM; | 106 | return -ENOMEM; |
| 107 | 107 | ||
| @@ -448,7 +448,7 @@ static int bcm_open(struct hci_uart *hu) · 447 unmodified lines | |||
| 448 | if (!hci_uart_has_flow_control(hu)) | 448 | if (!hci_uart_has_flow_control(hu)) |
| 449 | return -EOPNOTSUPP; | 449 | return -EOPNOTSUPP; |
| 450 | 450 | ||
| 451 | bcm = kzalloc_obj(*bcm, GFP_KERNEL); | 451 | bcm = kzalloc_obj(*bcm); |
| 452 | if (!bcm) | 452 | if (!bcm) |
| 453 | return -ENOMEM; | 453 | return -ENOMEM; |
| 454 | 454 | ||
| @@ -716,7 +716,7 @@ static int bcsp_open(struct hci_uart *hu) · 715 unmodified lines | |||
| 716 | 716 | ||
| 717 | BT_DBG("hu %p", hu); | 717 | BT_DBG("hu %p", hu); |
| 718 | 718 | ||
| 719 | bcsp = kzalloc_obj(*bcsp, GFP_KERNEL); | 719 | bcsp = kzalloc_obj(*bcsp); |
| 720 | if (!bcsp) | 720 | if (!bcsp) |
| 721 | return -ENOMEM; | 721 | return -ENOMEM; |
| 722 | 722 | ||
| @@ -44,7 +44,7 @@ static int h4_open(struct hci_uart *hu) · 43 unmodified lines | |||
| 44 | 44 | ||
| 45 | BT_DBG("hu %p", hu); | 45 | BT_DBG("hu %p", hu); |
| 46 | 46 | ||
| 47 | h4 = kzalloc_obj(*h4, GFP_KERNEL); | 47 | h4 = kzalloc_obj(*h4); |
| 48 | if (!h4) | 48 | if (!h4) |
| 49 | return -ENOMEM; | 49 | return -ENOMEM; |
| 50 | 50 | ||
| @@ -222,7 +222,7 @@ static int h5_open(struct hci_uart *hu) · 221 unmodified lines | |||
| 222 | if (hu->serdev) { | 222 | if (hu->serdev) { |
| 223 | h5 = serdev_device_get_drvdata(hu->serdev); | 223 | h5 = serdev_device_get_drvdata(hu->serdev); |
| 224 | } else { | 224 | } else { |
| 225 | h5 = kzalloc_obj(*h5, GFP_KERNEL); | 225 | h5 = kzalloc_obj(*h5); |
| 226 | if (!h5) | 226 | if (!h5) |
| 227 | return -ENOMEM; | 227 | return -ENOMEM; |
| 228 | } | 228 | } |
| @@ -1069,7 +1069,7 @@ static int h5_btrtl_resume(struct h5 *h5) · 840 unmodified lines | |||
| 1069 | if (test_bit(H5_WAKEUP_DISABLE, &h5->flags)) { | 1069 | if (test_bit(H5_WAKEUP_DISABLE, &h5->flags)) { |
| 1070 | struct h5_btrtl_reprobe *reprobe; | 1070 | struct h5_btrtl_reprobe *reprobe; |
| 1071 | 1071 | ||
| 1072 | reprobe = kzalloc_obj(*reprobe, GFP_KERNEL); | 1072 | reprobe = kzalloc_obj(*reprobe); |
| 1073 | if (!reprobe) | 1073 | if (!reprobe) |
| 1074 | return -ENOMEM; | 1074 | return -ENOMEM; |
| 1075 | 1075 | ||
| @@ -384,7 +384,7 @@ static int intel_open(struct hci_uart *hu) · 383 unmodified lines | |||
| 384 | if (!hci_uart_has_flow_control(hu)) | 384 | if (!hci_uart_has_flow_control(hu)) |
| 385 | return -EOPNOTSUPP; | 385 | return -EOPNOTSUPP; |
| 386 | 386 | ||
| 387 | intel = kzalloc_obj(*intel, GFP_KERNEL); | 387 | intel = kzalloc_obj(*intel); |
| 388 | if (!intel) | 388 | if (!intel) |
| 389 | return -ENOMEM; | 389 | return -ENOMEM; |
| 390 | 390 | ||
| @@ -491,7 +491,7 @@ static int hci_uart_tty_open(struct tty_struct *tty) · 490 unmodified lines | |||
| 491 | if (tty->ops->write == NULL) | 491 | if (tty->ops->write == NULL) |
| 492 | return -EOPNOTSUPP; | 492 | return -EOPNOTSUPP; |
| 493 | 493 | ||
| 494 | hu = kzalloc_obj(*hu, GFP_KERNEL); | 494 | hu = kzalloc_obj(*hu); |
| 495 | if (!hu) { | 495 | if (!hu) { |
| 496 | BT_ERR("Can't allocate control structure"); | 496 | BT_ERR("Can't allocate control structure"); |
| 497 | return -ENFILE; | 497 | return -ENFILE; |
| @@ -114,7 +114,7 @@ static int ll_open(struct hci_uart *hu) · 113 unmodified lines | |||
| 114 | 114 | ||
| 115 | BT_DBG("hu %p", hu); | 115 | BT_DBG("hu %p", hu); |
| 116 | 116 | ||
| 117 | ll = kzalloc_obj(*ll, GFP_KERNEL); | 117 | ll = kzalloc_obj(*ll); |
| 118 | if (!ll) | 118 | if (!ll) |
| 119 | return -ENOMEM; | 119 | return -ENOMEM; |
| 120 | 120 | ||
| @@ -64,7 +64,7 @@ static int mrvl_open(struct hci_uart *hu) · 63 unmodified lines | |||
| 64 | if (!hci_uart_has_flow_control(hu)) | 64 | if (!hci_uart_has_flow_control(hu)) |
| 65 | return -EOPNOTSUPP; | 65 | return -EOPNOTSUPP; |
| 66 | 66 | ||
| 67 | mrvl = kzalloc_obj(*mrvl, GFP_KERNEL); | 67 | mrvl = kzalloc_obj(*mrvl); |
| 68 | if (!mrvl) | 68 | if (!mrvl) |
| 69 | return -ENOMEM; | 69 | return -ENOMEM; |
| 70 | 70 | ||
| @@ -585,7 +585,7 @@ static int qca_open(struct hci_uart *hu) · 584 unmodified lines | |||
| 585 | if (!hci_uart_has_flow_control(hu)) | 585 | if (!hci_uart_has_flow_control(hu)) |
| 586 | return -EOPNOTSUPP; | 586 | return -EOPNOTSUPP; |
| 587 | 587 | ||
| 588 | qca = kzalloc_obj(*qca, GFP_KERNEL); | 588 | qca = kzalloc_obj(*qca); |
| 589 | if (!qca) | 589 | if (!qca) |
| 590 | return -ENOMEM; | 590 | return -ENOMEM; |
| 591 | 591 | ||
| @@ -640,7 +640,7 @@ static int vhci_open(struct inode *inode, struct file *file) · 639 unmodified lines | |||
| 640 | { | 640 | { |
| 641 | struct vhci_data *data; | 641 | struct vhci_data *data; |
| 642 | 642 | ||
| 643 | data = kzalloc_obj(*data, GFP_KERNEL); | 643 | data = kzalloc_obj(*data); |
| 644 | if (!data) | 644 | if (!data) |
| 645 | return -ENOMEM; | 645 | return -ENOMEM; |
| 646 | 646 | ||
| @@ -275,7 +275,7 @@ static int virtbt_probe(struct virtio_device *vdev) · 274 unmodified lines | |||
| 275 | return -EINVAL; | 275 | return -EINVAL; |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | vbt = kzalloc_obj(*vbt, GFP_KERNEL); | 278 | vbt = kzalloc_obj(*vbt); |
| 279 | if (!vbt) | 279 | if (!vbt) |
| 280 | return -ENOMEM; | 280 | return -ENOMEM; |
| 281 | 281 | ||
| @@ -451,7 +451,7 @@ static int cci_probe_ports(struct device_node *np) · 450 unmodified lines | |||
| 451 | 451 | ||
| 452 | nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite; | 452 | nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite; |
| 453 | 453 | ||
| 454 | ports = kzalloc_objs(*ports, nb_cci_ports, GFP_KERNEL); | 454 | ports = kzalloc_objs(*ports, nb_cci_ports); |
| 455 | if (!ports) | 455 | if (!ports) |
| 456 | return -ENOMEM; | 456 | return -ENOMEM; |
| 457 | 457 | ||
| @@ -672,7 +672,7 @@ static int fsl_mc_device_get_mmio_regions(struct fsl_mc_device *mc_dev, · 671 unmodified lines | |||
| 672 | return -EINVAL; | 672 | return -EINVAL; |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | regions = kmalloc_objs(regions[0], obj_desc->region_count, GFP_KERNEL); | 675 | regions = kmalloc_objs(regions[0], obj_desc->region_count); |
| 676 | if (!regions) | 676 | if (!regions) |
| 677 | return -ENOMEM; | 677 | return -ENOMEM; |
| 678 | 678 | ||
| @@ -787,7 +787,7 @@ int fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, · 108 unmodified lines | |||
| 787 | /* | 787 | /* |
| 788 | * Allocate an MC bus device object: | 788 | * Allocate an MC bus device object: |
| 789 | */ | 789 | */ |
| 790 | mc_bus = kzalloc_obj(*mc_bus, GFP_KERNEL); | 790 | mc_bus = kzalloc_obj(*mc_bus); |
| 791 | if (!mc_bus) | 791 | if (!mc_bus) |
| 792 | return -ENOMEM; | 792 | return -ENOMEM; |
| 793 | 793 | ||
| @@ -797,7 +797,7 @@ int fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, · 3 unmodified lines | |||
| 797 | /* | 797 | /* |
| 798 | * Allocate a regular fsl_mc_device object: | 798 | * Allocate a regular fsl_mc_device object: |
| 799 | */ | 799 | */ |
| 800 | mc_dev = kzalloc_obj(*mc_dev, GFP_KERNEL); | 800 | mc_dev = kzalloc_obj(*mc_dev); |
| 801 | if (!mc_dev) | 801 | if (!mc_dev) |
| 802 | return -ENOMEM; | 802 | return -ENOMEM; |
| 803 | } | 803 | } |
| @@ -483,7 +483,7 @@ static int fsl_mc_uapi_dev_open(struct inode *inode, struct file *filep) · 482 unmodified lines | |||
| 483 | struct fsl_mc_bus *mc_bus; | 483 | struct fsl_mc_bus *mc_bus; |
| 484 | int error; | 484 | int error; |
| 485 | 485 | ||
| 486 | priv_data = kzalloc_obj(*priv_data, GFP_KERNEL); | 486 | priv_data = kzalloc_obj(*priv_data); |
| 487 | if (!priv_data) | 487 | if (!priv_data) |
| 488 | return -ENOMEM; | 488 | return -ENOMEM; |
| 489 | 489 | ||
| @@ -1275,7 +1275,7 @@ static struct mhi_ep_device *mhi_ep_alloc_device(struct mhi_ep_cntrl *mhi_cntrl, · 1274 unmodified lines | |||
| 1275 | struct mhi_ep_device *mhi_dev; | 1275 | struct mhi_ep_device *mhi_dev; |
| 1276 | struct device *dev; | 1276 | struct device *dev; |
| 1277 | 1277 | ||
| 1278 | mhi_dev = kzalloc_obj(*mhi_dev, GFP_KERNEL); | 1278 | mhi_dev = kzalloc_obj(*mhi_dev); |
| 1279 | if (!mhi_dev) | 1279 | if (!mhi_dev) |
| 1280 | return ERR_PTR(-ENOMEM); | 1280 | return ERR_PTR(-ENOMEM); |
| 1281 | 1281 | ||
| @@ -333,12 +333,12 @@ static int mhi_alloc_bhi_buffer(struct mhi_controller *mhi_cntrl, · 332 unmodified lines | |||
| 333 | struct image_info *img_info; | 333 | struct image_info *img_info; |
| 334 | struct mhi_buf *mhi_buf; | 334 | struct mhi_buf *mhi_buf; |
| 335 | 335 | ||
| 336 | img_info = kzalloc_obj(*img_info, GFP_KERNEL); | 336 | img_info = kzalloc_obj(*img_info); |
| 337 | if (!img_info) | 337 | if (!img_info) |
| 338 | return -ENOMEM; | 338 | return -ENOMEM; |
| 339 | 339 | ||
| 340 | /* Allocate memory for entry */ | 340 | /* Allocate memory for entry */ |
| 341 | img_info->mhi_buf = kzalloc_obj(*img_info->mhi_buf, GFP_KERNEL); | 341 | img_info->mhi_buf = kzalloc_obj(*img_info->mhi_buf); |
| 342 | if (!img_info->mhi_buf) | 342 | if (!img_info->mhi_buf) |
| 343 | goto error_alloc_mhi_buf; | 343 | goto error_alloc_mhi_buf; |
| 344 | 344 | ||
| @@ -375,7 +375,7 @@ int mhi_alloc_bhie_table(struct mhi_controller *mhi_cntrl, · 30 unmodified lines | |||
| 375 | struct image_info *img_info; | 375 | struct image_info *img_info; |
| 376 | struct mhi_buf *mhi_buf; | 376 | struct mhi_buf *mhi_buf; |
| 377 | 377 | ||
| 378 | img_info = kzalloc_obj(*img_info, GFP_KERNEL); | 378 | img_info = kzalloc_obj(*img_info); |
| 379 | if (!img_info) | 379 | if (!img_info) |
| 380 | return -ENOMEM; | 380 | return -ENOMEM; |
| 381 | 381 | ||
| @@ -313,7 +313,7 @@ static int mhi_init_dev_ctxt(struct mhi_controller *mhi_cntrl) · 312 unmodified lines | |||
| 313 | atomic_set(&mhi_cntrl->dev_wake, 0); | 313 | atomic_set(&mhi_cntrl->dev_wake, 0); |
| 314 | atomic_set(&mhi_cntrl->pending_pkts, 0); | 314 | atomic_set(&mhi_cntrl->pending_pkts, 0); |
| 315 | 315 | ||
| 316 | mhi_ctxt = kzalloc_obj(*mhi_ctxt, GFP_KERNEL); | 316 | mhi_ctxt = kzalloc_obj(*mhi_ctxt); |
| 317 | if (!mhi_ctxt) | 317 | if (!mhi_ctxt) |
| 318 | return -ENOMEM; | 318 | return -ENOMEM; |
| 319 | 319 | ||
| @@ -1095,7 +1095,7 @@ struct mhi_controller *mhi_alloc_controller(void) · 775 unmodified lines | |||
| 1095 | { | 1095 | { |
| 1096 | struct mhi_controller *mhi_cntrl; | 1096 | struct mhi_controller *mhi_cntrl; |
| 1097 | 1097 | ||
| 1098 | mhi_cntrl = kzalloc_obj(*mhi_cntrl, GFP_KERNEL); | 1098 | mhi_cntrl = kzalloc_obj(*mhi_cntrl); |
| 1099 | 1099 | ||
| 1100 | return mhi_cntrl; | 1100 | return mhi_cntrl; |
| 1101 | } | 1101 | } |
| @@ -1232,7 +1232,7 @@ struct mhi_device *mhi_alloc_device(struct mhi_controller *mhi_cntrl) · 130 unmodified lines | |||
| 1232 | struct mhi_device *mhi_dev; | 1232 | struct mhi_device *mhi_dev; |
| 1233 | struct device *dev; | 1233 | struct device *dev; |
| 1234 | 1234 | ||
| 1235 | mhi_dev = kzalloc_obj(*mhi_dev, GFP_KERNEL); | 1235 | mhi_dev = kzalloc_obj(*mhi_dev); |
| 1236 | if (!mhi_dev) | 1236 | if (!mhi_dev) |
| 1237 | return ERR_PTR(-ENOMEM); | 1237 | return ERR_PTR(-ENOMEM); |
| 1238 | 1238 | ||
| @@ -541,7 +541,7 @@ static void mips_cdmm_bus_discover(struct mips_cdmm_bus *bus) · 540 unmodified lines | |||
| 541 | (drb + size + 1) * CDMM_DRB_SIZE - 1, | 541 | (drb + size + 1) * CDMM_DRB_SIZE - 1, |
| 542 | type, rev); | 542 | type, rev); |
| 543 | 543 | ||
| 544 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 544 | dev = kzalloc_obj(*dev); |
| 545 | if (!dev) | 545 | if (!dev) |
| 546 | break; | 546 | break; |
| 547 | 547 | ||
| @@ -145,7 +145,7 @@ moxtet_alloc_device(struct moxtet *moxtet) · 144 unmodified lines | |||
| 145 | if (!get_device(moxtet->dev)) | 145 | if (!get_device(moxtet->dev)) |
| 146 | return NULL; | 146 | return NULL; |
| 147 | 147 | ||
| 148 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 148 | dev = kzalloc_obj(*dev); |
| 149 | if (!dev) { | 149 | if (!dev) { |
| 150 | put_device(moxtet->dev); | 150 | put_device(moxtet->dev); |
| 151 | return NULL; | 151 | return NULL; |
| @@ -215,7 +215,7 @@ static int omap3_l3_probe(struct platform_device *pdev) · 214 unmodified lines | |||
| 215 | struct resource *res; | 215 | struct resource *res; |
| 216 | int ret; | 216 | int ret; |
| 217 | 217 | ||
| 218 | l3 = kzalloc_obj(*l3, GFP_KERNEL); | 218 | l3 = kzalloc_obj(*l3); |
| 219 | if (!l3) | 219 | if (!l3) |
| 220 | return -ENOMEM; | 220 | return -ENOMEM; |
| 221 | 221 | ||
| @@ -260,7 +260,7 @@ int stm32_firewall_populate_bus(struct stm32_firewall_controller *firewall_contr · 259 unmodified lines | |||
| 260 | return -EINVAL; | 260 | return -EINVAL; |
| 261 | } | 261 | } |
| 262 | 262 | ||
| 263 | firewalls = kzalloc_objs(*firewalls, len, GFP_KERNEL); | 263 | firewalls = kzalloc_objs(*firewalls, len); |
| 264 | if (!firewalls) { | 264 | if (!firewalls) { |
| 265 | of_node_put(child); | 265 | of_node_put(child); |
| 266 | return -ENOMEM; | 266 | return -ENOMEM; |
| @@ -205,7 +205,7 @@ static struct sunxi_rsb_device *sunxi_rsb_device_create(struct sunxi_rsb *rsb, · 204 unmodified lines | |||
| 205 | int err; | 205 | int err; |
| 206 | struct sunxi_rsb_device *rdev; | 206 | struct sunxi_rsb_device *rdev; |
| 207 | 207 | ||
| 208 | rdev = kzalloc_obj(*rdev, GFP_KERNEL); | 208 | rdev = kzalloc_obj(*rdev); |
| 209 | if (!rdev) | 209 | if (!rdev) |
| 210 | return ERR_PTR(-ENOMEM); | 210 | return ERR_PTR(-ENOMEM); |
| 211 | 211 | ||
| @@ -477,7 +477,7 @@ static struct sunxi_rsb_ctx *regmap_sunxi_rsb_init_ctx(struct sunxi_rsb_device * · 265 unmodified lines | |||
| 477 | return ERR_PTR(-EINVAL); | 477 | return ERR_PTR(-EINVAL); |
| 478 | } | 478 | } |
| 479 | 479 | ||
| 480 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 480 | ctx = kzalloc_obj(*ctx); |
| 481 | if (!ctx) | 481 | if (!ctx) |
| 482 | return ERR_PTR(-ENOMEM); | 482 | return ERR_PTR(-ENOMEM); |
| 483 | 483 | ||
| @@ -354,7 +354,7 @@ static int sysc_add_named_clock_from_child(struct sysc *ddata, · 353 unmodified lines | |||
| 354 | * limit for clk_get(). If cl ever needs to be freed, it should be done | 354 | * limit for clk_get(). If cl ever needs to be freed, it should be done |
| 355 | * with clkdev_drop(). | 355 | * with clkdev_drop(). |
| 356 | */ | 356 | */ |
| 357 | cl = kzalloc_obj(*cl, GFP_KERNEL); | 357 | cl = kzalloc_obj(*cl); |
| 358 | if (!cl) | 358 | if (!cl) |
| 359 | return -ENOMEM; | 359 | return -ENOMEM; |
| 360 | 360 | ||
| @@ -2470,7 +2470,7 @@ static void sysc_add_restored(struct sysc *ddata) · 2109 unmodified lines | |||
| 2470 | { | 2470 | { |
| 2471 | struct sysc_module *restored_module; | 2471 | struct sysc_module *restored_module; |
| 2472 | 2472 | ||
| 2473 | restored_module = kzalloc_obj(*restored_module, GFP_KERNEL); | 2473 | restored_module = kzalloc_obj(*restored_module); |
| 2474 | if (!restored_module) | 2474 | if (!restored_module) |
| 2475 | return; | 2475 | return; |
| 2476 | 2476 | ||
| @@ -2953,7 +2953,7 @@ static int sysc_add_disabled(unsigned long base) · 476 unmodified lines | |||
| 2953 | { | 2953 | { |
| 2954 | struct sysc_address *disabled_module; | 2954 | struct sysc_address *disabled_module; |
| 2955 | 2955 | ||
| 2956 | disabled_module = kzalloc_obj(*disabled_module, GFP_KERNEL); | 2956 | disabled_module = kzalloc_obj(*disabled_module); |
| 2957 | if (!disabled_module) | 2957 | if (!disabled_module) |
| 2958 | return -ENOMEM; | 2958 | return -ENOMEM; |
| 2959 | 2959 | ||
| @@ -2984,7 +2984,7 @@ static int sysc_init_static_data(struct sysc *ddata) · 24 unmodified lines | |||
| 2984 | if (sysc_soc) | 2984 | if (sysc_soc) |
| 2985 | return 0; | 2985 | return 0; |
| 2986 | 2986 | ||
| 2987 | sysc_soc = kzalloc_obj(*sysc_soc, GFP_KERNEL); | 2987 | sysc_soc = kzalloc_obj(*sysc_soc); |
| 2988 | if (!sysc_soc) | 2988 | if (!sysc_soc) |
| 2989 | return -ENOMEM; | 2989 | return -ENOMEM; |
| 2990 | 2990 | ||
| @@ -1318,7 +1318,7 @@ static int cdrom_slot_status(struct cdrom_device_info *cdi, int slot) · 1317 unmodified lines | |||
| 1318 | if (cdi->sanyo_slot) | 1318 | if (cdi->sanyo_slot) |
| 1319 | return CDS_NO_INFO; | 1319 | return CDS_NO_INFO; |
| 1320 | 1320 | ||
| 1321 | info = kmalloc_obj(*info, GFP_KERNEL); | 1321 | info = kmalloc_obj(*info); |
| 1322 | if (!info) | 1322 | if (!info) |
| 1323 | return -ENOMEM; | 1323 | return -ENOMEM; |
| 1324 | 1324 | ||
| @@ -1347,7 +1347,7 @@ int cdrom_number_of_slots(struct cdrom_device_info *cdi) · 22 unmodified lines | |||
| 1347 | /* cdrom_read_mech_status requires a valid value for capacity: */ | 1347 | /* cdrom_read_mech_status requires a valid value for capacity: */ |
| 1348 | cdi->capacity = 0; | 1348 | cdi->capacity = 0; |
| 1349 | 1349 | ||
| 1350 | info = kmalloc_obj(*info, GFP_KERNEL); | 1350 | info = kmalloc_obj(*info); |
| 1351 | if (!info) | 1351 | if (!info) |
| 1352 | return -ENOMEM; | 1352 | return -ENOMEM; |
| 1353 | 1353 | ||
| @@ -1406,7 +1406,7 @@ static int cdrom_select_disc(struct cdrom_device_info *cdi, int slot) · 52 unmodified lines | |||
| 1406 | return cdrom_load_unload(cdi, -1); | 1406 | return cdrom_load_unload(cdi, -1); |
| 1407 | } | 1407 | } |
| 1408 | 1408 | ||
| 1409 | info = kmalloc_obj(*info, GFP_KERNEL); | 1409 | info = kmalloc_obj(*info); |
| 1410 | if (!info) | 1410 | if (!info) |
| 1411 | return -ENOMEM; | 1411 | return -ENOMEM; |
| 1412 | 1412 | ||
| @@ -2311,7 +2311,7 @@ static int cdrom_ioctl_media_changed(struct cdrom_device_info *cdi, · 898 unmodified lines | |||
| 2311 | /* Prevent arg from speculatively bypassing the length check */ | 2311 | /* Prevent arg from speculatively bypassing the length check */ |
| 2312 | arg = array_index_nospec(arg, cdi->capacity); | 2312 | arg = array_index_nospec(arg, cdi->capacity); |
| 2313 | 2313 | ||
| 2314 | info = kmalloc_obj(*info, GFP_KERNEL); | 2314 | info = kmalloc_obj(*info); |
| 2315 | if (!info) | 2315 | if (!info) |
| 2316 | return -ENOMEM; | 2316 | return -ENOMEM; |
| 2317 | 2317 | ||
| @@ -227,7 +227,7 @@ static char gdrom_execute_diagnostic(void) · 226 unmodified lines | |||
| 227 | static int gdrom_preparedisk_cmd(void) | 227 | static int gdrom_preparedisk_cmd(void) |
| 228 | { | 228 | { |
| 229 | struct packet_command *spin_command; | 229 | struct packet_command *spin_command; |
| 230 | spin_command = kzalloc_obj(struct packet_command, GFP_KERNEL); | 230 | spin_command = kzalloc_obj(struct packet_command); |
| 231 | if (!spin_command) | 231 | if (!spin_command) |
| 232 | return -ENOMEM; | 232 | return -ENOMEM; |
| 233 | spin_command->cmd[0] = 0x70; | 233 | spin_command->cmd[0] = 0x70; |
| @@ -261,7 +261,7 @@ static int gdrom_readtoc_cmd(struct gdromtoc *toc, int session) · 27 unmodified lines | |||
| 261 | struct packet_command *toc_command; | 261 | struct packet_command *toc_command; |
| 262 | int err = 0; | 262 | int err = 0; |
| 263 | 263 | ||
| 264 | toc_command = kzalloc_obj(struct packet_command, GFP_KERNEL); | 264 | toc_command = kzalloc_obj(struct packet_command); |
| 265 | if (!toc_command) | 265 | if (!toc_command) |
| 266 | return -ENOMEM; | 266 | return -ENOMEM; |
| 267 | tocsize = sizeof(struct gdromtoc); | 267 | tocsize = sizeof(struct gdromtoc); |
| @@ -415,7 +415,7 @@ static int gdrom_getsense(short *bufstring) · 147 unmodified lines | |||
| 415 | int sense_key; | 415 | int sense_key; |
| 416 | int err = -EIO; | 416 | int err = -EIO; |
| 417 | 417 | ||
| 418 | sense_command = kzalloc_obj(struct packet_command, GFP_KERNEL); | 418 | sense_command = kzalloc_obj(struct packet_command); |
| 419 | if (!sense_command) | 419 | if (!sense_command) |
| 420 | return -ENOMEM; | 420 | return -ENOMEM; |
| 421 | sense_command->cmd[0] = 0x13; | 421 | sense_command->cmd[0] = 0x13; |
| @@ -574,7 +574,7 @@ static blk_status_t gdrom_readdisk_dma(struct request *req) · 152 unmodified lines | |||
| 574 | struct packet_command *read_command; | 574 | struct packet_command *read_command; |
| 575 | unsigned long timeout; | 575 | unsigned long timeout; |
| 576 | 576 | ||
| 577 | read_command = kzalloc_obj(struct packet_command, GFP_KERNEL); | 577 | read_command = kzalloc_obj(struct packet_command); |
| 578 | if (!read_command) | 578 | if (!read_command) |
| 579 | return BLK_STS_RESOURCE; | 579 | return BLK_STS_RESOURCE; |
| 580 | 580 | ||
| @@ -656,7 +656,7 @@ static int gdrom_outputversion(void) · 75 unmodified lines | |||
| 656 | int err = -ENOMEM; | 656 | int err = -ENOMEM; |
| 657 | 657 | ||
| 658 | /* query device ID */ | 658 | /* query device ID */ |
| 659 | id = kzalloc_obj(struct gdrom_id, GFP_KERNEL); | 659 | id = kzalloc_obj(struct gdrom_id); |
| 660 | if (!id) | 660 | if (!id) |
| 661 | return err; | 661 | return err; |
| 662 | gdrom_identifydevice(id); | 662 | gdrom_identifydevice(id); |
| @@ -769,7 +769,7 @@ static int probe_gdrom(struct platform_device *devptr) · 106 unmodified lines | |||
| 769 | pr_info("Registered with major number %d\n", | 769 | pr_info("Registered with major number %d\n", |
| 770 | gdrom_major); | 770 | gdrom_major); |
| 771 | /* Specify basic properties of drive */ | 771 | /* Specify basic properties of drive */ |
| 772 | gd.cd_info = kzalloc_obj(struct cdrom_device_info, GFP_KERNEL); | 772 | gd.cd_info = kzalloc_obj(struct cdrom_device_info); |
| 773 | if (!gd.cd_info) { | 773 | if (!gd.cd_info) { |
| 774 | err = -ENOMEM; | 774 | err = -ENOMEM; |
| 775 | goto probe_fail_no_mem; | 775 | goto probe_fail_no_mem; |
| @@ -803,7 +803,7 @@ static int probe_gdrom(struct platform_device *devptr) · 27 unmodified lines | |||
| 803 | if (err) | 803 | if (err) |
| 804 | goto probe_fail_free_irqs; | 804 | goto probe_fail_free_irqs; |
| 805 | 805 | ||
| 806 | gd.toc = kzalloc_obj(struct gdromtoc, GFP_KERNEL); | 806 | gd.toc = kzalloc_obj(struct gdromtoc); |
| 807 | if (!gd.toc) { | 807 | if (!gd.toc) { |
| 808 | err = -ENOMEM; | 808 | err = -ENOMEM; |
| 809 | goto probe_fail_free_irqs; | 809 | goto probe_fail_free_irqs; |
| @@ -789,7 +789,7 @@ int cdx_device_add(struct cdx_dev_params *dev_params) · 788 unmodified lines | |||
| 789 | struct cdx_device *cdx_dev; | 789 | struct cdx_device *cdx_dev; |
| 790 | int ret, i; | 790 | int ret, i; |
| 791 | 791 | ||
| 792 | cdx_dev = kzalloc_obj(*cdx_dev, GFP_KERNEL); | 792 | cdx_dev = kzalloc_obj(*cdx_dev); |
| 793 | if (!cdx_dev) | 793 | if (!cdx_dev) |
| 794 | return -ENOMEM; | 794 | return -ENOMEM; |
| 795 | 795 | ||
| @@ -876,7 +876,7 @@ struct device *cdx_bus_add(struct cdx_controller *cdx, u8 bus_num) · 80 unmodified lines | |||
| 876 | struct cdx_device *cdx_dev; | 876 | struct cdx_device *cdx_dev; |
| 877 | int ret; | 877 | int ret; |
| 878 | 878 | ||
| 879 | cdx_dev = kzalloc_obj(*cdx_dev, GFP_KERNEL); | 879 | cdx_dev = kzalloc_obj(*cdx_dev); |
| 880 | if (!cdx_dev) | 880 | if (!cdx_dev) |
| 881 | return NULL; | 881 | return NULL; |
| 882 | 882 | ||
| @@ -168,7 +168,7 @@ static int xlnx_cdx_probe(struct platform_device *pdev) · 167 unmodified lines | |||
| 168 | struct cdx_mcdi *cdx_mcdi; | 168 | struct cdx_mcdi *cdx_mcdi; |
| 169 | int ret; | 169 | int ret; |
| 170 | 170 | ||
| 171 | cdx_mcdi = kzalloc_obj(*cdx_mcdi, GFP_KERNEL); | 171 | cdx_mcdi = kzalloc_obj(*cdx_mcdi); |
| 172 | if (!cdx_mcdi) | 172 | if (!cdx_mcdi) |
| 173 | return -ENOMEM; | 173 | return -ENOMEM; |
| 174 | 174 | ||
| @@ -181,7 +181,7 @@ static int xlnx_cdx_probe(struct platform_device *pdev) · 6 unmodified lines | |||
| 181 | goto mcdi_init_fail; | 181 | goto mcdi_init_fail; |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | cdx = kzalloc_obj(*cdx, GFP_KERNEL); | 184 | cdx = kzalloc_obj(*cdx); |
| 185 | if (!cdx) { | 185 | if (!cdx) { |
| 186 | ret = -ENOMEM; | 186 | ret = -ENOMEM; |
| 187 | goto cdx_alloc_fail; | 187 | goto cdx_alloc_fail; |
| @@ -118,7 +118,7 @@ int cdx_mcdi_init(struct cdx_mcdi *cdx) · 117 unmodified lines | |||
| 118 | struct cdx_mcdi_iface *mcdi; | 118 | struct cdx_mcdi_iface *mcdi; |
| 119 | int rc = -ENOMEM; | 119 | int rc = -ENOMEM; |
| 120 | 120 | ||
| 121 | cdx->mcdi = kzalloc_obj(*cdx->mcdi, GFP_KERNEL); | 121 | cdx->mcdi = kzalloc_obj(*cdx->mcdi); |
| 122 | if (!cdx->mcdi) | 122 | if (!cdx->mcdi) |
| 123 | goto fail; | 123 | goto fail; |
| 124 | 124 | ||
| @@ -456,11 +456,11 @@ static int cdx_mcdi_rpc_sync(struct cdx_mcdi *cdx, unsigned int cmd, · 331 unmodified lines | |||
| 456 | if (outlen_actual) | 456 | if (outlen_actual) |
| 457 | *outlen_actual = 0; | 457 | *outlen_actual = 0; |
| 458 | 458 | ||
| 459 | wait_data = kmalloc_obj(*wait_data, GFP_KERNEL); | 459 | wait_data = kmalloc_obj(*wait_data); |
| 460 | if (!wait_data) | 460 | if (!wait_data) |
| 461 | return -ENOMEM; | 461 | return -ENOMEM; |
| 462 | 462 | ||
| 463 | cmd_item = kmalloc_obj(*cmd_item, GFP_KERNEL); | 463 | cmd_item = kmalloc_obj(*cmd_item); |
| 464 | if (!cmd_item) { | 464 | if (!cmd_item) { |
| 465 | kfree(wait_data); | 465 | kfree(wait_data); |
| 466 | return -ENOMEM; | 466 | return -ENOMEM; |
| @@ -85,12 +85,12 @@ static int amd_create_gatt_pages(int nr_tables) · 84 unmodified lines | |||
| 85 | int retval = 0; | 85 | int retval = 0; |
| 86 | int i; | 86 | int i; |
| 87 | 87 | ||
| 88 | tables = kzalloc_objs(struct amd_page_map *, nr_tables + 1, GFP_KERNEL); | 88 | tables = kzalloc_objs(struct amd_page_map *, nr_tables + 1); |
| 89 | if (tables == NULL) | 89 | if (tables == NULL) |
| 90 | return -ENOMEM; | 90 | return -ENOMEM; |
| 91 | 91 | ||
| 92 | for (i = 0; i < nr_tables; i++) { | 92 | for (i = 0; i < nr_tables; i++) { |
| 93 | entry = kzalloc_obj(struct amd_page_map, GFP_KERNEL); | 93 | entry = kzalloc_obj(struct amd_page_map); |
| 94 | tables[i] = entry; | 94 | tables[i] = entry; |
| 95 | if (entry == NULL) { | 95 | if (entry == NULL) { |
| 96 | retval = -ENOMEM; | 96 | retval = -ENOMEM; |
| @@ -112,12 +112,12 @@ static int ati_create_gatt_pages(int nr_tables) · 111 unmodified lines | |||
| 112 | int retval = 0; | 112 | int retval = 0; |
| 113 | int i; | 113 | int i; |
| 114 | 114 | ||
| 115 | tables = kzalloc_objs(struct ati_page_map *, nr_tables + 1, GFP_KERNEL); | 115 | tables = kzalloc_objs(struct ati_page_map *, nr_tables + 1); |
| 116 | if (tables == NULL) | 116 | if (tables == NULL) |
| 117 | return -ENOMEM; | 117 | return -ENOMEM; |
| 118 | 118 | ||
| 119 | for (i = 0; i < nr_tables; i++) { | 119 | for (i = 0; i < nr_tables; i++) { |
| 120 | entry = kzalloc_obj(struct ati_page_map, GFP_KERNEL); | 120 | entry = kzalloc_obj(struct ati_page_map); |
| 121 | tables[i] = entry; | 121 | tables[i] = entry; |
| 122 | if (entry == NULL) { | 122 | if (entry == NULL) { |
| 123 | retval = -ENOMEM; | 123 | retval = -ENOMEM; |
| @@ -238,7 +238,7 @@ struct agp_bridge_data *agp_alloc_bridge(void) · 237 unmodified lines | |||
| 238 | { | 238 | { |
| 239 | struct agp_bridge_data *bridge; | 239 | struct agp_bridge_data *bridge; |
| 240 | 240 | ||
| 241 | bridge = kzalloc_obj(*bridge, GFP_KERNEL); | 241 | bridge = kzalloc_obj(*bridge); |
| 242 | if (!bridge) | 242 | if (!bridge) |
| 243 | return NULL; | 243 | return NULL; |
| 244 | 244 | ||
| @@ -101,7 +101,7 @@ static struct agp_memory *agp_create_user_memory(unsigned long num_agp_pages) · 100 unmodified lines | |||
| 101 | if (INT_MAX/sizeof(struct page *) < num_agp_pages) | 101 | if (INT_MAX/sizeof(struct page *) < num_agp_pages) |
| 102 | return NULL; | 102 | return NULL; |
| 103 | 103 | ||
| 104 | new = kzalloc_obj(struct agp_memory, GFP_KERNEL); | 104 | new = kzalloc_obj(struct agp_memory); |
| 105 | if (new == NULL) | 105 | if (new == NULL) |
| 106 | return NULL; | 106 | return NULL; |
| 107 | 107 | ||
| @@ -127,7 +127,7 @@ struct agp_memory *agp_create_memory(int scratch_pages) · 19 unmodified lines | |||
| 127 | { | 127 | { |
| 128 | struct agp_memory *new; | 128 | struct agp_memory *new; |
| 129 | 129 | ||
| 130 | new = kzalloc_obj(struct agp_memory, GFP_KERNEL); | 130 | new = kzalloc_obj(struct agp_memory); |
| 131 | if (new == NULL) | 131 | if (new == NULL) |
| 132 | return NULL; | 132 | return NULL; |
| 133 | 133 | ||
| @@ -92,7 +92,7 @@ static int agp_3_5_isochronous_node_enable(struct agp_bridge_data *bridge, · 91 unmodified lines | |||
| 92 | * We'll work with an array of isoch_data's (one for each | 92 | * We'll work with an array of isoch_data's (one for each |
| 93 | * device in dev_list) throughout this function. | 93 | * device in dev_list) throughout this function. |
| 94 | */ | 94 | */ |
| 95 | master = kmalloc_objs(*master, ndevs, GFP_KERNEL); | 95 | master = kmalloc_objs(*master, ndevs); |
| 96 | if (master == NULL) { | 96 | if (master == NULL) { |
| 97 | ret = -ENOMEM; | 97 | ret = -ENOMEM; |
| 98 | goto get_out; | 98 | goto get_out; |
| @@ -333,7 +333,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge) · 234 unmodified lines | |||
| 333 | * Allocate a head for our AGP 3.5 device list | 333 | * Allocate a head for our AGP 3.5 device list |
| 334 | * (multiple AGP v3 devices are allowed behind a single bridge). | 334 | * (multiple AGP v3 devices are allowed behind a single bridge). |
| 335 | */ | 335 | */ |
| 336 | if ((dev_list = kmalloc_obj(*dev_list, GFP_KERNEL)) == NULL) { | 336 | if ((dev_list = kmalloc_obj(*dev_list)) == NULL) { |
| 337 | ret = -ENOMEM; | 337 | ret = -ENOMEM; |
| 338 | goto get_out; | 338 | goto get_out; |
| 339 | } | 339 | } |
| @@ -362,7 +362,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge) · 22 unmodified lines | |||
| 362 | 362 | ||
| 363 | case 0x0300: /* Display controller */ | 363 | case 0x0300: /* Display controller */ |
| 364 | case 0x0400: /* Multimedia controller */ | 364 | case 0x0400: /* Multimedia controller */ |
| 365 | if ((cur = kmalloc_obj(*cur, GFP_KERNEL)) == NULL) { | 365 | if ((cur = kmalloc_obj(*cur)) == NULL) { |
| 366 | ret = -ENOMEM; | 366 | ret = -ENOMEM; |
| 367 | goto free_and_exit; | 367 | goto free_and_exit; |
| 368 | } | 368 | } |
| @@ -102,7 +102,7 @@ static int serverworks_create_gatt_pages(int nr_tables) · 101 unmodified lines | |||
| 102 | return -ENOMEM; | 102 | return -ENOMEM; |
| 103 | 103 | ||
| 104 | for (i = 0; i < nr_tables; i++) { | 104 | for (i = 0; i < nr_tables; i++) { |
| 105 | entry = kzalloc_obj(struct serverworks_page_map, GFP_KERNEL); | 105 | entry = kzalloc_obj(struct serverworks_page_map); |
| 106 | if (entry == NULL) { | 106 | if (entry == NULL) { |
| 107 | retval = -ENOMEM; | 107 | retval = -ENOMEM; |
| 108 | break; | 108 | break; |
| @@ -343,7 +343,7 @@ static int apm_open(struct inode * inode, struct file * filp) · 342 unmodified lines | |||
| 343 | { | 343 | { |
| 344 | struct apm_user *as; | 344 | struct apm_user *as; |
| 345 | 345 | ||
| 346 | as = kzalloc_obj(*as, GFP_KERNEL); | 346 | as = kzalloc_obj(*as); |
| 347 | if (as) { | 347 | if (as) { |
| 348 | /* | 348 | /* |
| 349 | * XXX - this is a tiny bit broken, when we consider BSD | 349 | * XXX - this is a tiny bit broken, when we consider BSD |
| @@ -186,7 +186,7 @@ static int bsr_add_node(struct device_node *bn) · 185 unmodified lines | |||
| 186 | num_bsr_devs = bsr_bytes_len / sizeof(u32); | 186 | num_bsr_devs = bsr_bytes_len / sizeof(u32); |
| 187 | 187 | ||
| 188 | for (i = 0 ; i < num_bsr_devs; i++) { | 188 | for (i = 0 ; i < num_bsr_devs; i++) { |
| 189 | struct bsr_dev *cur = kzalloc_obj(struct bsr_dev, GFP_KERNEL); | 189 | struct bsr_dev *cur = kzalloc_obj(struct bsr_dev); |
| 190 | struct resource res; | 190 | struct resource res; |
| 191 | int result; | 191 | int result; |
| 192 | 192 | ||
| @@ -154,7 +154,7 @@ found: · 153 unmodified lines | |||
| 154 | goto put_dev; | 154 | goto put_dev; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 157 | priv = kzalloc_obj(*priv); |
| 158 | if (!priv) { | 158 | if (!priv) { |
| 159 | err = -ENOMEM; | 159 | err = -ENOMEM; |
| 160 | goto put_dev; | 160 | goto put_dev; |
| @@ -107,7 +107,7 @@ static int __init geode_rng_init(void) · 106 unmodified lines | |||
| 107 | return err; | 107 | return err; |
| 108 | 108 | ||
| 109 | found: | 109 | found: |
| 110 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 110 | priv = kzalloc_obj(*priv); |
| 111 | if (!priv) { | 111 | if (!priv) { |
| 112 | err = -ENOMEM; | 112 | err = -ENOMEM; |
| 113 | goto put_dev; | 113 | goto put_dev; |
| @@ -346,7 +346,7 @@ static int __init intel_rng_mod_init(void) · 345 unmodified lines | |||
| 346 | goto fwh_done; | 346 | goto fwh_done; |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | intel_rng_hw = kmalloc_obj(*intel_rng_hw, GFP_KERNEL); | 349 | intel_rng_hw = kmalloc_obj(*intel_rng_hw); |
| 350 | if (!intel_rng_hw) { | 350 | if (!intel_rng_hw) { |
| 351 | pci_dev_put(dev); | 351 | pci_dev_put(dev); |
| 352 | goto out; | 352 | goto out; |
| @@ -134,7 +134,7 @@ static int probe_common(struct virtio_device *vdev) · 133 unmodified lines | |||
| 134 | int err, index; | 134 | int err, index; |
| 135 | struct virtrng_info *vi = NULL; | 135 | struct virtrng_info *vi = NULL; |
| 136 | 136 | ||
| 137 | vi = kzalloc_obj(struct virtrng_info, GFP_KERNEL); | 137 | vi = kzalloc_obj(struct virtrng_info); |
| 138 | if (!vi) | 138 | if (!vi) |
| 139 | return -ENOMEM; | 139 | return -ENOMEM; |
| 140 | 140 | ||
| @@ -90,7 +90,7 @@ static int ipmi_open(struct inode *inode, struct file *file) · 89 unmodified lines | |||
| 90 | int rv; | 90 | int rv; |
| 91 | struct ipmi_file_private *priv; | 91 | struct ipmi_file_private *priv; |
| 92 | 92 | ||
| 93 | priv = kmalloc_obj(*priv, GFP_KERNEL); | 93 | priv = kmalloc_obj(*priv); |
| 94 | if (!priv) | 94 | if (!priv) |
| 95 | return -ENOMEM; | 95 | return -ENOMEM; |
| 96 | 96 | ||
| @@ -813,7 +813,7 @@ static void ipmi_new_smi(int if_num, struct device *device) · 716 unmodified lines | |||
| 813 | dev_t dev = MKDEV(ipmi_major, if_num); | 813 | dev_t dev = MKDEV(ipmi_major, if_num); |
| 814 | struct ipmi_reg_list *entry; | 814 | struct ipmi_reg_list *entry; |
| 815 | 815 | ||
| 816 | entry = kmalloc_obj(*entry, GFP_KERNEL); | 816 | entry = kmalloc_obj(*entry); |
| 817 | if (!entry) { | 817 | if (!entry) { |
| 818 | pr_err("ipmi_devintf: Unable to create the ipmi class device link\n"); | 818 | pr_err("ipmi_devintf: Unable to create the ipmi class device link\n"); |
| 819 | return; | 819 | return; |
| @@ -74,7 +74,7 @@ static void __init dmi_add_platform_ipmi(unsigned long base_addr, · 73 unmodified lines | |||
| 74 | p.slave_addr = slave_addr; | 74 | p.slave_addr = slave_addr; |
| 75 | p.addr_source = SI_SMBIOS; | 75 | p.addr_source = SI_SMBIOS; |
| 76 | 76 | ||
| 77 | info = kmalloc_obj(*info, GFP_KERNEL); | 77 | info = kmalloc_obj(*info); |
| 78 | if (!info) { | 78 | if (!info) { |
| 79 | pr_warn("Could not allocate dmi info\n"); | 79 | pr_warn("Could not allocate dmi info\n"); |
| 80 | } else { | 80 | } else { |
| @@ -761,11 +761,11 @@ int ipmi_smi_watcher_register(struct ipmi_smi_watcher *watcher) · 760 unmodified lines | |||
| 761 | list_for_each_entry(intf, &ipmi_interfaces, link) | 761 | list_for_each_entry(intf, &ipmi_interfaces, link) |
| 762 | count++; | 762 | count++; |
| 763 | if (count > 0) { | 763 | if (count > 0) { |
| 764 | interfaces = kmalloc_objs(*interfaces, count, GFP_KERNEL); | 764 | interfaces = kmalloc_objs(*interfaces, count); |
| 765 | if (!interfaces) { | 765 | if (!interfaces) { |
| 766 | rv = -ENOMEM; | 766 | rv = -ENOMEM; |
| 767 | } else { | 767 | } else { |
| 768 | devices = kmalloc_objs(*devices, count, GFP_KERNEL); | 768 | devices = kmalloc_objs(*devices, count); |
| 769 | if (!devices) { | 769 | if (!devices) { |
| 770 | kfree(interfaces); | 770 | kfree(interfaces); |
| 771 | interfaces = NULL; | 771 | interfaces = NULL; |
| @@ -1684,7 +1684,7 @@ int ipmi_register_for_cmd(struct ipmi_user *user, · 912 unmodified lines | |||
| 1684 | if (!user) | 1684 | if (!user) |
| 1685 | return -ENODEV; | 1685 | return -ENODEV; |
| 1686 | 1686 | ||
| 1687 | rcvr = kmalloc_obj(*rcvr, GFP_KERNEL); | 1687 | rcvr = kmalloc_obj(*rcvr); |
| 1688 | if (!rcvr) { | 1688 | if (!rcvr) { |
| 1689 | rv = -ENOMEM; | 1689 | rv = -ENOMEM; |
| 1690 | goto out_release; | 1690 | goto out_release; |
| @@ -3144,7 +3144,7 @@ static int __ipmi_bmc_register(struct ipmi_smi *intf, · 1453 unmodified lines | |||
| 3144 | bmc->id.product_id, | 3144 | bmc->id.product_id, |
| 3145 | bmc->id.device_id); | 3145 | bmc->id.device_id); |
| 3146 | } else { | 3146 | } else { |
| 3147 | bmc = kzalloc_obj(*bmc, GFP_KERNEL); | 3147 | bmc = kzalloc_obj(*bmc); |
| 3148 | if (!bmc) { | 3148 | if (!bmc) { |
| 3149 | rv = -ENOMEM; | 3149 | rv = -ENOMEM; |
| 3150 | goto out; | 3150 | goto out; |
| @@ -3580,7 +3580,7 @@ int ipmi_add_smi(struct module *owner, · 429 unmodified lines | |||
| 3580 | if (rv) | 3580 | if (rv) |
| 3581 | return rv; | 3581 | return rv; |
| 3582 | 3582 | ||
| 3583 | intf = kzalloc_obj(*intf, GFP_KERNEL); | 3583 | intf = kzalloc_obj(*intf); |
| 3584 | if (!intf) | 3584 | if (!intf) |
| 3585 | return -ENOMEM; | 3585 | return -ENOMEM; |
| 3586 | 3586 | ||
| @@ -1914,7 +1914,7 @@ int ipmi_si_add_smi(struct si_sm_io *io) · 1913 unmodified lines | |||
| 1914 | } | 1914 | } |
| 1915 | } | 1915 | } |
| 1916 | 1916 | ||
| 1917 | new_smi = kzalloc_obj(*new_smi, GFP_KERNEL); | 1917 | new_smi = kzalloc_obj(*new_smi); |
| 1918 | if (!new_smi) | 1918 | if (!new_smi) |
| 1919 | return -ENOMEM; | 1919 | return -ENOMEM; |
| 1920 | spin_lock_init(&new_smi->si_lock); | 1920 | spin_lock_init(&new_smi->si_lock); |
| @@ -1602,7 +1602,7 @@ static int ssif_add_infos(struct i2c_client *client) · 1601 unmodified lines | |||
| 1602 | { | 1602 | { |
| 1603 | struct ssif_addr_info *info; | 1603 | struct ssif_addr_info *info; |
| 1604 | 1604 | ||
| 1605 | info = kzalloc_obj(*info, GFP_KERNEL); | 1605 | info = kzalloc_obj(*info); |
| 1606 | if (!info) | 1606 | if (!info) |
| 1607 | return -ENOMEM; | 1607 | return -ENOMEM; |
| 1608 | info->addr_src = SI_ACPI; | 1608 | info->addr_src = SI_ACPI; |
| @@ -1667,7 +1667,7 @@ static int ssif_probe(struct i2c_client *client) · 58 unmodified lines | |||
| 1667 | return -ENOMEM; | 1667 | return -ENOMEM; |
| 1668 | } | 1668 | } |
| 1669 | 1669 | ||
| 1670 | ssif_info = kzalloc_obj(*ssif_info, GFP_KERNEL); | 1670 | ssif_info = kzalloc_obj(*ssif_info); |
| 1671 | if (!ssif_info) { | 1671 | if (!ssif_info) { |
| 1672 | kfree(resp); | 1672 | kfree(resp); |
| 1673 | mutex_unlock(&ssif_infos_mutex); | 1673 | mutex_unlock(&ssif_infos_mutex); |
| @@ -1948,7 +1948,7 @@ static int new_ssif_client(int addr, char *adapter_name, · 274 unmodified lines | |||
| 1948 | goto out_unlock; | 1948 | goto out_unlock; |
| 1949 | } | 1949 | } |
| 1950 | 1950 | ||
| 1951 | addr_info = kzalloc_obj(*addr_info, GFP_KERNEL); | 1951 | addr_info = kzalloc_obj(*addr_info); |
| 1952 | if (!addr_info) { | 1952 | if (!addr_info) { |
| 1953 | rv = -ENOMEM; | 1953 | rv = -ENOMEM; |
| 1954 | goto out_unlock; | 1954 | goto out_unlock; |
| @@ -77,7 +77,7 @@ static int kcs_bmc_serio_add_device(struct kcs_bmc_device *kcs_bmc) · 76 unmodified lines | |||
| 77 | return -ENOMEM; | 77 | return -ENOMEM; |
| 78 | 78 | ||
| 79 | /* Use kzalloc() as the allocation is cleaned up with kfree() via serio_unregister_port() */ | 79 | /* Use kzalloc() as the allocation is cleaned up with kfree() via serio_unregister_port() */ |
| 80 | port = kzalloc_obj(*port, GFP_KERNEL); | 80 | port = kzalloc_obj(*port); |
| 81 | if (!port) | 81 | if (!port) |
| 82 | return -ENOMEM; | 82 | return -ENOMEM; |
| 83 | 83 | ||
| @@ -167,7 +167,7 @@ static int oppanel_probe(struct platform_device *pdev) · 166 unmodified lines | |||
| 167 | if (!oppanel_data) | 167 | if (!oppanel_data) |
| 168 | return -ENOMEM; | 168 | return -ENOMEM; |
| 169 | 169 | ||
| 170 | oppanel_lines = kzalloc_objs(oppanel_line_t, num_lines, GFP_KERNEL); | 170 | oppanel_lines = kzalloc_objs(oppanel_line_t, num_lines); |
| 171 | if (!oppanel_lines) { | 171 | if (!oppanel_lines) { |
| 172 | rc = -ENOMEM; | 172 | rc = -ENOMEM; |
| 173 | goto free_oppanel_data; | 173 | goto free_oppanel_data; |
| @@ -689,7 +689,7 @@ static int pp_open(struct inode *inode, struct file *file) · 688 unmodified lines | |||
| 689 | if (minor >= PARPORT_MAX) | 689 | if (minor >= PARPORT_MAX) |
| 690 | return -ENXIO; | 690 | return -ENXIO; |
| 691 | 691 | ||
| 692 | pp = kmalloc_obj(struct pp_struct, GFP_KERNEL); | 692 | pp = kmalloc_obj(struct pp_struct); |
| 693 | if (!pp) | 693 | if (!pp) |
| 694 | return -ENOMEM; | 694 | return -ENOMEM; |
| 695 | 695 | ||
| @@ -361,7 +361,7 @@ static int ps3flash_probe(struct ps3_system_bus_device *_dev) · 360 unmodified lines | |||
| 361 | 361 | ||
| 362 | ps3flash_dev = dev; | 362 | ps3flash_dev = dev; |
| 363 | 363 | ||
| 364 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 364 | priv = kzalloc_obj(*priv); |
| 365 | if (!priv) { | 365 | if (!priv) { |
| 366 | error = -ENOMEM; | 366 | error = -ENOMEM; |
| 367 | goto fail; | 367 | goto fail; |
| @@ -1248,7 +1248,7 @@ void __cold rand_initialize_disk(struct gendisk *disk) · 1247 unmodified lines | |||
| 1248 | * If kzalloc returns null, we just won't use that entropy | 1248 | * If kzalloc returns null, we just won't use that entropy |
| 1249 | * source. | 1249 | * source. |
| 1250 | */ | 1250 | */ |
| 1251 | state = kzalloc_obj(struct timer_rand_state, GFP_KERNEL); | 1251 | state = kzalloc_obj(struct timer_rand_state); |
| 1252 | if (state) { | 1252 | if (state) { |
| 1253 | state->last_time = INITIAL_JIFFIES; | 1253 | state->last_time = INITIAL_JIFFIES; |
| 1254 | disk->random = state; | 1254 | disk->random = state; |
| @@ -776,7 +776,7 @@ static int __init tlclk_init(void) · 775 unmodified lines | |||
| 776 | 776 | ||
| 777 | telclk_interrupt = (inb(TLCLK_REG7) & 0x0f); | 777 | telclk_interrupt = (inb(TLCLK_REG7) & 0x0f); |
| 778 | 778 | ||
| 779 | alarm_events = kzalloc_obj(struct tlclk_alarms, GFP_KERNEL); | 779 | alarm_events = kzalloc_obj(struct tlclk_alarms); |
| 780 | if (!alarm_events) { | 780 | if (!alarm_events) { |
| 781 | ret = -ENOMEM; | 781 | ret = -ENOMEM; |
| 782 | goto out1; | 782 | goto out1; |
| @@ -295,7 +295,7 @@ struct tpm_chip *tpm_chip_alloc(struct device *pdev, · 294 unmodified lines | |||
| 295 | struct tpm_chip *chip; | 295 | struct tpm_chip *chip; |
| 296 | int rc; | 296 | int rc; |
| 297 | 297 | ||
| 298 | chip = kzalloc_obj(*chip, GFP_KERNEL); | 298 | chip = kzalloc_obj(*chip); |
| 299 | if (chip == NULL) | 299 | if (chip == NULL) |
| 300 | return ERR_PTR(-ENOMEM); | 300 | return ERR_PTR(-ENOMEM); |
| 301 | 301 | ||
| @@ -30,7 +30,7 @@ static int tpm_open(struct inode *inode, struct file *file) · 29 unmodified lines | |||
| 30 | return -EBUSY; | 30 | return -EBUSY; |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 33 | priv = kzalloc_obj(*priv); |
| 34 | if (priv == NULL) | 34 | if (priv == NULL) |
| 35 | goto out; | 35 | goto out; |
| 36 | 36 | ||
| @@ -991,7 +991,7 @@ int tpm2_start_auth_session(struct tpm_chip *chip) · 990 unmodified lines | |||
| 991 | return 0; | 991 | return 0; |
| 992 | } | 992 | } |
| 993 | 993 | ||
| 994 | auth = kzalloc_obj(*auth, GFP_KERNEL); | 994 | auth = kzalloc_obj(*auth); |
| 995 | if (!auth) | 995 | if (!auth) |
| 996 | return -ENOMEM; | 996 | return -ENOMEM; |
| 997 | 997 | ||
| @@ -346,7 +346,7 @@ static int tpm_crb_ffa_probe(struct ffa_device *ffa_dev) · 345 unmodified lines | |||
| 346 | return -EINVAL; | 346 | return -EINVAL; |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | p = kzalloc_obj(*tpm_crb_ffa, GFP_KERNEL); | 349 | p = kzalloc_obj(*tpm_crb_ffa); |
| 350 | if (!p) | 350 | if (!p) |
| 351 | return -ENOMEM; | 351 | return -ENOMEM; |
| 352 | tpm_crb_ffa = p; | 352 | tpm_crb_ffa = p; |
| @@ -611,7 +611,7 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev, · 610 unmodified lines | |||
| 611 | if (IS_ERR(chip)) | 611 | if (IS_ERR(chip)) |
| 612 | return PTR_ERR(chip); | 612 | return PTR_ERR(chip); |
| 613 | 613 | ||
| 614 | ibmvtpm = kzalloc_obj(struct ibmvtpm_dev, GFP_KERNEL); | 614 | ibmvtpm = kzalloc_obj(struct ibmvtpm_dev); |
| 615 | if (!ibmvtpm) { | 615 | if (!ibmvtpm) { |
| 616 | dev_err(dev, "kzalloc for ibmvtpm failed\n"); | 616 | dev_err(dev, "kzalloc for ibmvtpm failed\n"); |
| 617 | goto cleanup; | 617 | goto cleanup; |
| @@ -491,7 +491,7 @@ static struct proxy_dev *vtpm_proxy_create_proxy_dev(void) · 490 unmodified lines | |||
| 491 | struct tpm_chip *chip; | 491 | struct tpm_chip *chip; |
| 492 | int err; | 492 | int err; |
| 493 | 493 | ||
| 494 | proxy_dev = kzalloc_obj(*proxy_dev, GFP_KERNEL); | 494 | proxy_dev = kzalloc_obj(*proxy_dev); |
| 495 | if (proxy_dev == NULL) | 495 | if (proxy_dev == NULL) |
| 496 | return ERR_PTR(-ENOMEM); | 496 | return ERR_PTR(-ENOMEM); |
| 497 | 497 | ||
| @@ -17,7 +17,7 @@ static int tpmrm_open(struct inode *inode, struct file *file) · 16 unmodified lines | |||
| 17 | int rc; | 17 | int rc; |
| 18 | 18 | ||
| 19 | chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); | 19 | chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); |
| 20 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 20 | priv = kzalloc_obj(*priv); |
| 21 | if (priv == NULL) | 21 | if (priv == NULL) |
| 22 | return -ENOMEM; | 22 | return -ENOMEM; |
| 23 | 23 | ||
| @@ -338,7 +338,7 @@ static int tpmfront_probe(struct xenbus_device *dev, · 337 unmodified lines | |||
| 338 | struct tpm_private *priv; | 338 | struct tpm_private *priv; |
| 339 | int rv; | 339 | int rv; |
| 340 | 340 | ||
| 341 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 341 | priv = kzalloc_obj(*priv); |
| 342 | if (!priv) { | 342 | if (!priv) { |
| 343 | xenbus_dev_fatal(dev, -ENOMEM, "allocating priv structure"); | 343 | xenbus_dev_fatal(dev, -ENOMEM, "allocating priv structure"); |
| 344 | return -ENOMEM; | 344 | return -ENOMEM; |
| @@ -1325,7 +1325,7 @@ static int add_port(struct ports_device *portdev, u32 id) · 1324 unmodified lines | |||
| 1325 | dev_t devt; | 1325 | dev_t devt; |
| 1326 | int err; | 1326 | int err; |
| 1327 | 1327 | ||
| 1328 | port = kmalloc_obj(*port, GFP_KERNEL); | 1328 | port = kmalloc_obj(*port); |
| 1329 | if (!port) { | 1329 | if (!port) { |
| 1330 | err = -ENOMEM; | 1330 | err = -ENOMEM; |
| 1331 | goto fail; | 1331 | goto fail; |
| @@ -1809,9 +1809,9 @@ static int init_vqs(struct ports_device *portdev) · 477 unmodified lines | |||
| 1809 | nr_ports = portdev->max_nr_ports; | 1809 | nr_ports = portdev->max_nr_ports; |
| 1810 | nr_queues = use_multiport(portdev) ? (nr_ports + 1) * 2 : 2; | 1810 | nr_queues = use_multiport(portdev) ? (nr_ports + 1) * 2 : 2; |
| 1811 | 1811 | ||
| 1812 | vqs = kmalloc_objs(struct virtqueue *, nr_queues, GFP_KERNEL); | 1812 | vqs = kmalloc_objs(struct virtqueue *, nr_queues); |
| 1813 | vqs_info = kzalloc_objs(*vqs_info, nr_queues, GFP_KERNEL); | 1813 | vqs_info = kzalloc_objs(*vqs_info, nr_queues); |
| 1814 | portdev->in_vqs = kmalloc_objs(struct virtqueue *, nr_ports, GFP_KERNEL); | 1814 | portdev->in_vqs = kmalloc_objs(struct virtqueue *, nr_ports); |
| 1815 | portdev->out_vqs = kmalloc_objs(struct virtqueue *, nr_ports, | 1815 | portdev->out_vqs = kmalloc_objs(struct virtqueue *, nr_ports, |
| 1816 | GFP_KERNEL); | 1816 | GFP_KERNEL); |
| 1817 | if (!vqs || !vqs_info || !portdev->in_vqs || !portdev->out_vqs) { | 1817 | if (!vqs || !vqs_info || !portdev->in_vqs || !portdev->out_vqs) { |
| @@ -1964,7 +1964,7 @@ static int virtcons_probe(struct virtio_device *vdev) · 146 unmodified lines | |||
| 1964 | return -EINVAL; | 1964 | return -EINVAL; |
| 1965 | } | 1965 | } |
| 1966 | 1966 | ||
| 1967 | portdev = kmalloc_obj(*portdev, GFP_KERNEL); | 1967 | portdev = kmalloc_obj(*portdev); |
| 1968 | if (!portdev) { | 1968 | if (!portdev) { |
| 1969 | err = -ENOMEM; | 1969 | err = -ENOMEM; |
| 1970 | goto fail; | 1970 | goto fail; |
| @@ -57,7 +57,7 @@ int xillybus_init_chrdev(struct device *dev, · 56 unmodified lines | |||
| 57 | size_t namelen; | 57 | size_t namelen; |
| 58 | struct xilly_unit *unit, *u; | 58 | struct xilly_unit *unit, *u; |
| 59 | 59 | ||
| 60 | unit = kzalloc_obj(*unit, GFP_KERNEL); | 60 | unit = kzalloc_obj(*unit); |
| 61 | 61 | ||
| 62 | if (!unit) | 62 | if (!unit) |
| 63 | return -ENOMEM; | 63 | return -ENOMEM; |
| @@ -319,7 +319,7 @@ static int xilly_map_single(struct xilly_endpoint *ep, · 318 unmodified lines | |||
| 319 | dma_addr_t addr; | 319 | dma_addr_t addr; |
| 320 | struct xilly_mapping *this; | 320 | struct xilly_mapping *this; |
| 321 | 321 | ||
| 322 | this = kzalloc_obj(*this, GFP_KERNEL); | 322 | this = kzalloc_obj(*this); |
| 323 | if (!this) | 323 | if (!this) |
| 324 | return -ENOMEM; | 324 | return -ENOMEM; |
| 325 | 325 | ||
| @@ -495,7 +495,7 @@ static struct xillyusb_endpoint · 494 unmodified lines | |||
| 495 | 495 | ||
| 496 | struct xillyusb_endpoint *ep; | 496 | struct xillyusb_endpoint *ep; |
| 497 | 497 | ||
| 498 | ep = kzalloc_obj(*ep, GFP_KERNEL); | 498 | ep = kzalloc_obj(*ep); |
| 499 | 499 | ||
| 500 | if (!ep) | 500 | if (!ep) |
| 501 | return NULL; | 501 | return NULL; |
| @@ -522,7 +522,7 @@ static struct xillyusb_endpoint · 20 unmodified lines | |||
| 522 | struct xillybuffer *xb; | 522 | struct xillybuffer *xb; |
| 523 | unsigned long addr; | 523 | unsigned long addr; |
| 524 | 524 | ||
| 525 | xb = kzalloc_obj(*xb, GFP_KERNEL); | 525 | xb = kzalloc_obj(*xb); |
| 526 | 526 | ||
| 527 | if (!xb) { | 527 | if (!xb) { |
| 528 | endpoint_dealloc(ep); | 528 | endpoint_dealloc(ep); |
| @@ -1336,7 +1336,7 @@ static int xillyusb_open(struct inode *inode, struct file *filp) · 807 unmodified lines | |||
| 1336 | } | 1336 | } |
| 1337 | 1337 | ||
| 1338 | if (filp->f_mode & FMODE_READ) { | 1338 | if (filp->f_mode & FMODE_READ) { |
| 1339 | in_fifo = kzalloc_obj(*in_fifo, GFP_KERNEL); | 1339 | in_fifo = kzalloc_obj(*in_fifo); |
| 1340 | 1340 | ||
| 1341 | if (!in_fifo) { | 1341 | if (!in_fifo) { |
| 1342 | rc = -ENOMEM; | 1342 | rc = -ENOMEM; |
| @@ -1943,7 +1943,7 @@ static int setup_channels(struct xillyusb_dev *xdev, · 600 unmodified lines | |||
| 1943 | struct xillyusb_channel *chan, *new_channels; | 1943 | struct xillyusb_channel *chan, *new_channels; |
| 1944 | int i; | 1944 | int i; |
| 1945 | 1945 | ||
| 1946 | chan = kzalloc_objs(*chan, num_channels, GFP_KERNEL); | 1946 | chan = kzalloc_objs(*chan, num_channels); |
| 1947 | if (!chan) | 1947 | if (!chan) |
| 1948 | return -ENOMEM; | 1948 | return -ENOMEM; |
| 1949 | 1949 | ||
| @@ -2149,7 +2149,7 @@ static int xillyusb_probe(struct usb_interface *interface, · 199 unmodified lines | |||
| 2149 | struct xillyusb_dev *xdev; | 2149 | struct xillyusb_dev *xdev; |
| 2150 | int rc; | 2150 | int rc; |
| 2151 | 2151 | ||
| 2152 | xdev = kzalloc_obj(*xdev, GFP_KERNEL); | 2152 | xdev = kzalloc_obj(*xdev); |
| 2153 | if (!xdev) | 2153 | if (!xdev) |
| 2154 | return -ENOMEM; | 2154 | return -ENOMEM; |
| 2155 | 2155 | ||
| @@ -354,7 +354,7 @@ static struct clk_hw *aspeed_clk_hw_register_gate(struct device *dev, · 353 unmodified lines | |||
| 354 | struct clk_hw *hw; | 354 | struct clk_hw *hw; |
| 355 | int ret; | 355 | int ret; |
| 356 | 356 | ||
| 357 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 357 | gate = kzalloc_obj(*gate); |
| 358 | if (!gate) | 358 | if (!gate) |
| 359 | return ERR_PTR(-ENOMEM); | 359 | return ERR_PTR(-ENOMEM); |
| 360 | 360 | ||
| @@ -431,7 +431,7 @@ static struct clk_hw *aspeed_g6_clk_hw_register_gate(struct device *dev, · 430 unmodified lines | |||
| 431 | struct clk_hw *hw; | 431 | struct clk_hw *hw; |
| 432 | int ret; | 432 | int ret; |
| 433 | 433 | ||
| 434 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 434 | gate = kzalloc_obj(*gate); |
| 435 | if (!gate) | 435 | if (!gate) |
| 436 | return ERR_PTR(-ENOMEM); | 436 | return ERR_PTR(-ENOMEM); |
| 437 | 437 | ||
| @@ -820,7 +820,7 @@ static struct clk_hw *ast2700_clk_hw_register_gate(struct device *dev, const cha · 819 unmodified lines | |||
| 820 | struct clk_hw *hw; | 820 | struct clk_hw *hw; |
| 821 | int ret = -EINVAL; | 821 | int ret = -EINVAL; |
| 822 | 822 | ||
| 823 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 823 | gate = kzalloc_obj(*gate); |
| 824 | if (!gate) | 824 | if (!gate) |
| 825 | return ERR_PTR(-ENOMEM); | 825 | return ERR_PTR(-ENOMEM); |
| 826 | 826 | ||
| @@ -460,7 +460,7 @@ at91_clk_register_audio_pll_frac(struct regmap *regmap, const char *name, · 459 unmodified lines | |||
| 460 | struct clk_init_data init = {}; | 460 | struct clk_init_data init = {}; |
| 461 | int ret; | 461 | int ret; |
| 462 | 462 | ||
| 463 | frac_ck = kzalloc_obj(*frac_ck, GFP_KERNEL); | 463 | frac_ck = kzalloc_obj(*frac_ck); |
| 464 | if (!frac_ck) | 464 | if (!frac_ck) |
| 465 | return ERR_PTR(-ENOMEM); | 465 | return ERR_PTR(-ENOMEM); |
| 466 | 466 | ||
| @@ -490,7 +490,7 @@ at91_clk_register_audio_pll_pad(struct regmap *regmap, const char *name, · 23 unmodified lines | |||
| 490 | struct clk_init_data init; | 490 | struct clk_init_data init; |
| 491 | int ret; | 491 | int ret; |
| 492 | 492 | ||
| 493 | apad_ck = kzalloc_obj(*apad_ck, GFP_KERNEL); | 493 | apad_ck = kzalloc_obj(*apad_ck); |
| 494 | if (!apad_ck) | 494 | if (!apad_ck) |
| 495 | return ERR_PTR(-ENOMEM); | 495 | return ERR_PTR(-ENOMEM); |
| 496 | 496 | ||
| @@ -521,7 +521,7 @@ at91_clk_register_audio_pll_pmc(struct regmap *regmap, const char *name, · 24 unmodified lines | |||
| 521 | struct clk_init_data init; | 521 | struct clk_init_data init; |
| 522 | int ret; | 522 | int ret; |
| 523 | 523 | ||
| 524 | apmc_ck = kzalloc_obj(*apmc_ck, GFP_KERNEL); | 524 | apmc_ck = kzalloc_obj(*apmc_ck); |
| 525 | if (!apmc_ck) | 525 | if (!apmc_ck) |
| 526 | return ERR_PTR(-ENOMEM); | 526 | return ERR_PTR(-ENOMEM); |
| 527 | 527 | ||
| @@ -332,7 +332,7 @@ at91_clk_register_generated(struct regmap *regmap, spinlock_t *lock, · 331 unmodified lines | |||
| 332 | if (!(parent_names || parent_hws)) | 332 | if (!(parent_names || parent_hws)) |
| 333 | return ERR_PTR(-ENOMEM); | 333 | return ERR_PTR(-ENOMEM); |
| 334 | 334 | ||
| 335 | gck = kzalloc_obj(*gck, GFP_KERNEL); | 335 | gck = kzalloc_obj(*gck); |
| 336 | if (!gck) | 336 | if (!gck) |
| 337 | return ERR_PTR(-ENOMEM); | 337 | return ERR_PTR(-ENOMEM); |
| 338 | 338 | ||
| @@ -100,7 +100,7 @@ at91_clk_register_h32mx(struct regmap *regmap, const char *name, · 99 unmodified lines | |||
| 100 | struct clk_init_data init; | 100 | struct clk_init_data init; |
| 101 | int ret; | 101 | int ret; |
| 102 | 102 | ||
| 103 | h32mxclk = kzalloc_obj(*h32mxclk, GFP_KERNEL); | 103 | h32mxclk = kzalloc_obj(*h32mxclk); |
| 104 | if (!h32mxclk) | 104 | if (!h32mxclk) |
| 105 | return ERR_PTR(-ENOMEM); | 105 | return ERR_PTR(-ENOMEM); |
| 106 | 106 | ||
| @@ -57,7 +57,7 @@ at91_clk_i2s_mux_register(struct regmap *regmap, const char *name, · 56 unmodified lines | |||
| 57 | struct clk_i2s_mux *i2s_ck; | 57 | struct clk_i2s_mux *i2s_ck; |
| 58 | int ret; | 58 | int ret; |
| 59 | 59 | ||
| 60 | i2s_ck = kzalloc_obj(*i2s_ck, GFP_KERNEL); | 60 | i2s_ck = kzalloc_obj(*i2s_ck); |
| 61 | if (!i2s_ck) | 61 | if (!i2s_ck) |
| 62 | return ERR_PTR(-ENOMEM); | 62 | return ERR_PTR(-ENOMEM); |
| 63 | 63 | ||
| @@ -163,7 +163,7 @@ at91_clk_register_main_osc(struct regmap *regmap, · 162 unmodified lines | |||
| 163 | if (!name || !(parent_name || parent_data)) | 163 | if (!name || !(parent_name || parent_data)) |
| 164 | return ERR_PTR(-EINVAL); | 164 | return ERR_PTR(-EINVAL); |
| 165 | 165 | ||
| 166 | osc = kzalloc_obj(*osc, GFP_KERNEL); | 166 | osc = kzalloc_obj(*osc); |
| 167 | if (!osc) | 167 | if (!osc) |
| 168 | return ERR_PTR(-ENOMEM); | 168 | return ERR_PTR(-ENOMEM); |
| 169 | 169 | ||
| @@ -306,7 +306,7 @@ at91_clk_register_main_rc_osc(struct regmap *regmap, · 136 unmodified lines | |||
| 306 | if (!name || !frequency) | 306 | if (!name || !frequency) |
| 307 | return ERR_PTR(-EINVAL); | 307 | return ERR_PTR(-EINVAL); |
| 308 | 308 | ||
| 309 | osc = kzalloc_obj(*osc, GFP_KERNEL); | 309 | osc = kzalloc_obj(*osc); |
| 310 | if (!osc) | 310 | if (!osc) |
| 311 | return ERR_PTR(-ENOMEM); | 311 | return ERR_PTR(-ENOMEM); |
| 312 | 312 | ||
| @@ -415,7 +415,7 @@ at91_clk_register_rm9200_main(struct regmap *regmap, · 102 unmodified lines | |||
| 415 | if (!(parent_name || parent_hw)) | 415 | if (!(parent_name || parent_hw)) |
| 416 | return ERR_PTR(-EINVAL); | 416 | return ERR_PTR(-EINVAL); |
| 417 | 417 | ||
| 418 | clkmain = kzalloc_obj(*clkmain, GFP_KERNEL); | 418 | clkmain = kzalloc_obj(*clkmain); |
| 419 | if (!clkmain) | 419 | if (!clkmain) |
| 420 | return ERR_PTR(-ENOMEM); | 420 | return ERR_PTR(-ENOMEM); |
| 421 | 421 | ||
| @@ -567,7 +567,7 @@ at91_clk_register_sam9x5_main(struct regmap *regmap, · 145 unmodified lines | |||
| 567 | if (!(parent_hws || parent_names) || !num_parents) | 567 | if (!(parent_hws || parent_names) || !num_parents) |
| 568 | return ERR_PTR(-EINVAL); | 568 | return ERR_PTR(-EINVAL); |
| 569 | 569 | ||
| 570 | clkmain = kzalloc_obj(*clkmain, GFP_KERNEL); | 570 | clkmain = kzalloc_obj(*clkmain); |
| 571 | if (!clkmain) | 571 | if (!clkmain) |
| 572 | return ERR_PTR(-ENOMEM); | 572 | return ERR_PTR(-ENOMEM); |
| 573 | 573 | ||
| @@ -488,7 +488,7 @@ at91_clk_register_master_internal(struct regmap *regmap, · 487 unmodified lines | |||
| 488 | if (!name || !num_parents || !(parent_names || parent_hws) || !lock) | 488 | if (!name || !num_parents || !(parent_names || parent_hws) || !lock) |
| 489 | return ERR_PTR(-EINVAL); | 489 | return ERR_PTR(-EINVAL); |
| 490 | 490 | ||
| 491 | master = kzalloc_obj(*master, GFP_KERNEL); | 491 | master = kzalloc_obj(*master); |
| 492 | if (!master) | 492 | if (!master) |
| 493 | return ERR_PTR(-ENOMEM); | 493 | return ERR_PTR(-ENOMEM); |
| 494 | 494 | ||
| @@ -831,7 +831,7 @@ at91_clk_sama7g5_register_master(struct regmap *regmap, · 336 unmodified lines | |||
| 831 | !lock || id > MASTER_MAX_ID) | 831 | !lock || id > MASTER_MAX_ID) |
| 832 | return ERR_PTR(-EINVAL); | 832 | return ERR_PTR(-EINVAL); |
| 833 | 833 | ||
| 834 | master = kzalloc_obj(*master, GFP_KERNEL); | 834 | master = kzalloc_obj(*master); |
| 835 | if (!master) | 835 | if (!master) |
| 836 | return ERR_PTR(-ENOMEM); | 836 | return ERR_PTR(-ENOMEM); |
| 837 | 837 | ||
| @@ -109,7 +109,7 @@ at91_clk_register_peripheral(struct regmap *regmap, const char *name, · 108 unmodified lines | |||
| 109 | if (!name || !(parent_name || parent_hw) || id > PERIPHERAL_ID_MAX) | 109 | if (!name || !(parent_name || parent_hw) || id > PERIPHERAL_ID_MAX) |
| 110 | return ERR_PTR(-EINVAL); | 110 | return ERR_PTR(-EINVAL); |
| 111 | 111 | ||
| 112 | periph = kzalloc_obj(*periph, GFP_KERNEL); | 112 | periph = kzalloc_obj(*periph); |
| 113 | if (!periph) | 113 | if (!periph) |
| 114 | return ERR_PTR(-ENOMEM); | 114 | return ERR_PTR(-ENOMEM); |
| 115 | 115 | ||
| @@ -471,7 +471,7 @@ at91_clk_register_sam9x5_peripheral(struct regmap *regmap, spinlock_t *lock, · 355 unmodified lines | |||
| 471 | if (!name || !(parent_name || parent_hw)) | 471 | if (!name || !(parent_name || parent_hw)) |
| 472 | return ERR_PTR(-EINVAL); | 472 | return ERR_PTR(-EINVAL); |
| 473 | 473 | ||
| 474 | periph = kzalloc_obj(*periph, GFP_KERNEL); | 474 | periph = kzalloc_obj(*periph); |
| 475 | if (!periph) | 475 | if (!periph) |
| 476 | return ERR_PTR(-ENOMEM); | 476 | return ERR_PTR(-ENOMEM); |
| 477 | 477 | ||
| @@ -326,7 +326,7 @@ at91_clk_register_pll(struct regmap *regmap, const char *name, · 325 unmodified lines | |||
| 326 | if (id > PLL_MAX_ID) | 326 | if (id > PLL_MAX_ID) |
| 327 | return ERR_PTR(-EINVAL); | 327 | return ERR_PTR(-EINVAL); |
| 328 | 328 | ||
| 329 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 329 | pll = kzalloc_obj(*pll); |
| 330 | if (!pll) | 330 | if (!pll) |
| 331 | return ERR_PTR(-ENOMEM); | 331 | return ERR_PTR(-ENOMEM); |
| 332 | 332 | ||
| @@ -91,7 +91,7 @@ at91_clk_register_plldiv(struct regmap *regmap, const char *name, · 90 unmodified lines | |||
| 91 | struct clk_init_data init; | 91 | struct clk_init_data init; |
| 92 | int ret; | 92 | int ret; |
| 93 | 93 | ||
| 94 | plldiv = kzalloc_obj(*plldiv, GFP_KERNEL); | 94 | plldiv = kzalloc_obj(*plldiv); |
| 95 | if (!plldiv) | 95 | if (!plldiv) |
| 96 | return ERR_PTR(-ENOMEM); | 96 | return ERR_PTR(-ENOMEM); |
| 97 | 97 | ||
| @@ -227,7 +227,7 @@ at91_clk_register_programmable(struct regmap *regmap, · 226 unmodified lines | |||
| 227 | if (id > PROG_ID_MAX || !(parent_names || parent_hws)) | 227 | if (id > PROG_ID_MAX || !(parent_names || parent_hws)) |
| 228 | return ERR_PTR(-EINVAL); | 228 | return ERR_PTR(-EINVAL); |
| 229 | 229 | ||
| 230 | prog = kzalloc_obj(*prog, GFP_KERNEL); | 230 | prog = kzalloc_obj(*prog); |
| 231 | if (!prog) | 231 | if (!prog) |
| 232 | return ERR_PTR(-ENOMEM); | 232 | return ERR_PTR(-ENOMEM); |
| 233 | 233 | ||
| @@ -652,7 +652,7 @@ sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock, · 651 unmodified lines | |||
| 652 | if (id > PLL_MAX_ID || !lock || !parent_hw) | 652 | if (id > PLL_MAX_ID || !lock || !parent_hw) |
| 653 | return ERR_PTR(-EINVAL); | 653 | return ERR_PTR(-EINVAL); |
| 654 | 654 | ||
| 655 | frac = kzalloc_obj(*frac, GFP_KERNEL); | 655 | frac = kzalloc_obj(*frac); |
| 656 | if (!frac) | 656 | if (!frac) |
| 657 | return ERR_PTR(-ENOMEM); | 657 | return ERR_PTR(-ENOMEM); |
| 658 | 658 | ||
| @@ -744,7 +744,7 @@ sam9x60_clk_register_div_pll(struct regmap *regmap, spinlock_t *lock, · 85 unmodified lines | |||
| 744 | if (safe_div >= PLL_DIV_MAX) | 744 | if (safe_div >= PLL_DIV_MAX) |
| 745 | safe_div = PLL_DIV_MAX - 1; | 745 | safe_div = PLL_DIV_MAX - 1; |
| 746 | 746 | ||
| 747 | div = kzalloc_obj(*div, GFP_KERNEL); | 747 | div = kzalloc_obj(*div); |
| 748 | if (!div) | 748 | if (!div) |
| 749 | return ERR_PTR(-ENOMEM); | 749 | return ERR_PTR(-ENOMEM); |
| 750 | 750 | ||
| @@ -52,7 +52,7 @@ at91_clk_register_sam9260_slow(struct regmap *regmap, · 51 unmodified lines | |||
| 52 | if (!parent_names || !num_parents) | 52 | if (!parent_names || !num_parents) |
| 53 | return ERR_PTR(-EINVAL); | 53 | return ERR_PTR(-EINVAL); |
| 54 | 54 | ||
| 55 | slowck = kzalloc_obj(*slowck, GFP_KERNEL); | 55 | slowck = kzalloc_obj(*slowck); |
| 56 | if (!slowck) | 56 | if (!slowck) |
| 57 | return ERR_PTR(-ENOMEM); | 57 | return ERR_PTR(-ENOMEM); |
| 58 | 58 | ||
| @@ -118,7 +118,7 @@ at91sam9x5_clk_register_smd(struct regmap *regmap, const char *name, · 117 unmodified lines | |||
| 118 | struct clk_init_data init; | 118 | struct clk_init_data init; |
| 119 | int ret; | 119 | int ret; |
| 120 | 120 | ||
| 121 | smd = kzalloc_obj(*smd, GFP_KERNEL); | 121 | smd = kzalloc_obj(*smd); |
| 122 | if (!smd) | 122 | if (!smd) |
| 123 | return ERR_PTR(-ENOMEM); | 123 | return ERR_PTR(-ENOMEM); |
| 124 | 124 | ||
| @@ -116,7 +116,7 @@ at91_clk_register_system(struct regmap *regmap, const char *name, · 115 unmodified lines | |||
| 116 | if (!(parent_name || parent_hw) || id > SYSTEM_MAX_ID) | 116 | if (!(parent_name || parent_hw) || id > SYSTEM_MAX_ID) |
| 117 | return ERR_PTR(-EINVAL); | 117 | return ERR_PTR(-EINVAL); |
| 118 | 118 | ||
| 119 | sys = kzalloc_obj(*sys, GFP_KERNEL); | 119 | sys = kzalloc_obj(*sys); |
| 120 | if (!sys) | 120 | if (!sys) |
| 121 | return ERR_PTR(-ENOMEM); | 121 | return ERR_PTR(-ENOMEM); |
| 122 | 122 | ||
| @@ -229,7 +229,7 @@ _at91sam9x5_clk_register_usb(struct regmap *regmap, const char *name, · 228 unmodified lines | |||
| 229 | struct clk_init_data init; | 229 | struct clk_init_data init; |
| 230 | int ret; | 230 | int ret; |
| 231 | 231 | ||
| 232 | usb = kzalloc_obj(*usb, GFP_KERNEL); | 232 | usb = kzalloc_obj(*usb); |
| 233 | if (!usb) | 233 | if (!usb) |
| 234 | return ERR_PTR(-ENOMEM); | 234 | return ERR_PTR(-ENOMEM); |
| 235 | 235 | ||
| @@ -280,7 +280,7 @@ at91sam9n12_clk_register_usb(struct regmap *regmap, const char *name, · 44 unmodified lines | |||
| 280 | struct clk_init_data init; | 280 | struct clk_init_data init; |
| 281 | int ret; | 281 | int ret; |
| 282 | 282 | ||
| 283 | usb = kzalloc_obj(*usb, GFP_KERNEL); | 283 | usb = kzalloc_obj(*usb); |
| 284 | if (!usb) | 284 | if (!usb) |
| 285 | return ERR_PTR(-ENOMEM); | 285 | return ERR_PTR(-ENOMEM); |
| 286 | 286 | ||
| @@ -399,7 +399,7 @@ at91rm9200_clk_register_usb(struct regmap *regmap, const char *name, · 112 unmodified lines | |||
| 399 | struct clk_init_data init; | 399 | struct clk_init_data init; |
| 400 | int ret; | 400 | int ret; |
| 401 | 401 | ||
| 402 | usb = kzalloc_obj(*usb, GFP_KERNEL); | 402 | usb = kzalloc_obj(*usb); |
| 403 | if (!usb) | 403 | if (!usb) |
| 404 | return ERR_PTR(-ENOMEM); | 404 | return ERR_PTR(-ENOMEM); |
| 405 | 405 | ||
| @@ -155,7 +155,7 @@ at91_clk_register_utmi_internal(struct regmap *regmap_pmc, · 154 unmodified lines | |||
| 155 | if (!(parent_name || parent_hw)) | 155 | if (!(parent_name || parent_hw)) |
| 156 | return ERR_PTR(-EINVAL); | 156 | return ERR_PTR(-EINVAL); |
| 157 | 157 | ||
| 158 | utmi = kzalloc_obj(*utmi, GFP_KERNEL); | 158 | utmi = kzalloc_obj(*utmi); |
| 159 | if (!utmi) | 159 | if (!utmi) |
| 160 | return ERR_PTR(-ENOMEM); | 160 | return ERR_PTR(-ENOMEM); |
| 161 | 161 | ||
| @@ -369,7 +369,7 @@ of_at91_clk_master_get_characteristics(struct device_node *np) · 368 unmodified lines | |||
| 369 | { | 369 | { |
| 370 | struct clk_master_characteristics *characteristics; | 370 | struct clk_master_characteristics *characteristics; |
| 371 | 371 | ||
| 372 | characteristics = kzalloc_obj(*characteristics, GFP_KERNEL); | 372 | characteristics = kzalloc_obj(*characteristics); |
| 373 | if (!characteristics) | 373 | if (!characteristics) |
| 374 | return NULL; | 374 | return NULL; |
| 375 | 375 | ||
| @@ -568,11 +568,11 @@ of_at91_clk_pll_get_characteristics(struct device_node *np) · 192 unmodified lines | |||
| 568 | return NULL; | 568 | return NULL; |
| 569 | num_output /= num_cells; | 569 | num_output /= num_cells; |
| 570 | 570 | ||
| 571 | characteristics = kzalloc_obj(*characteristics, GFP_KERNEL); | 571 | characteristics = kzalloc_obj(*characteristics); |
| 572 | if (!characteristics) | 572 | if (!characteristics) |
| 573 | return NULL; | 573 | return NULL; |
| 574 | 574 | ||
| 575 | output = kzalloc_objs(*output, num_output, GFP_KERNEL); | 575 | output = kzalloc_objs(*output, num_output); |
| 576 | if (!output) | 576 | if (!output) |
| 577 | goto out_free_characteristics; | 577 | goto out_free_characteristics; |
| 578 | 578 | ||
| @@ -132,7 +132,7 @@ at91_clk_register_slow_osc(void __iomem *sckcr, · 131 unmodified lines | |||
| 132 | if (!sckcr || !name || !parent_data) | 132 | if (!sckcr || !name || !parent_data) |
| 133 | return ERR_PTR(-EINVAL); | 133 | return ERR_PTR(-EINVAL); |
| 134 | 134 | ||
| 135 | osc = kzalloc_obj(*osc, GFP_KERNEL); | 135 | osc = kzalloc_obj(*osc); |
| 136 | if (!osc) | 136 | if (!osc) |
| 137 | return ERR_PTR(-ENOMEM); | 137 | return ERR_PTR(-ENOMEM); |
| 138 | 138 | ||
| @@ -239,7 +239,7 @@ at91_clk_register_slow_rc_osc(void __iomem *sckcr, · 100 unmodified lines | |||
| 239 | if (!sckcr || !name) | 239 | if (!sckcr || !name) |
| 240 | return ERR_PTR(-EINVAL); | 240 | return ERR_PTR(-EINVAL); |
| 241 | 241 | ||
| 242 | osc = kzalloc_obj(*osc, GFP_KERNEL); | 242 | osc = kzalloc_obj(*osc); |
| 243 | if (!osc) | 243 | if (!osc) |
| 244 | return ERR_PTR(-ENOMEM); | 244 | return ERR_PTR(-ENOMEM); |
| 245 | 245 | ||
| @@ -332,7 +332,7 @@ at91_clk_register_sam9x5_slow(void __iomem *sckcr, · 86 unmodified lines | |||
| 332 | if (!sckcr || !name || !parent_hws || !num_parents) | 332 | if (!sckcr || !name || !parent_hws || !num_parents) |
| 333 | return ERR_PTR(-EINVAL); | 333 | return ERR_PTR(-EINVAL); |
| 334 | 334 | ||
| 335 | slowck = kzalloc_obj(*slowck, GFP_KERNEL); | 335 | slowck = kzalloc_obj(*slowck); |
| 336 | if (!slowck) | 336 | if (!slowck) |
| 337 | return ERR_PTR(-ENOMEM); | 337 | return ERR_PTR(-ENOMEM); |
| 338 | 338 | ||
| @@ -611,7 +611,7 @@ static void __init of_sama5d4_sckc_setup(struct device_node *np) · 272 unmodified lines | |||
| 611 | goto unregister_slow_rc; | 611 | goto unregister_slow_rc; |
| 612 | parent_data.fw_name = xtal_name; | 612 | parent_data.fw_name = xtal_name; |
| 613 | 613 | ||
| 614 | osc = kzalloc_obj(*osc, GFP_KERNEL); | 614 | osc = kzalloc_obj(*osc); |
| 615 | if (!osc) | 615 | if (!osc) |
| 616 | goto unregister_slow_rc; | 616 | goto unregister_slow_rc; |
| 617 | 617 | ||
| @@ -49,7 +49,7 @@ static void of_artpec6_clkctrl_setup(struct device_node *np) · 48 unmodified lines | |||
| 49 | 49 | ||
| 50 | sys_refclk_name = of_clk_get_parent_name(np, i); | 50 | sys_refclk_name = of_clk_get_parent_name(np, i); |
| 51 | 51 | ||
| 52 | clkdata = kzalloc_obj(*clkdata, GFP_KERNEL); | 52 | clkdata = kzalloc_obj(*clkdata); |
| 53 | if (!clkdata) | 53 | if (!clkdata) |
| 54 | return; | 54 | return; |
| 55 | 55 | ||
| @@ -265,7 +265,7 @@ static void __init of_axs10x_pll_clk_setup(struct device_node *node) · 264 unmodified lines | |||
| 265 | struct clk_init_data init = { }; | 265 | struct clk_init_data init = { }; |
| 266 | int ret; | 266 | int ret; |
| 267 | 267 | ||
| 268 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 268 | pll_clk = kzalloc_obj(*pll_clk); |
| 269 | if (!pll_clk) | 269 | if (!pll_clk) |
| 270 | return; | 270 | return; |
| 271 | 271 | ||
| @@ -447,7 +447,7 @@ static void ccu_div_var_debug_init(struct clk_hw *hw, struct dentry *dentry) · 446 unmodified lines | |||
| 447 | num += !!(div->flags & CLK_SET_RATE_GATE) + | 447 | num += !!(div->flags & CLK_SET_RATE_GATE) + |
| 448 | !!(div->features & CCU_DIV_RESET_DOMAIN); | 448 | !!(div->features & CCU_DIV_RESET_DOMAIN); |
| 449 | 449 | ||
| 450 | bits = kzalloc_objs(*bits, num, GFP_KERNEL); | 450 | bits = kzalloc_objs(*bits, num); |
| 451 | if (!bits) | 451 | if (!bits) |
| 452 | return; | 452 | return; |
| 453 | 453 | ||
| @@ -489,7 +489,7 @@ static void ccu_div_gate_debug_init(struct clk_hw *hw, struct dentry *dentry) · 35 unmodified lines | |||
| 489 | struct ccu_div *div = to_ccu_div(hw); | 489 | struct ccu_div *div = to_ccu_div(hw); |
| 490 | struct ccu_div_dbgfs_bit *bit; | 490 | struct ccu_div_dbgfs_bit *bit; |
| 491 | 491 | ||
| 492 | bit = kmalloc_obj(*bit, GFP_KERNEL); | 492 | bit = kmalloc_obj(*bit); |
| 493 | if (!bit) | 493 | if (!bit) |
| 494 | return; | 494 | return; |
| 495 | 495 | ||
| @@ -507,7 +507,7 @@ static void ccu_div_buf_debug_init(struct clk_hw *hw, struct dentry *dentry) · 11 unmodified lines | |||
| 507 | struct ccu_div *div = to_ccu_div(hw); | 507 | struct ccu_div *div = to_ccu_div(hw); |
| 508 | struct ccu_div_dbgfs_bit *bit; | 508 | struct ccu_div_dbgfs_bit *bit; |
| 509 | 509 | ||
| 510 | bit = kmalloc_obj(*bit, GFP_KERNEL); | 510 | bit = kmalloc_obj(*bit); |
| 511 | if (!bit) | 511 | if (!bit) |
| 512 | return; | 512 | return; |
| 513 | 513 | ||
| @@ -585,7 +585,7 @@ struct ccu_div *ccu_div_hw_register(const struct ccu_div_init_data *div_init) · 71 unmodified lines | |||
| 585 | if (!div_init) | 585 | if (!div_init) |
| 586 | return ERR_PTR(-EINVAL); | 586 | return ERR_PTR(-EINVAL); |
| 587 | 587 | ||
| 588 | div = kzalloc_obj(*div, GFP_KERNEL); | 588 | div = kzalloc_obj(*div); |
| 589 | if (!div) | 589 | if (!div) |
| 590 | return ERR_PTR(-ENOMEM); | 590 | return ERR_PTR(-ENOMEM); |
| 591 | 591 | ||
| @@ -445,7 +445,7 @@ static void ccu_pll_debug_init(struct clk_hw *hw, struct dentry *dentry) · 444 unmodified lines | |||
| 445 | struct ccu_pll_dbgfs_fld *flds; | 445 | struct ccu_pll_dbgfs_fld *flds; |
| 446 | int idx; | 446 | int idx; |
| 447 | 447 | ||
| 448 | bits = kzalloc_objs(*bits, CCU_PLL_DBGFS_BIT_NUM, GFP_KERNEL); | 448 | bits = kzalloc_objs(*bits, CCU_PLL_DBGFS_BIT_NUM); |
| 449 | if (!bits) | 449 | if (!bits) |
| 450 | return; | 450 | return; |
| 451 | 451 | ||
| @@ -458,7 +458,7 @@ static void ccu_pll_debug_init(struct clk_hw *hw, struct dentry *dentry) · 6 unmodified lines | |||
| 458 | &ccu_pll_dbgfs_bit_fops); | 458 | &ccu_pll_dbgfs_bit_fops); |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | flds = kzalloc_objs(*flds, CCU_PLL_DBGFS_FLD_NUM, GFP_KERNEL); | 461 | flds = kzalloc_objs(*flds, CCU_PLL_DBGFS_FLD_NUM); |
| 462 | if (!flds) | 462 | if (!flds) |
| 463 | return; | 463 | return; |
| 464 | 464 | ||
| @@ -508,7 +508,7 @@ struct ccu_pll *ccu_pll_hw_register(const struct ccu_pll_init_data *pll_init) · 43 unmodified lines | |||
| 508 | if (!pll_init) | 508 | if (!pll_init) |
| 509 | return ERR_PTR(-EINVAL); | 509 | return ERR_PTR(-EINVAL); |
| 510 | 510 | ||
| 511 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 511 | pll = kzalloc_obj(*pll); |
| 512 | if (!pll) | 512 | if (!pll) |
| 513 | return ERR_PTR(-ENOMEM); | 513 | return ERR_PTR(-ENOMEM); |
| 514 | 514 | ||
| @@ -172,7 +172,7 @@ struct ccu_rst *ccu_rst_hw_register(const struct ccu_rst_init_data *rst_init) · 171 unmodified lines | |||
| 172 | if (!rst_init) | 172 | if (!rst_init) |
| 173 | return ERR_PTR(-EINVAL); | 173 | return ERR_PTR(-EINVAL); |
| 174 | 174 | ||
| 175 | rst = kzalloc_obj(*rst, GFP_KERNEL); | 175 | rst = kzalloc_obj(*rst); |
| 176 | if (!rst) | 176 | if (!rst) |
| 177 | return ERR_PTR(-ENOMEM); | 177 | return ERR_PTR(-ENOMEM); |
| 178 | 178 | ||
| @@ -271,7 +271,7 @@ static struct ccu_div_data *ccu_div_create_data(struct device_node *np) · 270 unmodified lines | |||
| 271 | struct ccu_div_data *data; | 271 | struct ccu_div_data *data; |
| 272 | int ret; | 272 | int ret; |
| 273 | 273 | ||
| 274 | data = kzalloc_obj(*data, GFP_KERNEL); | 274 | data = kzalloc_obj(*data); |
| 275 | if (!data) | 275 | if (!data) |
| 276 | return ERR_PTR(-ENOMEM); | 276 | return ERR_PTR(-ENOMEM); |
| 277 | 277 | ||
| @@ -289,7 +289,7 @@ static struct ccu_div_data *ccu_div_create_data(struct device_node *np) · 11 unmodified lines | |||
| 289 | goto err_kfree_data; | 289 | goto err_kfree_data; |
| 290 | } | 290 | } |
| 291 | 291 | ||
| 292 | data->divs = kzalloc_objs(*data->divs, data->divs_num, GFP_KERNEL); | 292 | data->divs = kzalloc_objs(*data->divs, data->divs_num); |
| 293 | if (!data->divs) { | 293 | if (!data->divs) { |
| 294 | ret = -ENOMEM; | 294 | ret = -ENOMEM; |
| 295 | goto err_kfree_data; | 295 | goto err_kfree_data; |
| @@ -100,7 +100,7 @@ static struct ccu_pll_data *ccu_pll_create_data(struct device_node *np) · 99 unmodified lines | |||
| 100 | { | 100 | { |
| 101 | struct ccu_pll_data *data; | 101 | struct ccu_pll_data *data; |
| 102 | 102 | ||
| 103 | data = kzalloc_obj(*data, GFP_KERNEL); | 103 | data = kzalloc_obj(*data); |
| 104 | if (!data) | 104 | if (!data) |
| 105 | return ERR_PTR(-ENOMEM); | 105 | return ERR_PTR(-ENOMEM); |
| 106 | 106 | ||
| @@ -1357,7 +1357,7 @@ static struct clk_hw *bcm2835_register_pll(struct bcm2835_cprman *cprman, · 1356 unmodified lines | |||
| 1357 | init.ops = &bcm2835_pll_clk_ops; | 1357 | init.ops = &bcm2835_pll_clk_ops; |
| 1358 | init.flags = pll_data->flags | CLK_IGNORE_UNUSED; | 1358 | init.flags = pll_data->flags | CLK_IGNORE_UNUSED; |
| 1359 | 1359 | ||
| 1360 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 1360 | pll = kzalloc_obj(*pll); |
| 1361 | if (!pll) | 1361 | if (!pll) |
| 1362 | return NULL; | 1362 | return NULL; |
| 1363 | 1363 | ||
| @@ -102,7 +102,7 @@ static void bcm53573_ilp_init(struct device_node *np) · 101 unmodified lines | |||
| 102 | const char *parent_name; | 102 | const char *parent_name; |
| 103 | int err; | 103 | int err; |
| 104 | 104 | ||
| 105 | ilp = kzalloc_obj(*ilp, GFP_KERNEL); | 105 | ilp = kzalloc_obj(*ilp); |
| 106 | if (!ilp) | 106 | if (!ilp) |
| 107 | return; | 107 | return; |
| 108 | 108 | ||
| @@ -238,7 +238,7 @@ void __init iproc_armpll_setup(struct device_node *node) · 237 unmodified lines | |||
| 238 | struct clk_init_data init; | 238 | struct clk_init_data init; |
| 239 | const char *parent_name; | 239 | const char *parent_name; |
| 240 | 240 | ||
| 241 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 241 | pll = kzalloc_obj(*pll); |
| 242 | if (WARN_ON(!pll)) | 242 | if (WARN_ON(!pll)) |
| 243 | return; | 243 | return; |
| 244 | 244 | ||
| @@ -188,7 +188,7 @@ void __init iproc_asiu_setup(struct device_node *node, · 187 unmodified lines | |||
| 188 | if (WARN_ON(!gate || !div)) | 188 | if (WARN_ON(!gate || !div)) |
| 189 | return; | 189 | return; |
| 190 | 190 | ||
| 191 | asiu = kzalloc_obj(*asiu, GFP_KERNEL); | 191 | asiu = kzalloc_obj(*asiu); |
| 192 | if (WARN_ON(!asiu)) | 192 | if (WARN_ON(!asiu)) |
| 193 | return; | 193 | return; |
| 194 | 194 | ||
| @@ -198,7 +198,7 @@ void __init iproc_asiu_setup(struct device_node *node, · 3 unmodified lines | |||
| 198 | goto err_clks; | 198 | goto err_clks; |
| 199 | asiu->clk_data->num = num_clks; | 199 | asiu->clk_data->num = num_clks; |
| 200 | 200 | ||
| 201 | asiu->clks = kzalloc_objs(*asiu->clks, num_clks, GFP_KERNEL); | 201 | asiu->clks = kzalloc_objs(*asiu->clks, num_clks); |
| 202 | if (WARN_ON(!asiu->clks)) | 202 | if (WARN_ON(!asiu->clks)) |
| 203 | goto err_asiu_clks; | 203 | goto err_asiu_clks; |
| 204 | 204 | ||
| @@ -731,7 +731,7 @@ void iproc_pll_clk_setup(struct device_node *node, · 730 unmodified lines | |||
| 731 | if (WARN_ON(!pll_ctrl) || WARN_ON(!clk_ctrl)) | 731 | if (WARN_ON(!pll_ctrl) || WARN_ON(!clk_ctrl)) |
| 732 | return; | 732 | return; |
| 733 | 733 | ||
| 734 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 734 | pll = kzalloc_obj(*pll); |
| 735 | if (WARN_ON(!pll)) | 735 | if (WARN_ON(!pll)) |
| 736 | return; | 736 | return; |
| 737 | 737 | ||
| @@ -740,7 +740,7 @@ void iproc_pll_clk_setup(struct device_node *node, · 2 unmodified lines | |||
| 740 | goto err_clk_data; | 740 | goto err_clk_data; |
| 741 | clk_data->num = num_clks; | 741 | clk_data->num = num_clks; |
| 742 | 742 | ||
| 743 | iclk_array = kzalloc_objs(struct iproc_clk, num_clks, GFP_KERNEL); | 743 | iclk_array = kzalloc_objs(struct iproc_clk, num_clks); |
| 744 | if (WARN_ON(!iclk_array)) | 744 | if (WARN_ON(!iclk_array)) |
| 745 | goto err_clks; | 745 | goto err_clks; |
| 746 | 746 | ||
| @@ -184,7 +184,7 @@ int __init berlin2_avpll_vco_register(void __iomem *base, · 183 unmodified lines | |||
| 184 | struct berlin2_avpll_vco *vco; | 184 | struct berlin2_avpll_vco *vco; |
| 185 | struct clk_init_data init; | 185 | struct clk_init_data init; |
| 186 | 186 | ||
| 187 | vco = kzalloc_obj(*vco, GFP_KERNEL); | 187 | vco = kzalloc_obj(*vco); |
| 188 | if (!vco) | 188 | if (!vco) |
| 189 | return -ENOMEM; | 189 | return -ENOMEM; |
| 190 | 190 | ||
| @@ -360,7 +360,7 @@ int __init berlin2_avpll_channel_register(void __iomem *base, · 169 unmodified lines | |||
| 360 | struct berlin2_avpll_channel *ch; | 360 | struct berlin2_avpll_channel *ch; |
| 361 | struct clk_init_data init; | 361 | struct clk_init_data init; |
| 362 | 362 | ||
| 363 | ch = kzalloc_obj(*ch, GFP_KERNEL); | 363 | ch = kzalloc_obj(*ch); |
| 364 | if (!ch) | 364 | if (!ch) |
| 365 | return -ENOMEM; | 365 | return -ENOMEM; |
| 366 | 366 | ||
| @@ -236,7 +236,7 @@ berlin2_div_register(const struct berlin2_div_map *map, · 235 unmodified lines | |||
| 236 | const struct clk_ops *gate_ops = &berlin2_div_gate_ops; | 236 | const struct clk_ops *gate_ops = &berlin2_div_gate_ops; |
| 237 | struct berlin2_div *div; | 237 | struct berlin2_div *div; |
| 238 | 238 | ||
| 239 | div = kzalloc_obj(*div, GFP_KERNEL); | 239 | div = kzalloc_obj(*div); |
| 240 | if (!div) | 240 | if (!div) |
| 241 | return ERR_PTR(-ENOMEM); | 241 | return ERR_PTR(-ENOMEM); |
| 242 | 242 | ||
| @@ -81,7 +81,7 @@ berlin2_pll_register(const struct berlin2_pll_map *map, · 80 unmodified lines | |||
| 81 | struct clk_init_data init; | 81 | struct clk_init_data init; |
| 82 | struct berlin2_pll *pll; | 82 | struct berlin2_pll *pll; |
| 83 | 83 | ||
| 84 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 84 | pll = kzalloc_obj(*pll); |
| 85 | if (!pll) | 85 | if (!pll) |
| 86 | return -ENOMEM; | 86 | return -ENOMEM; |
| 87 | 87 | ||
| @@ -764,7 +764,7 @@ static struct clk_hw *bm1880_clk_register_composite(struct bm1880_composite_cloc · 763 unmodified lines | |||
| 764 | int ret; | 764 | int ret; |
| 765 | 765 | ||
| 766 | if (clks->mux_shift >= 0) { | 766 | if (clks->mux_shift >= 0) { |
| 767 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 767 | mux = kzalloc_obj(*mux); |
| 768 | if (!mux) | 768 | if (!mux) |
| 769 | return ERR_PTR(-ENOMEM); | 769 | return ERR_PTR(-ENOMEM); |
| 770 | 770 | ||
| @@ -784,7 +784,7 @@ static struct clk_hw *bm1880_clk_register_composite(struct bm1880_composite_cloc · 13 unmodified lines | |||
| 784 | } | 784 | } |
| 785 | 785 | ||
| 786 | if (clks->gate_shift >= 0) { | 786 | if (clks->gate_shift >= 0) { |
| 787 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 787 | gate = kzalloc_obj(*gate); |
| 788 | if (!gate) { | 788 | if (!gate) { |
| 789 | ret = -ENOMEM; | 789 | ret = -ENOMEM; |
| 790 | goto err_out; | 790 | goto err_out; |
| @@ -799,7 +799,7 @@ static struct clk_hw *bm1880_clk_register_composite(struct bm1880_composite_cloc · 8 unmodified lines | |||
| 799 | } | 799 | } |
| 800 | 800 | ||
| 801 | if (clks->div_shift >= 0) { | 801 | if (clks->div_shift >= 0) { |
| 802 | div_hws = kzalloc_obj(*div_hws, GFP_KERNEL); | 802 | div_hws = kzalloc_obj(*div_hws); |
| 803 | if (!div_hws) { | 803 | if (!div_hws) { |
| 804 | ret = -ENOMEM; | 804 | ret = -ENOMEM; |
| 805 | goto err_out; | 805 | goto err_out; |
| @@ -54,7 +54,7 @@ static int __must_check of_clk_bulk_get_all(struct device_node *np, · 53 unmodified lines | |||
| 54 | if (!num_clks) | 54 | if (!num_clks) |
| 55 | return 0; | 55 | return 0; |
| 56 | 56 | ||
| 57 | clk_bulk = kmalloc_objs(*clk_bulk, num_clks, GFP_KERNEL); | 57 | clk_bulk = kmalloc_objs(*clk_bulk, num_clks); |
| 58 | if (!clk_bulk) | 58 | if (!clk_bulk) |
| 59 | return -ENOMEM; | 59 | return -ENOMEM; |
| 60 | 60 | ||
| @@ -248,7 +248,7 @@ static struct clk_hw *__clk_hw_register_composite(struct device *dev, · 247 unmodified lines | |||
| 248 | struct clk_ops *clk_composite_ops; | 248 | struct clk_ops *clk_composite_ops; |
| 249 | int ret; | 249 | int ret; |
| 250 | 250 | ||
| 251 | composite = kzalloc_obj(*composite, GFP_KERNEL); | 251 | composite = kzalloc_obj(*composite); |
| 252 | if (!composite) | 252 | if (!composite) |
| 253 | return ERR_PTR(-ENOMEM); | 253 | return ERR_PTR(-ENOMEM); |
| 254 | 254 | ||
| @@ -538,7 +538,7 @@ struct clk_hw *__clk_hw_register_divider(struct device *dev, · 537 unmodified lines | |||
| 538 | } | 538 | } |
| 539 | 539 | ||
| 540 | /* allocate the divider */ | 540 | /* allocate the divider */ |
| 541 | div = kzalloc_obj(*div, GFP_KERNEL); | 541 | div = kzalloc_obj(*div); |
| 542 | if (!div) | 542 | if (!div) |
| 543 | return ERR_PTR(-ENOMEM); | 543 | return ERR_PTR(-ENOMEM); |
| 544 | 544 | ||
| @@ -335,7 +335,7 @@ static int eqc_auxdev_create(struct device *dev, void __iomem *base, · 334 unmodified lines | |||
| 335 | struct auxiliary_device *adev; | 335 | struct auxiliary_device *adev; |
| 336 | int ret; | 336 | int ret; |
| 337 | 337 | ||
| 338 | adev = kzalloc_obj(*adev, GFP_KERNEL); | 338 | adev = kzalloc_obj(*adev); |
| 339 | if (!adev) | 339 | if (!adev) |
| 340 | return -ENOMEM; | 340 | return -ENOMEM; |
| 341 | 341 | ||
| @@ -110,7 +110,7 @@ __clk_hw_register_fixed_factor(struct device *dev, struct device_node *np, · 109 unmodified lines | |||
| 110 | fix = devres_alloc(devm_clk_hw_register_fixed_factor_release, | 110 | fix = devres_alloc(devm_clk_hw_register_fixed_factor_release, |
| 111 | sizeof(*fix), GFP_KERNEL); | 111 | sizeof(*fix), GFP_KERNEL); |
| 112 | else | 112 | else |
| 113 | fix = kmalloc_obj(*fix, GFP_KERNEL); | 113 | fix = kmalloc_obj(*fix); |
| 114 | if (!fix) | 114 | if (!fix) |
| 115 | return ERR_PTR(-ENOMEM); | 115 | return ERR_PTR(-ENOMEM); |
| 116 | 116 | ||
| @@ -78,7 +78,7 @@ struct clk_hw *__clk_hw_register_fixed_rate(struct device *dev, · 77 unmodified lines | |||
| 78 | fixed = devres_alloc(devm_clk_hw_register_fixed_rate_release, | 78 | fixed = devres_alloc(devm_clk_hw_register_fixed_rate_release, |
| 79 | sizeof(*fixed), GFP_KERNEL); | 79 | sizeof(*fixed), GFP_KERNEL); |
| 80 | else | 80 | else |
| 81 | fixed = kzalloc_obj(*fixed, GFP_KERNEL); | 81 | fixed = kzalloc_obj(*fixed); |
| 82 | if (!fixed) | 82 | if (!fixed) |
| 83 | return ERR_PTR(-ENOMEM); | 83 | return ERR_PTR(-ENOMEM); |
| 84 | 84 | ||
| @@ -275,7 +275,7 @@ struct clk_hw *clk_hw_register_fractional_divider(struct device *dev, · 274 unmodified lines | |||
| 275 | struct clk_hw *hw; | 275 | struct clk_hw *hw; |
| 276 | int ret; | 276 | int ret; |
| 277 | 277 | ||
| 278 | fd = kzalloc_obj(*fd, GFP_KERNEL); | 278 | fd = kzalloc_obj(*fd); |
| 279 | if (!fd) | 279 | if (!fd) |
| 280 | return ERR_PTR(-ENOMEM); | 280 | return ERR_PTR(-ENOMEM); |
| 281 | 281 | ||
| @@ -145,7 +145,7 @@ struct clk_hw *__clk_hw_register_gate(struct device *dev, · 144 unmodified lines | |||
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | /* allocate the gate */ | 147 | /* allocate the gate */ |
| 148 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 148 | gate = kzalloc_obj(*gate); |
| 149 | if (!gate) | 149 | if (!gate) |
| 150 | return ERR_PTR(-ENOMEM); | 150 | return ERR_PTR(-ENOMEM); |
| 151 | 151 | ||
| @@ -197,7 +197,7 @@ static struct clk_hw *gemini_pci_clk_setup(const char *name, · 196 unmodified lines | |||
| 197 | struct clk_init_data init; | 197 | struct clk_init_data init; |
| 198 | int ret; | 198 | int ret; |
| 199 | 199 | ||
| 200 | pciclk = kzalloc_obj(*pciclk, GFP_KERNEL); | 200 | pciclk = kzalloc_obj(*pciclk); |
| 201 | if (!pciclk) | 201 | if (!pciclk) |
| 202 | return ERR_PTR(-ENOMEM); | 202 | return ERR_PTR(-ENOMEM); |
| 203 | 203 | ||
| @@ -277,7 +277,7 @@ static void __init hb_clk_init(struct device_node *node, const struct clk_ops *o · 276 unmodified lines | |||
| 277 | if (WARN_ON(rc)) | 277 | if (WARN_ON(rc)) |
| 278 | return; | 278 | return; |
| 279 | 279 | ||
| 280 | hb_clk = kzalloc_obj(*hb_clk, GFP_KERNEL); | 280 | hb_clk = kzalloc_obj(*hb_clk); |
| 281 | if (WARN_ON(!hb_clk)) | 281 | if (WARN_ON(!hb_clk)) |
| 282 | return; | 282 | return; |
| 283 | 283 | ||
| @@ -357,7 +357,7 @@ static void __init of_hsdk_pll_clk_setup(struct device_node *node) · 356 unmodified lines | |||
| 357 | struct hsdk_pll_clk *pll_clk; | 357 | struct hsdk_pll_clk *pll_clk; |
| 358 | struct clk_init_data init = { }; | 358 | struct clk_init_data init = { }; |
| 359 | 359 | ||
| 360 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 360 | pll_clk = kzalloc_obj(*pll_clk); |
| 361 | if (!pll_clk) | 361 | if (!pll_clk) |
| 362 | return; | 362 | return; |
| 363 | 363 | ||
| @@ -893,7 +893,7 @@ static void __init k210_clk_init(struct device_node *np) · 892 unmodified lines | |||
| 893 | struct k210_sysclk *ksc; | 893 | struct k210_sysclk *ksc; |
| 894 | int i, ret; | 894 | int i, ret; |
| 895 | 895 | ||
| 896 | ksc = kzalloc_obj(*ksc, GFP_KERNEL); | 896 | ksc = kzalloc_obj(*ksc); |
| 897 | if (!ksc) | 897 | if (!ksc) |
| 898 | return; | 898 | return; |
| 899 | 899 | ||
| @@ -333,7 +333,7 @@ static struct clk_hw *m10v_clk_hw_register_mux(struct device *dev, · 332 unmodified lines | |||
| 333 | struct clk_init_data init; | 333 | struct clk_init_data init; |
| 334 | int ret; | 334 | int ret; |
| 335 | 335 | ||
| 336 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 336 | mux = kzalloc_obj(*mux); |
| 337 | if (!mux) | 337 | if (!mux) |
| 338 | return ERR_PTR(-ENOMEM); | 338 | return ERR_PTR(-ENOMEM); |
| 339 | 339 | ||
| @@ -464,7 +464,7 @@ static struct clk_hw *m10v_clk_hw_register_divider(struct device *dev, · 124 unmodified lines | |||
| 464 | struct clk_init_data init; | 464 | struct clk_init_data init; |
| 465 | int ret; | 465 | int ret; |
| 466 | 466 | ||
| 467 | div = kzalloc_obj(*div, GFP_KERNEL); | 467 | div = kzalloc_obj(*div); |
| 468 | if (!div) | 468 | if (!div) |
| 469 | return ERR_PTR(-ENOMEM); | 469 | return ERR_PTR(-ENOMEM); |
| 470 | 470 | ||
| @@ -169,7 +169,7 @@ struct clk_hw *__clk_hw_register_mux(struct device *dev, struct device_node *np, · 168 unmodified lines | |||
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | /* allocate the mux */ | 171 | /* allocate the mux */ |
| 172 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 172 | mux = kzalloc_obj(*mux); |
| 173 | if (!mux) | 173 | if (!mux) |
| 174 | return ERR_PTR(-ENOMEM); | 174 | return ERR_PTR(-ENOMEM); |
| 175 | 175 | ||
| @@ -270,7 +270,7 @@ pll_clk_register(struct device *dev, const char *name, · 269 unmodified lines | |||
| 270 | return ERR_PTR(-EINVAL); | 270 | return ERR_PTR(-EINVAL); |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 273 | pll = kzalloc_obj(*pll); |
| 274 | if (!pll) | 274 | if (!pll) |
| 275 | return ERR_PTR(-ENOMEM); | 275 | return ERR_PTR(-ENOMEM); |
| 276 | 276 | ||
| @@ -357,7 +357,7 @@ src_clk_register(struct device *dev, const char *name, · 80 unmodified lines | |||
| 357 | struct clk_src *sclk; | 357 | struct clk_src *sclk; |
| 358 | struct clk_init_data init; | 358 | struct clk_init_data init; |
| 359 | 359 | ||
| 360 | sclk = kzalloc_obj(*sclk, GFP_KERNEL); | 360 | sclk = kzalloc_obj(*sclk); |
| 361 | if (!sclk) | 361 | if (!sclk) |
| 362 | return ERR_PTR(-ENOMEM); | 362 | return ERR_PTR(-ENOMEM); |
| 363 | 363 | ||
| @@ -74,7 +74,7 @@ npcm7xx_clk_register_pll(void __iomem *pllcon, const char *name, · 73 unmodified lines | |||
| 74 | struct clk_hw *hw; | 74 | struct clk_hw *hw; |
| 75 | int ret; | 75 | int ret; |
| 76 | 76 | ||
| 77 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 77 | pll = kzalloc_obj(*pll); |
| 78 | if (!pll) | 78 | if (!pll) |
| 79 | return ERR_PTR(-ENOMEM); | 79 | return ERR_PTR(-ENOMEM); |
| 80 | 80 | ||
| @@ -976,7 +976,7 @@ static struct clk * __init create_one_cmux(struct clockgen *cg, int idx) · 975 unmodified lines | |||
| 976 | u64 max_rate, pct80_rate; | 976 | u64 max_rate, pct80_rate; |
| 977 | u32 clksel; | 977 | u32 clksel; |
| 978 | 978 | ||
| 979 | hwc = kzalloc_obj(*hwc, GFP_KERNEL); | 979 | hwc = kzalloc_obj(*hwc); |
| 980 | if (!hwc) | 980 | if (!hwc) |
| 981 | return NULL; | 981 | return NULL; |
| 982 | 982 | ||
| @@ -1020,7 +1020,7 @@ static struct clk * __init create_one_hwaccel(struct clockgen *cg, int idx) · 37 unmodified lines | |||
| 1020 | { | 1020 | { |
| 1021 | struct mux_hwclock *hwc; | 1021 | struct mux_hwclock *hwc; |
| 1022 | 1022 | ||
| 1023 | hwc = kzalloc_obj(*hwc, GFP_KERNEL); | 1023 | hwc = kzalloc_obj(*hwc); |
| 1024 | if (!hwc) | 1024 | if (!hwc) |
| 1025 | return NULL; | 1025 | return NULL; |
| 1026 | 1026 | ||
| @@ -1319,11 +1319,11 @@ static void __init legacy_pll_init(struct device_node *np, int idx) · 292 unmodified lines | |||
| 1319 | count = of_property_count_strings(np, "clock-output-names"); | 1319 | count = of_property_count_strings(np, "clock-output-names"); |
| 1320 | 1320 | ||
| 1321 | BUILD_BUG_ON(ARRAY_SIZE(pll->div) < 4); | 1321 | BUILD_BUG_ON(ARRAY_SIZE(pll->div) < 4); |
| 1322 | subclks = kzalloc_objs(struct clk *, 4, GFP_KERNEL); | 1322 | subclks = kzalloc_objs(struct clk *, 4); |
| 1323 | if (!subclks) | 1323 | if (!subclks) |
| 1324 | return; | 1324 | return; |
| 1325 | 1325 | ||
| 1326 | onecell_data = kmalloc_obj(*onecell_data, GFP_KERNEL); | 1326 | onecell_data = kmalloc_obj(*onecell_data); |
| 1327 | if (!onecell_data) | 1327 | if (!onecell_data) |
| 1328 | goto err_clks; | 1328 | goto err_clks; |
| 1329 | 1329 | ||
| @@ -489,7 +489,7 @@ static struct clk *clk_register_apb_mul(struct device *dev, const char *name, · 488 unmodified lines | |||
| 489 | struct clk_init_data init; | 489 | struct clk_init_data init; |
| 490 | struct clk *clk; | 490 | struct clk *clk; |
| 491 | 491 | ||
| 492 | am = kzalloc_obj(*am, GFP_KERNEL); | 492 | am = kzalloc_obj(*am); |
| 493 | if (!am) | 493 | if (!am) |
| 494 | return ERR_PTR(-ENOMEM); | 494 | return ERR_PTR(-ENOMEM); |
| 495 | 495 | ||
| @@ -815,7 +815,7 @@ static struct clk_hw *clk_register_pll_div(const char *name, · 319 unmodified lines | |||
| 815 | int ret; | 815 | int ret; |
| 816 | 816 | ||
| 817 | /* allocate the divider */ | 817 | /* allocate the divider */ |
| 818 | pll_div = kzalloc_obj(*pll_div, GFP_KERNEL); | 818 | pll_div = kzalloc_obj(*pll_div); |
| 819 | if (!pll_div) | 819 | if (!pll_div) |
| 820 | return ERR_PTR(-ENOMEM); | 820 | return ERR_PTR(-ENOMEM); |
| 821 | 821 | ||
| @@ -937,7 +937,7 @@ static struct clk_hw *stm32f4_rcc_register_pll(const char *pllsrc, · 115 unmodified lines | |||
| 937 | const struct stm32f4_vco_data *vco; | 937 | const struct stm32f4_vco_data *vco; |
| 938 | 938 | ||
| 939 | 939 | ||
| 940 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 940 | pll = kzalloc_obj(*pll); |
| 941 | if (!pll) | 941 | if (!pll) |
| 942 | return ERR_PTR(-ENOMEM); | 942 | return ERR_PTR(-ENOMEM); |
| 943 | 943 | ||
| @@ -1107,7 +1107,7 @@ static struct clk_hw *clk_register_rgate(struct device *dev, const char *name, · 163 unmodified lines | |||
| 1107 | struct clk_hw *hw; | 1107 | struct clk_hw *hw; |
| 1108 | int ret; | 1108 | int ret; |
| 1109 | 1109 | ||
| 1110 | rgate = kzalloc_obj(*rgate, GFP_KERNEL); | 1110 | rgate = kzalloc_obj(*rgate); |
| 1111 | if (!rgate) | 1111 | if (!rgate) |
| 1112 | return ERR_PTR(-ENOMEM); | 1112 | return ERR_PTR(-ENOMEM); |
| 1113 | 1113 | ||
| @@ -1202,13 +1202,13 @@ static struct clk_hw *stm32_register_cclk(struct device *dev, const char *name, · 88 unmodified lines | |||
| 1202 | struct clk_gate *gate; | 1202 | struct clk_gate *gate; |
| 1203 | struct clk_mux *mux; | 1203 | struct clk_mux *mux; |
| 1204 | 1204 | ||
| 1205 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 1205 | gate = kzalloc_obj(*gate); |
| 1206 | if (!gate) { | 1206 | if (!gate) { |
| 1207 | hw = ERR_PTR(-EINVAL); | 1207 | hw = ERR_PTR(-EINVAL); |
| 1208 | goto fail; | 1208 | goto fail; |
| 1209 | } | 1209 | } |
| 1210 | 1210 | ||
| 1211 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 1211 | mux = kzalloc_obj(*mux); |
| 1212 | if (!mux) { | 1212 | if (!mux) { |
| 1213 | kfree(gate); | 1213 | kfree(gate); |
| 1214 | hw = ERR_PTR(-EINVAL); | 1214 | hw = ERR_PTR(-EINVAL); |
| @@ -1776,7 +1776,7 @@ static struct clk_hw *stm32_register_aux_clk(const char *name, · 561 unmodified lines | |||
| 1776 | const struct clk_ops *mux_ops = NULL, *gate_ops = NULL; | 1776 | const struct clk_ops *mux_ops = NULL, *gate_ops = NULL; |
| 1777 | 1777 | ||
| 1778 | if (offset_gate != NO_GATE) { | 1778 | if (offset_gate != NO_GATE) { |
| 1779 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 1779 | gate = kzalloc_obj(*gate); |
| 1780 | if (!gate) { | 1780 | if (!gate) { |
| 1781 | hw = ERR_PTR(-EINVAL); | 1781 | hw = ERR_PTR(-EINVAL); |
| 1782 | goto fail; | 1782 | goto fail; |
| @@ -1791,7 +1791,7 @@ static struct clk_hw *stm32_register_aux_clk(const char *name, · 8 unmodified lines | |||
| 1791 | } | 1791 | } |
| 1792 | 1792 | ||
| 1793 | if (offset_mux != NO_MUX) { | 1793 | if (offset_mux != NO_MUX) { |
| 1794 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 1794 | mux = kzalloc_obj(*mux); |
| 1795 | if (!mux) { | 1795 | if (!mux) { |
| 1796 | hw = ERR_PTR(-EINVAL); | 1796 | hw = ERR_PTR(-EINVAL); |
| 1797 | goto fail; | 1797 | goto fail; |
| @@ -222,7 +222,7 @@ static struct clk_hw *clk_register_ready_gate(struct device *dev, · 221 unmodified lines | |||
| 222 | struct clk_hw *hw; | 222 | struct clk_hw *hw; |
| 223 | int ret; | 223 | int ret; |
| 224 | 224 | ||
| 225 | rgate = kzalloc_obj(*rgate, GFP_KERNEL); | 225 | rgate = kzalloc_obj(*rgate); |
| 226 | if (!rgate) | 226 | if (!rgate) |
| 227 | return ERR_PTR(-ENOMEM); | 227 | return ERR_PTR(-ENOMEM); |
| 228 | 228 | ||
| @@ -297,7 +297,7 @@ static struct clk_mux *_get_cmux(void __iomem *reg, u8 shift, u8 width, · 68 unmodified lines | |||
| 297 | { | 297 | { |
| 298 | struct clk_mux *mux; | 298 | struct clk_mux *mux; |
| 299 | 299 | ||
| 300 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 300 | mux = kzalloc_obj(*mux); |
| 301 | if (!mux) | 301 | if (!mux) |
| 302 | return ERR_PTR(-ENOMEM); | 302 | return ERR_PTR(-ENOMEM); |
| 303 | 303 | ||
| @@ -315,7 +315,7 @@ static struct clk_divider *_get_cdiv(void __iomem *reg, u8 shift, u8 width, · 11 unmodified lines | |||
| 315 | { | 315 | { |
| 316 | struct clk_divider *div; | 316 | struct clk_divider *div; |
| 317 | 317 | ||
| 318 | div = kzalloc_obj(*div, GFP_KERNEL); | 318 | div = kzalloc_obj(*div); |
| 319 | 319 | ||
| 320 | if (!div) | 320 | if (!div) |
| 321 | return ERR_PTR(-ENOMEM); | 321 | return ERR_PTR(-ENOMEM); |
| @@ -334,7 +334,7 @@ static struct clk_gate *_get_cgate(void __iomem *reg, u8 bit_idx, u32 flags, · 12 unmodified lines | |||
| 334 | { | 334 | { |
| 335 | struct clk_gate *gate; | 335 | struct clk_gate *gate; |
| 336 | 336 | ||
| 337 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 337 | gate = kzalloc_obj(*gate); |
| 338 | if (!gate) | 338 | if (!gate) |
| 339 | return ERR_PTR(-ENOMEM); | 339 | return ERR_PTR(-ENOMEM); |
| 340 | 340 | ||
| @@ -467,7 +467,7 @@ static struct clk_hw *clk_register_stm32_timer_ker(struct device *dev, · 126 unmodified lines | |||
| 467 | struct clk_hw *hw; | 467 | struct clk_hw *hw; |
| 468 | int err; | 468 | int err; |
| 469 | 469 | ||
| 470 | element = kzalloc_obj(*element, GFP_KERNEL); | 470 | element = kzalloc_obj(*element); |
| 471 | if (!element) | 471 | if (!element) |
| 472 | return ERR_PTR(-ENOMEM); | 472 | return ERR_PTR(-ENOMEM); |
| 473 | 473 | ||
| @@ -792,7 +792,7 @@ static struct clk_hw *clk_register_stm32_pll(struct device *dev, · 318 unmodified lines | |||
| 792 | struct stm32_fractional_divider *div = NULL; | 792 | struct stm32_fractional_divider *div = NULL; |
| 793 | struct stm32_ready_gate *rgate; | 793 | struct stm32_ready_gate *rgate; |
| 794 | 794 | ||
| 795 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 795 | pll = kzalloc_obj(*pll); |
| 796 | if (!pll) | 796 | if (!pll) |
| 797 | return ERR_PTR(-ENOMEM); | 797 | return ERR_PTR(-ENOMEM); |
| 798 | 798 | ||
| @@ -235,7 +235,7 @@ static __init void vtwm_device_clk_init(struct device_node *node) · 234 unmodified lines | |||
| 235 | if (!pmc_base) | 235 | if (!pmc_base) |
| 236 | vtwm_set_pmc_base(); | 236 | vtwm_set_pmc_base(); |
| 237 | 237 | ||
| 238 | dev_clk = kzalloc_obj(*dev_clk, GFP_KERNEL); | 238 | dev_clk = kzalloc_obj(*dev_clk); |
| 239 | if (WARN_ON(!dev_clk)) | 239 | if (WARN_ON(!dev_clk)) |
| 240 | return; | 240 | return; |
| 241 | 241 | ||
| @@ -698,7 +698,7 @@ static __init void vtwm_pll_clk_init(struct device_node *node, int pll_type) · 456 unmodified lines | |||
| 698 | if (WARN_ON(rc)) | 698 | if (WARN_ON(rc)) |
| 699 | return; | 699 | return; |
| 700 | 700 | ||
| 701 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 701 | pll_clk = kzalloc_obj(*pll_clk); |
| 702 | if (WARN_ON(!pll_clk)) | 702 | if (WARN_ON(!pll_clk)) |
| 703 | return; | 703 | return; |
| 704 | 704 | ||
| @@ -131,7 +131,7 @@ static struct clk *xgene_register_clk_pll(struct device *dev, · 130 unmodified lines | |||
| 131 | struct clk_init_data init; | 131 | struct clk_init_data init; |
| 132 | 132 | ||
| 133 | /* allocate the APM clock structure */ | 133 | /* allocate the APM clock structure */ |
| 134 | apmclk = kzalloc_obj(*apmclk, GFP_KERNEL); | 134 | apmclk = kzalloc_obj(*apmclk); |
| 135 | if (!apmclk) | 135 | if (!apmclk) |
| 136 | return ERR_PTR(-ENOMEM); | 136 | return ERR_PTR(-ENOMEM); |
| 137 | 137 | ||
| @@ -352,7 +352,7 @@ xgene_register_clk_pmd(struct device *dev, · 214 unmodified lines | |||
| 352 | struct clk_init_data init; | 352 | struct clk_init_data init; |
| 353 | struct clk *clk; | 353 | struct clk *clk; |
| 354 | 354 | ||
| 355 | fd = kzalloc_obj(*fd, GFP_KERNEL); | 355 | fd = kzalloc_obj(*fd); |
| 356 | if (!fd) | 356 | if (!fd) |
| 357 | return ERR_PTR(-ENOMEM); | 357 | return ERR_PTR(-ENOMEM); |
| 358 | 358 | ||
| @@ -638,7 +638,7 @@ static struct clk *xgene_register_clk(struct device *dev, · 279 unmodified lines | |||
| 638 | int rc; | 638 | int rc; |
| 639 | 639 | ||
| 640 | /* allocate the APM clock structure */ | 640 | /* allocate the APM clock structure */ |
| 641 | apmclk = kzalloc_obj(*apmclk, GFP_KERNEL); | 641 | apmclk = kzalloc_obj(*apmclk); |
| 642 | if (!apmclk) | 642 | if (!apmclk) |
| 643 | return ERR_PTR(-ENOMEM); | 643 | return ERR_PTR(-ENOMEM); |
| 644 | 644 | ||
| @@ -4121,7 +4121,7 @@ static struct clk *alloc_clk(struct clk_core *core, const char *dev_id, · 4120 unmodified lines | |||
| 4121 | { | 4121 | { |
| 4122 | struct clk *clk; | 4122 | struct clk *clk; |
| 4123 | 4123 | ||
| 4124 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 4124 | clk = kzalloc_obj(*clk); |
| 4125 | if (!clk) | 4125 | if (!clk) |
| 4126 | return ERR_PTR(-ENOMEM); | 4126 | return ERR_PTR(-ENOMEM); |
| 4127 | 4127 | ||
| @@ -4238,7 +4238,7 @@ static int clk_core_populate_parent_map(struct clk_core *core, · 110 unmodified lines | |||
| 4238 | * Avoid unnecessary string look-ups of clk_core's possible parents by | 4238 | * Avoid unnecessary string look-ups of clk_core's possible parents by |
| 4239 | * having a cache of names/clk_hw pointers to clk_core pointers. | 4239 | * having a cache of names/clk_hw pointers to clk_core pointers. |
| 4240 | */ | 4240 | */ |
| 4241 | parents = kzalloc_objs(*parents, num_parents, GFP_KERNEL); | 4241 | parents = kzalloc_objs(*parents, num_parents); |
| 4242 | core->parents = parents; | 4242 | core->parents = parents; |
| 4243 | if (!parents) | 4243 | if (!parents) |
| 4244 | return -ENOMEM; | 4244 | return -ENOMEM; |
| @@ -4328,7 +4328,7 @@ __clk_register(struct device *dev, struct device_node *np, struct clk_hw *hw) · 83 unmodified lines | |||
| 4328 | */ | 4328 | */ |
| 4329 | hw->init = NULL; | 4329 | hw->init = NULL; |
| 4330 | 4330 | ||
| 4331 | core = kzalloc_obj(*core, GFP_KERNEL); | 4331 | core = kzalloc_obj(*core); |
| 4332 | if (!core) { | 4332 | if (!core) { |
| 4333 | ret = -ENOMEM; | 4333 | ret = -ENOMEM; |
| 4334 | goto fail_out; | 4334 | goto fail_out; |
| @@ -4813,7 +4813,7 @@ int clk_notifier_register(struct clk *clk, struct notifier_block *nb) · 478 unmodified lines | |||
| 4813 | goto found; | 4813 | goto found; |
| 4814 | 4814 | ||
| 4815 | /* if clk wasn't in the notifier list, allocate new clk_notifier */ | 4815 | /* if clk wasn't in the notifier list, allocate new clk_notifier */ |
| 4816 | cn = kzalloc_obj(*cn, GFP_KERNEL); | 4816 | cn = kzalloc_obj(*cn); |
| 4817 | if (!cn) | 4817 | if (!cn) |
| 4818 | goto out; | 4818 | goto out; |
| 4819 | 4819 | ||
| @@ -5009,7 +5009,7 @@ int of_clk_add_provider(struct device_node *np, · 189 unmodified lines | |||
| 5009 | if (!np) | 5009 | if (!np) |
| 5010 | return 0; | 5010 | return 0; |
| 5011 | 5011 | ||
| 5012 | cp = kzalloc_obj(*cp, GFP_KERNEL); | 5012 | cp = kzalloc_obj(*cp); |
| 5013 | if (!cp) | 5013 | if (!cp) |
| 5014 | return -ENOMEM; | 5014 | return -ENOMEM; |
| 5015 | 5015 | ||
| @@ -5051,7 +5051,7 @@ int of_clk_add_hw_provider(struct device_node *np, · 35 unmodified lines | |||
| 5051 | if (!np) | 5051 | if (!np) |
| 5052 | return 0; | 5052 | return 0; |
| 5053 | 5053 | ||
| 5054 | cp = kzalloc_obj(*cp, GFP_KERNEL); | 5054 | cp = kzalloc_obj(*cp); |
| 5055 | if (!cp) | 5055 | if (!cp) |
| 5056 | return -ENOMEM; | 5056 | return -ENOMEM; |
| 5057 | 5057 | ||
| @@ -5548,7 +5548,7 @@ void __init of_clk_init(const struct of_device_id *matches) · 490 unmodified lines | |||
| 5548 | if (!of_device_is_available(np)) | 5548 | if (!of_device_is_available(np)) |
| 5549 | continue; | 5549 | continue; |
| 5550 | 5550 | ||
| 5551 | parent = kzalloc_obj(*parent, GFP_KERNEL); | 5551 | parent = kzalloc_obj(*parent); |
| 5552 | if (!parent) { | 5552 | if (!parent) { |
| 5553 | list_for_each_entry_safe(clk_provider, next, | 5553 | list_for_each_entry_safe(clk_provider, next, |
| 5554 | &clk_provider_list, node) { | 5554 | &clk_provider_list, node) { |
| @@ -164,7 +164,7 @@ vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, · 163 unmodified lines | |||
| 164 | size_t max_size; | 164 | size_t max_size; |
| 165 | ssize_t res; | 165 | ssize_t res; |
| 166 | 166 | ||
| 167 | cla = kzalloc_obj(*cla, GFP_KERNEL); | 167 | cla = kzalloc_obj(*cla); |
| 168 | if (!cla) | 168 | if (!cla) |
| 169 | return NULL; | 169 | return NULL; |
| 170 | 170 | ||
| @@ -243,14 +243,14 @@ static struct clk *davinci_pll_div_register(struct device *dev, · 242 unmodified lines | |||
| 243 | struct clk *clk; | 243 | struct clk *clk; |
| 244 | int ret; | 244 | int ret; |
| 245 | 245 | ||
| 246 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 246 | gate = kzalloc_obj(*gate); |
| 247 | if (!gate) | 247 | if (!gate) |
| 248 | return ERR_PTR(-ENOMEM); | 248 | return ERR_PTR(-ENOMEM); |
| 249 | 249 | ||
| 250 | gate->reg = reg; | 250 | gate->reg = reg; |
| 251 | gate->bit_idx = DIV_ENABLE_SHIFT; | 251 | gate->bit_idx = DIV_ENABLE_SHIFT; |
| 252 | 252 | ||
| 253 | divider = kzalloc_obj(*divider, GFP_KERNEL); | 253 | divider = kzalloc_obj(*divider); |
| 254 | if (!divider) { | 254 | if (!divider) { |
| 255 | ret = -ENOMEM; | 255 | ret = -ENOMEM; |
| 256 | goto err_free_gate; | 256 | goto err_free_gate; |
| @@ -433,7 +433,7 @@ struct clk *davinci_pll_clk_register(struct device *dev, · 176 unmodified lines | |||
| 433 | info->unlock_mask, 0); | 433 | info->unlock_mask, 0); |
| 434 | } | 434 | } |
| 435 | 435 | ||
| 436 | pllout = kzalloc_obj(*pllout, GFP_KERNEL); | 436 | pllout = kzalloc_obj(*pllout); |
| 437 | if (!pllout) { | 437 | if (!pllout) { |
| 438 | ret = -ENOMEM; | 438 | ret = -ENOMEM; |
| 439 | goto err_unregister_prediv; | 439 | goto err_unregister_prediv; |
| @@ -489,7 +489,7 @@ struct clk *davinci_pll_clk_register(struct device *dev, · 49 unmodified lines | |||
| 489 | parent_name = postdiv_name; | 489 | parent_name = postdiv_name; |
| 490 | } | 490 | } |
| 491 | 491 | ||
| 492 | pllen = kzalloc_obj(*pllen, GFP_KERNEL); | 492 | pllen = kzalloc_obj(*pllen); |
| 493 | if (!pllen) { | 493 | if (!pllen) { |
| 494 | ret = -ENOMEM; | 494 | ret = -ENOMEM; |
| 495 | goto err_unregister_postdiv; | 495 | goto err_unregister_postdiv; |
| @@ -579,7 +579,7 @@ davinci_pll_obsclk_register(struct device *dev, · 83 unmodified lines | |||
| 579 | u32 oscdiv; | 579 | u32 oscdiv; |
| 580 | int ret; | 580 | int ret; |
| 581 | 581 | ||
| 582 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 582 | mux = kzalloc_obj(*mux); |
| 583 | if (!mux) | 583 | if (!mux) |
| 584 | return ERR_PTR(-ENOMEM); | 584 | return ERR_PTR(-ENOMEM); |
| 585 | 585 | ||
| @@ -587,7 +587,7 @@ davinci_pll_obsclk_register(struct device *dev, · 1 unmodified line | |||
| 587 | mux->table = info->table; | 587 | mux->table = info->table; |
| 588 | mux->mask = info->ocsrc_mask; | 588 | mux->mask = info->ocsrc_mask; |
| 589 | 589 | ||
| 590 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 590 | gate = kzalloc_obj(*gate); |
| 591 | if (!gate) { | 591 | if (!gate) { |
| 592 | ret = -ENOMEM; | 592 | ret = -ENOMEM; |
| 593 | goto err_free_mux; | 593 | goto err_free_mux; |
| @@ -596,7 +596,7 @@ davinci_pll_obsclk_register(struct device *dev, · 2 unmodified lines | |||
| 596 | gate->reg = base + CKEN; | 596 | gate->reg = base + CKEN; |
| 597 | gate->bit_idx = CKEN_OBSCLK_SHIFT; | 597 | gate->bit_idx = CKEN_OBSCLK_SHIFT; |
| 598 | 598 | ||
| 599 | divider = kzalloc_obj(*divider, GFP_KERNEL); | 599 | divider = kzalloc_obj(*divider); |
| 600 | if (!divider) { | 600 | if (!divider) { |
| 601 | ret = -ENOMEM; | 601 | ret = -ENOMEM; |
| 602 | goto err_free_gate; | 602 | goto err_free_gate; |
| @@ -690,14 +690,14 @@ davinci_pll_sysclk_register(struct device *dev, · 87 unmodified lines | |||
| 690 | else | 690 | else |
| 691 | reg = PLLDIV4 + 4 * (info->id - 4); | 691 | reg = PLLDIV4 + 4 * (info->id - 4); |
| 692 | 692 | ||
| 693 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 693 | gate = kzalloc_obj(*gate); |
| 694 | if (!gate) | 694 | if (!gate) |
| 695 | return ERR_PTR(-ENOMEM); | 695 | return ERR_PTR(-ENOMEM); |
| 696 | 696 | ||
| 697 | gate->reg = base + reg; | 697 | gate->reg = base + reg; |
| 698 | gate->bit_idx = DIV_ENABLE_SHIFT; | 698 | gate->bit_idx = DIV_ENABLE_SHIFT; |
| 699 | 699 | ||
| 700 | divider = kzalloc_obj(*divider, GFP_KERNEL); | 700 | divider = kzalloc_obj(*divider); |
| 701 | if (!divider) { | 701 | if (!divider) { |
| 702 | ret = -ENOMEM; | 702 | ret = -ENOMEM; |
| 703 | goto err_free_gate; | 703 | goto err_free_gate; |
| @@ -776,13 +776,13 @@ int of_davinci_pll_init(struct device *dev, struct device_node *node, · 72 unmodified lines | |||
| 776 | int n_clks = max_sysclk_id + 1; | 776 | int n_clks = max_sysclk_id + 1; |
| 777 | int i; | 777 | int i; |
| 778 | 778 | ||
| 779 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 779 | clk_data = kzalloc_obj(*clk_data); |
| 780 | if (!clk_data) { | 780 | if (!clk_data) { |
| 781 | of_node_put(child); | 781 | of_node_put(child); |
| 782 | return -ENOMEM; | 782 | return -ENOMEM; |
| 783 | } | 783 | } |
| 784 | 784 | ||
| 785 | clks = kmalloc_objs(*clks, n_clks, GFP_KERNEL); | 785 | clks = kmalloc_objs(*clks, n_clks); |
| 786 | if (!clks) { | 786 | if (!clks) { |
| 787 | kfree(clk_data); | 787 | kfree(clk_data); |
| 788 | of_node_put(child); | 788 | of_node_put(child); |
| @@ -942,7 +942,7 @@ static void davinci_pll_debug_init(struct clk_hw *hw, struct dentry *dentry) · 153 unmodified lines | |||
| 942 | struct davinci_pll_clk *pll = to_davinci_pll_clk(hw); | 942 | struct davinci_pll_clk *pll = to_davinci_pll_clk(hw); |
| 943 | struct debugfs_regset32 *regset; | 943 | struct debugfs_regset32 *regset; |
| 944 | 944 | ||
| 945 | regset = kzalloc_obj(*regset, GFP_KERNEL); | 945 | regset = kzalloc_obj(*regset); |
| 946 | if (!regset) | 946 | if (!regset) |
| 947 | return; | 947 | return; |
| 948 | 948 | ||
| @@ -239,7 +239,7 @@ davinci_lpsc_clk_register(struct device *dev, const char *name, · 238 unmodified lines | |||
| 239 | int ret; | 239 | int ret; |
| 240 | bool is_on; | 240 | bool is_on; |
| 241 | 241 | ||
| 242 | lpsc = kzalloc_obj(*lpsc, GFP_KERNEL); | 242 | lpsc = kzalloc_obj(*lpsc); |
| 243 | if (!lpsc) | 243 | if (!lpsc) |
| 244 | return ERR_PTR(-ENOMEM); | 244 | return ERR_PTR(-ENOMEM); |
| 245 | 245 | ||
| @@ -372,11 +372,11 @@ __davinci_psc_register_clocks(struct device *dev, · 126 unmodified lines | |||
| 372 | struct regmap *regmap; | 372 | struct regmap *regmap; |
| 373 | int i, ret; | 373 | int i, ret; |
| 374 | 374 | ||
| 375 | psc = kzalloc_obj(*psc, GFP_KERNEL); | 375 | psc = kzalloc_obj(*psc); |
| 376 | if (!psc) | 376 | if (!psc) |
| 377 | return ERR_PTR(-ENOMEM); | 377 | return ERR_PTR(-ENOMEM); |
| 378 | 378 | ||
| 379 | clks = kmalloc_objs(*clks, num_clks, GFP_KERNEL); | 379 | clks = kmalloc_objs(*clks, num_clks); |
| 380 | if (!clks) { | 380 | if (!clks) { |
| 381 | ret = -ENOMEM; | 381 | ret = -ENOMEM; |
| 382 | goto err_free_psc; | 382 | goto err_free_psc; |
| @@ -392,7 +392,7 @@ __davinci_psc_register_clocks(struct device *dev, · 9 unmodified lines | |||
| 392 | for (i = 0; i < num_clks; i++) | 392 | for (i = 0; i < num_clks; i++) |
| 393 | clks[i] = ERR_PTR(-ENOENT); | 393 | clks[i] = ERR_PTR(-ENOENT); |
| 394 | 394 | ||
| 395 | pm_domains = kzalloc_objs(*pm_domains, num_clks, GFP_KERNEL); | 395 | pm_domains = kzalloc_objs(*pm_domains, num_clks); |
| 396 | if (!pm_domains) { | 396 | if (!pm_domains) { |
| 397 | ret = -ENOMEM; | 397 | ret = -ENOMEM; |
| 398 | goto err_free_clks; | 398 | goto err_free_clks; |
| @@ -414,7 +414,7 @@ static struct clk *hisi_register_clk_mmc(struct hisi_mmc_clock *mmc_clk, · 413 unmodified lines | |||
| 414 | struct clk *clk; | 414 | struct clk *clk; |
| 415 | struct clk_init_data init; | 415 | struct clk_init_data init; |
| 416 | 416 | ||
| 417 | mclk = kzalloc_obj(*mclk, GFP_KERNEL); | 417 | mclk = kzalloc_obj(*mclk); |
| 418 | if (!mclk) | 418 | if (!mclk) |
| 419 | return ERR_PTR(-ENOMEM); | 419 | return ERR_PTR(-ENOMEM); |
| 420 | 420 | ||
| @@ -461,11 +461,11 @@ static void __init hi3620_mmc_clk_init(struct device_node *node) · 40 unmodified lines | |||
| 461 | return; | 461 | return; |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 464 | clk_data = kzalloc_obj(*clk_data); |
| 465 | if (WARN_ON(!clk_data)) | 465 | if (WARN_ON(!clk_data)) |
| 466 | return; | 466 | return; |
| 467 | 467 | ||
| 468 | clk_data->clks = kzalloc_objs(*clk_data->clks, num, GFP_KERNEL); | 468 | clk_data->clks = kzalloc_objs(*clk_data->clks, num); |
| 469 | if (!clk_data->clks) { | 469 | if (!clk_data->clks) { |
| 470 | kfree(clk_data); | 470 | kfree(clk_data); |
| 471 | return; | 471 | return; |
| @@ -261,7 +261,7 @@ hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums, · 260 unmodified lines | |||
| 261 | struct clk *clk; | 261 | struct clk *clk; |
| 262 | struct clk_init_data init; | 262 | struct clk_init_data init; |
| 263 | 263 | ||
| 264 | p_clk = kzalloc_obj(*p_clk, GFP_KERNEL); | 264 | p_clk = kzalloc_obj(*p_clk); |
| 265 | if (!p_clk) | 265 | if (!p_clk) |
| 266 | return; | 266 | return; |
| 267 | 267 | ||
| @@ -68,12 +68,12 @@ struct hisi_clock_data *hisi_clk_init(struct device_node *np, · 67 unmodified lines | |||
| 68 | goto err; | 68 | goto err; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 71 | clk_data = kzalloc_obj(*clk_data); |
| 72 | if (!clk_data) | 72 | if (!clk_data) |
| 73 | goto err; | 73 | goto err; |
| 74 | 74 | ||
| 75 | clk_data->base = base; | 75 | clk_data->base = base; |
| 76 | clk_table = kzalloc_objs(*clk_table, nr_clks, GFP_KERNEL); | 76 | clk_table = kzalloc_objs(*clk_table, nr_clks); |
| 77 | if (!clk_table) | 77 | if (!clk_table) |
| 78 | goto err_data; | 78 | goto err_data; |
| 79 | 79 | ||
| @@ -109,7 +109,7 @@ struct clk *hi6220_register_clkdiv(struct device *dev, const char *name, · 108 unmodified lines | |||
| 109 | int i; | 109 | int i; |
| 110 | 110 | ||
| 111 | /* allocate the divider */ | 111 | /* allocate the divider */ |
| 112 | div = kzalloc_obj(*div, GFP_KERNEL); | 112 | div = kzalloc_obj(*div); |
| 113 | if (!div) | 113 | if (!div) |
| 114 | return ERR_PTR(-ENOMEM); | 114 | return ERR_PTR(-ENOMEM); |
| 115 | 115 | ||
| @@ -117,7 +117,7 @@ struct clk *hi6220_register_clkdiv(struct device *dev, const char *name, · 1 unmodified line | |||
| 117 | max_div = div_mask(width) + 1; | 117 | max_div = div_mask(width) + 1; |
| 118 | min_div = 1; | 118 | min_div = 1; |
| 119 | 119 | ||
| 120 | table = kzalloc_objs(*table, max_div + 1, GFP_KERNEL); | 120 | table = kzalloc_objs(*table, max_div + 1); |
| 121 | if (!table) { | 121 | if (!table) { |
| 122 | kfree(div); | 122 | kfree(div); |
| 123 | return ERR_PTR(-ENOMEM); | 123 | return ERR_PTR(-ENOMEM); |
| @@ -90,7 +90,7 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name, · 89 unmodified lines | |||
| 90 | struct clk *clk; | 90 | struct clk *clk; |
| 91 | struct clk_init_data init; | 91 | struct clk_init_data init; |
| 92 | 92 | ||
| 93 | sclk = kzalloc_obj(*sclk, GFP_KERNEL); | 93 | sclk = kzalloc_obj(*sclk); |
| 94 | if (!sclk) | 94 | if (!sclk) |
| 95 | return ERR_PTR(-ENOMEM); | 95 | return ERR_PTR(-ENOMEM); |
| 96 | 96 | ||
| @@ -82,7 +82,7 @@ struct clk_hw *imx_clk_hw_busy_divider(const char *name, const char *parent_name · 81 unmodified lines | |||
| 82 | struct clk_init_data init; | 82 | struct clk_init_data init; |
| 83 | int ret; | 83 | int ret; |
| 84 | 84 | ||
| 85 | busy = kzalloc_obj(*busy, GFP_KERNEL); | 85 | busy = kzalloc_obj(*busy); |
| 86 | if (!busy) | 86 | if (!busy) |
| 87 | return ERR_PTR(-ENOMEM); | 87 | return ERR_PTR(-ENOMEM); |
| 88 | 88 | ||
| @@ -162,7 +162,7 @@ struct clk_hw *imx_clk_hw_busy_mux(const char *name, void __iomem *reg, u8 shift · 73 unmodified lines | |||
| 162 | struct clk_init_data init; | 162 | struct clk_init_data init; |
| 163 | int ret; | 163 | int ret; |
| 164 | 164 | ||
| 165 | busy = kzalloc_obj(*busy, GFP_KERNEL); | 165 | busy = kzalloc_obj(*busy); |
| 166 | if (!busy) | 166 | if (!busy) |
| 167 | return ERR_PTR(-ENOMEM); | 167 | return ERR_PTR(-ENOMEM); |
| 168 | 168 | ||
| @@ -99,7 +99,7 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, · 98 unmodified lines | |||
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | if (mux_present) { | 101 | if (mux_present) { |
| 102 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 102 | mux = kzalloc_obj(*mux); |
| 103 | if (!mux) | 103 | if (!mux) |
| 104 | return ERR_PTR(-ENOMEM); | 104 | return ERR_PTR(-ENOMEM); |
| 105 | mux_hw = &mux->hw; | 105 | mux_hw = &mux->hw; |
| @@ -111,7 +111,7 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, · 5 unmodified lines | |||
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | if (rate_present) { | 113 | if (rate_present) { |
| 114 | fd = kzalloc_obj(*fd, GFP_KERNEL); | 114 | fd = kzalloc_obj(*fd); |
| 115 | if (!fd) { | 115 | if (!fd) { |
| 116 | kfree(mux); | 116 | kfree(mux); |
| 117 | return ERR_PTR(-ENOMEM); | 117 | return ERR_PTR(-ENOMEM); |
| @@ -128,7 +128,7 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, · 10 unmodified lines | |||
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | if (gate_present) { | 130 | if (gate_present) { |
| 131 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 131 | gate = kzalloc_obj(*gate); |
| 132 | if (!gate) { | 132 | if (!gate) { |
| 133 | kfree(mux); | 133 | kfree(mux); |
| 134 | kfree(fd); | 134 | kfree(fd); |
| @@ -231,7 +231,7 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name, · 230 unmodified lines | |||
| 231 | const struct clk_ops *mux_ops; | 231 | const struct clk_ops *mux_ops; |
| 232 | const struct clk_ops *gate_ops; | 232 | const struct clk_ops *gate_ops; |
| 233 | 233 | ||
| 234 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 234 | mux = kzalloc_obj(*mux); |
| 235 | if (!mux) | 235 | if (!mux) |
| 236 | return ERR_CAST(hw); | 236 | return ERR_CAST(hw); |
| 237 | 237 | ||
| @@ -241,7 +241,7 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name, · 3 unmodified lines | |||
| 241 | mux->mask = PCG_PCS_MASK; | 241 | mux->mask = PCG_PCS_MASK; |
| 242 | mux->lock = &imx_ccm_lock; | 242 | mux->lock = &imx_ccm_lock; |
| 243 | 243 | ||
| 244 | div = kzalloc_obj(*div, GFP_KERNEL); | 244 | div = kzalloc_obj(*div); |
| 245 | if (!div) | 245 | if (!div) |
| 246 | goto free_mux; | 246 | goto free_mux; |
| 247 | 247 | ||
| @@ -270,7 +270,7 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name, · 22 unmodified lines | |||
| 270 | div->flags = CLK_DIVIDER_ROUND_CLOSEST; | 270 | div->flags = CLK_DIVIDER_ROUND_CLOSEST; |
| 271 | 271 | ||
| 272 | /* skip registering the gate ops if M4 is enabled */ | 272 | /* skip registering the gate ops if M4 is enabled */ |
| 273 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 273 | gate = kzalloc_obj(*gate); |
| 274 | if (!gate) | 274 | if (!gate) |
| 275 | goto free_div; | 275 | goto free_div; |
| 276 | 276 | ||
| @@ -193,7 +193,7 @@ struct clk_hw *imx93_clk_composite_flags(const char *name, const char * const *p · 192 unmodified lines | |||
| 193 | bool clk_ro = false; | 193 | bool clk_ro = false; |
| 194 | u32 authen; | 194 | u32 authen; |
| 195 | 195 | ||
| 196 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 196 | mux = kzalloc_obj(*mux); |
| 197 | if (!mux) | 197 | if (!mux) |
| 198 | goto fail; | 198 | goto fail; |
| 199 | 199 | ||
| @@ -203,7 +203,7 @@ struct clk_hw *imx93_clk_composite_flags(const char *name, const char * const *p · 3 unmodified lines | |||
| 203 | mux->mask = CCM_MUX_MASK; | 203 | mux->mask = CCM_MUX_MASK; |
| 204 | mux->lock = &imx_ccm_lock; | 204 | mux->lock = &imx_ccm_lock; |
| 205 | 205 | ||
| 206 | div = kzalloc_obj(*div, GFP_KERNEL); | 206 | div = kzalloc_obj(*div); |
| 207 | if (!div) | 207 | if (!div) |
| 208 | goto fail; | 208 | goto fail; |
| 209 | 209 | ||
| @@ -223,7 +223,7 @@ struct clk_hw *imx93_clk_composite_flags(const char *name, const char * const *p · 13 unmodified lines | |||
| 223 | mux_hw, &clk_mux_ro_ops, div_hw, | 223 | mux_hw, &clk_mux_ro_ops, div_hw, |
| 224 | &clk_divider_ro_ops, NULL, NULL, flags); | 224 | &clk_divider_ro_ops, NULL, NULL, flags); |
| 225 | } else { | 225 | } else { |
| 226 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 226 | gate = kzalloc_obj(*gate); |
| 227 | if (!gate) | 227 | if (!gate) |
| 228 | goto fail; | 228 | goto fail; |
| 229 | 229 | ||
| @@ -81,7 +81,7 @@ struct clk_hw *imx_clk_hw_cpu(const char *name, const char *parent_name, · 80 unmodified lines | |||
| 81 | struct clk_init_data init; | 81 | struct clk_init_data init; |
| 82 | int ret; | 82 | int ret; |
| 83 | 83 | ||
| 84 | cpu = kzalloc_obj(*cpu, GFP_KERNEL); | 84 | cpu = kzalloc_obj(*cpu); |
| 85 | if (!cpu) | 85 | if (!cpu) |
| 86 | return ERR_PTR(-ENOMEM); | 86 | return ERR_PTR(-ENOMEM); |
| 87 | 87 | ||
| @@ -185,7 +185,7 @@ struct clk_hw *imx_clk_hw_divider_gate(const char *name, const char *parent_name · 184 unmodified lines | |||
| 185 | u32 val; | 185 | u32 val; |
| 186 | int ret; | 186 | int ret; |
| 187 | 187 | ||
| 188 | div_gate = kzalloc_obj(*div_gate, GFP_KERNEL); | 188 | div_gate = kzalloc_obj(*div_gate); |
| 189 | if (!div_gate) | 189 | if (!div_gate) |
| 190 | return ERR_PTR(-ENOMEM); | 190 | return ERR_PTR(-ENOMEM); |
| 191 | 191 | ||
| @@ -97,7 +97,7 @@ struct clk_hw *imx_clk_hw_fixup_divider(const char *name, const char *parent, · 96 unmodified lines | |||
| 97 | if (!fixup) | 97 | if (!fixup) |
| 98 | return ERR_PTR(-EINVAL); | 98 | return ERR_PTR(-EINVAL); |
| 99 | 99 | ||
| 100 | fixup_div = kzalloc_obj(*fixup_div, GFP_KERNEL); | 100 | fixup_div = kzalloc_obj(*fixup_div); |
| 101 | if (!fixup_div) | 101 | if (!fixup_div) |
| 102 | return ERR_PTR(-ENOMEM); | 102 | return ERR_PTR(-ENOMEM); |
| 103 | 103 | ||
| @@ -77,7 +77,7 @@ struct clk_hw *imx_clk_hw_fixup_mux(const char *name, void __iomem *reg, · 76 unmodified lines | |||
| 77 | if (!fixup) | 77 | if (!fixup) |
| 78 | return ERR_PTR(-EINVAL); | 78 | return ERR_PTR(-EINVAL); |
| 79 | 79 | ||
| 80 | fixup_mux = kzalloc_obj(*fixup_mux, GFP_KERNEL); | 80 | fixup_mux = kzalloc_obj(*fixup_mux); |
| 81 | if (!fixup_mux) | 81 | if (!fixup_mux) |
| 82 | return ERR_PTR(-ENOMEM); | 82 | return ERR_PTR(-ENOMEM); |
| 83 | 83 | ||
| @@ -213,7 +213,7 @@ struct clk_hw *imx_clk_hw_frac_pll(const char *name, · 212 unmodified lines | |||
| 213 | struct clk_hw *hw; | 213 | struct clk_hw *hw; |
| 214 | int ret; | 214 | int ret; |
| 215 | 215 | ||
| 216 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 216 | pll = kzalloc_obj(*pll); |
| 217 | if (!pll) | 217 | if (!pll) |
| 218 | return ERR_PTR(-ENOMEM); | 218 | return ERR_PTR(-ENOMEM); |
| 219 | 219 | ||
| @@ -366,7 +366,7 @@ static struct clk_hw *_imx_clk_fracn_gppll(const char *name, const char *parent_ · 365 unmodified lines | |||
| 366 | struct clk_init_data init; | 366 | struct clk_init_data init; |
| 367 | int ret; | 367 | int ret; |
| 368 | 368 | ||
| 369 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 369 | pll = kzalloc_obj(*pll); |
| 370 | if (!pll) | 370 | if (!pll) |
| 371 | return ERR_PTR(-ENOMEM); | 371 | return ERR_PTR(-ENOMEM); |
| 372 | 372 | ||
| @@ -164,7 +164,7 @@ struct clk_hw *imx93_clk_gate(struct device *dev, const char *name, const char * · 163 unmodified lines | |||
| 164 | int ret; | 164 | int ret; |
| 165 | u32 authen; | 165 | u32 authen; |
| 166 | 166 | ||
| 167 | gate = kzalloc_obj(struct imx93_clk_gate, GFP_KERNEL); | 167 | gate = kzalloc_obj(struct imx93_clk_gate); |
| 168 | if (!gate) | 168 | if (!gate) |
| 169 | return ERR_PTR(-ENOMEM); | 169 | return ERR_PTR(-ENOMEM); |
| 170 | 170 | ||
| @@ -67,7 +67,7 @@ struct clk_hw *imx_clk_hw_gate_exclusive(const char *name, const char *parent, · 66 unmodified lines | |||
| 67 | if (exclusive_mask == 0) | 67 | if (exclusive_mask == 0) |
| 68 | return ERR_PTR(-EINVAL); | 68 | return ERR_PTR(-EINVAL); |
| 69 | 69 | ||
| 70 | exgate = kzalloc_obj(*exgate, GFP_KERNEL); | 70 | exgate = kzalloc_obj(*exgate); |
| 71 | if (!exgate) | 71 | if (!exgate) |
| 72 | return ERR_PTR(-ENOMEM); | 72 | return ERR_PTR(-ENOMEM); |
| 73 | gate = &exgate->gate; | 73 | gate = &exgate->gate; |
| @@ -144,7 +144,7 @@ struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name, · 143 unmodified lines | |||
| 144 | struct clk_init_data init; | 144 | struct clk_init_data init; |
| 145 | int ret; | 145 | int ret; |
| 146 | 146 | ||
| 147 | gate = kzalloc_obj(struct clk_gate2, GFP_KERNEL); | 147 | gate = kzalloc_obj(struct clk_gate2); |
| 148 | if (!gate) | 148 | if (!gate) |
| 149 | return ERR_PTR(-ENOMEM); | 149 | return ERR_PTR(-ENOMEM); |
| 150 | 150 | ||
| @@ -87,7 +87,7 @@ struct clk_hw *imx_clk_gpr_mux(const char *name, const char *compatible, · 86 unmodified lines | |||
| 87 | return ERR_CAST(regmap); | 87 | return ERR_CAST(regmap); |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 90 | priv = kzalloc_obj(*priv); |
| 91 | if (!priv) | 91 | if (!priv) |
| 92 | return ERR_PTR(-ENOMEM); | 92 | return ERR_PTR(-ENOMEM); |
| 93 | 93 | ||
| @@ -119,7 +119,7 @@ struct clk_hw *__imx_clk_lpcg_scu(struct device *dev, const char *name, · 118 unmodified lines | |||
| 119 | struct clk_hw *hw; | 119 | struct clk_hw *hw; |
| 120 | int ret; | 120 | int ret; |
| 121 | 121 | ||
| 122 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 122 | clk = kzalloc_obj(*clk); |
| 123 | if (!clk) | 123 | if (!clk) |
| 124 | return ERR_PTR(-ENOMEM); | 124 | return ERR_PTR(-ENOMEM); |
| 125 | 125 | ||
| @@ -132,7 +132,7 @@ struct clk_hw *imx_clk_hw_pfd(const char *name, const char *parent_name, · 131 unmodified lines | |||
| 132 | struct clk_init_data init; | 132 | struct clk_init_data init; |
| 133 | int ret; | 133 | int ret; |
| 134 | 134 | ||
| 135 | pfd = kzalloc_obj(*pfd, GFP_KERNEL); | 135 | pfd = kzalloc_obj(*pfd); |
| 136 | if (!pfd) | 136 | if (!pfd) |
| 137 | return ERR_PTR(-ENOMEM); | 137 | return ERR_PTR(-ENOMEM); |
| 138 | 138 | ||
| @@ -210,7 +210,7 @@ struct clk_hw *imx_clk_hw_pfdv2(enum imx_pfdv2_type type, const char *name, · 209 unmodified lines | |||
| 210 | 210 | ||
| 211 | WARN_ON(idx > 3); | 211 | WARN_ON(idx > 3); |
| 212 | 212 | ||
| 213 | pfd = kzalloc_obj(*pfd, GFP_KERNEL); | 213 | pfd = kzalloc_obj(*pfd); |
| 214 | if (!pfd) | 214 | if (!pfd) |
| 215 | return ERR_PTR(-ENOMEM); | 215 | return ERR_PTR(-ENOMEM); |
| 216 | 216 | ||
| @@ -504,7 +504,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name, · 503 unmodified lines | |||
| 504 | int ret; | 504 | int ret; |
| 505 | u32 val; | 505 | u32 val; |
| 506 | 506 | ||
| 507 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 507 | pll = kzalloc_obj(*pll); |
| 508 | if (!pll) | 508 | if (!pll) |
| 509 | return ERR_PTR(-ENOMEM); | 509 | return ERR_PTR(-ENOMEM); |
| 510 | 510 | ||
| @@ -119,7 +119,7 @@ struct clk_hw *imx_clk_hw_pllv1(enum imx_pllv1_type type, const char *name, · 118 unmodified lines | |||
| 119 | struct clk_init_data init; | 119 | struct clk_init_data init; |
| 120 | int ret; | 120 | int ret; |
| 121 | 121 | ||
| 122 | pll = kmalloc_obj(*pll, GFP_KERNEL); | 122 | pll = kmalloc_obj(*pll); |
| 123 | if (!pll) | 123 | if (!pll) |
| 124 | return ERR_PTR(-ENOMEM); | 124 | return ERR_PTR(-ENOMEM); |
| 125 | 125 | ||
| @@ -254,7 +254,7 @@ struct clk_hw *imx_clk_hw_pllv2(const char *name, const char *parent, · 253 unmodified lines | |||
| 254 | struct clk_init_data init; | 254 | struct clk_init_data init; |
| 255 | int ret; | 255 | int ret; |
| 256 | 256 | ||
| 257 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 257 | pll = kzalloc_obj(*pll); |
| 258 | if (!pll) | 258 | if (!pll) |
| 259 | return ERR_PTR(-ENOMEM); | 259 | return ERR_PTR(-ENOMEM); |
| 260 | 260 | ||
| @@ -426,7 +426,7 @@ struct clk_hw *imx_clk_hw_pllv3(enum imx_pllv3_type type, const char *name, · 425 unmodified lines | |||
| 426 | struct clk_init_data init; | 426 | struct clk_init_data init; |
| 427 | int ret; | 427 | int ret; |
| 428 | 428 | ||
| 429 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 429 | pll = kzalloc_obj(*pll); |
| 430 | if (!pll) | 430 | if (!pll) |
| 431 | return ERR_PTR(-ENOMEM); | 431 | return ERR_PTR(-ENOMEM); |
| 432 | 432 | ||
| @@ -251,7 +251,7 @@ struct clk_hw *imx_clk_hw_pllv4(enum imx_pllv4_type type, const char *name, · 250 unmodified lines | |||
| 251 | struct clk_init_data init; | 251 | struct clk_init_data init; |
| 252 | int ret; | 252 | int ret; |
| 253 | 253 | ||
| 254 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 254 | pll = kzalloc_obj(*pll); |
| 255 | if (!pll) | 255 | if (!pll) |
| 256 | return ERR_PTR(-ENOMEM); | 256 | return ERR_PTR(-ENOMEM); |
| 257 | 257 | ||
| @@ -457,7 +457,7 @@ struct clk_hw *__imx_clk_scu(struct device *dev, const char *name, · 456 unmodified lines | |||
| 457 | struct clk_hw *hw; | 457 | struct clk_hw *hw; |
| 458 | int ret; | 458 | int ret; |
| 459 | 459 | ||
| 460 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 460 | clk = kzalloc_obj(*clk); |
| 461 | if (!clk) | 461 | if (!clk) |
| 462 | return ERR_PTR(-ENOMEM); | 462 | return ERR_PTR(-ENOMEM); |
| 463 | 463 | ||
| @@ -856,7 +856,7 @@ struct clk_hw *__imx_clk_gpr_scu(const char *name, const char * const *parent_na · 392 unmodified lines | |||
| 856 | if (rsrc_id >= IMX_SC_R_LAST || gpr_id >= IMX_SC_C_LAST) | 856 | if (rsrc_id >= IMX_SC_R_LAST || gpr_id >= IMX_SC_C_LAST) |
| 857 | return ERR_PTR(-EINVAL); | 857 | return ERR_PTR(-EINVAL); |
| 858 | 858 | ||
| 859 | clk_node = kzalloc_obj(*clk_node, GFP_KERNEL); | 859 | clk_node = kzalloc_obj(*clk_node); |
| 860 | if (!clk_node) | 860 | if (!clk_node) |
| 861 | return ERR_PTR(-ENOMEM); | 861 | return ERR_PTR(-ENOMEM); |
| 862 | 862 | ||
| @@ -870,7 +870,7 @@ struct clk_hw *__imx_clk_gpr_scu(const char *name, const char * const *parent_na · 7 unmodified lines | |||
| 870 | return NULL; | 870 | return NULL; |
| 871 | } | 871 | } |
| 872 | 872 | ||
| 873 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 873 | clk = kzalloc_obj(*clk); |
| 874 | if (!clk) { | 874 | if (!clk) { |
| 875 | kfree(clk_node); | 875 | kfree(clk_node); |
| 876 | return ERR_PTR(-ENOMEM); | 876 | return ERR_PTR(-ENOMEM); |
| @@ -509,7 +509,7 @@ struct clk_hw *imx_clk_hw_sscg_pll(const char *name, · 508 unmodified lines | |||
| 509 | struct clk_hw *hw; | 509 | struct clk_hw *hw; |
| 510 | int ret; | 510 | int ret; |
| 511 | 511 | ||
| 512 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 512 | pll = kzalloc_obj(*pll); |
| 513 | if (!pll) | 513 | if (!pll) |
| 514 | return ERR_PTR(-ENOMEM); | 514 | return ERR_PTR(-ENOMEM); |
| 515 | 515 | ||
| @@ -189,7 +189,7 @@ void imx_register_uart_clocks(void) · 188 unmodified lines | |||
| 189 | if (!of_stdout) | 189 | if (!of_stdout) |
| 190 | return; | 190 | return; |
| 191 | 191 | ||
| 192 | imx_uart_clocks = kzalloc_objs(struct clk *, num, GFP_KERNEL); | 192 | imx_uart_clocks = kzalloc_objs(struct clk *, num); |
| 193 | if (!imx_uart_clocks) | 193 | if (!imx_uart_clocks) |
| 194 | return; | 194 | return; |
| 195 | 195 | ||
| @@ -676,7 +676,7 @@ static int ingenic_register_clock(struct ingenic_cgu *cgu, unsigned idx) · 675 unmodified lines | |||
| 676 | goto out; | 676 | goto out; |
| 677 | } | 677 | } |
| 678 | 678 | ||
| 679 | ingenic_clk = kzalloc_obj(*ingenic_clk, GFP_KERNEL); | 679 | ingenic_clk = kzalloc_obj(*ingenic_clk); |
| 680 | if (!ingenic_clk) { | 680 | if (!ingenic_clk) { |
| 681 | err = -ENOMEM; | 681 | err = -ENOMEM; |
| 682 | goto out; | 682 | goto out; |
| @@ -790,7 +790,7 @@ ingenic_cgu_new(const struct ingenic_cgu_clk_info *clock_info, · 107 unmodified lines | |||
| 790 | { | 790 | { |
| 791 | struct ingenic_cgu *cgu; | 791 | struct ingenic_cgu *cgu; |
| 792 | 792 | ||
| 793 | cgu = kzalloc_obj(*cgu, GFP_KERNEL); | 793 | cgu = kzalloc_obj(*cgu); |
| 794 | if (!cgu) | 794 | if (!cgu) |
| 795 | goto err_out; | 795 | goto err_out; |
| 796 | 796 | ||
| @@ -273,7 +273,7 @@ static int __init ingenic_tcu_register_clock(struct ingenic_tcu *tcu, · 272 unmodified lines | |||
| 273 | struct ingenic_tcu_clk *tcu_clk; | 273 | struct ingenic_tcu_clk *tcu_clk; |
| 274 | int err; | 274 | int err; |
| 275 | 275 | ||
| 276 | tcu_clk = kzalloc_obj(*tcu_clk, GFP_KERNEL); | 276 | tcu_clk = kzalloc_obj(*tcu_clk); |
| 277 | if (!tcu_clk) | 277 | if (!tcu_clk) |
| 278 | return -ENOMEM; | 278 | return -ENOMEM; |
| 279 | 279 | ||
| @@ -344,7 +344,7 @@ static int __init ingenic_tcu_probe(struct device_node *np) · 64 unmodified lines | |||
| 344 | if (IS_ERR(map)) | 344 | if (IS_ERR(map)) |
| 345 | return PTR_ERR(map); | 345 | return PTR_ERR(map); |
| 346 | 346 | ||
| 347 | tcu = kzalloc_obj(*tcu, GFP_KERNEL); | 347 | tcu = kzalloc_obj(*tcu); |
| 348 | if (!tcu) | 348 | if (!tcu) |
| 349 | return -ENOMEM; | 349 | return -ENOMEM; |
| 350 | 350 | ||
| @@ -168,7 +168,7 @@ static struct clk *clk_register_psc(struct device *dev, · 167 unmodified lines | |||
| 168 | struct clk_psc *psc; | 168 | struct clk_psc *psc; |
| 169 | struct clk *clk; | 169 | struct clk *clk; |
| 170 | 170 | ||
| 171 | psc = kzalloc_obj(*psc, GFP_KERNEL); | 171 | psc = kzalloc_obj(*psc); |
| 172 | if (!psc) | 172 | if (!psc) |
| 173 | return ERR_PTR(-ENOMEM); | 173 | return ERR_PTR(-ENOMEM); |
| 174 | 174 | ||
| @@ -202,7 +202,7 @@ static void __init of_psc_clk_init(struct device_node *node, spinlock_t *lock) · 27 unmodified lines | |||
| 202 | struct clk *clk; | 202 | struct clk *clk; |
| 203 | int i; | 203 | int i; |
| 204 | 204 | ||
| 205 | data = kzalloc_obj(*data, GFP_KERNEL); | 205 | data = kzalloc_obj(*data); |
| 206 | if (!data) { | 206 | if (!data) { |
| 207 | pr_err("%s: Out of memory\n", __func__); | 207 | pr_err("%s: Out of memory\n", __func__); |
| 208 | return; | 208 | return; |
| @@ -126,7 +126,7 @@ static struct clk *clk_register_pll(struct device *dev, · 125 unmodified lines | |||
| 126 | struct clk_pll *pll; | 126 | struct clk_pll *pll; |
| 127 | struct clk *clk; | 127 | struct clk *clk; |
| 128 | 128 | ||
| 129 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 129 | pll = kzalloc_obj(*pll); |
| 130 | if (!pll) | 130 | if (!pll) |
| 131 | return ERR_PTR(-ENOMEM); | 131 | return ERR_PTR(-ENOMEM); |
| 132 | 132 | ||
| @@ -162,7 +162,7 @@ static void __init _of_pll_clk_init(struct device_node *node, bool pllctrl) · 29 unmodified lines | |||
| 162 | struct clk *clk; | 162 | struct clk *clk; |
| 163 | int i; | 163 | int i; |
| 164 | 164 | ||
| 165 | pll_data = kzalloc_obj(*pll_data, GFP_KERNEL); | 165 | pll_data = kzalloc_obj(*pll_data); |
| 166 | if (!pll_data) { | 166 | if (!pll_data) { |
| 167 | pr_err("%s: Out of memory\n", __func__); | 167 | pr_err("%s: Out of memory\n", __func__); |
| 168 | return; | 168 | return; |
| @@ -77,7 +77,7 @@ struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name, · 76 unmodified lines | |||
| 77 | struct clk_init_data init = {}; | 77 | struct clk_init_data init = {}; |
| 78 | int ret; | 78 | int ret; |
| 79 | 79 | ||
| 80 | tx = kzalloc_obj(*tx, GFP_KERNEL); | 80 | tx = kzalloc_obj(*tx); |
| 81 | if (!tx) | 81 | if (!tx) |
| 82 | return ERR_PTR(-ENOMEM); | 82 | return ERR_PTR(-ENOMEM); |
| 83 | 83 | ||
| @@ -66,7 +66,7 @@ mtk_clk_register_cpumux(struct device *dev, const struct mtk_composite *mux, · 65 unmodified lines | |||
| 66 | int ret; | 66 | int ret; |
| 67 | struct clk_init_data init; | 67 | struct clk_init_data init; |
| 68 | 68 | ||
| 69 | cpumux = kzalloc_obj(*cpumux, GFP_KERNEL); | 69 | cpumux = kzalloc_obj(*cpumux); |
| 70 | if (!cpumux) | 70 | if (!cpumux) |
| 71 | return ERR_PTR(-ENOMEM); | 71 | return ERR_PTR(-ENOMEM); |
| 72 | 72 | ||
| @@ -212,7 +212,7 @@ static struct clk_hw *mtk_clk_register_gate(struct device *dev, · 211 unmodified lines | |||
| 212 | int ret; | 212 | int ret; |
| 213 | struct clk_init_data init = {}; | 213 | struct clk_init_data init = {}; |
| 214 | 214 | ||
| 215 | cg = kzalloc_obj(*cg, GFP_KERNEL); | 215 | cg = kzalloc_obj(*cg); |
| 216 | if (!cg) | 216 | if (!cg) |
| 217 | return ERR_PTR(-ENOMEM); | 217 | return ERR_PTR(-ENOMEM); |
| 218 | 218 | ||
| @@ -230,7 +230,7 @@ static struct clk_hw *mtk_clk_register_composite(struct device *dev, · 229 unmodified lines | |||
| 230 | int ret; | 230 | int ret; |
| 231 | 231 | ||
| 232 | if (mc->mux_shift >= 0) { | 232 | if (mc->mux_shift >= 0) { |
| 233 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 233 | mux = kzalloc_obj(*mux); |
| 234 | if (!mux) | 234 | if (!mux) |
| 235 | return ERR_PTR(-ENOMEM); | 235 | return ERR_PTR(-ENOMEM); |
| 236 | 236 | ||
| @@ -251,7 +251,7 @@ static struct clk_hw *mtk_clk_register_composite(struct device *dev, · 14 unmodified lines | |||
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | if (mc->gate_shift >= 0) { | 253 | if (mc->gate_shift >= 0) { |
| 254 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 254 | gate = kzalloc_obj(*gate); |
| 255 | if (!gate) { | 255 | if (!gate) { |
| 256 | ret = -ENOMEM; | 256 | ret = -ENOMEM; |
| 257 | goto err_out; | 257 | goto err_out; |
| @@ -267,7 +267,7 @@ static struct clk_hw *mtk_clk_register_composite(struct device *dev, · 9 unmodified lines | |||
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | if (mc->divider_shift >= 0) { | 269 | if (mc->divider_shift >= 0) { |
| 270 | div = kzalloc_obj(*div, GFP_KERNEL); | 270 | div = kzalloc_obj(*div); |
| 271 | if (!div) { | 271 | if (!div) { |
| 272 | ret = -ENOMEM; | 272 | ret = -ENOMEM; |
| 273 | goto err_out; | 273 | goto err_out; |
| @@ -281,7 +281,7 @@ static struct clk_hw *mtk_clk_register_mux(struct device *dev, · 280 unmodified lines | |||
| 281 | struct clk_init_data init = {}; | 281 | struct clk_init_data init = {}; |
| 282 | int ret; | 282 | int ret; |
| 283 | 283 | ||
| 284 | clk_mux = kzalloc_obj(*clk_mux, GFP_KERNEL); | 284 | clk_mux = kzalloc_obj(*clk_mux); |
| 285 | if (!clk_mux) | 285 | if (!clk_mux) |
| 286 | return ERR_PTR(-ENOMEM); | 286 | return ERR_PTR(-ENOMEM); |
| 287 | 287 | ||
| @@ -385,7 +385,7 @@ struct clk_hw *mtk_clk_register_pll(struct device *dev, · 384 unmodified lines | |||
| 385 | struct clk_hw *hw; | 385 | struct clk_hw *hw; |
| 386 | const struct clk_ops *pll_ops = data->ops ? data->ops : &mtk_pll_ops; | 386 | const struct clk_ops *pll_ops = data->ops ? data->ops : &mtk_pll_ops; |
| 387 | 387 | ||
| 388 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 388 | pll = kzalloc_obj(*pll); |
| 389 | if (!pll) | 389 | if (!pll) |
| 390 | return ERR_PTR(-ENOMEM); | 390 | return ERR_PTR(-ENOMEM); |
| 391 | 391 | ||
| @@ -157,7 +157,7 @@ mtk_clk_register_pllfh(struct device *dev, const struct mtk_pll_data *pll_data, · 156 unmodified lines | |||
| 157 | struct mtk_fh *fh; | 157 | struct mtk_fh *fh; |
| 158 | int ret; | 158 | int ret; |
| 159 | 159 | ||
| 160 | fh = kzalloc_obj(*fh, GFP_KERNEL); | 160 | fh = kzalloc_obj(*fh); |
| 161 | if (!fh) | 161 | if (!fh) |
| 162 | return ERR_PTR(-ENOMEM); | 162 | return ERR_PTR(-ENOMEM); |
| 163 | 163 | ||
| @@ -3646,7 +3646,7 @@ static void __init meson8b_clkc_init_common(struct device_node *np, · 3645 unmodified lines | |||
| 3646 | return; | 3646 | return; |
| 3647 | } | 3647 | } |
| 3648 | 3648 | ||
| 3649 | rstc = kzalloc_obj(*rstc, GFP_KERNEL); | 3649 | rstc = kzalloc_obj(*rstc); |
| 3650 | if (!rstc) | 3650 | if (!rstc) |
| 3651 | return; | 3651 | return; |
| 3652 | 3652 | ||
| @@ -124,7 +124,7 @@ struct clk *mmp_clk_register_apbc(const char *name, const char *parent_name, · 123 unmodified lines | |||
| 124 | struct clk *clk; | 124 | struct clk *clk; |
| 125 | struct clk_init_data init; | 125 | struct clk_init_data init; |
| 126 | 126 | ||
| 127 | apbc = kzalloc_obj(*apbc, GFP_KERNEL); | 127 | apbc = kzalloc_obj(*apbc); |
| 128 | if (!apbc) | 128 | if (!apbc) |
| 129 | return NULL; | 129 | return NULL; |
| 130 | 130 | ||
| @@ -69,7 +69,7 @@ struct clk *mmp_clk_register_apmu(const char *name, const char *parent_name, · 68 unmodified lines | |||
| 69 | struct clk *clk; | 69 | struct clk *clk; |
| 70 | struct clk_init_data init; | 70 | struct clk_init_data init; |
| 71 | 71 | ||
| 72 | apmu = kzalloc_obj(*apmu, GFP_KERNEL); | 72 | apmu = kzalloc_obj(*apmu); |
| 73 | if (!apmu) | 73 | if (!apmu) |
| 74 | return NULL; | 74 | return NULL; |
| 75 | 75 | ||
| @@ -180,7 +180,7 @@ struct clk *mmp_clk_register_factor(const char *name, const char *parent_name, · 179 unmodified lines | |||
| 180 | return ERR_PTR(-EINVAL); | 180 | return ERR_PTR(-EINVAL); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | factor = kzalloc_obj(*factor, GFP_KERNEL); | 183 | factor = kzalloc_obj(*factor); |
| 184 | if (!factor) | 184 | if (!factor) |
| 185 | return ERR_PTR(-ENOMEM); | 185 | return ERR_PTR(-ENOMEM); |
| 186 | 186 | ||
| @@ -99,7 +99,7 @@ struct clk *mmp_clk_register_gate(struct device *dev, const char *name, · 98 unmodified lines | |||
| 99 | struct clk_init_data init; | 99 | struct clk_init_data init; |
| 100 | 100 | ||
| 101 | /* allocate the gate */ | 101 | /* allocate the gate */ |
| 102 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 102 | gate = kzalloc_obj(*gate); |
| 103 | if (!gate) | 103 | if (!gate) |
| 104 | return ERR_PTR(-ENOMEM); | 104 | return ERR_PTR(-ENOMEM); |
| 105 | 105 | ||
| @@ -448,7 +448,7 @@ struct clk *mmp_clk_register_mix(struct device *dev, · 447 unmodified lines | |||
| 448 | struct clk *clk; | 448 | struct clk *clk; |
| 449 | struct clk_init_data init; | 449 | struct clk_init_data init; |
| 450 | 450 | ||
| 451 | mix = kzalloc_obj(*mix, GFP_KERNEL); | 451 | mix = kzalloc_obj(*mix); |
| 452 | if (!mix) | 452 | if (!mix) |
| 453 | return ERR_PTR(-ENOMEM); | 453 | return ERR_PTR(-ENOMEM); |
| 454 | 454 | ||
| @@ -462,7 +462,7 @@ static void mmp2_clk_reset_init(struct device_node *np, · 461 unmodified lines | |||
| 462 | int i, nr_resets; | 462 | int i, nr_resets; |
| 463 | 463 | ||
| 464 | nr_resets = ARRAY_SIZE(apbc_gate_clks); | 464 | nr_resets = ARRAY_SIZE(apbc_gate_clks); |
| 465 | cells = kzalloc_objs(*cells, nr_resets, GFP_KERNEL); | 465 | cells = kzalloc_objs(*cells, nr_resets); |
| 466 | if (!cells) | 466 | if (!cells) |
| 467 | return; | 467 | return; |
| 468 | 468 | ||
| @@ -516,7 +516,7 @@ static void __init mmp2_clk_init(struct device_node *np) · 47 unmodified lines | |||
| 516 | { | 516 | { |
| 517 | struct mmp2_clk_unit *pxa_unit; | 517 | struct mmp2_clk_unit *pxa_unit; |
| 518 | 518 | ||
| 519 | pxa_unit = kzalloc_obj(*pxa_unit, GFP_KERNEL); | 519 | pxa_unit = kzalloc_obj(*pxa_unit); |
| 520 | if (!pxa_unit) | 520 | if (!pxa_unit) |
| 521 | return; | 521 | return; |
| 522 | 522 | ||
| @@ -282,7 +282,7 @@ static void pxa168_clk_reset_init(struct device_node *np, · 281 unmodified lines | |||
| 282 | int i, nr_resets; | 282 | int i, nr_resets; |
| 283 | 283 | ||
| 284 | nr_resets = ARRAY_SIZE(apbc_gate_clks); | 284 | nr_resets = ARRAY_SIZE(apbc_gate_clks); |
| 285 | cells = kzalloc_objs(*cells, nr_resets, GFP_KERNEL); | 285 | cells = kzalloc_objs(*cells, nr_resets); |
| 286 | if (!cells) | 286 | if (!cells) |
| 287 | return; | 287 | return; |
| 288 | 288 | ||
| @@ -301,7 +301,7 @@ static void __init pxa168_clk_init(struct device_node *np) · 12 unmodified lines | |||
| 301 | { | 301 | { |
| 302 | struct pxa168_clk_unit *pxa_unit; | 302 | struct pxa168_clk_unit *pxa_unit; |
| 303 | 303 | ||
| 304 | pxa_unit = kzalloc_obj(*pxa_unit, GFP_KERNEL); | 304 | pxa_unit = kzalloc_obj(*pxa_unit); |
| 305 | if (!pxa_unit) | 305 | if (!pxa_unit) |
| 306 | return; | 306 | return; |
| 307 | 307 | ||
| @@ -187,7 +187,7 @@ static void pxa1928_clk_reset_init(struct device_node *np, · 186 unmodified lines | |||
| 187 | int i, base, nr_resets; | 187 | int i, base, nr_resets; |
| 188 | 188 | ||
| 189 | nr_resets = ARRAY_SIZE(apbc_gate_clks); | 189 | nr_resets = ARRAY_SIZE(apbc_gate_clks); |
| 190 | cells = kzalloc_objs(*cells, nr_resets, GFP_KERNEL); | 190 | cells = kzalloc_objs(*cells, nr_resets); |
| 191 | if (!cells) | 191 | if (!cells) |
| 192 | return; | 192 | return; |
| 193 | 193 | ||
| @@ -208,7 +208,7 @@ static void __init pxa1928_mpmu_clk_init(struct device_node *np) · 14 unmodified lines | |||
| 208 | { | 208 | { |
| 209 | struct pxa1928_clk_unit *pxa_unit; | 209 | struct pxa1928_clk_unit *pxa_unit; |
| 210 | 210 | ||
| 211 | pxa_unit = kzalloc_obj(*pxa_unit, GFP_KERNEL); | 211 | pxa_unit = kzalloc_obj(*pxa_unit); |
| 212 | if (!pxa_unit) | 212 | if (!pxa_unit) |
| 213 | return; | 213 | return; |
| 214 | 214 | ||
| @@ -227,7 +227,7 @@ static void __init pxa1928_apmu_clk_init(struct device_node *np) · 12 unmodified lines | |||
| 227 | { | 227 | { |
| 228 | struct pxa1928_clk_unit *pxa_unit; | 228 | struct pxa1928_clk_unit *pxa_unit; |
| 229 | 229 | ||
| 230 | pxa_unit = kzalloc_obj(*pxa_unit, GFP_KERNEL); | 230 | pxa_unit = kzalloc_obj(*pxa_unit); |
| 231 | if (!pxa_unit) | 231 | if (!pxa_unit) |
| 232 | return; | 232 | return; |
| 233 | 233 | ||
| @@ -248,7 +248,7 @@ static void __init pxa1928_apbc_clk_init(struct device_node *np) · 14 unmodified lines | |||
| 248 | { | 248 | { |
| 249 | struct pxa1928_clk_unit *pxa_unit; | 249 | struct pxa1928_clk_unit *pxa_unit; |
| 250 | 250 | ||
| 251 | pxa_unit = kzalloc_obj(*pxa_unit, GFP_KERNEL); | 251 | pxa_unit = kzalloc_obj(*pxa_unit); |
| 252 | if (!pxa_unit) | 252 | if (!pxa_unit) |
| 253 | return; | 253 | return; |
| 254 | 254 | ||
| @@ -239,7 +239,7 @@ static void pxa910_clk_reset_init(struct device_node *np, · 238 unmodified lines | |||
| 239 | nr_resets_apbc = ARRAY_SIZE(apbc_gate_clks); | 239 | nr_resets_apbc = ARRAY_SIZE(apbc_gate_clks); |
| 240 | nr_resets_apbcp = ARRAY_SIZE(apbcp_gate_clks); | 240 | nr_resets_apbcp = ARRAY_SIZE(apbcp_gate_clks); |
| 241 | nr_resets = nr_resets_apbc + nr_resets_apbcp; | 241 | nr_resets = nr_resets_apbc + nr_resets_apbcp; |
| 242 | cells = kzalloc_objs(*cells, nr_resets, GFP_KERNEL); | 242 | cells = kzalloc_objs(*cells, nr_resets); |
| 243 | if (!cells) | 243 | if (!cells) |
| 244 | return; | 244 | return; |
| 245 | 245 | ||
| @@ -270,7 +270,7 @@ static void __init pxa910_clk_init(struct device_node *np) · 24 unmodified lines | |||
| 270 | { | 270 | { |
| 271 | struct pxa910_clk_unit *pxa_unit; | 271 | struct pxa910_clk_unit *pxa_unit; |
| 272 | 272 | ||
| 273 | pxa_unit = kzalloc_obj(*pxa_unit, GFP_KERNEL); | 273 | pxa_unit = kzalloc_obj(*pxa_unit); |
| 274 | if (!pxa_unit) | 274 | if (!pxa_unit) |
| 275 | return; | 275 | return; |
| 276 | 276 | ||
| @@ -108,7 +108,7 @@ static struct clk *mmp_clk_register_pll(char *name, · 107 unmodified lines | |||
| 108 | struct clk *clk; | 108 | struct clk *clk; |
| 109 | struct clk_init_data init; | 109 | struct clk_init_data init; |
| 110 | 110 | ||
| 111 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 111 | pll = kzalloc_obj(*pll); |
| 112 | if (!pll) | 112 | if (!pll) |
| 113 | return ERR_PTR(-ENOMEM); | 113 | return ERR_PTR(-ENOMEM); |
| 114 | 114 | ||
| @@ -12,7 +12,7 @@ void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, · 11 unmodified lines | |||
| 12 | { | 12 | { |
| 13 | struct clk **clk_table; | 13 | struct clk **clk_table; |
| 14 | 14 | ||
| 15 | clk_table = kzalloc_objs(struct clk *, nr_clks, GFP_KERNEL); | 15 | clk_table = kzalloc_objs(struct clk *, nr_clks); |
| 16 | if (!clk_table) | 16 | if (!clk_table) |
| 17 | return; | 17 | return; |
| 18 | 18 | ||
| @@ -95,7 +95,7 @@ struct generic_pm_domain *mmp_pm_domain_register(const char *name, · 94 unmodified lines | |||
| 95 | { | 95 | { |
| 96 | struct mmp_pm_domain *pm_domain; | 96 | struct mmp_pm_domain *pm_domain; |
| 97 | 97 | ||
| 98 | pm_domain = kzalloc_obj(*pm_domain, GFP_KERNEL); | 98 | pm_domain = kzalloc_obj(*pm_domain); |
| 99 | if (!pm_domain) | 99 | if (!pm_domain) |
| 100 | return ERR_PTR(-ENOMEM); | 100 | return ERR_PTR(-ENOMEM); |
| 101 | 101 | ||
| @@ -85,7 +85,7 @@ void mmp_clk_reset_register(struct device_node *np, · 84 unmodified lines | |||
| 85 | { | 85 | { |
| 86 | struct mmp_clk_reset_unit *unit; | 86 | struct mmp_clk_reset_unit *unit; |
| 87 | 87 | ||
| 88 | unit = kzalloc_obj(*unit, GFP_KERNEL); | 88 | unit = kzalloc_obj(*unit); |
| 89 | if (!unit) | 89 | if (!unit) |
| 90 | return; | 90 | return; |
| 91 | 91 | ||
| @@ -270,11 +270,11 @@ mvebu_corediv_clk_init(struct device_node *node, · 269 unmodified lines | |||
| 270 | clk_data.clk_num = soc_desc->ndescs; | 270 | clk_data.clk_num = soc_desc->ndescs; |
| 271 | 271 | ||
| 272 | /* clks holds the clock array */ | 272 | /* clks holds the clock array */ |
| 273 | clks = kzalloc_objs(struct clk *, clk_data.clk_num, GFP_KERNEL); | 273 | clks = kzalloc_objs(struct clk *, clk_data.clk_num); |
| 274 | if (WARN_ON(!clks)) | 274 | if (WARN_ON(!clks)) |
| 275 | goto err_unmap; | 275 | goto err_unmap; |
| 276 | /* corediv holds the clock specific array */ | 276 | /* corediv holds the clock specific array */ |
| 277 | corediv = kzalloc_objs(struct clk_corediv, clk_data.clk_num, GFP_KERNEL); | 277 | corediv = kzalloc_objs(struct clk_corediv, clk_data.clk_num); |
| 278 | if (WARN_ON(!corediv)) | 278 | if (WARN_ON(!corediv)) |
| 279 | goto err_free_clks; | 279 | goto err_free_clks; |
| 280 | 280 | ||
| @@ -183,11 +183,11 @@ static void __init of_cpu_clk_setup(struct device_node *node) · 182 unmodified lines | |||
| 183 | pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n", | 183 | pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n", |
| 184 | __func__); | 184 | __func__); |
| 185 | 185 | ||
| 186 | cpuclk = kzalloc_objs(*cpuclk, ncpus, GFP_KERNEL); | 186 | cpuclk = kzalloc_objs(*cpuclk, ncpus); |
| 187 | if (WARN_ON(!cpuclk)) | 187 | if (WARN_ON(!cpuclk)) |
| 188 | goto cpuclk_out; | 188 | goto cpuclk_out; |
| 189 | 189 | ||
| 190 | clks = kzalloc_objs(*clks, ncpus, GFP_KERNEL); | 190 | clks = kzalloc_objs(*clks, ncpus); |
| 191 | if (WARN_ON(!clks)) | 191 | if (WARN_ON(!clks)) |
| 192 | goto clks_out; | 192 | goto clks_out; |
| 193 | 193 | ||
| @@ -258,7 +258,7 @@ void __init mvebu_clk_gating_setup(struct device_node *np, · 257 unmodified lines | |||
| 258 | clk_put(clk); | 258 | clk_put(clk); |
| 259 | } | 259 | } |
| 260 | 260 | ||
| 261 | ctrl = kzalloc_obj(*ctrl, GFP_KERNEL); | 261 | ctrl = kzalloc_obj(*ctrl); |
| 262 | if (WARN_ON(!ctrl)) | 262 | if (WARN_ON(!ctrl)) |
| 263 | goto ctrl_out; | 263 | goto ctrl_out; |
| 264 | 264 | ||
| @@ -272,7 +272,7 @@ void __init mvebu_clk_gating_setup(struct device_node *np, · 7 unmodified lines | |||
| 272 | n++; | 272 | n++; |
| 273 | 273 | ||
| 274 | ctrl->num_gates = n; | 274 | ctrl->num_gates = n; |
| 275 | ctrl->gates = kzalloc_objs(*ctrl->gates, ctrl->num_gates, GFP_KERNEL); | 275 | ctrl->gates = kzalloc_objs(*ctrl->gates, ctrl->num_gates); |
| 276 | if (WARN_ON(!ctrl->gates)) | 276 | if (WARN_ON(!ctrl->gates)) |
| 277 | goto gates_out; | 277 | goto gates_out; |
| 278 | 278 | ||
| @@ -180,7 +180,7 @@ static struct clk_hw *cp110_register_gate(const char *name, · 179 unmodified lines | |||
| 180 | struct clk_init_data init; | 180 | struct clk_init_data init; |
| 181 | int ret; | 181 | int ret; |
| 182 | 182 | ||
| 183 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 183 | gate = kzalloc_obj(*gate); |
| 184 | if (!gate) | 184 | if (!gate) |
| 185 | return ERR_PTR(-ENOMEM); | 185 | return ERR_PTR(-ENOMEM); |
| 186 | 186 | ||
| @@ -297,7 +297,7 @@ static void __init kirkwood_clk_muxing_setup(struct device_node *np, · 296 unmodified lines | |||
| 297 | if (WARN_ON(!base)) | 297 | if (WARN_ON(!base)) |
| 298 | return; | 298 | return; |
| 299 | 299 | ||
| 300 | ctrl = kzalloc_obj(*ctrl, GFP_KERNEL); | 300 | ctrl = kzalloc_obj(*ctrl); |
| 301 | if (WARN_ON(!ctrl)) | 301 | if (WARN_ON(!ctrl)) |
| 302 | goto ctrl_out; | 302 | goto ctrl_out; |
| 303 | 303 | ||
| @@ -309,7 +309,7 @@ static void __init kirkwood_clk_muxing_setup(struct device_node *np, · 5 unmodified lines | |||
| 309 | n++; | 309 | n++; |
| 310 | 310 | ||
| 311 | ctrl->num_muxes = n; | 311 | ctrl->num_muxes = n; |
| 312 | ctrl->muxes = kzalloc_objs(struct clk *, ctrl->num_muxes, GFP_KERNEL); | 312 | ctrl->muxes = kzalloc_objs(struct clk *, ctrl->num_muxes); |
| 313 | if (WARN_ON(!ctrl->muxes)) | 313 | if (WARN_ON(!ctrl->muxes)) |
| 314 | goto muxes_out; | 314 | goto muxes_out; |
| 315 | 315 | ||
| @@ -74,7 +74,7 @@ struct clk *mxs_clk_div(const char *name, const char *parent_name, · 73 unmodified lines | |||
| 74 | struct clk *clk; | 74 | struct clk *clk; |
| 75 | struct clk_init_data init; | 75 | struct clk_init_data init; |
| 76 | 76 | ||
| 77 | div = kzalloc_obj(*div, GFP_KERNEL); | 77 | div = kzalloc_obj(*div); |
| 78 | if (!div) | 78 | if (!div) |
| 79 | return ERR_PTR(-ENOMEM); | 79 | return ERR_PTR(-ENOMEM); |
| 80 | 80 | ||
| @@ -116,7 +116,7 @@ struct clk *mxs_clk_frac(const char *name, const char *parent_name, · 115 unmodified lines | |||
| 116 | struct clk *clk; | 116 | struct clk *clk; |
| 117 | struct clk_init_data init; | 117 | struct clk_init_data init; |
| 118 | 118 | ||
| 119 | frac = kzalloc_obj(*frac, GFP_KERNEL); | 119 | frac = kzalloc_obj(*frac); |
| 120 | if (!frac) | 120 | if (!frac) |
| 121 | return ERR_PTR(-ENOMEM); | 121 | return ERR_PTR(-ENOMEM); |
| 122 | 122 | ||
| @@ -86,7 +86,7 @@ struct clk *mxs_clk_pll(const char *name, const char *parent_name, · 85 unmodified lines | |||
| 86 | struct clk *clk; | 86 | struct clk *clk; |
| 87 | struct clk_init_data init; | 87 | struct clk_init_data init; |
| 88 | 88 | ||
| 89 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 89 | pll = kzalloc_obj(*pll); |
| 90 | if (!pll) | 90 | if (!pll) |
| 91 | return ERR_PTR(-ENOMEM); | 91 | return ERR_PTR(-ENOMEM); |
| 92 | 92 | ||
| @@ -117,7 +117,7 @@ struct clk *mxs_clk_ref(const char *name, const char *parent_name, · 116 unmodified lines | |||
| 117 | struct clk *clk; | 117 | struct clk *clk; |
| 118 | struct clk_init_data init; | 118 | struct clk_init_data init; |
| 119 | 119 | ||
| 120 | ref = kzalloc_obj(*ref, GFP_KERNEL); | 120 | ref = kzalloc_obj(*ref); |
| 121 | if (!ref) | 121 | if (!ref) |
| 122 | return ERR_PTR(-ENOMEM); | 122 | return ERR_PTR(-ENOMEM); |
| 123 | 123 | ||
| @@ -208,7 +208,7 @@ static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *bran · 207 unmodified lines | |||
| 208 | struct clk_hw *div_hw = NULL; | 208 | struct clk_hw *div_hw = NULL; |
| 209 | 209 | ||
| 210 | if (branch->flags & CCU_BRANCH_HAVE_DIV2) { | 210 | if (branch->flags & CCU_BRANCH_HAVE_DIV2) { |
| 211 | div = kzalloc_obj(*div, GFP_KERNEL); | 211 | div = kzalloc_obj(*div); |
| 212 | if (!div) | 212 | if (!div) |
| 213 | return; | 213 | return; |
| 214 | 214 | ||
| @@ -274,7 +274,7 @@ static void __init lpc18xx_ccu_init(struct device_node *np) · 59 unmodified lines | |||
| 274 | return; | 274 | return; |
| 275 | } | 275 | } |
| 276 | 276 | ||
| 277 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 277 | clk_data = kzalloc_obj(*clk_data); |
| 278 | if (!clk_data) { | 278 | if (!clk_data) { |
| 279 | iounmap(reg_base); | 279 | iounmap(reg_base); |
| 280 | return; | 280 | return; |
| @@ -457,7 +457,7 @@ static struct clk *pll_register(const char *name, const char *parent_name, · 456 unmodified lines | |||
| 457 | struct clk_init_data init; | 457 | struct clk_init_data init; |
| 458 | struct clk *clk; | 458 | struct clk *clk; |
| 459 | 459 | ||
| 460 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 460 | pll = kzalloc_obj(*pll); |
| 461 | if (!pll) | 461 | if (!pll) |
| 462 | return ERR_PTR(-ENOMEM); | 462 | return ERR_PTR(-ENOMEM); |
| 463 | 463 | ||
| @@ -17,11 +17,11 @@ pistachio_clk_alloc_provider(struct device_node *node, unsigned int num_clks) · 16 unmodified lines | |||
| 17 | { | 17 | { |
| 18 | struct pistachio_clk_provider *p; | 18 | struct pistachio_clk_provider *p; |
| 19 | 19 | ||
| 20 | p = kzalloc_obj(*p, GFP_KERNEL); | 20 | p = kzalloc_obj(*p); |
| 21 | if (!p) | 21 | if (!p) |
| 22 | return p; | 22 | return p; |
| 23 | 23 | ||
| 24 | p->clk_data.clks = kzalloc_objs(struct clk *, num_clks, GFP_KERNEL); | 24 | p->clk_data.clks = kzalloc_objs(struct clk *, num_clks); |
| 25 | if (!p->clk_data.clks) | 25 | if (!p->clk_data.clks) |
| 26 | goto free_provider; | 26 | goto free_provider; |
| 27 | p->clk_data.clk_num = num_clks; | 27 | p->clk_data.clk_num = num_clks; |
| @@ -104,7 +104,7 @@ int __init clk_pxa_cken_init(const struct desc_clk_cken *clks, · 103 unmodified lines | |||
| 104 | struct clk *clk; | 104 | struct clk *clk; |
| 105 | 105 | ||
| 106 | for (i = 0; i < nb_clks; i++) { | 106 | for (i = 0; i < nb_clks; i++) { |
| 107 | pxa_clk = kzalloc_obj(*pxa_clk, GFP_KERNEL); | 107 | pxa_clk = kzalloc_obj(*pxa_clk); |
| 108 | if (!pxa_clk) | 108 | if (!pxa_clk) |
| 109 | return -ENOMEM; | 109 | return -ENOMEM; |
| 110 | pxa_clk->is_in_low_power = clks[i].is_in_low_power; | 110 | pxa_clk->is_in_low_power = clks[i].is_in_low_power; |
| @@ -1650,7 +1650,7 @@ static int clk_rcg2_dfs_populate_freq_table(struct clk_rcg2 *rcg) · 1649 unmodified lines | |||
| 1650 | int i; | 1650 | int i; |
| 1651 | 1651 | ||
| 1652 | /* Allocate space for 1 extra since table is NULL terminated */ | 1652 | /* Allocate space for 1 extra since table is NULL terminated */ |
| 1653 | freq_tbl = kzalloc_objs(*freq_tbl, MAX_PERF_LEVEL + 1, GFP_KERNEL); | 1653 | freq_tbl = kzalloc_objs(*freq_tbl, MAX_PERF_LEVEL + 1); |
| 1654 | if (!freq_tbl) | 1654 | if (!freq_tbl) |
| 1655 | return -ENOMEM; | 1655 | return -ENOMEM; |
| 1656 | rcg->freq_tbl = freq_tbl; | 1656 | rcg->freq_tbl = freq_tbl; |
| @@ -354,7 +354,7 @@ static void __init mt7621_clk_init(struct device_node *node) · 353 unmodified lines | |||
| 354 | struct clk_hw_onecell_data *clk_data; | 354 | struct clk_hw_onecell_data *clk_data; |
| 355 | int ret, i, count; | 355 | int ret, i, count; |
| 356 | 356 | ||
| 357 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 357 | priv = kzalloc_obj(*priv); |
| 358 | if (!priv) | 358 | if (!priv) |
| 359 | return; | 359 | return; |
| 360 | 360 | ||
| @@ -916,7 +916,7 @@ static void __init mtmips_clk_init(struct device_node *node) · 915 unmodified lines | |||
| 916 | struct clk_hw_onecell_data *clk_data; | 916 | struct clk_hw_onecell_data *clk_data; |
| 917 | int ret, i, count; | 917 | int ret, i, count; |
| 918 | 918 | ||
| 919 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 919 | priv = kzalloc_obj(*priv); |
| 920 | if (!priv) | 920 | if (!priv) |
| 921 | return; | 921 | return; |
| 922 | 922 | ||
| @@ -150,7 +150,7 @@ static struct clk * __init cpg_mstp_clock_register(const char *name, · 149 unmodified lines | |||
| 150 | struct mstp_clock *clock; | 150 | struct mstp_clock *clock; |
| 151 | struct clk *clk; | 151 | struct clk *clk; |
| 152 | 152 | ||
| 153 | clock = kzalloc_obj(*clock, GFP_KERNEL); | 153 | clock = kzalloc_obj(*clock); |
| 154 | if (!clock) | 154 | if (!clock) |
| 155 | return ERR_PTR(-ENOMEM); | 155 | return ERR_PTR(-ENOMEM); |
| 156 | 156 | ||
| @@ -316,7 +316,7 @@ void __init cpg_mstp_add_clk_domain(struct device_node *np) · 159 unmodified lines | |||
| 316 | return; | 316 | return; |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | pd = kzalloc_obj(*pd, GFP_KERNEL); | 319 | pd = kzalloc_obj(*pd); |
| 320 | if (!pd) | 320 | if (!pd) |
| 321 | return; | 321 | return; |
| 322 | 322 | ||
| @@ -196,8 +196,8 @@ static void __init r8a73a4_cpg_clocks_init(struct device_node *np) · 195 unmodified lines | |||
| 196 | return; | 196 | return; |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | cpg = kzalloc_obj(*cpg, GFP_KERNEL); | 199 | cpg = kzalloc_obj(*cpg); |
| 200 | clks = kzalloc_objs(*clks, num_clks, GFP_KERNEL); | 200 | clks = kzalloc_objs(*clks, num_clks); |
| 201 | if (cpg == NULL || clks == NULL) { | 201 | if (cpg == NULL || clks == NULL) { |
| 202 | /* We're leaking memory on purpose, there's no point in cleaning | 202 | /* We're leaking memory on purpose, there's no point in cleaning |
| 203 | * up as the system won't boot anyway. | 203 | * up as the system won't boot anyway. |
| @@ -155,8 +155,8 @@ static void __init r8a7740_cpg_clocks_init(struct device_node *np) · 154 unmodified lines | |||
| 155 | return; | 155 | return; |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | cpg = kzalloc_obj(*cpg, GFP_KERNEL); | 158 | cpg = kzalloc_obj(*cpg); |
| 159 | clks = kzalloc_objs(*clks, num_clks, GFP_KERNEL); | 159 | clks = kzalloc_objs(*clks, num_clks); |
| 160 | if (cpg == NULL || clks == NULL) { | 160 | if (cpg == NULL || clks == NULL) { |
| 161 | /* We're leaking memory on purpose, there's no point in cleaning | 161 | /* We're leaking memory on purpose, there's no point in cleaning |
| 162 | * up as the system won't boot anyway. | 162 | * up as the system won't boot anyway. |
| @@ -92,8 +92,8 @@ static void __init r8a7778_cpg_clocks_init(struct device_node *np) · 91 unmodified lines | |||
| 92 | return; | 92 | return; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | data = kzalloc_obj(*data, GFP_KERNEL); | 95 | data = kzalloc_obj(*data); |
| 96 | clks = kzalloc_objs(*clks, num_clks, GFP_KERNEL); | 96 | clks = kzalloc_objs(*clks, num_clks); |
| 97 | if (data == NULL || clks == NULL) { | 97 | if (data == NULL || clks == NULL) { |
| 98 | /* We're leaking memory on purpose, there's no point in cleaning | 98 | /* We're leaking memory on purpose, there's no point in cleaning |
| 99 | * up as the system won't boot anyway. | 99 | * up as the system won't boot anyway. |
| @@ -128,8 +128,8 @@ static void __init r8a7779_cpg_clocks_init(struct device_node *np) · 127 unmodified lines | |||
| 128 | return; | 128 | return; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | data = kzalloc_obj(*data, GFP_KERNEL); | 131 | data = kzalloc_obj(*data); |
| 132 | clks = kzalloc_objs(*clks, CPG_NUM_CLOCKS, GFP_KERNEL); | 132 | clks = kzalloc_objs(*clks, CPG_NUM_CLOCKS); |
| 133 | if (data == NULL || clks == NULL) { | 133 | if (data == NULL || clks == NULL) { |
| 134 | /* We're leaking memory on purpose, there's no point in cleaning | 134 | /* We're leaking memory on purpose, there's no point in cleaning |
| 135 | * up as the system won't boot anyway. | 135 | * up as the system won't boot anyway. |
| @@ -91,8 +91,8 @@ static void __init rz_cpg_clocks_init(struct device_node *np) · 90 unmodified lines | |||
| 91 | if (WARN(num_clks <= 0, "can't count CPG clocks\n")) | 91 | if (WARN(num_clks <= 0, "can't count CPG clocks\n")) |
| 92 | return; | 92 | return; |
| 93 | 93 | ||
| 94 | data = kzalloc_obj(*data, GFP_KERNEL); | 94 | data = kzalloc_obj(*data); |
| 95 | clks = kzalloc_objs(*clks, num_clks, GFP_KERNEL); | 95 | clks = kzalloc_objs(*clks, num_clks); |
| 96 | BUG_ON(!data || !clks); | 96 | BUG_ON(!data || !clks); |
| 97 | 97 | ||
| 98 | data->clks = clks; | 98 | data->clks = clks; |
| @@ -170,8 +170,8 @@ static void __init sh73a0_cpg_clocks_init(struct device_node *np) · 169 unmodified lines | |||
| 170 | return; | 170 | return; |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | cpg = kzalloc_obj(*cpg, GFP_KERNEL); | 173 | cpg = kzalloc_obj(*cpg); |
| 174 | clks = kzalloc_objs(*clks, num_clks, GFP_KERNEL); | 174 | clks = kzalloc_objs(*clks, num_clks); |
| 175 | if (cpg == NULL || clks == NULL) { | 175 | if (cpg == NULL || clks == NULL) { |
| 176 | /* We're leaking memory on purpose, there's no point in cleaning | 176 | /* We're leaking memory on purpose, there's no point in cleaning |
| 177 | * up as the system won't boot anyway. | 177 | * up as the system won't boot anyway. |
| @@ -891,7 +891,7 @@ r9a06g032_register_gate(struct r9a06g032_priv *clocks, · 890 unmodified lines | |||
| 891 | struct r9a06g032_clk_gate *g; | 891 | struct r9a06g032_clk_gate *g; |
| 892 | struct clk_init_data init = {}; | 892 | struct clk_init_data init = {}; |
| 893 | 893 | ||
| 894 | g = kzalloc_obj(*g, GFP_KERNEL); | 894 | g = kzalloc_obj(*g); |
| 895 | if (!g) | 895 | if (!g) |
| 896 | return NULL; | 896 | return NULL; |
| 897 | 897 | ||
| @@ -1063,7 +1063,7 @@ r9a06g032_register_div(struct r9a06g032_priv *clocks, · 165 unmodified lines | |||
| 1063 | struct clk_init_data init = {}; | 1063 | struct clk_init_data init = {}; |
| 1064 | unsigned int i; | 1064 | unsigned int i; |
| 1065 | 1065 | ||
| 1066 | div = kzalloc_obj(*div, GFP_KERNEL); | 1066 | div = kzalloc_obj(*div); |
| 1067 | if (!div) | 1067 | if (!div) |
| 1068 | return NULL; | 1068 | return NULL; |
| 1069 | 1069 | ||
| @@ -1149,7 +1149,7 @@ r9a06g032_register_bitsel(struct r9a06g032_priv *clocks, · 79 unmodified lines | |||
| 1149 | const char *names[2]; | 1149 | const char *names[2]; |
| 1150 | 1150 | ||
| 1151 | /* allocate the gate */ | 1151 | /* allocate the gate */ |
| 1152 | g = kzalloc_obj(*g, GFP_KERNEL); | 1152 | g = kzalloc_obj(*g); |
| 1153 | if (!g) | 1153 | if (!g) |
| 1154 | return NULL; | 1154 | return NULL; |
| 1155 | 1155 | ||
| @@ -1239,7 +1239,7 @@ r9a06g032_register_dualgate(struct r9a06g032_priv *clocks, · 83 unmodified lines | |||
| 1239 | struct clk_init_data init = {}; | 1239 | struct clk_init_data init = {}; |
| 1240 | 1240 | ||
| 1241 | /* allocate the gate */ | 1241 | /* allocate the gate */ |
| 1242 | g = kzalloc_obj(*g, GFP_KERNEL); | 1242 | g = kzalloc_obj(*g); |
| 1243 | if (!g) | 1243 | if (!g) |
| 1244 | return NULL; | 1244 | return NULL; |
| 1245 | g->clocks = clocks; | 1245 | g->clocks = clocks; |
| @@ -94,7 +94,7 @@ struct clk * __init cpg_sdh_clk_register(const char *name, · 93 unmodified lines | |||
| 94 | struct cpg_simple_notifier *csn; | 94 | struct cpg_simple_notifier *csn; |
| 95 | struct clk *clk; | 95 | struct clk *clk; |
| 96 | 96 | ||
| 97 | csn = kzalloc_obj(*csn, GFP_KERNEL); | 97 | csn = kzalloc_obj(*csn); |
| 98 | if (!csn) | 98 | if (!csn) |
| 99 | return ERR_PTR(-ENOMEM); | 99 | return ERR_PTR(-ENOMEM); |
| 100 | 100 | ||
| @@ -144,7 +144,7 @@ struct clk * __init cpg_rpc_clk_register(const char *name, · 43 unmodified lines | |||
| 144 | struct rpc_clock *rpc; | 144 | struct rpc_clock *rpc; |
| 145 | struct clk *clk; | 145 | struct clk *clk; |
| 146 | 146 | ||
| 147 | rpc = kzalloc_obj(*rpc, GFP_KERNEL); | 147 | rpc = kzalloc_obj(*rpc); |
| 148 | if (!rpc) | 148 | if (!rpc) |
| 149 | return ERR_PTR(-ENOMEM); | 149 | return ERR_PTR(-ENOMEM); |
| 150 | 150 | ||
| @@ -185,7 +185,7 @@ struct clk * __init cpg_rpcd2_clk_register(const char *name, · 34 unmodified lines | |||
| 185 | struct rpcd2_clock *rpcd2; | 185 | struct rpcd2_clock *rpcd2; |
| 186 | struct clk *clk; | 186 | struct clk *clk; |
| 187 | 187 | ||
| 188 | rpcd2 = kzalloc_obj(*rpcd2, GFP_KERNEL); | 188 | rpcd2 = kzalloc_obj(*rpcd2); |
| 189 | if (!rpcd2) | 189 | if (!rpcd2) |
| 190 | return ERR_PTR(-ENOMEM); | 190 | return ERR_PTR(-ENOMEM); |
| 191 | 191 | ||
| @@ -141,7 +141,7 @@ static struct clk * __init cpg_z_clk_register(const char *name, · 140 unmodified lines | |||
| 141 | struct cpg_z_clk *zclk; | 141 | struct cpg_z_clk *zclk; |
| 142 | struct clk *clk; | 142 | struct clk *clk; |
| 143 | 143 | ||
| 144 | zclk = kzalloc_obj(*zclk, GFP_KERNEL); | 144 | zclk = kzalloc_obj(*zclk); |
| 145 | if (!zclk) | 145 | if (!zclk) |
| 146 | return ERR_PTR(-ENOMEM); | 146 | return ERR_PTR(-ENOMEM); |
| 147 | 147 | ||
| @@ -169,14 +169,14 @@ static struct clk * __init cpg_rcan_clk_register(const char *name, · 21 unmodified lines | |||
| 169 | struct clk_gate *gate; | 169 | struct clk_gate *gate; |
| 170 | struct clk *clk; | 170 | struct clk *clk; |
| 171 | 171 | ||
| 172 | fixed = kzalloc_obj(*fixed, GFP_KERNEL); | 172 | fixed = kzalloc_obj(*fixed); |
| 173 | if (!fixed) | 173 | if (!fixed) |
| 174 | return ERR_PTR(-ENOMEM); | 174 | return ERR_PTR(-ENOMEM); |
| 175 | 175 | ||
| 176 | fixed->mult = 1; | 176 | fixed->mult = 1; |
| 177 | fixed->div = 6; | 177 | fixed->div = 6; |
| 178 | 178 | ||
| 179 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 179 | gate = kzalloc_obj(*gate); |
| 180 | if (!gate) { | 180 | if (!gate) { |
| 181 | kfree(fixed); | 181 | kfree(fixed); |
| 182 | return ERR_PTR(-ENOMEM); | 182 | return ERR_PTR(-ENOMEM); |
| @@ -213,7 +213,7 @@ static struct clk * __init cpg_adsp_clk_register(const char *name, · 30 unmodified lines | |||
| 213 | struct clk_gate *gate; | 213 | struct clk_gate *gate; |
| 214 | struct clk *clk; | 214 | struct clk *clk; |
| 215 | 215 | ||
| 216 | div = kzalloc_obj(*div, GFP_KERNEL); | 216 | div = kzalloc_obj(*div); |
| 217 | if (!div) | 217 | if (!div) |
| 218 | return ERR_PTR(-ENOMEM); | 218 | return ERR_PTR(-ENOMEM); |
| 219 | 219 | ||
| @@ -222,7 +222,7 @@ static struct clk * __init cpg_adsp_clk_register(const char *name, · 2 unmodified lines | |||
| 222 | div->table = cpg_adsp_div_table; | 222 | div->table = cpg_adsp_div_table; |
| 223 | div->lock = &cpg_lock; | 223 | div->lock = &cpg_lock; |
| 224 | 224 | ||
| 225 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 225 | gate = kzalloc_obj(*gate); |
| 226 | if (!gate) { | 226 | if (!gate) { |
| 227 | kfree(div); | 227 | kfree(div); |
| 228 | return ERR_PTR(-ENOMEM); | 228 | return ERR_PTR(-ENOMEM); |
| @@ -123,7 +123,7 @@ static struct clk * __init cpg_pll_clk_register(const char *name, · 122 unmodified lines | |||
| 123 | struct clk_init_data init = {}; | 123 | struct clk_init_data init = {}; |
| 124 | struct clk *clk; | 124 | struct clk *clk; |
| 125 | 125 | ||
| 126 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 126 | pll_clk = kzalloc_obj(*pll_clk); |
| 127 | if (!pll_clk) | 127 | if (!pll_clk) |
| 128 | return ERR_PTR(-ENOMEM); | 128 | return ERR_PTR(-ENOMEM); |
| 129 | 129 | ||
| @@ -271,7 +271,7 @@ static struct clk * __init __cpg_z_clk_register(const char *name, · 141 unmodified lines | |||
| 271 | struct cpg_z_clk *zclk; | 271 | struct cpg_z_clk *zclk; |
| 272 | struct clk *clk; | 272 | struct clk *clk; |
| 273 | 273 | ||
| 274 | zclk = kzalloc_obj(*zclk, GFP_KERNEL); | 274 | zclk = kzalloc_obj(*zclk); |
| 275 | if (!zclk) | 275 | if (!zclk) |
| 276 | return ERR_PTR(-ENOMEM); | 276 | return ERR_PTR(-ENOMEM); |
| 277 | 277 | ||
| @@ -410,7 +410,7 @@ struct clk * __init rcar_gen3_cpg_clk_register(struct device *dev, · 132 unmodified lines | |||
| 410 | if (cpg_quirks & RCKCR_CKSEL) { | 410 | if (cpg_quirks & RCKCR_CKSEL) { |
| 411 | struct cpg_simple_notifier *csn; | 411 | struct cpg_simple_notifier *csn; |
| 412 | 412 | ||
| 413 | csn = kzalloc_obj(*csn, GFP_KERNEL); | 413 | csn = kzalloc_obj(*csn); |
| 414 | if (!csn) | 414 | if (!csn) |
| 415 | return ERR_PTR(-ENOMEM); | 415 | return ERR_PTR(-ENOMEM); |
| 416 | 416 | ||
| @@ -234,7 +234,7 @@ static struct clk * __init cpg_pll_clk_register(const char *name, · 233 unmodified lines | |||
| 234 | struct cpg_pll_clk *pll_clk; | 234 | struct cpg_pll_clk *pll_clk; |
| 235 | struct clk *clk; | 235 | struct clk *clk; |
| 236 | 236 | ||
| 237 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 237 | pll_clk = kzalloc_obj(*pll_clk); |
| 238 | if (!pll_clk) | 238 | if (!pll_clk) |
| 239 | return ERR_PTR(-ENOMEM); | 239 | return ERR_PTR(-ENOMEM); |
| 240 | 240 | ||
| @@ -374,7 +374,7 @@ static struct clk * __init cpg_z_clk_register(const char *name, · 133 unmodified lines | |||
| 374 | struct cpg_z_clk *zclk; | 374 | struct cpg_z_clk *zclk; |
| 375 | struct clk *clk; | 375 | struct clk *clk; |
| 376 | 376 | ||
| 377 | zclk = kzalloc_obj(*zclk, GFP_KERNEL); | 377 | zclk = kzalloc_obj(*zclk); |
| 378 | if (!zclk) | 378 | if (!zclk) |
| 379 | return ERR_PTR(-ENOMEM); | 379 | return ERR_PTR(-ENOMEM); |
| 380 | 380 | ||
| @@ -512,7 +512,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod, · 511 unmodified lines | |||
| 512 | goto fail; | 512 | goto fail; |
| 513 | } | 513 | } |
| 514 | 514 | ||
| 515 | clock = kzalloc_obj(*clock, GFP_KERNEL); | 515 | clock = kzalloc_obj(*clock); |
| 516 | if (!clock) { | 516 | if (!clock) { |
| 517 | clk = ERR_PTR(-ENOMEM); | 517 | clk = ERR_PTR(-ENOMEM); |
| 518 | goto fail; | 518 | goto fail; |
| @@ -313,7 +313,7 @@ struct clk *rockchip_clk_register_cpuclk(const char *name, · 312 unmodified lines | |||
| 313 | return ERR_PTR(-EINVAL); | 313 | return ERR_PTR(-EINVAL); |
| 314 | } | 314 | } |
| 315 | 315 | ||
| 316 | cpuclk = kzalloc_obj(*cpuclk, GFP_KERNEL); | 316 | cpuclk = kzalloc_obj(*cpuclk); |
| 317 | if (!cpuclk) | 317 | if (!cpuclk) |
| 318 | return ERR_PTR(-ENOMEM); | 318 | return ERR_PTR(-ENOMEM); |
| 319 | 319 | ||
| @@ -479,7 +479,7 @@ struct clk *rockchip_clk_register_cpuclk_multi_pll(const char *name, · 159 unmodified lines | |||
| 479 | int ret; | 479 | int ret; |
| 480 | 480 | ||
| 481 | if (num_parents > 1) { | 481 | if (num_parents > 1) { |
| 482 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 482 | mux = kzalloc_obj(*mux); |
| 483 | if (!mux) | 483 | if (!mux) |
| 484 | return ERR_PTR(-ENOMEM); | 484 | return ERR_PTR(-ENOMEM); |
| 485 | 485 | ||
| @@ -493,7 +493,7 @@ struct clk *rockchip_clk_register_cpuclk_multi_pll(const char *name, · 7 unmodified lines | |||
| 493 | } | 493 | } |
| 494 | 494 | ||
| 495 | if (div_width > 0) { | 495 | if (div_width > 0) { |
| 496 | div = kzalloc_obj(*div, GFP_KERNEL); | 496 | div = kzalloc_obj(*div); |
| 497 | if (!div) { | 497 | if (!div) { |
| 498 | ret = -ENOMEM; | 498 | ret = -ENOMEM; |
| 499 | goto free_mux; | 499 | goto free_mux; |
| @@ -521,7 +521,7 @@ struct clk *rockchip_clk_register_cpuclk_multi_pll(const char *name, · 21 unmodified lines | |||
| 521 | goto free_div; | 521 | goto free_div; |
| 522 | } | 522 | } |
| 523 | 523 | ||
| 524 | cpuclk = kzalloc_obj(*cpuclk, GFP_KERNEL); | 524 | cpuclk = kzalloc_obj(*cpuclk); |
| 525 | if (!cpuclk) { | 525 | if (!cpuclk) { |
| 526 | ret = -ENOMEM; | 526 | ret = -ENOMEM; |
| 527 | goto unregister_clk; | 527 | goto unregister_clk; |
| @@ -100,7 +100,7 @@ struct clk *rockchip_clk_register_ddrclk(const char *name, int flags, · 99 unmodified lines | |||
| 100 | struct clk_init_data init; | 100 | struct clk_init_data init; |
| 101 | struct clk *clk; | 101 | struct clk *clk; |
| 102 | 102 | ||
| 103 | ddrclk = kzalloc_obj(*ddrclk, GFP_KERNEL); | 103 | ddrclk = kzalloc_obj(*ddrclk); |
| 104 | if (!ddrclk) | 104 | if (!ddrclk) |
| 105 | return ERR_PTR(-ENOMEM); | 105 | return ERR_PTR(-ENOMEM); |
| 106 | 106 | ||
| @@ -81,7 +81,7 @@ struct clk *rockchip_clk_register_gate_grf(const char *name, · 80 unmodified lines | |||
| 81 | return ERR_PTR(-EOPNOTSUPP); | 81 | return ERR_PTR(-EOPNOTSUPP); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 84 | gate = kzalloc_obj(*gate); |
| 85 | if (!gate) | 85 | if (!gate) |
| 86 | return ERR_PTR(-ENOMEM); | 86 | return ERR_PTR(-ENOMEM); |
| 87 | 87 | ||
| @@ -176,7 +176,7 @@ struct clk *rockchip_clk_register_halfdiv(const char *name, · 175 unmodified lines | |||
| 176 | *gate_ops = NULL; | 176 | *gate_ops = NULL; |
| 177 | 177 | ||
| 178 | if (num_parents > 1) { | 178 | if (num_parents > 1) { |
| 179 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 179 | mux = kzalloc_obj(*mux); |
| 180 | if (!mux) | 180 | if (!mux) |
| 181 | return ERR_PTR(-ENOMEM); | 181 | return ERR_PTR(-ENOMEM); |
| 182 | 182 | ||
| @@ -190,7 +190,7 @@ struct clk *rockchip_clk_register_halfdiv(const char *name, · 7 unmodified lines | |||
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | if (gate_offset >= 0) { | 192 | if (gate_offset >= 0) { |
| 193 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 193 | gate = kzalloc_obj(*gate); |
| 194 | if (!gate) | 194 | if (!gate) |
| 195 | goto err_gate; | 195 | goto err_gate; |
| 196 | 196 | ||
| @@ -202,7 +202,7 @@ struct clk *rockchip_clk_register_halfdiv(const char *name, · 5 unmodified lines | |||
| 202 | } | 202 | } |
| 203 | 203 | ||
| 204 | if (div_width > 0) { | 204 | if (div_width > 0) { |
| 205 | div = kzalloc_obj(*div, GFP_KERNEL); | 205 | div = kzalloc_obj(*div); |
| 206 | if (!div) | 206 | if (!div) |
| 207 | goto err_div; | 207 | goto err_div; |
| 208 | 208 | ||
| @@ -79,7 +79,7 @@ struct clk *rockchip_clk_register_inverter(const char *name, · 78 unmodified lines | |||
| 79 | struct rockchip_inv_clock *inv_clock; | 79 | struct rockchip_inv_clock *inv_clock; |
| 80 | struct clk *clk; | 80 | struct clk *clk; |
| 81 | 81 | ||
| 82 | inv_clock = kmalloc_obj(*inv_clock, GFP_KERNEL); | 82 | inv_clock = kmalloc_obj(*inv_clock); |
| 83 | if (!inv_clock) | 83 | if (!inv_clock) |
| 84 | return ERR_PTR(-ENOMEM); | 84 | return ERR_PTR(-ENOMEM); |
| 85 | 85 | ||
| @@ -210,7 +210,7 @@ struct clk *rockchip_clk_register_mmc(const char *name, · 209 unmodified lines | |||
| 210 | struct clk *clk; | 210 | struct clk *clk; |
| 211 | int ret; | 211 | int ret; |
| 212 | 212 | ||
| 213 | mmc_clock = kmalloc_obj(*mmc_clock, GFP_KERNEL); | 213 | mmc_clock = kmalloc_obj(*mmc_clock); |
| 214 | if (!mmc_clock) | 214 | if (!mmc_clock) |
| 215 | return ERR_PTR(-ENOMEM); | 215 | return ERR_PTR(-ENOMEM); |
| 216 | 216 | ||
| @@ -67,7 +67,7 @@ struct clk *rockchip_clk_register_muxgrf(const char *name, · 66 unmodified lines | |||
| 67 | return ERR_PTR(-ENOTSUPP); | 67 | return ERR_PTR(-ENOTSUPP); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | muxgrf_clock = kmalloc_obj(*muxgrf_clock, GFP_KERNEL); | 70 | muxgrf_clock = kmalloc_obj(*muxgrf_clock); |
| 71 | if (!muxgrf_clock) | 71 | if (!muxgrf_clock) |
| 72 | return ERR_PTR(-ENOMEM); | 72 | return ERR_PTR(-ENOMEM); |
| 73 | 73 | ||
| @@ -1076,7 +1076,7 @@ struct clk *rockchip_clk_register_pll(struct rockchip_clk_provider *ctx, · 1075 unmodified lines | |||
| 1076 | /* name the actual pll */ | 1076 | /* name the actual pll */ |
| 1077 | snprintf(pll_name, sizeof(pll_name), "pll_%s", name); | 1077 | snprintf(pll_name, sizeof(pll_name), "pll_%s", name); |
| 1078 | 1078 | ||
| 1079 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 1079 | pll = kzalloc_obj(*pll); |
| 1080 | if (!pll) | 1080 | if (!pll) |
| 1081 | return ERR_PTR(-ENOMEM); | 1081 | return ERR_PTR(-ENOMEM); |
| 1082 | 1082 | ||
| @@ -1769,7 +1769,7 @@ static void __init rk3576_clk_init(struct device_node *np) · 1768 unmodified lines | |||
| 1769 | goto err_unmap; | 1769 | goto err_unmap; |
| 1770 | } | 1770 | } |
| 1771 | 1771 | ||
| 1772 | pmu0_grf_e = kzalloc_obj(*pmu0_grf_e, GFP_KERNEL); | 1772 | pmu0_grf_e = kzalloc_obj(*pmu0_grf_e); |
| 1773 | if (!pmu0_grf_e) | 1773 | if (!pmu0_grf_e) |
| 1774 | goto err_unmap; | 1774 | goto err_unmap; |
| 1775 | 1775 | ||
| @@ -1777,7 +1777,7 @@ static void __init rk3576_clk_init(struct device_node *np) · 1 unmodified line | |||
| 1777 | pmu0_grf_e->type = grf_type_pmu0; | 1777 | pmu0_grf_e->type = grf_type_pmu0; |
| 1778 | hash_add(ctx->aux_grf_table, &pmu0_grf_e->node, grf_type_pmu0); | 1778 | hash_add(ctx->aux_grf_table, &pmu0_grf_e->node, grf_type_pmu0); |
| 1779 | 1779 | ||
| 1780 | ioc_grf_e = kzalloc_obj(*ioc_grf_e, GFP_KERNEL); | 1780 | ioc_grf_e = kzalloc_obj(*ioc_grf_e); |
| 1781 | if (!ioc_grf_e) | 1781 | if (!ioc_grf_e) |
| 1782 | goto err_free_pmu0; | 1782 | goto err_free_pmu0; |
| 1783 | 1783 | ||
| @@ -55,7 +55,7 @@ static struct clk *rockchip_clk_register_branch(const char *name, · 54 unmodified lines | |||
| 55 | int ret; | 55 | int ret; |
| 56 | 56 | ||
| 57 | if (num_parents > 1) { | 57 | if (num_parents > 1) { |
| 58 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 58 | mux = kzalloc_obj(*mux); |
| 59 | if (!mux) | 59 | if (!mux) |
| 60 | return ERR_PTR(-ENOMEM); | 60 | return ERR_PTR(-ENOMEM); |
| 61 | 61 | ||
| @@ -70,7 +70,7 @@ static struct clk *rockchip_clk_register_branch(const char *name, · 8 unmodified lines | |||
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | if (gate_offset >= 0) { | 72 | if (gate_offset >= 0) { |
| 73 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 73 | gate = kzalloc_obj(*gate); |
| 74 | if (!gate) { | 74 | if (!gate) { |
| 75 | ret = -ENOMEM; | 75 | ret = -ENOMEM; |
| 76 | goto err_gate; | 76 | goto err_gate; |
| @@ -84,7 +84,7 @@ static struct clk *rockchip_clk_register_branch(const char *name, · 7 unmodified lines | |||
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | if (div_width > 0) { | 86 | if (div_width > 0) { |
| 87 | div = kzalloc_obj(*div, GFP_KERNEL); | 87 | div = kzalloc_obj(*div); |
| 88 | if (!div) { | 88 | if (!div) { |
| 89 | ret = -ENOMEM; | 89 | ret = -ENOMEM; |
| 90 | goto err_div; | 90 | goto err_div; |
| @@ -221,7 +221,7 @@ static struct clk *rockchip_clk_register_frac_branch( · 130 unmodified lines | |||
| 221 | return ERR_PTR(-EINVAL); | 221 | return ERR_PTR(-EINVAL); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | frac = kzalloc_obj(*frac, GFP_KERNEL); | 224 | frac = kzalloc_obj(*frac); |
| 225 | if (!frac) | 225 | if (!frac) |
| 226 | return ERR_PTR(-ENOMEM); | 226 | return ERR_PTR(-ENOMEM); |
| 227 | 227 | ||
| @@ -323,7 +323,7 @@ static struct clk *rockchip_clk_register_factor_branch(const char *name, · 95 unmodified lines | |||
| 323 | div); | 323 | div); |
| 324 | } | 324 | } |
| 325 | 325 | ||
| 326 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 326 | gate = kzalloc_obj(*gate); |
| 327 | if (!gate) | 327 | if (!gate) |
| 328 | return ERR_PTR(-ENOMEM); | 328 | return ERR_PTR(-ENOMEM); |
| 329 | 329 | ||
| @@ -332,7 +332,7 @@ static struct clk *rockchip_clk_register_factor_branch(const char *name, · 2 unmodified lines | |||
| 332 | gate->bit_idx = gate_shift; | 332 | gate->bit_idx = gate_shift; |
| 333 | gate->lock = lock; | 333 | gate->lock = lock; |
| 334 | 334 | ||
| 335 | fix = kzalloc_obj(*fix, GFP_KERNEL); | 335 | fix = kzalloc_obj(*fix); |
| 336 | if (!fix) { | 336 | if (!fix) { |
| 337 | kfree(gate); | 337 | kfree(gate); |
| 338 | return ERR_PTR(-ENOMEM); | 338 | return ERR_PTR(-ENOMEM); |
| @@ -365,11 +365,11 @@ static struct rockchip_clk_provider *rockchip_clk_init_base( · 26 unmodified lines | |||
| 365 | 365 | ||
| 366 | default_clk_val = ERR_PTR(has_late_clocks ? -EPROBE_DEFER : -ENOENT); | 366 | default_clk_val = ERR_PTR(has_late_clocks ? -EPROBE_DEFER : -ENOENT); |
| 367 | 367 | ||
| 368 | ctx = kzalloc_obj(struct rockchip_clk_provider, GFP_KERNEL); | 368 | ctx = kzalloc_obj(struct rockchip_clk_provider); |
| 369 | if (!ctx) | 369 | if (!ctx) |
| 370 | return ERR_PTR(-ENOMEM); | 370 | return ERR_PTR(-ENOMEM); |
| 371 | 371 | ||
| 372 | clk_table = kzalloc_objs(struct clk *, nr_clks, GFP_KERNEL); | 372 | clk_table = kzalloc_objs(struct clk *, nr_clks); |
| 373 | if (!clk_table) | 373 | if (!clk_table) |
| 374 | goto err_free; | 374 | goto err_free; |
| 375 | 375 | ||
| @@ -96,7 +96,7 @@ void rockchip_register_softrst_lut(struct device_node *np, · 95 unmodified lines | |||
| 96 | struct rockchip_softrst *softrst; | 96 | struct rockchip_softrst *softrst; |
| 97 | int ret; | 97 | int ret; |
| 98 | 98 | ||
| 99 | softrst = kzalloc_obj(*softrst, GFP_KERNEL); | 99 | softrst = kzalloc_obj(*softrst); |
| 100 | if (!softrst) | 100 | if (!softrst) |
| 101 | return; | 101 | return; |
| 102 | 102 | ||
| @@ -660,7 +660,7 @@ static int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx, · 659 unmodified lines | |||
| 660 | return -EINVAL; | 660 | return -EINVAL; |
| 661 | } | 661 | } |
| 662 | 662 | ||
| 663 | cpuclk = kzalloc_obj(*cpuclk, GFP_KERNEL); | 663 | cpuclk = kzalloc_obj(*cpuclk); |
| 664 | if (!cpuclk) | 664 | if (!cpuclk) |
| 665 | return -ENOMEM; | 665 | return -ENOMEM; |
| 666 | 666 | ||
| @@ -1435,7 +1435,7 @@ static void __init _samsung_clk_register_pll(struct samsung_clk_provider *ctx, · 1434 unmodified lines | |||
| 1435 | struct clk_init_data init; | 1435 | struct clk_init_data init; |
| 1436 | int ret, len; | 1436 | int ret, len; |
| 1437 | 1437 | ||
| 1438 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 1438 | pll = kzalloc_obj(*pll); |
| 1439 | if (!pll) { | 1439 | if (!pll) { |
| 1440 | pr_err("%s: could not allocate pll clk %s\n", | 1440 | pr_err("%s: could not allocate pll clk %s\n", |
| 1441 | __func__, pll_clk->name); | 1441 | __func__, pll_clk->name); |
| @@ -55,7 +55,7 @@ struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump( · 54 unmodified lines | |||
| 55 | struct samsung_clk_reg_dump *rd; | 55 | struct samsung_clk_reg_dump *rd; |
| 56 | unsigned int i; | 56 | unsigned int i; |
| 57 | 57 | ||
| 58 | rd = kzalloc_objs(*rd, nr_rdump, GFP_KERNEL); | 58 | rd = kzalloc_objs(*rd, nr_rdump); |
| 59 | if (!rd) | 59 | if (!rd) |
| 60 | return NULL; | 60 | return NULL; |
| 61 | 61 | ||
| @@ -301,7 +301,7 @@ struct clk_hw *samsung_register_auto_gate(struct device *dev, · 239 unmodified lines | |||
| 301 | int ret = -EINVAL; | 301 | int ret = -EINVAL; |
| 302 | 302 | ||
| 303 | /* allocate the gate */ | 303 | /* allocate the gate */ |
| 304 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 304 | gate = kzalloc_obj(*gate); |
| 305 | if (!gate) | 305 | if (!gate) |
| 306 | return ERR_PTR(-ENOMEM); | 306 | return ERR_PTR(-ENOMEM); |
| 307 | 307 | ||
| @@ -431,7 +431,7 @@ void samsung_clk_extended_sleep_init(void __iomem *reg_base, · 123 unmodified lines | |||
| 431 | { | 431 | { |
| 432 | struct samsung_clock_reg_cache *reg_cache; | 432 | struct samsung_clock_reg_cache *reg_cache; |
| 433 | 433 | ||
| 434 | reg_cache = kzalloc_obj(struct samsung_clock_reg_cache, GFP_KERNEL); | 434 | reg_cache = kzalloc_obj(struct samsung_clock_reg_cache); |
| 435 | if (!reg_cache) | 435 | if (!reg_cache) |
| 436 | panic("could not allocate register reg_cache.\n"); | 436 | panic("could not allocate register reg_cache.\n"); |
| 437 | reg_cache->rdump = samsung_clk_alloc_reg_dump(rdump, nr_rdump); | 437 | reg_cache->rdump = samsung_clk_alloc_reg_dump(rdump, nr_rdump); |
| @@ -52,7 +52,7 @@ static void __init __socfpga_gate_init(struct device_node *node, · 51 unmodified lines | |||
| 52 | struct clk_init_data init; | 52 | struct clk_init_data init; |
| 53 | int rc; | 53 | int rc; |
| 54 | 54 | ||
| 55 | socfpga_clk = kzalloc_obj(*socfpga_clk, GFP_KERNEL); | 55 | socfpga_clk = kzalloc_obj(*socfpga_clk); |
| 56 | if (WARN_ON(!socfpga_clk)) | 56 | if (WARN_ON(!socfpga_clk)) |
| 57 | return; | 57 | return; |
| 58 | 58 | ||
| @@ -132,7 +132,7 @@ struct clk_hw *s10_register_gate(const struct stratix10_gate_clock *clks, void _ · 131 unmodified lines | |||
| 132 | const char *parent_name = clks->parent_name; | 132 | const char *parent_name = clks->parent_name; |
| 133 | int ret; | 133 | int ret; |
| 134 | 134 | ||
| 135 | socfpga_clk = kzalloc_obj(*socfpga_clk, GFP_KERNEL); | 135 | socfpga_clk = kzalloc_obj(*socfpga_clk); |
| 136 | if (!socfpga_clk) | 136 | if (!socfpga_clk) |
| 137 | return NULL; | 137 | return NULL; |
| 138 | 138 | ||
| @@ -190,7 +190,7 @@ struct clk_hw *agilex_register_gate(const struct stratix10_gate_clock *clks, voi · 51 unmodified lines | |||
| 190 | const char *parent_name = clks->parent_name; | 190 | const char *parent_name = clks->parent_name; |
| 191 | int ret; | 191 | int ret; |
| 192 | 192 | ||
| 193 | socfpga_clk = kzalloc_obj(*socfpga_clk, GFP_KERNEL); | 193 | socfpga_clk = kzalloc_obj(*socfpga_clk); |
| 194 | if (!socfpga_clk) | 194 | if (!socfpga_clk) |
| 195 | return NULL; | 195 | return NULL; |
| 196 | 196 | ||
| @@ -247,7 +247,7 @@ struct clk_hw *agilex5_register_gate(const struct agilex5_gate_clock *clks, void · 50 unmodified lines | |||
| 247 | struct clk_init_data init; | 247 | struct clk_init_data init; |
| 248 | int ret; | 248 | int ret; |
| 249 | 249 | ||
| 250 | socfpga_clk = kzalloc_obj(*socfpga_clk, GFP_KERNEL); | 250 | socfpga_clk = kzalloc_obj(*socfpga_clk); |
| 251 | if (!socfpga_clk) | 251 | if (!socfpga_clk) |
| 252 | return NULL; | 252 | return NULL; |
| 253 | 253 | ||
| @@ -147,7 +147,7 @@ void __init socfpga_gate_init(struct device_node *node) · 146 unmodified lines | |||
| 147 | struct clk_ops *ops; | 147 | struct clk_ops *ops; |
| 148 | int rc; | 148 | int rc; |
| 149 | 149 | ||
| 150 | socfpga_clk = kzalloc_obj(*socfpga_clk, GFP_KERNEL); | 150 | socfpga_clk = kzalloc_obj(*socfpga_clk); |
| 151 | if (WARN_ON(!socfpga_clk)) | 151 | if (WARN_ON(!socfpga_clk)) |
| 152 | return; | 152 | return; |
| 153 | 153 | ||
| @@ -72,7 +72,7 @@ static void __init __socfpga_periph_init(struct device_node *node, · 71 unmodified lines | |||
| 72 | 72 | ||
| 73 | of_property_read_u32(node, "reg", ®); | 73 | of_property_read_u32(node, "reg", ®); |
| 74 | 74 | ||
| 75 | periph_clk = kzalloc_obj(*periph_clk, GFP_KERNEL); | 75 | periph_clk = kzalloc_obj(*periph_clk); |
| 76 | if (WARN_ON(!periph_clk)) | 76 | if (WARN_ON(!periph_clk)) |
| 77 | return; | 77 | return; |
| 78 | 78 | ||
| @@ -108,7 +108,7 @@ struct clk_hw *s10_register_periph(const struct stratix10_perip_c_clock *clks, · 107 unmodified lines | |||
| 108 | const char *parent_name = clks->parent_name; | 108 | const char *parent_name = clks->parent_name; |
| 109 | int ret; | 109 | int ret; |
| 110 | 110 | ||
| 111 | periph_clk = kzalloc_obj(*periph_clk, GFP_KERNEL); | 111 | periph_clk = kzalloc_obj(*periph_clk); |
| 112 | if (WARN_ON(!periph_clk)) | 112 | if (WARN_ON(!periph_clk)) |
| 113 | return NULL; | 113 | return NULL; |
| 114 | 114 | ||
| @@ -144,7 +144,7 @@ struct clk_hw *n5x_register_periph(const struct n5x_perip_c_clock *clks, · 29 unmodified lines | |||
| 144 | const char *parent_name = clks->parent_name; | 144 | const char *parent_name = clks->parent_name; |
| 145 | int ret; | 145 | int ret; |
| 146 | 146 | ||
| 147 | periph_clk = kzalloc_obj(*periph_clk, GFP_KERNEL); | 147 | periph_clk = kzalloc_obj(*periph_clk); |
| 148 | if (WARN_ON(!periph_clk)) | 148 | if (WARN_ON(!periph_clk)) |
| 149 | return NULL; | 149 | return NULL; |
| 150 | 150 | ||
| @@ -179,7 +179,7 @@ struct clk_hw *s10_register_cnt_periph(const struct stratix10_perip_cnt_clock *c · 28 unmodified lines | |||
| 179 | const char *parent_name = clks->parent_name; | 179 | const char *parent_name = clks->parent_name; |
| 180 | int ret; | 180 | int ret; |
| 181 | 181 | ||
| 182 | periph_clk = kzalloc_obj(*periph_clk, GFP_KERNEL); | 182 | periph_clk = kzalloc_obj(*periph_clk); |
| 183 | if (WARN_ON(!periph_clk)) | 183 | if (WARN_ON(!periph_clk)) |
| 184 | return NULL; | 184 | return NULL; |
| 185 | 185 | ||
| @@ -224,7 +224,7 @@ struct clk_hw *agilex5_register_cnt_periph(const struct agilex5_perip_cnt_clock · 38 unmodified lines | |||
| 224 | const char *name = clks->name; | 224 | const char *name = clks->name; |
| 225 | int ret; | 225 | int ret; |
| 226 | 226 | ||
| 227 | periph_clk = kzalloc_obj(*periph_clk, GFP_KERNEL); | 227 | periph_clk = kzalloc_obj(*periph_clk); |
| 228 | if (WARN_ON(!periph_clk)) | 228 | if (WARN_ON(!periph_clk)) |
| 229 | return NULL; | 229 | return NULL; |
| 230 | 230 | ||
| @@ -62,7 +62,7 @@ static void __init __socfpga_periph_init(struct device_node *node, · 61 unmodified lines | |||
| 62 | 62 | ||
| 63 | of_property_read_u32(node, "reg", ®); | 63 | of_property_read_u32(node, "reg", ®); |
| 64 | 64 | ||
| 65 | periph_clk = kzalloc_obj(*periph_clk, GFP_KERNEL); | 65 | periph_clk = kzalloc_obj(*periph_clk); |
| 66 | if (WARN_ON(!periph_clk)) | 66 | if (WARN_ON(!periph_clk)) |
| 67 | return; | 67 | return; |
| 68 | 68 | ||
| @@ -78,7 +78,7 @@ static void __init __socfpga_pll_init(struct device_node *node, · 77 unmodified lines | |||
| 78 | 78 | ||
| 79 | of_property_read_u32(node, "reg", ®); | 79 | of_property_read_u32(node, "reg", ®); |
| 80 | 80 | ||
| 81 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 81 | pll_clk = kzalloc_obj(*pll_clk); |
| 82 | if (WARN_ON(!pll_clk)) | 82 | if (WARN_ON(!pll_clk)) |
| 83 | return; | 83 | return; |
| 84 | 84 | ||
| @@ -196,7 +196,7 @@ struct clk_hw *s10_register_pll(const struct stratix10_pll_clock *clks, · 195 unmodified lines | |||
| 196 | const char *name = clks->name; | 196 | const char *name = clks->name; |
| 197 | int ret; | 197 | int ret; |
| 198 | 198 | ||
| 199 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 199 | pll_clk = kzalloc_obj(*pll_clk); |
| 200 | if (WARN_ON(!pll_clk)) | 200 | if (WARN_ON(!pll_clk)) |
| 201 | return NULL; | 201 | return NULL; |
| 202 | 202 | ||
| @@ -236,7 +236,7 @@ struct clk_hw *agilex_register_pll(const struct stratix10_pll_clock *clks, · 33 unmodified lines | |||
| 236 | const char *name = clks->name; | 236 | const char *name = clks->name; |
| 237 | int ret; | 237 | int ret; |
| 238 | 238 | ||
| 239 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 239 | pll_clk = kzalloc_obj(*pll_clk); |
| 240 | if (WARN_ON(!pll_clk)) | 240 | if (WARN_ON(!pll_clk)) |
| 241 | return NULL; | 241 | return NULL; |
| 242 | 242 | ||
| @@ -275,7 +275,7 @@ struct clk_hw *n5x_register_pll(const struct stratix10_pll_clock *clks, · 32 unmodified lines | |||
| 275 | const char *name = clks->name; | 275 | const char *name = clks->name; |
| 276 | int ret; | 276 | int ret; |
| 277 | 277 | ||
| 278 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 278 | pll_clk = kzalloc_obj(*pll_clk); |
| 279 | if (WARN_ON(!pll_clk)) | 279 | if (WARN_ON(!pll_clk)) |
| 280 | return NULL; | 280 | return NULL; |
| 281 | 281 | ||
| @@ -314,7 +314,7 @@ struct clk_hw *agilex5_register_pll(const struct agilex5_pll_clock *clks, · 32 unmodified lines | |||
| 314 | const char *name = clks->name; | 314 | const char *name = clks->name; |
| 315 | int ret; | 315 | int ret; |
| 316 | 316 | ||
| 317 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 317 | pll_clk = kzalloc_obj(*pll_clk); |
| 318 | if (WARN_ON(!pll_clk)) | 318 | if (WARN_ON(!pll_clk)) |
| 319 | return NULL; | 319 | return NULL; |
| 320 | 320 | ||
| @@ -84,7 +84,7 @@ static void __init __socfpga_pll_init(struct device_node *node, · 83 unmodified lines | |||
| 84 | 84 | ||
| 85 | of_property_read_u32(node, "reg", ®); | 85 | of_property_read_u32(node, "reg", ®); |
| 86 | 86 | ||
| 87 | pll_clk = kzalloc_obj(*pll_clk, GFP_KERNEL); | 87 | pll_clk = kzalloc_obj(*pll_clk); |
| 88 | if (WARN_ON(!pll_clk)) | 88 | if (WARN_ON(!pll_clk)) |
| 89 | return; | 89 | return; |
| 90 | 90 | ||
| @@ -91,7 +91,7 @@ static int spacemit_ccu_reset_register(struct device *dev, · 90 unmodified lines | |||
| 91 | if (!reset_name) | 91 | if (!reset_name) |
| 92 | return 0; | 92 | return 0; |
| 93 | 93 | ||
| 94 | cadev = kzalloc_obj(*cadev, GFP_KERNEL); | 94 | cadev = kzalloc_obj(*cadev); |
| 95 | if (!cadev) | 95 | if (!cadev) |
| 96 | return -ENOMEM; | 96 | return -ENOMEM; |
| 97 | 97 | ||
| @@ -147,7 +147,7 @@ struct clk *clk_register_aux(const char *aux_name, const char *gate_name, · 146 unmodified lines | |||
| 147 | return ERR_PTR(-EINVAL); | 147 | return ERR_PTR(-EINVAL); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | aux = kzalloc_obj(*aux, GFP_KERNEL); | 150 | aux = kzalloc_obj(*aux); |
| 151 | if (!aux) | 151 | if (!aux) |
| 152 | return ERR_PTR(-ENOMEM); | 152 | return ERR_PTR(-ENOMEM); |
| 153 | 153 | ||
| @@ -134,7 +134,7 @@ struct clk *clk_register_frac(const char *name, const char *parent_name, · 133 unmodified lines | |||
| 134 | return ERR_PTR(-EINVAL); | 134 | return ERR_PTR(-EINVAL); |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | frac = kzalloc_obj(*frac, GFP_KERNEL); | 137 | frac = kzalloc_obj(*frac); |
| 138 | if (!frac) | 138 | if (!frac) |
| 139 | return ERR_PTR(-ENOMEM); | 139 | return ERR_PTR(-ENOMEM); |
| 140 | 140 | ||
| @@ -123,7 +123,7 @@ struct clk *clk_register_gpt(const char *name, const char *parent_name, unsigned · 122 unmodified lines | |||
| 123 | return ERR_PTR(-EINVAL); | 123 | return ERR_PTR(-EINVAL); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | gpt = kzalloc_obj(*gpt, GFP_KERNEL); | 126 | gpt = kzalloc_obj(*gpt); |
| 127 | if (!gpt) | 127 | if (!gpt) |
| 128 | return ERR_PTR(-ENOMEM); | 128 | return ERR_PTR(-ENOMEM); |
| 129 | 129 | ||
| @@ -293,11 +293,11 @@ struct clk *clk_register_vco_pll(const char *vco_name, const char *pll_name, · 292 unmodified lines | |||
| 293 | return ERR_PTR(-EINVAL); | 293 | return ERR_PTR(-EINVAL); |
| 294 | } | 294 | } |
| 295 | 295 | ||
| 296 | vco = kzalloc_obj(*vco, GFP_KERNEL); | 296 | vco = kzalloc_obj(*vco); |
| 297 | if (!vco) | 297 | if (!vco) |
| 298 | return ERR_PTR(-ENOMEM); | 298 | return ERR_PTR(-ENOMEM); |
| 299 | 299 | ||
| 300 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 300 | pll = kzalloc_obj(*pll); |
| 301 | if (!pll) | 301 | if (!pll) |
| 302 | goto free_vco; | 302 | goto free_vco; |
| 303 | 303 | ||
| @@ -155,7 +155,7 @@ static int _sprd_pll_set_rate(const struct sprd_pll *pll, · 154 unmodified lines | |||
| 155 | unsigned long kint, nint; | 155 | unsigned long kint, nint; |
| 156 | u64 tmp, refin, fvco = rate; | 156 | u64 tmp, refin, fvco = rate; |
| 157 | 157 | ||
| 158 | cfg = kzalloc_objs(*cfg, regs_num, GFP_KERNEL); | 158 | cfg = kzalloc_objs(*cfg, regs_num); |
| 159 | if (!cfg) | 159 | if (!cfg) |
| 160 | return -ENOMEM; | 160 | return -ENOMEM; |
| 161 | 161 | ||
| @@ -213,7 +213,7 @@ static struct clk *clk_register_flexgen(const char *name, · 212 unmodified lines | |||
| 213 | u32 xbar_shift; | 213 | u32 xbar_shift; |
| 214 | void __iomem *xbar_reg, *fdiv_reg; | 214 | void __iomem *xbar_reg, *fdiv_reg; |
| 215 | 215 | ||
| 216 | fgxbar = kzalloc_obj(struct flexgen, GFP_KERNEL); | 216 | fgxbar = kzalloc_obj(struct flexgen); |
| 217 | if (!fgxbar) | 217 | if (!fgxbar) |
| 218 | return ERR_PTR(-ENOMEM); | 218 | return ERR_PTR(-ENOMEM); |
| 219 | 219 | ||
| @@ -596,7 +596,7 @@ static void __init st_of_flexgen_setup(struct device_node *np) · 376 unmodified lines | |||
| 596 | clk_mode = data->mode; | 596 | clk_mode = data->mode; |
| 597 | } | 597 | } |
| 598 | 598 | ||
| 599 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 599 | clk_data = kzalloc_obj(*clk_data); |
| 600 | if (!clk_data) | 600 | if (!clk_data) |
| 601 | goto err; | 601 | goto err; |
| 602 | 602 | ||
| @@ -617,7 +617,7 @@ static void __init st_of_flexgen_setup(struct device_node *np) · 14 unmodified lines | |||
| 617 | if (!clk_data->clks) | 617 | if (!clk_data->clks) |
| 618 | goto err; | 618 | goto err; |
| 619 | 619 | ||
| 620 | rlock = kzalloc_obj(spinlock_t, GFP_KERNEL); | 620 | rlock = kzalloc_obj(spinlock_t); |
| 621 | if (!rlock) | 621 | if (!rlock) |
| 622 | goto err; | 622 | goto err; |
| 623 | 623 | ||
| @@ -454,7 +454,7 @@ static struct clk * __init st_clk_register_quadfs_pll( · 453 unmodified lines | |||
| 454 | if (WARN_ON(!name || !parent_name)) | 454 | if (WARN_ON(!name || !parent_name)) |
| 455 | return ERR_PTR(-EINVAL); | 455 | return ERR_PTR(-EINVAL); |
| 456 | 456 | ||
| 457 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 457 | pll = kzalloc_obj(*pll); |
| 458 | if (!pll) | 458 | if (!pll) |
| 459 | return ERR_PTR(-ENOMEM); | 459 | return ERR_PTR(-ENOMEM); |
| 460 | 460 | ||
| @@ -894,7 +894,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth( · 433 unmodified lines | |||
| 894 | if (WARN_ON(!name || !parent_name)) | 894 | if (WARN_ON(!name || !parent_name)) |
| 895 | return ERR_PTR(-EINVAL); | 895 | return ERR_PTR(-EINVAL); |
| 896 | 896 | ||
| 897 | fs = kzalloc_obj(*fs, GFP_KERNEL); | 897 | fs = kzalloc_obj(*fs); |
| 898 | if (!fs) | 898 | if (!fs) |
| 899 | return ERR_PTR(-ENOMEM); | 899 | return ERR_PTR(-ENOMEM); |
| 900 | 900 | ||
| @@ -926,12 +926,12 @@ static void __init st_of_create_quadfs_fsynths( · 25 unmodified lines | |||
| 926 | struct clk_onecell_data *clk_data; | 926 | struct clk_onecell_data *clk_data; |
| 927 | int fschan; | 927 | int fschan; |
| 928 | 928 | ||
| 929 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 929 | clk_data = kzalloc_obj(*clk_data); |
| 930 | if (!clk_data) | 930 | if (!clk_data) |
| 931 | return; | 931 | return; |
| 932 | 932 | ||
| 933 | clk_data->clk_num = QUADFS_MAX_CHAN; | 933 | clk_data->clk_num = QUADFS_MAX_CHAN; |
| 934 | clk_data->clks = kzalloc_objs(struct clk *, QUADFS_MAX_CHAN, GFP_KERNEL); | 934 | clk_data->clks = kzalloc_objs(struct clk *, QUADFS_MAX_CHAN); |
| 935 | 935 | ||
| 936 | if (!clk_data->clks) { | 936 | if (!clk_data->clks) { |
| 937 | kfree(clk_data); | 937 | kfree(clk_data); |
| @@ -1012,7 +1012,7 @@ static void __init st_of_quadfs_setup(struct device_node *np, · 74 unmodified lines | |||
| 1012 | if (!pll_name) | 1012 | if (!pll_name) |
| 1013 | return; | 1013 | return; |
| 1014 | 1014 | ||
| 1015 | lock = kzalloc_obj(*lock, GFP_KERNEL); | 1015 | lock = kzalloc_obj(*lock); |
| 1016 | if (!lock) | 1016 | if (!lock) |
| 1017 | goto err_exit; | 1017 | goto err_exit; |
| 1018 | 1018 | ||
| @@ -656,7 +656,7 @@ static struct clk * __init clkgen_pll_register(const char *parent_name, · 655 unmodified lines | |||
| 656 | struct clk *clk; | 656 | struct clk *clk; |
| 657 | struct clk_init_data init; | 657 | struct clk_init_data init; |
| 658 | 658 | ||
| 659 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 659 | pll = kzalloc_obj(*pll); |
| 660 | if (!pll) | 660 | if (!pll) |
| 661 | return ERR_PTR(-ENOMEM); | 661 | return ERR_PTR(-ENOMEM); |
| 662 | 662 | ||
| @@ -716,7 +716,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name, · 53 unmodified lines | |||
| 716 | 716 | ||
| 717 | flags = pll_flags | CLK_GET_RATE_NOCACHE | CLK_SET_RATE_PARENT; | 717 | flags = pll_flags | CLK_GET_RATE_NOCACHE | CLK_SET_RATE_PARENT; |
| 718 | 718 | ||
| 719 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 719 | gate = kzalloc_obj(*gate); |
| 720 | if (!gate) | 720 | if (!gate) |
| 721 | return ERR_PTR(-ENOMEM); | 721 | return ERR_PTR(-ENOMEM); |
| 722 | 722 | ||
| @@ -725,7 +725,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name, · 2 unmodified lines | |||
| 725 | gate->bit_idx = pll_data->odf_gate[odf].shift; | 725 | gate->bit_idx = pll_data->odf_gate[odf].shift; |
| 726 | gate->lock = odf_lock; | 726 | gate->lock = odf_lock; |
| 727 | 727 | ||
| 728 | div = kzalloc_obj(*div, GFP_KERNEL); | 728 | div = kzalloc_obj(*div); |
| 729 | if (!div) { | 729 | if (!div) { |
| 730 | kfree(gate); | 730 | kfree(gate); |
| 731 | return ERR_PTR(-ENOMEM); | 731 | return ERR_PTR(-ENOMEM); |
| @@ -783,7 +783,7 @@ static void __init clkgen_c32_pll_setup(struct device_node *np, · 51 unmodified lines | |||
| 783 | 783 | ||
| 784 | num_odfs = datac->data->num_odfs; | 784 | num_odfs = datac->data->num_odfs; |
| 785 | 785 | ||
| 786 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 786 | clk_data = kzalloc_obj(*clk_data); |
| 787 | if (!clk_data) | 787 | if (!clk_data) |
| 788 | return; | 788 | return; |
| 789 | 789 | ||
| @@ -347,7 +347,7 @@ int jh7110_reset_controller_register(struct jh71x0_clk_priv *priv, · 346 unmodified lines | |||
| 347 | struct auxiliary_device *adev; | 347 | struct auxiliary_device *adev; |
| 348 | int ret; | 348 | int ret; |
| 349 | 349 | ||
| 350 | rdev = kzalloc_obj(*rdev, GFP_KERNEL); | 350 | rdev = kzalloc_obj(*rdev); |
| 351 | if (!rdev) | 351 | if (!rdev) |
| 352 | return -ENOMEM; | 352 | return -ENOMEM; |
| 353 | 353 | ||
| @@ -130,7 +130,7 @@ int stm32_rcc_reset_init(struct device *dev, struct clk_stm32_reset_data *data, · 129 unmodified lines | |||
| 130 | { | 130 | { |
| 131 | struct stm32_reset_data *reset_data; | 131 | struct stm32_reset_data *reset_data; |
| 132 | 132 | ||
| 133 | reset_data = kzalloc_obj(*reset_data, GFP_KERNEL); | 133 | reset_data = kzalloc_obj(*reset_data); |
| 134 | if (!reset_data) | 134 | if (!reset_data) |
| 135 | return -ENOMEM; | 135 | return -ENOMEM; |
| 136 | 136 | ||
| @@ -242,7 +242,7 @@ void of_sunxi_ccu_probe(struct device_node *node, void __iomem *reg, · 241 unmodified lines | |||
| 242 | struct sunxi_ccu *ccu; | 242 | struct sunxi_ccu *ccu; |
| 243 | int ret; | 243 | int ret; |
| 244 | 244 | ||
| 245 | ccu = kzalloc_obj(*ccu, GFP_KERNEL); | 245 | ccu = kzalloc_obj(*ccu); |
| 246 | if (!ccu) | 246 | if (!ccu) |
| 247 | return; | 247 | return; |
| 248 | 248 | ||
| @@ -26,10 +26,10 @@ static void __init sun4i_osc_clk_setup(struct device_node *node) · 25 unmodified lines | |||
| 26 | return; | 26 | return; |
| 27 | 27 | ||
| 28 | /* allocate fixed-rate and gate clock structs */ | 28 | /* allocate fixed-rate and gate clock structs */ |
| 29 | fixed = kzalloc_obj(struct clk_fixed_rate, GFP_KERNEL); | 29 | fixed = kzalloc_obj(struct clk_fixed_rate); |
| 30 | if (!fixed) | 30 | if (!fixed) |
| 31 | return; | 31 | return; |
| 32 | gate = kzalloc_obj(struct clk_gate, GFP_KERNEL); | 32 | gate = kzalloc_obj(struct clk_gate); |
| 33 | if (!gate) | 33 | if (!gate) |
| 34 | goto err_free_fixed; | 34 | goto err_free_fixed; |
| 35 | 35 | ||
| @@ -32,11 +32,11 @@ static void __init sun4i_mod1_clk_setup(struct device_node *node) · 31 unmodified lines | |||
| 32 | if (IS_ERR(reg)) | 32 | if (IS_ERR(reg)) |
| 33 | return; | 33 | return; |
| 34 | 34 | ||
| 35 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 35 | mux = kzalloc_obj(*mux); |
| 36 | if (!mux) | 36 | if (!mux) |
| 37 | goto err_unmap; | 37 | goto err_unmap; |
| 38 | 38 | ||
| 39 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 39 | gate = kzalloc_obj(*gate); |
| 40 | if (!gate) | 40 | if (!gate) |
| 41 | goto err_free_mux; | 41 | goto err_free_mux; |
| 42 | 42 | ||
| @@ -50,11 +50,11 @@ static void __init sun4i_pll2_setup(struct device_node *node, · 49 unmodified lines | |||
| 50 | if (IS_ERR(reg)) | 50 | if (IS_ERR(reg)) |
| 51 | return; | 51 | return; |
| 52 | 52 | ||
| 53 | clk_data = kzalloc_obj(*clk_data, GFP_KERNEL); | 53 | clk_data = kzalloc_obj(*clk_data); |
| 54 | if (!clk_data) | 54 | if (!clk_data) |
| 55 | goto err_unmap; | 55 | goto err_unmap; |
| 56 | 56 | ||
| 57 | clks = kzalloc_objs(struct clk *, SUN4I_PLL2_OUTPUTS, GFP_KERNEL); | 57 | clks = kzalloc_objs(struct clk *, SUN4I_PLL2_OUTPUTS); |
| 58 | if (!clks) | 58 | if (!clks) |
| 59 | goto err_free_data; | 59 | goto err_free_data; |
| 60 | 60 | ||
| @@ -71,7 +71,7 @@ static void __init sun4i_pll2_setup(struct device_node *node, · 10 unmodified lines | |||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | /* Setup the gate part of the PLL2 */ | 73 | /* Setup the gate part of the PLL2 */ |
| 74 | gate = kzalloc_obj(struct clk_gate, GFP_KERNEL); | 74 | gate = kzalloc_obj(struct clk_gate); |
| 75 | if (!gate) | 75 | if (!gate) |
| 76 | goto err_unregister_prediv; | 76 | goto err_unregister_prediv; |
| 77 | 77 | ||
| @@ -80,7 +80,7 @@ static void __init sun4i_pll2_setup(struct device_node *node, · 2 unmodified lines | |||
| 80 | gate->lock = &sun4i_a10_pll2_lock; | 80 | gate->lock = &sun4i_a10_pll2_lock; |
| 81 | 81 | ||
| 82 | /* Setup the multiplier part of the PLL2 */ | 82 | /* Setup the multiplier part of the PLL2 */ |
| 83 | mult = kzalloc_obj(struct clk_multiplier, GFP_KERNEL); | 83 | mult = kzalloc_obj(struct clk_multiplier); |
| 84 | if (!mult) | 84 | if (!mult) |
| 85 | goto err_free_gate; | 85 | goto err_free_gate; |
| 86 | 86 | ||
| @@ -97,11 +97,11 @@ static void __init sun4i_ve_clk_setup(struct device_node *node) · 96 unmodified lines | |||
| 97 | if (IS_ERR(reg)) | 97 | if (IS_ERR(reg)) |
| 98 | return; | 98 | return; |
| 99 | 99 | ||
| 100 | div = kzalloc_obj(*div, GFP_KERNEL); | 100 | div = kzalloc_obj(*div); |
| 101 | if (!div) | 101 | if (!div) |
| 102 | goto err_unmap; | 102 | goto err_unmap; |
| 103 | 103 | ||
| 104 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 104 | gate = kzalloc_obj(*gate); |
| 105 | if (!gate) | 105 | if (!gate) |
| 106 | goto err_free_div; | 106 | goto err_free_div; |
| 107 | 107 | ||
| @@ -129,7 +129,7 @@ static void __init sun4i_ve_clk_setup(struct device_node *node) · 21 unmodified lines | |||
| 129 | if (err) | 129 | if (err) |
| 130 | goto err_unregister_clk; | 130 | goto err_unregister_clk; |
| 131 | 131 | ||
| 132 | reset_data = kzalloc_obj(*reset_data, GFP_KERNEL); | 132 | reset_data = kzalloc_obj(*reset_data); |
| 133 | if (!reset_data) | 133 | if (!reset_data) |
| 134 | goto err_del_provider; | 134 | goto err_del_provider; |
| 135 | 135 | ||
| @@ -63,11 +63,11 @@ static void __init sun7i_a20_gmac_clk_setup(struct device_node *node) · 62 unmodified lines | |||
| 63 | return; | 63 | return; |
| 64 | 64 | ||
| 65 | /* allocate mux and gate clock structs */ | 65 | /* allocate mux and gate clock structs */ |
| 66 | mux = kzalloc_obj(struct clk_mux, GFP_KERNEL); | 66 | mux = kzalloc_obj(struct clk_mux); |
| 67 | if (!mux) | 67 | if (!mux) |
| 68 | return; | 68 | return; |
| 69 | 69 | ||
| 70 | gate = kzalloc_obj(struct clk_gate, GFP_KERNEL); | 70 | gate = kzalloc_obj(struct clk_gate); |
| 71 | if (!gate) | 71 | if (!gate) |
| 72 | goto free_mux; | 72 | goto free_mux; |
| 73 | 73 | ||
| @@ -200,7 +200,7 @@ static struct clk *__sunxi_factors_register(struct device_node *node, · 199 unmodified lines | |||
| 200 | else | 200 | else |
| 201 | of_property_read_string(node, "clock-output-names", &clk_name); | 201 | of_property_read_string(node, "clock-output-names", &clk_name); |
| 202 | 202 | ||
| 203 | factors = kzalloc_obj(struct clk_factors, GFP_KERNEL); | 203 | factors = kzalloc_obj(struct clk_factors); |
| 204 | if (!factors) | 204 | if (!factors) |
| 205 | goto err_factors; | 205 | goto err_factors; |
| 206 | 206 | ||
| @@ -213,7 +213,7 @@ static struct clk *__sunxi_factors_register(struct device_node *node, · 6 unmodified lines | |||
| 213 | 213 | ||
| 214 | /* Add a gate if this factor clock can be gated */ | 214 | /* Add a gate if this factor clock can be gated */ |
| 215 | if (data->enable) { | 215 | if (data->enable) { |
| 216 | gate = kzalloc_obj(struct clk_gate, GFP_KERNEL); | 216 | gate = kzalloc_obj(struct clk_gate); |
| 217 | if (!gate) | 217 | if (!gate) |
| 218 | goto err_gate; | 218 | goto err_gate; |
| 219 | 219 | ||
| @@ -228,7 +228,7 @@ static struct clk *__sunxi_factors_register(struct device_node *node, · 8 unmodified lines | |||
| 228 | 228 | ||
| 229 | /* Add a mux if this factor clock can be muxed */ | 229 | /* Add a mux if this factor clock can be muxed */ |
| 230 | if (data->mux) { | 230 | if (data->mux) { |
| 231 | mux = kzalloc_obj(struct clk_mux, GFP_KERNEL); | 231 | mux = kzalloc_obj(struct clk_mux); |
| 232 | if (!mux) | 232 | if (!mux) |
| 233 | goto err_mux; | 233 | goto err_mux; |
| 234 | 234 | ||
| @@ -300,11 +300,11 @@ static void __init sunxi_mmc_setup(struct device_node *node, · 299 unmodified lines | |||
| 300 | return; | 300 | return; |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | clk_data = kmalloc_obj(*clk_data, GFP_KERNEL); | 303 | clk_data = kmalloc_obj(*clk_data); |
| 304 | if (!clk_data) | 304 | if (!clk_data) |
| 305 | return; | 305 | return; |
| 306 | 306 | ||
| 307 | clk_data->clks = kzalloc_objs(*clk_data->clks, 3, GFP_KERNEL); | 307 | clk_data->clks = kzalloc_objs(*clk_data->clks, 3); |
| 308 | if (!clk_data->clks) | 308 | if (!clk_data->clks) |
| 309 | goto err_free_data; | 309 | goto err_free_data; |
| 310 | 310 | ||
| @@ -323,7 +323,7 @@ static void __init sunxi_mmc_setup(struct device_node *node, · 12 unmodified lines | |||
| 323 | }; | 323 | }; |
| 324 | struct mmc_phase *phase; | 324 | struct mmc_phase *phase; |
| 325 | 325 | ||
| 326 | phase = kmalloc_obj(*phase, GFP_KERNEL); | 326 | phase = kmalloc_obj(*phase); |
| 327 | if (!phase) | 327 | if (!phase) |
| 328 | continue; | 328 | continue; |
| 329 | 329 | ||
| @@ -34,14 +34,14 @@ static void __init sunxi_simple_gates_setup(struct device_node *node, · 33 unmodified lines | |||
| 34 | 34 | ||
| 35 | clk_parent = of_clk_get_parent_name(node, 0); | 35 | clk_parent = of_clk_get_parent_name(node, 0); |
| 36 | 36 | ||
| 37 | clk_data = kmalloc_obj(struct clk_onecell_data, GFP_KERNEL); | 37 | clk_data = kmalloc_obj(struct clk_onecell_data); |
| 38 | if (!clk_data) | 38 | if (!clk_data) |
| 39 | goto err_unmap; | 39 | goto err_unmap; |
| 40 | 40 | ||
| 41 | number = of_property_count_u32_elems(node, "clock-indices"); | 41 | number = of_property_count_u32_elems(node, "clock-indices"); |
| 42 | of_property_read_u32_index(node, "clock-indices", number - 1, &number); | 42 | of_property_read_u32_index(node, "clock-indices", number - 1, &number); |
| 43 | 43 | ||
| 44 | clk_data->clks = kzalloc_objs(struct clk *, number + 1, GFP_KERNEL); | 44 | clk_data->clks = kzalloc_objs(struct clk *, number + 1); |
| 45 | if (!clk_data->clks) | 45 | if (!clk_data->clks) |
| 46 | goto err_free_data; | 46 | goto err_free_data; |
| 47 | 47 | ||
| @@ -126,7 +126,7 @@ static void __init sun4i_a10_display_init(struct device_node *node, · 125 unmodified lines | |||
| 126 | goto unmap; | 126 | goto unmap; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 129 | mux = kzalloc_obj(*mux); |
| 130 | if (!mux) | 130 | if (!mux) |
| 131 | goto unmap; | 131 | goto unmap; |
| 132 | 132 | ||
| @@ -135,7 +135,7 @@ static void __init sun4i_a10_display_init(struct device_node *node, · 2 unmodified lines | |||
| 135 | mux->mask = (1 << data->width_mux) - 1; | 135 | mux->mask = (1 << data->width_mux) - 1; |
| 136 | mux->lock = &sun4i_a10_display_lock; | 136 | mux->lock = &sun4i_a10_display_lock; |
| 137 | 137 | ||
| 138 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 138 | gate = kzalloc_obj(*gate); |
| 139 | if (!gate) | 139 | if (!gate) |
| 140 | goto free_mux; | 140 | goto free_mux; |
| 141 | 141 | ||
| @@ -144,7 +144,7 @@ static void __init sun4i_a10_display_init(struct device_node *node, · 2 unmodified lines | |||
| 144 | gate->lock = &sun4i_a10_display_lock; | 144 | gate->lock = &sun4i_a10_display_lock; |
| 145 | 145 | ||
| 146 | if (data->has_div) { | 146 | if (data->has_div) { |
| 147 | div = kzalloc_obj(*div, GFP_KERNEL); | 147 | div = kzalloc_obj(*div); |
| 148 | if (!div) | 148 | if (!div) |
| 149 | goto free_gate; | 149 | goto free_gate; |
| 150 | 150 | ||
| @@ -175,7 +175,7 @@ static void __init sun4i_a10_display_init(struct device_node *node, · 24 unmodified lines | |||
| 175 | if (!data->num_rst) | 175 | if (!data->num_rst) |
| 176 | return; | 176 | return; |
| 177 | 177 | ||
| 178 | reset_data = kzalloc_obj(*reset_data, GFP_KERNEL); | 178 | reset_data = kzalloc_obj(*reset_data); |
| 179 | if (!reset_data) | 179 | if (!reset_data) |
| 180 | goto free_of_clk; | 180 | goto free_of_clk; |
| 181 | 181 | ||
| @@ -37,7 +37,7 @@ static void __init sun4i_a10_pll3_setup(struct device_node *node) · 36 unmodified lines | |||
| 37 | return; | 37 | return; |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 40 | gate = kzalloc_obj(*gate); |
| 41 | if (!gate) | 41 | if (!gate) |
| 42 | goto err_unmap; | 42 | goto err_unmap; |
| 43 | 43 | ||
| @@ -45,7 +45,7 @@ static void __init sun4i_a10_pll3_setup(struct device_node *node) · 1 unmodified line | |||
| 45 | gate->bit_idx = SUN4I_A10_PLL3_GATE_BIT; | 45 | gate->bit_idx = SUN4I_A10_PLL3_GATE_BIT; |
| 46 | gate->lock = &sun4i_a10_pll3_lock; | 46 | gate->lock = &sun4i_a10_pll3_lock; |
| 47 | 47 | ||
| 48 | mult = kzalloc_obj(*mult, GFP_KERNEL); | 48 | mult = kzalloc_obj(*mult); |
| 49 | if (!mult) | 49 | if (!mult) |
| 50 | goto err_free_gate; | 50 | goto err_free_gate; |
| 51 | 51 | ||
| @@ -246,7 +246,7 @@ static void __init tcon_ch1_setup(struct device_node *node) · 245 unmodified lines | |||
| 246 | goto err_unmap; | 246 | goto err_unmap; |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | tclk = kzalloc_obj(*tclk, GFP_KERNEL); | 249 | tclk = kzalloc_obj(*tclk); |
| 250 | if (!tclk) | 250 | if (!tclk) |
| 251 | goto err_unmap; | 251 | goto err_unmap; |
| 252 | 252 | ||
| @@ -44,14 +44,14 @@ static void __init sun8i_h3_bus_gates_init(struct device_node *node) · 43 unmodified lines | |||
| 44 | parents[i] = of_clk_get_parent_name(node, idx); | 44 | parents[i] = of_clk_get_parent_name(node, idx); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | clk_data = kmalloc_obj(struct clk_onecell_data, GFP_KERNEL); | 47 | clk_data = kmalloc_obj(struct clk_onecell_data); |
| 48 | if (!clk_data) | 48 | if (!clk_data) |
| 49 | goto err_unmap; | 49 | goto err_unmap; |
| 50 | 50 | ||
| 51 | number = of_property_count_u32_elems(node, "clock-indices"); | 51 | number = of_property_count_u32_elems(node, "clock-indices"); |
| 52 | of_property_read_u32_index(node, "clock-indices", number - 1, &number); | 52 | of_property_read_u32_index(node, "clock-indices", number - 1, &number); |
| 53 | 53 | ||
| 54 | clk_data->clks = kzalloc_objs(struct clk *, number + 1, GFP_KERNEL); | 54 | clk_data->clks = kzalloc_objs(struct clk *, number + 1); |
| 55 | if (!clk_data->clks) | 55 | if (!clk_data->clks) |
| 56 | goto err_free_data; | 56 | goto err_free_data; |
| 57 | 57 | ||
| @@ -44,15 +44,15 @@ static void __init sun8i_a23_mbus_setup(struct device_node *node) · 43 unmodified lines | |||
| 44 | goto err_free_parents; | 44 | goto err_free_parents; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | div = kzalloc_obj(*div, GFP_KERNEL); | 47 | div = kzalloc_obj(*div); |
| 48 | if (!div) | 48 | if (!div) |
| 49 | goto err_unmap; | 49 | goto err_unmap; |
| 50 | 50 | ||
| 51 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 51 | mux = kzalloc_obj(*mux); |
| 52 | if (!mux) | 52 | if (!mux) |
| 53 | goto err_free_div; | 53 | goto err_free_div; |
| 54 | 54 | ||
| 55 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 55 | gate = kzalloc_obj(*gate); |
| 56 | if (!gate) | 56 | if (!gate) |
| 57 | goto err_free_mux; | 57 | goto err_free_mux; |
| 58 | 58 | ||
| @@ -191,7 +191,7 @@ static void sun9i_a80_cpus_setup(struct device_node *node) · 190 unmodified lines | |||
| 191 | struct clk *clk; | 191 | struct clk *clk; |
| 192 | int ret; | 192 | int ret; |
| 193 | 193 | ||
| 194 | cpus = kzalloc_obj(*cpus, GFP_KERNEL); | 194 | cpus = kzalloc_obj(*cpus); |
| 195 | if (!cpus) | 195 | if (!cpus) |
| 196 | return; | 196 | return; |
| 197 | 197 | ||
| @@ -204,7 +204,7 @@ static void sun9i_a80_cpus_setup(struct device_node *node) · 6 unmodified lines | |||
| 204 | /* we have a mux, we will have >1 parents */ | 204 | /* we have a mux, we will have >1 parents */ |
| 205 | ret = of_clk_parent_fill(node, parents, SUN9I_CPUS_MAX_PARENTS); | 205 | ret = of_clk_parent_fill(node, parents, SUN9I_CPUS_MAX_PARENTS); |
| 206 | 206 | ||
| 207 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 207 | mux = kzalloc_obj(*mux); |
| 208 | if (!mux) | 208 | if (!mux) |
| 209 | goto err_unmap; | 209 | goto err_unmap; |
| 210 | 210 | ||
| @@ -991,11 +991,11 @@ static struct clk ** __init sunxi_divs_clk_setup(struct device_node *node, · 990 unmodified lines | |||
| 991 | return NULL; | 991 | return NULL; |
| 992 | } | 992 | } |
| 993 | 993 | ||
| 994 | clk_data = kmalloc_obj(struct clk_onecell_data, GFP_KERNEL); | 994 | clk_data = kmalloc_obj(struct clk_onecell_data); |
| 995 | if (!clk_data) | 995 | if (!clk_data) |
| 996 | goto out_unmap; | 996 | goto out_unmap; |
| 997 | 997 | ||
| 998 | clks = kzalloc_objs(*clks, ndivs, GFP_KERNEL); | 998 | clks = kzalloc_objs(*clks, ndivs); |
| 999 | if (!clks) | 999 | if (!clks) |
| 1000 | goto free_clkdata; | 1000 | goto free_clkdata; |
| 1001 | 1001 | ||
| @@ -1022,7 +1022,7 @@ static struct clk ** __init sunxi_divs_clk_setup(struct device_node *node, · 20 unmodified lines | |||
| 1022 | 1022 | ||
| 1023 | /* If this leaf clock can be gated, create a gate */ | 1023 | /* If this leaf clock can be gated, create a gate */ |
| 1024 | if (data->div[i].gate) { | 1024 | if (data->div[i].gate) { |
| 1025 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 1025 | gate = kzalloc_obj(*gate); |
| 1026 | if (!gate) | 1026 | if (!gate) |
| 1027 | goto free_clks; | 1027 | goto free_clks; |
| 1028 | 1028 | ||
| @@ -1035,7 +1035,7 @@ static struct clk ** __init sunxi_divs_clk_setup(struct device_node *node, · 6 unmodified lines | |||
| 1035 | 1035 | ||
| 1036 | /* Leaves can be fixed or configurable divisors */ | 1036 | /* Leaves can be fixed or configurable divisors */ |
| 1037 | if (data->div[i].fixed) { | 1037 | if (data->div[i].fixed) { |
| 1038 | fix_factor = kzalloc_obj(*fix_factor, GFP_KERNEL); | 1038 | fix_factor = kzalloc_obj(*fix_factor); |
| 1039 | if (!fix_factor) | 1039 | if (!fix_factor) |
| 1040 | goto free_gate; | 1040 | goto free_gate; |
| 1041 | 1041 | ||
| @@ -1045,7 +1045,7 @@ static struct clk ** __init sunxi_divs_clk_setup(struct device_node *node, · 3 unmodified lines | |||
| 1045 | rate_hw = &fix_factor->hw; | 1045 | rate_hw = &fix_factor->hw; |
| 1046 | rate_ops = &clk_fixed_factor_ops; | 1046 | rate_ops = &clk_fixed_factor_ops; |
| 1047 | } else { | 1047 | } else { |
| 1048 | divider = kzalloc_obj(*divider, GFP_KERNEL); | 1048 | divider = kzalloc_obj(*divider); |
| 1049 | if (!divider) | 1049 | if (!divider) |
| 1050 | goto free_gate; | 1050 | goto free_gate; |
| 1051 | 1051 | ||
| @@ -113,11 +113,11 @@ static void __init sunxi_usb_clk_setup(struct device_node *node, · 112 unmodified lines | |||
| 113 | qty = find_last_bit((unsigned long *)&data->clk_mask, | 113 | qty = find_last_bit((unsigned long *)&data->clk_mask, |
| 114 | SUNXI_USB_MAX_SIZE); | 114 | SUNXI_USB_MAX_SIZE); |
| 115 | 115 | ||
| 116 | clk_data = kmalloc_obj(struct clk_onecell_data, GFP_KERNEL); | 116 | clk_data = kmalloc_obj(struct clk_onecell_data); |
| 117 | if (!clk_data) | 117 | if (!clk_data) |
| 118 | return; | 118 | return; |
| 119 | 119 | ||
| 120 | clk_data->clks = kzalloc_objs(struct clk *, qty + 1, GFP_KERNEL); | 120 | clk_data->clks = kzalloc_objs(struct clk *, qty + 1); |
| 121 | if (!clk_data->clks) { | 121 | if (!clk_data->clks) { |
| 122 | kfree(clk_data); | 122 | kfree(clk_data); |
| 123 | return; | 123 | return; |
| @@ -144,7 +144,7 @@ static void __init sunxi_usb_clk_setup(struct device_node *node, · 20 unmodified lines | |||
| 144 | if (data->reset_mask == 0) | 144 | if (data->reset_mask == 0) |
| 145 | return; | 145 | return; |
| 146 | 146 | ||
| 147 | reset_data = kzalloc_obj(*reset_data, GFP_KERNEL); | 147 | reset_data = kzalloc_obj(*reset_data); |
| 148 | if (!reset_data) | 148 | if (!reset_data) |
| 149 | return; | 149 | return; |
| 150 | 150 | ||
| @@ -50,7 +50,7 @@ struct clk *tegra_clk_register_sync_source(const char *name, · 49 unmodified lines | |||
| 50 | struct clk_init_data init; | 50 | struct clk_init_data init; |
| 51 | struct clk *clk; | 51 | struct clk *clk; |
| 52 | 52 | ||
| 53 | sync = kzalloc_obj(*sync, GFP_KERNEL); | 53 | sync = kzalloc_obj(*sync); |
| 54 | if (!sync) { | 54 | if (!sync) { |
| 55 | pr_err("%s: could not allocate sync source clk\n", __func__); | 55 | pr_err("%s: could not allocate sync source clk\n", __func__); |
| 56 | return ERR_PTR(-ENOMEM); | 56 | return ERR_PTR(-ENOMEM); |
| @@ -434,7 +434,7 @@ static int tegra_bpmp_probe_clocks(struct tegra_bpmp *bpmp, · 433 unmodified lines | |||
| 434 | 434 | ||
| 435 | dev_dbg(bpmp->dev, "maximum clock ID: %u\n", max_id); | 435 | dev_dbg(bpmp->dev, "maximum clock ID: %u\n", max_id); |
| 436 | 436 | ||
| 437 | clocks = kzalloc_objs(*clocks, max_id + 1, GFP_KERNEL); | 437 | clocks = kzalloc_objs(*clocks, max_id + 1); |
| 438 | if (!clocks) | 438 | if (!clocks) |
| 439 | return -ENOMEM; | 439 | return -ENOMEM; |
| 440 | 440 | ||
| @@ -148,7 +148,7 @@ struct clk *tegra_clk_register_divider(const char *name, · 147 unmodified lines | |||
| 148 | struct clk *clk; | 148 | struct clk *clk; |
| 149 | struct clk_init_data init; | 149 | struct clk_init_data init; |
| 150 | 150 | ||
| 151 | divider = kzalloc_obj(*divider, GFP_KERNEL); | 151 | divider = kzalloc_obj(*divider); |
| 152 | if (!divider) { | 152 | if (!divider) { |
| 153 | pr_err("%s: could not allocate fractional divider clk\n", | 153 | pr_err("%s: could not allocate fractional divider clk\n", |
| 154 | __func__); | 154 | __func__); |
| @@ -84,7 +84,7 @@ struct clk *tegra_clk_register_periph_fixed(const char *name, · 83 unmodified lines | |||
| 84 | if (!regs) | 84 | if (!regs) |
| 85 | return ERR_PTR(-EINVAL); | 85 | return ERR_PTR(-EINVAL); |
| 86 | 86 | ||
| 87 | fixed = kzalloc_obj(*fixed, GFP_KERNEL); | 87 | fixed = kzalloc_obj(*fixed); |
| 88 | if (!fixed) | 88 | if (!fixed) |
| 89 | return ERR_PTR(-ENOMEM); | 89 | return ERR_PTR(-ENOMEM); |
| 90 | 90 | ||
| @@ -146,7 +146,7 @@ struct clk *tegra_clk_register_periph_gate(const char *name, · 145 unmodified lines | |||
| 146 | if (!pregs) | 146 | if (!pregs) |
| 147 | return ERR_PTR(-EINVAL); | 147 | return ERR_PTR(-EINVAL); |
| 148 | 148 | ||
| 149 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 149 | gate = kzalloc_obj(*gate); |
| 150 | if (!gate) { | 150 | if (!gate) { |
| 151 | pr_err("%s: could not allocate periph gate clk\n", __func__); | 151 | pr_err("%s: could not allocate periph gate clk\n", __func__); |
| 152 | return ERR_PTR(-ENOMEM); | 152 | return ERR_PTR(-ENOMEM); |
| @@ -93,7 +93,7 @@ struct clk *tegra_clk_register_pll_out(const char *name, · 92 unmodified lines | |||
| 93 | struct clk *clk; | 93 | struct clk *clk; |
| 94 | struct clk_init_data init; | 94 | struct clk_init_data init; |
| 95 | 95 | ||
| 96 | pll_out = kzalloc_obj(*pll_out, GFP_KERNEL); | 96 | pll_out = kzalloc_obj(*pll_out); |
| 97 | if (!pll_out) | 97 | if (!pll_out) |
| 98 | return ERR_PTR(-ENOMEM); | 98 | return ERR_PTR(-ENOMEM); |
| 99 | 99 | ||
| @@ -1882,7 +1882,7 @@ static struct tegra_clk_pll *_tegra_init_pll(void __iomem *clk_base, · 1881 unmodified lines | |||
| 1882 | { | 1882 | { |
| 1883 | struct tegra_clk_pll *pll; | 1883 | struct tegra_clk_pll *pll; |
| 1884 | 1884 | ||
| 1885 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 1885 | pll = kzalloc_obj(*pll); |
| 1886 | if (!pll) | 1886 | if (!pll) |
| 1887 | return ERR_PTR(-ENOMEM); | 1887 | return ERR_PTR(-ENOMEM); |
| 1888 | 1888 | ||
| @@ -250,7 +250,7 @@ struct clk *tegra_clk_register_sdmmc_mux_div(const char *name, · 249 unmodified lines | |||
| 250 | if (!bank) | 250 | if (!bank) |
| 251 | return ERR_PTR(-EINVAL); | 251 | return ERR_PTR(-EINVAL); |
| 252 | 252 | ||
| 253 | sdmmc_mux = kzalloc_obj(*sdmmc_mux, GFP_KERNEL); | 253 | sdmmc_mux = kzalloc_obj(*sdmmc_mux); |
| 254 | if (!sdmmc_mux) | 254 | if (!sdmmc_mux) |
| 255 | return ERR_PTR(-ENOMEM); | 255 | return ERR_PTR(-ENOMEM); |
| 256 | 256 | ||
| @@ -207,7 +207,7 @@ struct clk *tegra_clk_register_super_mux(const char *name, · 206 unmodified lines | |||
| 207 | struct clk *clk; | 207 | struct clk *clk; |
| 208 | struct clk_init_data init; | 208 | struct clk_init_data init; |
| 209 | 209 | ||
| 210 | super = kzalloc_obj(*super, GFP_KERNEL); | 210 | super = kzalloc_obj(*super); |
| 211 | if (!super) | 211 | if (!super) |
| 212 | return ERR_PTR(-ENOMEM); | 212 | return ERR_PTR(-ENOMEM); |
| 213 | 213 | ||
| @@ -243,7 +243,7 @@ struct clk *tegra_clk_register_super_clk(const char *name, · 29 unmodified lines | |||
| 243 | struct clk *clk; | 243 | struct clk *clk; |
| 244 | struct clk_init_data init; | 244 | struct clk_init_data init; |
| 245 | 245 | ||
| 246 | super = kzalloc_obj(*super, GFP_KERNEL); | 246 | super = kzalloc_obj(*super); |
| 247 | if (!super) | 247 | if (!super) |
| 248 | return ERR_PTR(-ENOMEM); | 248 | return ERR_PTR(-ENOMEM); |
| 249 | 249 | ||
| @@ -142,7 +142,7 @@ struct clk *tegra_clk_register_super_cclk(const char *name, · 141 unmodified lines | |||
| 142 | if (WARN_ON(cclk_super)) | 142 | if (WARN_ON(cclk_super)) |
| 143 | return ERR_PTR(-EBUSY); | 143 | return ERR_PTR(-EBUSY); |
| 144 | 144 | ||
| 145 | super = kzalloc_obj(*super, GFP_KERNEL); | 145 | super = kzalloc_obj(*super); |
| 146 | if (!super) | 146 | if (!super) |
| 147 | return ERR_PTR(-ENOMEM); | 147 | return ERR_PTR(-ENOMEM); |
| 148 | 148 | ||
| @@ -492,7 +492,7 @@ struct clk *tegra124_clk_register_emc(void __iomem *base, struct device_node *np · 491 unmodified lines | |||
| 492 | struct clk *clk; | 492 | struct clk *clk; |
| 493 | int err; | 493 | int err; |
| 494 | 494 | ||
| 495 | tegra = kzalloc_objs(*tegra, 1, GFP_KERNEL); | 495 | tegra = kzalloc_objs(*tegra, 1); |
| 496 | if (!tegra) | 496 | if (!tegra) |
| 497 | return ERR_PTR(-ENOMEM); | 497 | return ERR_PTR(-ENOMEM); |
| 498 | 498 | ||
| @@ -249,7 +249,7 @@ struct clk *tegra20_clk_register_emc(void __iomem *ioaddr, bool low_jitter) · 248 unmodified lines | |||
| 249 | struct clk_init_data init; | 249 | struct clk_init_data init; |
| 250 | struct clk *clk; | 250 | struct clk *clk; |
| 251 | 251 | ||
| 252 | emc = kzalloc_obj(*emc, GFP_KERNEL); | 252 | emc = kzalloc_obj(*emc); |
| 253 | if (!emc) | 253 | if (!emc) |
| 254 | return NULL; | 254 | return NULL; |
| 255 | 255 | ||
| @@ -278,7 +278,7 @@ struct clk *tegra210_clk_register_emc(struct device_node *np, · 277 unmodified lines | |||
| 278 | struct clk_init_data init; | 278 | struct clk_init_data init; |
| 279 | struct clk *clk; | 279 | struct clk *clk; |
| 280 | 280 | ||
| 281 | emc = kzalloc_obj(*emc, GFP_KERNEL); | 281 | emc = kzalloc_obj(*emc); |
| 282 | if (!emc) | 282 | if (!emc) |
| 283 | return ERR_PTR(-ENOMEM); | 283 | return ERR_PTR(-ENOMEM); |
| 284 | 284 | ||
| @@ -3705,7 +3705,7 @@ static void tegra210_mbist_clk_init(void) · 3704 unmodified lines | |||
| 3705 | if (!num_clks) | 3705 | if (!num_clks) |
| 3706 | continue; | 3706 | continue; |
| 3707 | 3707 | ||
| 3708 | clk_data = kmalloc_objs(*clk_data, num_clks, GFP_KERNEL); | 3708 | clk_data = kmalloc_objs(*clk_data, num_clks); |
| 3709 | if (WARN_ON(!clk_data)) | 3709 | if (WARN_ON(!clk_data)) |
| 3710 | return; | 3710 | return; |
| 3711 | 3711 | ||
| @@ -234,7 +234,7 @@ struct clk ** __init tegra_clk_init(void __iomem *regs, int num, int banks) · 233 unmodified lines | |||
| 234 | 234 | ||
| 235 | periph_banks = banks; | 235 | periph_banks = banks; |
| 236 | 236 | ||
| 237 | clks = kzalloc_objs(struct clk *, num, GFP_KERNEL); | 237 | clks = kzalloc_objs(struct clk *, num); |
| 238 | if (!clks) { | 238 | if (!clks) { |
| 239 | kfree(periph_clk_enb_refcnt); | 239 | kfree(periph_clk_enb_refcnt); |
| 240 | return NULL; | 240 | return NULL; |
| @@ -183,9 +183,9 @@ static void __init of_dra7_apll_setup(struct device_node *node) · 182 unmodified lines | |||
| 183 | const char **parent_names = NULL; | 183 | const char **parent_names = NULL; |
| 184 | int ret; | 184 | int ret; |
| 185 | 185 | ||
| 186 | ad = kzalloc_obj(*ad, GFP_KERNEL); | 186 | ad = kzalloc_obj(*ad); |
| 187 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 187 | clk_hw = kzalloc_obj(*clk_hw); |
| 188 | init = kzalloc_obj(*init, GFP_KERNEL); | 188 | init = kzalloc_obj(*init); |
| 189 | if (!ad || !clk_hw || !init) | 189 | if (!ad || !clk_hw || !init) |
| 190 | goto cleanup; | 190 | goto cleanup; |
| 191 | 191 | ||
| @@ -347,9 +347,9 @@ static void __init of_omap2_apll_setup(struct device_node *node) · 155 unmodified lines | |||
| 347 | u32 val; | 347 | u32 val; |
| 348 | int ret; | 348 | int ret; |
| 349 | 349 | ||
| 350 | ad = kzalloc_obj(*ad, GFP_KERNEL); | 350 | ad = kzalloc_obj(*ad); |
| 351 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 351 | clk_hw = kzalloc_obj(*clk_hw); |
| 352 | init = kzalloc_obj(*init, GFP_KERNEL); | 352 | init = kzalloc_obj(*init); |
| 353 | 353 | ||
| 354 | if (!ad || !clk_hw || !init) | 354 | if (!ad || !clk_hw || !init) |
| 355 | goto cleanup; | 355 | goto cleanup; |
| @@ -191,7 +191,7 @@ int __init of_ti_clk_autoidle_setup(struct device_node *node) · 190 unmodified lines | |||
| 191 | if (of_property_read_u32(node, "ti,autoidle-shift", &shift)) | 191 | if (of_property_read_u32(node, "ti,autoidle-shift", &shift)) |
| 192 | return 0; | 192 | return 0; |
| 193 | 193 | ||
| 194 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 194 | clk = kzalloc_obj(*clk); |
| 195 | 195 | ||
| 196 | if (!clk) | 196 | if (!clk) |
| 197 | return -ENOMEM; | 197 | return -ENOMEM; |
| @@ -170,7 +170,7 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node) · 169 unmodified lines | |||
| 170 | const char *name; | 170 | const char *name; |
| 171 | struct clk *clk; | 171 | struct clk *clk; |
| 172 | 172 | ||
| 173 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 173 | clk_hw = kzalloc_obj(*clk_hw); |
| 174 | if (!clk_hw) { | 174 | if (!clk_hw) { |
| 175 | pr_err("%s: could not allocate dra7_atl_desc\n", __func__); | 175 | pr_err("%s: could not allocate dra7_atl_desc\n", __func__); |
| 176 | return; | 176 | return; |
| @@ -268,7 +268,7 @@ int __init ti_clk_retry_init(struct device_node *node, void *user, · 267 unmodified lines | |||
| 268 | struct clk_init_item *retry; | 268 | struct clk_init_item *retry; |
| 269 | 269 | ||
| 270 | pr_debug("%pOFn: adding to retry list...\n", node); | 270 | pr_debug("%pOFn: adding to retry list...\n", node); |
| 271 | retry = kzalloc_obj(*retry, GFP_KERNEL); | 271 | retry = kzalloc_obj(*retry); |
| 272 | if (!retry) | 272 | if (!retry) |
| 273 | return -ENOMEM; | 273 | return -ENOMEM; |
| 274 | 274 | ||
| @@ -411,7 +411,7 @@ int __init omap2_clk_provider_init(struct device_node *parent, int index, · 136 unmodified lines | |||
| 411 | /* add clocks node info */ | 411 | /* add clocks node info */ |
| 412 | clocks_node_ptr[index] = clocks; | 412 | clocks_node_ptr[index] = clocks; |
| 413 | 413 | ||
| 414 | io = kzalloc_obj(*io, GFP_KERNEL); | 414 | io = kzalloc_obj(*io); |
| 415 | if (!io) | 415 | if (!io) |
| 416 | return -ENOMEM; | 416 | return -ENOMEM; |
| 417 | 417 | ||
| @@ -576,7 +576,7 @@ int ti_clk_add_alias(struct clk *clk, const char *con) · 158 unmodified lines | |||
| 576 | if (IS_ERR(clk)) | 576 | if (IS_ERR(clk)) |
| 577 | return PTR_ERR(clk); | 577 | return PTR_ERR(clk); |
| 578 | 578 | ||
| 579 | cl = kzalloc_obj(*cl, GFP_KERNEL); | 579 | cl = kzalloc_obj(*cl); |
| 580 | if (!cl) | 580 | if (!cl) |
| 581 | return -ENOMEM; | 581 | return -ENOMEM; |
| 582 | 582 | ||
| @@ -297,7 +297,7 @@ _ti_clkctrl_clk_register(struct omap_clkctrl_provider *provider, · 296 unmodified lines | |||
| 297 | ti_clk_get_features()->flags & | 297 | ti_clk_get_features()->flags & |
| 298 | TI_CLK_CLKCTRL_COMPAT); | 298 | TI_CLK_CLKCTRL_COMPAT); |
| 299 | 299 | ||
| 300 | clkctrl_clk = kzalloc_obj(*clkctrl_clk, GFP_KERNEL); | 300 | clkctrl_clk = kzalloc_obj(*clkctrl_clk); |
| 301 | if (!init.name || !clkctrl_clk) { | 301 | if (!init.name || !clkctrl_clk) { |
| 302 | ret = -ENOMEM; | 302 | ret = -ENOMEM; |
| 303 | goto cleanup; | 303 | goto cleanup; |
| @@ -337,7 +337,7 @@ _ti_clkctrl_setup_gate(struct omap_clkctrl_provider *provider, · 33 unmodified lines | |||
| 337 | { | 337 | { |
| 338 | struct clk_hw_omap *clk_hw; | 338 | struct clk_hw_omap *clk_hw; |
| 339 | 339 | ||
| 340 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 340 | clk_hw = kzalloc_obj(*clk_hw); |
| 341 | if (!clk_hw) | 341 | if (!clk_hw) |
| 342 | return; | 342 | return; |
| 343 | 343 | ||
| @@ -360,7 +360,7 @@ _ti_clkctrl_setup_mux(struct omap_clkctrl_provider *provider, · 16 unmodified lines | |||
| 360 | int num_parents = 0; | 360 | int num_parents = 0; |
| 361 | const char * const *pname; | 361 | const char * const *pname; |
| 362 | 362 | ||
| 363 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 363 | mux = kzalloc_obj(*mux); |
| 364 | if (!mux) | 364 | if (!mux) |
| 365 | return; | 365 | return; |
| 366 | 366 | ||
| @@ -395,7 +395,7 @@ _ti_clkctrl_setup_div(struct omap_clkctrl_provider *provider, · 28 unmodified lines | |||
| 395 | const struct omap_clkctrl_div_data *div_data = data->data; | 395 | const struct omap_clkctrl_div_data *div_data = data->data; |
| 396 | u8 div_flags = 0; | 396 | u8 div_flags = 0; |
| 397 | 397 | ||
| 398 | div = kzalloc_obj(*div, GFP_KERNEL); | 398 | div = kzalloc_obj(*div); |
| 399 | if (!div) | 399 | if (!div) |
| 400 | return; | 400 | return; |
| 401 | 401 | ||
| @@ -579,7 +579,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) · 177 unmodified lines | |||
| 579 | return; | 579 | return; |
| 580 | } | 580 | } |
| 581 | 581 | ||
| 582 | provider = kzalloc_obj(*provider, GFP_KERNEL); | 582 | provider = kzalloc_obj(*provider); |
| 583 | if (!provider) | 583 | if (!provider) |
| 584 | return; | 584 | return; |
| 585 | 585 | ||
| @@ -650,7 +650,7 @@ clkdm_found: · 64 unmodified lines | |||
| 650 | continue; | 650 | continue; |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | hw = kzalloc_obj(*hw, GFP_KERNEL); | 653 | hw = kzalloc_obj(*hw); |
| 654 | if (!hw) | 654 | if (!hw) |
| 655 | return; | 655 | return; |
| 656 | 656 | ||
| @@ -683,7 +683,7 @@ clkdm_found: · 26 unmodified lines | |||
| 683 | if (!init.name) | 683 | if (!init.name) |
| 684 | goto cleanup; | 684 | goto cleanup; |
| 685 | 685 | ||
| 686 | clkctrl_clk = kzalloc_obj(*clkctrl_clk, GFP_KERNEL); | 686 | clkctrl_clk = kzalloc_obj(*clkctrl_clk); |
| 687 | if (!clkctrl_clk) | 687 | if (!clkctrl_clk) |
| 688 | goto cleanup; | 688 | goto cleanup; |
| 689 | 689 | ||
| @@ -211,7 +211,7 @@ static void __init of_ti_composite_clk_setup(struct device_node *node) · 210 unmodified lines | |||
| 211 | return; | 211 | return; |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | cclk = kzalloc_obj(*cclk, GFP_KERNEL); | 214 | cclk = kzalloc_obj(*cclk); |
| 215 | if (!cclk) | 215 | if (!cclk) |
| 216 | return; | 216 | return; |
| 217 | 217 | ||
| @@ -253,7 +253,7 @@ int __init ti_clk_add_component(struct device_node *node, struct clk_hw *hw, · 35 unmodified lines | |||
| 253 | 253 | ||
| 254 | of_clk_parent_fill(node, parent_names, num_parents); | 254 | of_clk_parent_fill(node, parent_names, num_parents); |
| 255 | 255 | ||
| 256 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 256 | clk = kzalloc_obj(*clk); |
| 257 | if (!clk) { | 257 | if (!clk) { |
| 258 | kfree(parent_names); | 258 | kfree(parent_names); |
| 259 | return -ENOMEM; | 259 | return -ENOMEM; |
| @@ -357,7 +357,7 @@ int ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div, · 356 unmodified lines | |||
| 357 | 357 | ||
| 358 | num_dividers = i; | 358 | num_dividers = i; |
| 359 | 359 | ||
| 360 | tmp = kzalloc_objs(*tmp, valid_div + 1, GFP_KERNEL); | 360 | tmp = kzalloc_objs(*tmp, valid_div + 1); |
| 361 | if (!tmp) | 361 | if (!tmp) |
| 362 | return -ENOMEM; | 362 | return -ENOMEM; |
| 363 | 363 | ||
| @@ -413,7 +413,7 @@ static int __init ti_clk_get_div_table(struct device_node *node, · 49 unmodified lines | |||
| 413 | return -EINVAL; | 413 | return -EINVAL; |
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | table = kzalloc_objs(*table, valid_div + 1, GFP_KERNEL); | 416 | table = kzalloc_objs(*table, valid_div + 1); |
| 417 | if (!table) | 417 | if (!table) |
| 418 | return -ENOMEM; | 418 | return -ENOMEM; |
| 419 | 419 | ||
| @@ -517,7 +517,7 @@ static void __init of_ti_divider_clk_setup(struct device_node *node) · 97 unmodified lines | |||
| 517 | u32 flags = 0; | 517 | u32 flags = 0; |
| 518 | struct clk_omap_divider *div; | 518 | struct clk_omap_divider *div; |
| 519 | 519 | ||
| 520 | div = kzalloc_obj(*div, GFP_KERNEL); | 520 | div = kzalloc_obj(*div); |
| 521 | if (!div) | 521 | if (!div) |
| 522 | return; | 522 | return; |
| 523 | 523 | ||
| @@ -542,7 +542,7 @@ static void __init of_ti_composite_divider_clk_setup(struct device_node *node) · 18 unmodified lines | |||
| 542 | struct clk_omap_divider *div; | 542 | struct clk_omap_divider *div; |
| 543 | u32 tmp; | 543 | u32 tmp; |
| 544 | 544 | ||
| 545 | div = kzalloc_obj(*div, GFP_KERNEL); | 545 | div = kzalloc_obj(*div); |
| 546 | if (!div) | 546 | if (!div) |
| 547 | return; | 547 | return; |
| 548 | 548 | ||
| @@ -222,7 +222,7 @@ static void _register_dpll_x2(struct device_node *node, · 221 unmodified lines | |||
| 222 | return; | 222 | return; |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 225 | clk_hw = kzalloc_obj(*clk_hw); |
| 226 | if (!clk_hw) | 226 | if (!clk_hw) |
| 227 | return; | 227 | return; |
| 228 | 228 | ||
| @@ -281,8 +281,8 @@ static void __init of_ti_dpll_setup(struct device_node *node, · 52 unmodified lines | |||
| 281 | u32 min_div; | 281 | u32 min_div; |
| 282 | 282 | ||
| 283 | dd = kmemdup(ddt, sizeof(*dd), GFP_KERNEL); | 283 | dd = kmemdup(ddt, sizeof(*dd), GFP_KERNEL); |
| 284 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 284 | clk_hw = kzalloc_obj(*clk_hw); |
| 285 | init = kzalloc_obj(*init, GFP_KERNEL); | 285 | init = kzalloc_obj(*init); |
| 286 | if (!dd || !clk_hw || !init) | 286 | if (!dd || !clk_hw || !init) |
| 287 | goto cleanup; | 287 | goto cleanup; |
| 288 | 288 | ||
| @@ -499,7 +499,7 @@ static struct clk * __init ti_fapll_synth_setup(struct fapll_data *fd, · 498 unmodified lines | |||
| 499 | struct fapll_synth *synth; | 499 | struct fapll_synth *synth; |
| 500 | struct clk *clk = ERR_PTR(-ENOMEM); | 500 | struct clk *clk = ERR_PTR(-ENOMEM); |
| 501 | 501 | ||
| 502 | init = kzalloc_obj(*init, GFP_KERNEL); | 502 | init = kzalloc_obj(*init); |
| 503 | if (!init) | 503 | if (!init) |
| 504 | return ERR_PTR(-ENOMEM); | 504 | return ERR_PTR(-ENOMEM); |
| 505 | 505 | ||
| @@ -508,7 +508,7 @@ static struct clk * __init ti_fapll_synth_setup(struct fapll_data *fd, · 2 unmodified lines | |||
| 508 | init->parent_names = &parent; | 508 | init->parent_names = &parent; |
| 509 | init->num_parents = 1; | 509 | init->num_parents = 1; |
| 510 | 510 | ||
| 511 | synth = kzalloc_obj(*synth, GFP_KERNEL); | 511 | synth = kzalloc_obj(*synth); |
| 512 | if (!synth) | 512 | if (!synth) |
| 513 | goto free; | 513 | goto free; |
| 514 | 514 | ||
| @@ -544,7 +544,7 @@ static void __init ti_fapll_setup(struct device_node *node) · 29 unmodified lines | |||
| 544 | const char *name; | 544 | const char *name; |
| 545 | int i; | 545 | int i; |
| 546 | 546 | ||
| 547 | fd = kzalloc_obj(*fd, GFP_KERNEL); | 547 | fd = kzalloc_obj(*fd); |
| 548 | if (!fd) | 548 | if (!fd) |
| 549 | return; | 549 | return; |
| 550 | 550 | ||
| @@ -554,7 +554,7 @@ static void __init ti_fapll_setup(struct device_node *node) · 3 unmodified lines | |||
| 554 | if (!fd->outputs.clks) | 554 | if (!fd->outputs.clks) |
| 555 | goto free; | 555 | goto free; |
| 556 | 556 | ||
| 557 | init = kzalloc_obj(*init, GFP_KERNEL); | 557 | init = kzalloc_obj(*init); |
| 558 | if (!init) | 558 | if (!init) |
| 559 | goto free; | 559 | goto free; |
| 560 | 560 | ||
| @@ -95,7 +95,7 @@ static struct clk *_register_gate(struct device_node *node, const char *name, · 94 unmodified lines | |||
| 95 | struct clk_hw_omap *clk_hw; | 95 | struct clk_hw_omap *clk_hw; |
| 96 | struct clk *clk; | 96 | struct clk *clk; |
| 97 | 97 | ||
| 98 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 98 | clk_hw = kzalloc_obj(*clk_hw); |
| 99 | if (!clk_hw) | 99 | if (!clk_hw) |
| 100 | return ERR_PTR(-ENOMEM); | 100 | return ERR_PTR(-ENOMEM); |
| 101 | 101 | ||
| @@ -169,7 +169,7 @@ _of_ti_composite_gate_clk_setup(struct device_node *node, · 67 unmodified lines | |||
| 169 | { | 169 | { |
| 170 | struct clk_hw_omap *gate; | 170 | struct clk_hw_omap *gate; |
| 171 | 171 | ||
| 172 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 172 | gate = kzalloc_obj(*gate); |
| 173 | if (!gate) | 173 | if (!gate) |
| 174 | return; | 174 | return; |
| 175 | 175 | ||
| @@ -34,7 +34,7 @@ static struct clk *_register_interface(struct device_node *node, · 33 unmodified lines | |||
| 34 | struct clk_hw_omap *clk_hw; | 34 | struct clk_hw_omap *clk_hw; |
| 35 | struct clk *clk; | 35 | struct clk *clk; |
| 36 | 36 | ||
| 37 | clk_hw = kzalloc_obj(*clk_hw, GFP_KERNEL); | 37 | clk_hw = kzalloc_obj(*clk_hw); |
| 38 | if (!clk_hw) | 38 | if (!clk_hw) |
| 39 | return ERR_PTR(-ENOMEM); | 39 | return ERR_PTR(-ENOMEM); |
| 40 | 40 | ||
| @@ -129,7 +129,7 @@ static struct clk *_register_mux(struct device_node *node, const char *name, · 128 unmodified lines | |||
| 129 | struct clk_init_data init; | 129 | struct clk_init_data init; |
| 130 | 130 | ||
| 131 | /* allocate the mux */ | 131 | /* allocate the mux */ |
| 132 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 132 | mux = kzalloc_obj(*mux); |
| 133 | if (!mux) | 133 | if (!mux) |
| 134 | return ERR_PTR(-ENOMEM); | 134 | return ERR_PTR(-ENOMEM); |
| 135 | 135 | ||
| @@ -227,7 +227,7 @@ struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup) · 91 unmodified lines | |||
| 227 | if (!setup) | 227 | if (!setup) |
| 228 | return NULL; | 228 | return NULL; |
| 229 | 229 | ||
| 230 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 230 | mux = kzalloc_obj(*mux); |
| 231 | if (!mux) | 231 | if (!mux) |
| 232 | return ERR_PTR(-ENOMEM); | 232 | return ERR_PTR(-ENOMEM); |
| 233 | 233 | ||
| @@ -253,7 +253,7 @@ static void __init of_ti_composite_mux_clk_setup(struct device_node *node) · 19 unmodified lines | |||
| 253 | struct clk_omap_mux *mux; | 253 | struct clk_omap_mux *mux; |
| 254 | unsigned int num_parents; | 254 | unsigned int num_parents; |
| 255 | 255 | ||
| 256 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 256 | mux = kzalloc_obj(*mux); |
| 257 | if (!mux) | 257 | if (!mux) |
| 258 | return; | 258 | return; |
| 259 | 259 | ||
| @@ -106,7 +106,7 @@ static struct clk *clk_reg_prcc(const char *name, · 105 unmodified lines | |||
| 106 | return ERR_PTR(-EINVAL); | 106 | return ERR_PTR(-EINVAL); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 109 | clk = kzalloc_obj(*clk); |
| 110 | if (!clk) | 110 | if (!clk) |
| 111 | return ERR_PTR(-ENOMEM); | 111 | return ERR_PTR(-ENOMEM); |
| 112 | 112 | ||
| @@ -209,7 +209,7 @@ static struct clk_hw *clk_reg_prcmu(const char *name, · 208 unmodified lines | |||
| 209 | return ERR_PTR(-EINVAL); | 209 | return ERR_PTR(-EINVAL); |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 212 | clk = kzalloc_obj(*clk); |
| 213 | if (!clk) | 213 | if (!clk) |
| 214 | return ERR_PTR(-ENOMEM); | 214 | return ERR_PTR(-ENOMEM); |
| 215 | 215 | ||
| @@ -376,7 +376,7 @@ struct clk_hw *clk_reg_prcmu_clkout(const char *name, · 160 unmodified lines | |||
| 376 | return ERR_PTR(-EINVAL); | 376 | return ERR_PTR(-EINVAL); |
| 377 | } | 377 | } |
| 378 | 378 | ||
| 379 | clk = kzalloc_obj(*clk, GFP_KERNEL); | 379 | clk = kzalloc_obj(*clk); |
| 380 | if (!clk) | 380 | if (!clk) |
| 381 | return ERR_PTR(-ENOMEM); | 381 | return ERR_PTR(-ENOMEM); |
| 382 | 382 | ||
| @@ -137,7 +137,7 @@ static void u8500_clk_init(struct device_node *np) · 136 unmodified lines | |||
| 137 | * base addresses properly and pass to the reset controller init | 137 | * base addresses properly and pass to the reset controller init |
| 138 | * function later on. | 138 | * function later on. |
| 139 | */ | 139 | */ |
| 140 | rstc = kzalloc_obj(*rstc, GFP_KERNEL); | 140 | rstc = kzalloc_obj(*rstc); |
| 141 | if (!rstc) | 141 | if (!rstc) |
| 142 | return; | 142 | return; |
| 143 | 143 | ||
| @@ -363,7 +363,7 @@ struct clk *icst_clk_setup(struct device *dev, · 362 unmodified lines | |||
| 363 | struct clk_init_data init; | 363 | struct clk_init_data init; |
| 364 | struct icst_params *pclone; | 364 | struct icst_params *pclone; |
| 365 | 365 | ||
| 366 | icst = kzalloc_obj(*icst, GFP_KERNEL); | 366 | icst = kzalloc_obj(*icst); |
| 367 | if (!icst) | 367 | if (!icst) |
| 368 | return ERR_PTR(-ENOMEM); | 368 | return ERR_PTR(-ENOMEM); |
| 369 | 369 | ||
| @@ -82,7 +82,7 @@ static struct clk *clk_sp810_timerclken_of_get(struct of_phandle_args *clkspec, · 81 unmodified lines | |||
| 82 | 82 | ||
| 83 | static void __init clk_sp810_of_setup(struct device_node *node) | 83 | static void __init clk_sp810_of_setup(struct device_node *node) |
| 84 | { | 84 | { |
| 85 | struct clk_sp810 *sp810 = kzalloc_obj(*sp810, GFP_KERNEL); | 85 | struct clk_sp810 *sp810 = kzalloc_obj(*sp810); |
| 86 | const char *parent_names[2]; | 86 | const char *parent_names[2]; |
| 87 | int num = ARRAY_SIZE(parent_names); | 87 | int num = ARRAY_SIZE(parent_names); |
| 88 | char name[12]; | 88 | char name[12]; |
| @@ -255,7 +255,7 @@ static struct clk_hw *visconti_register_pll(struct visconti_pll_provider *ctx, · 254 unmodified lines | |||
| 255 | size_t len; | 255 | size_t len; |
| 256 | int ret; | 256 | int ret; |
| 257 | 257 | ||
| 258 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 258 | pll = kzalloc_obj(*pll); |
| 259 | if (!pll) | 259 | if (!pll) |
| 260 | return ERR_PTR(-ENOMEM); | 260 | return ERR_PTR(-ENOMEM); |
| 261 | 261 | ||
| @@ -112,10 +112,10 @@ static void __init zynq_clk_register_fclk(enum zynq_clk fclk, · 111 unmodified lines | |||
| 112 | spinlock_t *fclk_gate_lock; | 112 | spinlock_t *fclk_gate_lock; |
| 113 | void __iomem *fclk_gate_reg = fclk_ctrl_reg + 8; | 113 | void __iomem *fclk_gate_reg = fclk_ctrl_reg + 8; |
| 114 | 114 | ||
| 115 | fclk_lock = kmalloc_obj(*fclk_lock, GFP_KERNEL); | 115 | fclk_lock = kmalloc_obj(*fclk_lock); |
| 116 | if (!fclk_lock) | 116 | if (!fclk_lock) |
| 117 | goto err; | 117 | goto err; |
| 118 | fclk_gate_lock = kmalloc_obj(*fclk_gate_lock, GFP_KERNEL); | 118 | fclk_gate_lock = kmalloc_obj(*fclk_gate_lock); |
| 119 | if (!fclk_gate_lock) | 119 | if (!fclk_gate_lock) |
| 120 | goto err_fclk_gate_lock; | 120 | goto err_fclk_gate_lock; |
| 121 | spin_lock_init(fclk_lock); | 121 | spin_lock_init(fclk_lock); |
| @@ -180,7 +180,7 @@ static void __init zynq_clk_register_periph_clk(enum zynq_clk clk0, · 58 unmodified lines | |||
| 180 | char *div_name; | 180 | char *div_name; |
| 181 | spinlock_t *lock; | 181 | spinlock_t *lock; |
| 182 | 182 | ||
| 183 | lock = kmalloc_obj(*lock, GFP_KERNEL); | 183 | lock = kmalloc_obj(*lock); |
| 184 | if (!lock) | 184 | if (!lock) |
| 185 | goto err; | 185 | goto err; |
| 186 | spin_lock_init(lock); | 186 | spin_lock_init(lock); |
| @@ -200,7 +200,7 @@ struct clk *clk_register_zynq_pll(const char *name, const char *parent, · 199 unmodified lines | |||
| 200 | .flags = 0 | 200 | .flags = 0 |
| 201 | }; | 201 | }; |
| 202 | 202 | ||
| 203 | pll = kmalloc_obj(*pll, GFP_KERNEL); | 203 | pll = kmalloc_obj(*pll); |
| 204 | if (!pll) | 204 | if (!pll) |
| 205 | return ERR_PTR(-ENOMEM); | 205 | return ERR_PTR(-ENOMEM); |
| 206 | 206 | ||
| @@ -115,7 +115,7 @@ struct clk_hw *zynqmp_clk_register_gate(const char *name, u32 clk_id, · 114 unmodified lines | |||
| 115 | struct clk_init_data init; | 115 | struct clk_init_data init; |
| 116 | 116 | ||
| 117 | /* allocate the gate */ | 117 | /* allocate the gate */ |
| 118 | gate = kzalloc_obj(*gate, GFP_KERNEL); | 118 | gate = kzalloc_obj(*gate); |
| 119 | if (!gate) | 119 | if (!gate) |
| 120 | return ERR_PTR(-ENOMEM); | 120 | return ERR_PTR(-ENOMEM); |
| 121 | 121 | ||
| @@ -138,7 +138,7 @@ struct clk_hw *zynqmp_clk_register_mux(const char *name, u32 clk_id, · 137 unmodified lines | |||
| 138 | struct clk_init_data init; | 138 | struct clk_init_data init; |
| 139 | int ret; | 139 | int ret; |
| 140 | 140 | ||
| 141 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 141 | mux = kzalloc_obj(*mux); |
| 142 | if (!mux) | 142 | if (!mux) |
| 143 | return ERR_PTR(-ENOMEM); | 143 | return ERR_PTR(-ENOMEM); |
| 144 | 144 | ||
| @@ -763,7 +763,7 @@ static int zynqmp_clk_setup(struct device_node *np) · 762 unmodified lines | |||
| 763 | if (!zynqmp_data) | 763 | if (!zynqmp_data) |
| 764 | return -ENOMEM; | 764 | return -ENOMEM; |
| 765 | 765 | ||
| 766 | clock = kzalloc_objs(*clock, clock_max_idx, GFP_KERNEL); | 766 | clock = kzalloc_objs(*clock, clock_max_idx); |
| 767 | if (!clock) { | 767 | if (!clock) { |
| 768 | kfree(zynqmp_data); | 768 | kfree(zynqmp_data); |
| 769 | return -ENOMEM; | 769 | return -ENOMEM; |
| @@ -284,7 +284,7 @@ struct clk_hw *zynqmp_clk_register_divider(const char *name, · 283 unmodified lines | |||
| 284 | int ret; | 284 | int ret; |
| 285 | 285 | ||
| 286 | /* allocate the divider */ | 286 | /* allocate the divider */ |
| 287 | div = kzalloc_obj(*div, GFP_KERNEL); | 287 | div = kzalloc_obj(*div); |
| 288 | if (!div) | 288 | if (!div) |
| 289 | return ERR_PTR(-ENOMEM); | 289 | return ERR_PTR(-ENOMEM); |
| 290 | 290 | ||
| @@ -326,7 +326,7 @@ struct clk_hw *zynqmp_clk_register_pll(const char *name, u32 clk_id, · 325 unmodified lines | |||
| 326 | init.parent_names = parents; | 326 | init.parent_names = parents; |
| 327 | init.num_parents = 1; | 327 | init.num_parents = 1; |
| 328 | 328 | ||
| 329 | pll = kzalloc_obj(*pll, GFP_KERNEL); | 329 | pll = kzalloc_obj(*pll); |
| 330 | if (!pll) | 330 | if (!pll) |
| 331 | return ERR_PTR(-ENOMEM); | 331 | return ERR_PTR(-ENOMEM); |
| 332 | 332 | ||
| @@ -98,7 +98,7 @@ static int __init bcm2835_timer_init(struct device_node *node) · 97 unmodified lines | |||
| 98 | goto err_iounmap; | 98 | goto err_iounmap; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | timer = kzalloc_obj(*timer, GFP_KERNEL); | 101 | timer = kzalloc_obj(*timer); |
| 102 | if (!timer) { | 102 | if (!timer) { |
| 103 | ret = -ENOMEM; | 103 | ret = -ENOMEM; |
| 104 | goto err_iounmap; | 104 | goto err_iounmap; |
| @@ -54,7 +54,7 @@ static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base, · 53 unmodified lines | |||
| 54 | struct clock_event_device *clkevt; | 54 | struct clock_event_device *clkevt; |
| 55 | unsigned long rate; | 55 | unsigned long rate; |
| 56 | 56 | ||
| 57 | clkevt = kzalloc_obj(*clkevt, GFP_KERNEL); | 57 | clkevt = kzalloc_obj(*clkevt); |
| 58 | if (!clkevt) | 58 | if (!clkevt) |
| 59 | return -ENOMEM; | 59 | return -ENOMEM; |
| 60 | 60 | ||
| @@ -340,7 +340,7 @@ struct dw_apb_clocksource * · 339 unmodified lines | |||
| 340 | dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base, | 340 | dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base, |
| 341 | unsigned long freq) | 341 | unsigned long freq) |
| 342 | { | 342 | { |
| 343 | struct dw_apb_clocksource *dw_cs = kzalloc_obj(*dw_cs, GFP_KERNEL); | 343 | struct dw_apb_clocksource *dw_cs = kzalloc_obj(*dw_cs); |
| 344 | 344 | ||
| 345 | if (!dw_cs) | 345 | if (!dw_cs) |
| 346 | return NULL; | 346 | return NULL; |
| @@ -279,7 +279,7 @@ static int __init ingenic_ost_register_clock(struct ingenic_ost *ost, · 278 unmodified lines | |||
| 279 | struct ingenic_ost_clk *ost_clk; | 279 | struct ingenic_ost_clk *ost_clk; |
| 280 | int val, err; | 280 | int val, err; |
| 281 | 281 | ||
| 282 | ost_clk = kzalloc_obj(*ost_clk, GFP_KERNEL); | 282 | ost_clk = kzalloc_obj(*ost_clk); |
| 283 | if (!ost_clk) | 283 | if (!ost_clk) |
| 284 | return -ENOMEM; | 284 | return -ENOMEM; |
| 285 | 285 | ||
| @@ -432,7 +432,7 @@ static int __init ingenic_ost_probe(struct device_node *np) · 146 unmodified lines | |||
| 432 | unsigned int i; | 432 | unsigned int i; |
| 433 | int ret; | 433 | int ret; |
| 434 | 434 | ||
| 435 | ost = kzalloc_obj(*ost, GFP_KERNEL); | 435 | ost = kzalloc_obj(*ost); |
| 436 | if (!ost) | 436 | if (!ost) |
| 437 | return -ENOMEM; | 437 | return -ENOMEM; |
| 438 | 438 | ||
| @@ -55,7 +55,7 @@ int __init clocksource_mmio_init(void __iomem *base, const char *name, · 54 unmodified lines | |||
| 55 | if (bits > 64 || bits < 16) | 55 | if (bits > 64 || bits < 16) |
| 56 | return -EINVAL; | 56 | return -EINVAL; |
| 57 | 57 | ||
| 58 | cs = kzalloc_obj(struct clocksource_mmio, GFP_KERNEL); | 58 | cs = kzalloc_obj(struct clocksource_mmio); |
| 59 | if (!cs) | 59 | if (!cs) |
| 60 | return -ENOMEM; | 60 | return -ENOMEM; |
| 61 | 61 | ||
| @@ -136,7 +136,7 @@ static int __init mps2_clockevent_init(struct device_node *np) · 135 unmodified lines | |||
| 136 | goto out_iounmap; | 136 | goto out_iounmap; |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | ce = kzalloc_obj(*ce, GFP_KERNEL); | 139 | ce = kzalloc_obj(*ce); |
| 140 | if (!ce) { | 140 | if (!ce) { |
| 141 | ret = -ENOMEM; | 141 | ret = -ENOMEM; |
| 142 | goto out_iounmap; | 142 | goto out_iounmap; |
| @@ -165,7 +165,7 @@ static int __init ostm_init(struct device_node *np) · 164 unmodified lines | |||
| 165 | struct timer_of *to; | 165 | struct timer_of *to; |
| 166 | int ret; | 166 | int ret; |
| 167 | 167 | ||
| 168 | to = kzalloc_obj(*to, GFP_KERNEL); | 168 | to = kzalloc_obj(*to); |
| 169 | if (!to) | 169 | if (!to) |
| 170 | return -ENOMEM; | 170 | return -ENOMEM; |
| 171 | 171 | ||
| @@ -1139,7 +1139,7 @@ static int sh_cmt_probe(struct platform_device *pdev) · 1138 unmodified lines | |||
| 1139 | goto out; | 1139 | goto out; |
| 1140 | } | 1140 | } |
| 1141 | 1141 | ||
| 1142 | cmt = kzalloc_obj(*cmt, GFP_KERNEL); | 1142 | cmt = kzalloc_obj(*cmt); |
| 1143 | if (cmt == NULL) | 1143 | if (cmt == NULL) |
| 1144 | return -ENOMEM; | 1144 | return -ENOMEM; |
| 1145 | 1145 | ||
| @@ -462,7 +462,7 @@ static int sh_mtu2_probe(struct platform_device *pdev) · 461 unmodified lines | |||
| 462 | goto out; | 462 | goto out; |
| 463 | } | 463 | } |
| 464 | 464 | ||
| 465 | mtu = kzalloc_obj(*mtu, GFP_KERNEL); | 465 | mtu = kzalloc_obj(*mtu); |
| 466 | if (mtu == NULL) | 466 | if (mtu == NULL) |
| 467 | return -ENOMEM; | 467 | return -ENOMEM; |
| 468 | 468 | ||
| @@ -593,7 +593,7 @@ static int sh_tmu_probe(struct platform_device *pdev) · 592 unmodified lines | |||
| 593 | goto out; | 593 | goto out; |
| 594 | } | 594 | } |
| 595 | 595 | ||
| 596 | tmu = kzalloc_obj(*tmu, GFP_KERNEL); | 596 | tmu = kzalloc_obj(*tmu); |
| 597 | if (tmu == NULL) | 597 | if (tmu == NULL) |
| 598 | return -ENOMEM; | 598 | return -ENOMEM; |
| 599 | 599 | ||
| @@ -170,7 +170,7 @@ static int __init at91sam926x_pit_dt_init(struct device_node *node) · 169 unmodified lines | |||
| 170 | int ret; | 170 | int ret; |
| 171 | struct pit_data *data; | 171 | struct pit_data *data; |
| 172 | 172 | ||
| 173 | data = kzalloc_obj(*data, GFP_KERNEL); | 173 | data = kzalloc_obj(*data); |
| 174 | if (!data) | 174 | if (!data) |
| 175 | return -ENOMEM; | 175 | return -ENOMEM; |
| 176 | 176 | ||
| @@ -334,7 +334,7 @@ static int __init ttc_setup_clocksource(struct clk *clk, void __iomem *base, · 333 unmodified lines | |||
| 334 | struct ttc_timer_clocksource *ttccs; | 334 | struct ttc_timer_clocksource *ttccs; |
| 335 | int err; | 335 | int err; |
| 336 | 336 | ||
| 337 | ttccs = kzalloc_obj(*ttccs, GFP_KERNEL); | 337 | ttccs = kzalloc_obj(*ttccs); |
| 338 | if (!ttccs) | 338 | if (!ttccs) |
| 339 | return -ENOMEM; | 339 | return -ENOMEM; |
| 340 | 340 | ||
| @@ -417,7 +417,7 @@ static int __init ttc_setup_clockevent(struct clk *clk, · 76 unmodified lines | |||
| 417 | struct ttc_timer_clockevent *ttcce; | 417 | struct ttc_timer_clockevent *ttcce; |
| 418 | int err; | 418 | int err; |
| 419 | 419 | ||
| 420 | ttcce = kzalloc_obj(*ttcce, GFP_KERNEL); | 420 | ttcce = kzalloc_obj(*ttcce); |
| 421 | if (!ttcce) | 421 | if (!ttcce) |
| 422 | return -ENOMEM; | 422 | return -ENOMEM; |
| 423 | 423 | ||
| @@ -271,7 +271,7 @@ int __init davinci_timer_register(struct clk *clk, · 270 unmodified lines | |||
| 271 | davinci_timer_init(base); | 271 | davinci_timer_init(base); |
| 272 | tick_rate = clk_get_rate(clk); | 272 | tick_rate = clk_get_rate(clk); |
| 273 | 273 | ||
| 274 | clockevent = kzalloc_obj(*clockevent, GFP_KERNEL); | 274 | clockevent = kzalloc_obj(*clockevent); |
| 275 | if (!clockevent) { | 275 | if (!clockevent) { |
| 276 | rv = -ENOMEM; | 276 | rv = -ENOMEM; |
| 277 | goto exit_iounmap_base; | 277 | goto exit_iounmap_base; |
| @@ -141,7 +141,7 @@ static int __init ep93xx_timer_of_init(struct device_node *np) · 140 unmodified lines | |||
| 141 | struct ep93xx_tcu *tcu; | 141 | struct ep93xx_tcu *tcu; |
| 142 | int ret; | 142 | int ret; |
| 143 | 143 | ||
| 144 | tcu = kzalloc_obj(*tcu, GFP_KERNEL); | 144 | tcu = kzalloc_obj(*tcu); |
| 145 | if (!tcu) | 145 | if (!tcu) |
| 146 | return -ENOMEM; | 146 | return -ENOMEM; |
| 147 | 147 | ||
| @@ -300,7 +300,7 @@ static int __init ftm_timer_init(struct device_node *np) · 299 unmodified lines | |||
| 300 | unsigned long freq; | 300 | unsigned long freq; |
| 301 | int ret, irq; | 301 | int ret, irq; |
| 302 | 302 | ||
| 303 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 303 | priv = kzalloc_obj(*priv); |
| 304 | if (!priv) | 304 | if (!priv) |
| 305 | return -ENOMEM; | 305 | return -ENOMEM; |
| 306 | 306 | ||
| @@ -295,7 +295,7 @@ static int __init fttmr010_common_init(struct device_node *np, · 294 unmodified lines | |||
| 295 | return ret; | 295 | return ret; |
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | fttmr010 = kzalloc_obj(*fttmr010, GFP_KERNEL); | 298 | fttmr010 = kzalloc_obj(*fttmr010); |
| 299 | if (!fttmr010) { | 299 | if (!fttmr010) { |
| 300 | ret = -ENOMEM; | 300 | ret = -ENOMEM; |
| 301 | goto out_disable_clock; | 301 | goto out_disable_clock; |
| @@ -102,7 +102,7 @@ int __init goldfish_timer_init(int irq, void __iomem *base) · 101 unmodified lines | |||
| 102 | struct goldfish_timer *timerdrv; | 102 | struct goldfish_timer *timerdrv; |
| 103 | int ret; | 103 | int ret; |
| 104 | 104 | ||
| 105 | timerdrv = kzalloc_obj(*timerdrv, GFP_KERNEL); | 105 | timerdrv = kzalloc_obj(*timerdrv); |
| 106 | if (!timerdrv) | 106 | if (!timerdrv) |
| 107 | return -ENOMEM; | 107 | return -ENOMEM; |
| 108 | 108 | ||
| @@ -76,7 +76,7 @@ static int __init gxp_timer_init(struct device_node *node) · 75 unmodified lines | |||
| 76 | u32 freq; | 76 | u32 freq; |
| 77 | int ret, irq; | 77 | int ret, irq; |
| 78 | 78 | ||
| 79 | gxp_timer = kzalloc_obj(*gxp_timer, GFP_KERNEL); | 79 | gxp_timer = kzalloc_obj(*gxp_timer); |
| 80 | if (!gxp_timer) { | 80 | if (!gxp_timer) { |
| 81 | ret = -ENOMEM; | 81 | ret = -ENOMEM; |
| 82 | pr_err("Can't allocate gxp_timer"); | 82 | pr_err("Can't allocate gxp_timer"); |
| @@ -428,7 +428,7 @@ static int __init mxc_timer_init_dt(struct device_node *np, enum imx_gpt_type t · 427 unmodified lines | |||
| 428 | if (initialized) | 428 | if (initialized) |
| 429 | return 0; | 429 | return 0; |
| 430 | 430 | ||
| 431 | imxtm = kzalloc_obj(*imxtm, GFP_KERNEL); | 431 | imxtm = kzalloc_obj(*imxtm); |
| 432 | if (!imxtm) | 432 | if (!imxtm) |
| 433 | return -ENOMEM; | 433 | return -ENOMEM; |
| 434 | 434 | ||
| @@ -139,7 +139,7 @@ static int __init __sysctr_timer_init(struct device_node *np) · 138 unmodified lines | |||
| 139 | void __iomem *base; | 139 | void __iomem *base; |
| 140 | int ret; | 140 | int ret; |
| 141 | 141 | ||
| 142 | priv = kzalloc_obj(struct sysctr_private, GFP_KERNEL); | 142 | priv = kzalloc_obj(struct sysctr_private); |
| 143 | if (!priv) | 143 | if (!priv) |
| 144 | return -ENOMEM; | 144 | return -ENOMEM; |
| 145 | 145 | ||
| @@ -166,7 +166,7 @@ static __init int ixp4xx_timer_register(void __iomem *base, · 165 unmodified lines | |||
| 166 | struct ixp4xx_timer *tmr; | 166 | struct ixp4xx_timer *tmr; |
| 167 | int ret; | 167 | int ret; |
| 168 | 168 | ||
| 169 | tmr = kzalloc_obj(*tmr, GFP_KERNEL); | 169 | tmr = kzalloc_obj(*tmr); |
| 170 | if (!tmr) | 170 | if (!tmr) |
| 171 | return -ENOMEM; | 171 | return -ENOMEM; |
| 172 | tmr->base = base; | 172 | tmr->base = base; |
| @@ -350,7 +350,7 @@ static int __init mchp_pit64b_init_clksrc(struct mchp_pit64b_timer *timer, · 349 unmodified lines | |||
| 350 | struct mchp_pit64b_clksrc *cs; | 350 | struct mchp_pit64b_clksrc *cs; |
| 351 | int ret; | 351 | int ret; |
| 352 | 352 | ||
| 353 | cs = kzalloc_obj(*cs, GFP_KERNEL); | 353 | cs = kzalloc_obj(*cs); |
| 354 | if (!cs) | 354 | if (!cs) |
| 355 | return -ENOMEM; | 355 | return -ENOMEM; |
| 356 | 356 | ||
| @@ -397,7 +397,7 @@ static int __init mchp_pit64b_init_clkevt(struct mchp_pit64b_timer *timer, · 40 unmodified lines | |||
| 397 | struct mchp_pit64b_clkevt *ce; | 397 | struct mchp_pit64b_clkevt *ce; |
| 398 | int ret; | 398 | int ret; |
| 399 | 399 | ||
| 400 | ce = kzalloc_obj(*ce, GFP_KERNEL); | 400 | ce = kzalloc_obj(*ce); |
| 401 | if (!ce) | 401 | if (!ce) |
| 402 | return -ENOMEM; | 402 | return -ENOMEM; |
| 403 | 403 | ||
| @@ -171,7 +171,7 @@ static int __init msc313e_clkevt_init(struct device_node *np) · 170 unmodified lines | |||
| 171 | int ret; | 171 | int ret; |
| 172 | struct timer_of *to; | 172 | struct timer_of *to; |
| 173 | 173 | ||
| 174 | to = kzalloc_obj(*to, GFP_KERNEL); | 174 | to = kzalloc_obj(*to); |
| 175 | if (!to) | 175 | if (!to) |
| 176 | return -ENOMEM; | 176 | return -ENOMEM; |
| 177 | 177 | ||
| @@ -276,7 +276,7 @@ static int pit_timer_init(struct device_node *np) · 275 unmodified lines | |||
| 276 | unsigned long clk_rate; | 276 | unsigned long clk_rate; |
| 277 | int irq, ret; | 277 | int irq, ret; |
| 278 | 278 | ||
| 279 | pit = kzalloc_obj(*pit, GFP_KERNEL); | 279 | pit = kzalloc_obj(*pit); |
| 280 | if (!pit) | 280 | if (!pit) |
| 281 | return -ENOMEM; | 281 | return -ENOMEM; |
| 282 | 282 | ||
| @@ -207,7 +207,7 @@ static int __init rk_clkevt_init(struct device_node *np) · 206 unmodified lines | |||
| 207 | struct clock_event_device *ce; | 207 | struct clock_event_device *ce; |
| 208 | int ret = -EINVAL; | 208 | int ret = -EINVAL; |
| 209 | 209 | ||
| 210 | rk_clkevt = kzalloc_obj(struct rk_clkevt, GFP_KERNEL); | 210 | rk_clkevt = kzalloc_obj(struct rk_clkevt); |
| 211 | if (!rk_clkevt) { | 211 | if (!rk_clkevt) { |
| 212 | ret = -ENOMEM; | 212 | ret = -ENOMEM; |
| 213 | goto out; | 213 | goto out; |
| @@ -254,7 +254,7 @@ static int __init rk_clksrc_init(struct device_node *np) · 40 unmodified lines | |||
| 254 | { | 254 | { |
| 255 | int ret = -EINVAL; | 255 | int ret = -EINVAL; |
| 256 | 256 | ||
| 257 | rk_clksrc = kzalloc_obj(struct rk_timer, GFP_KERNEL); | 257 | rk_clksrc = kzalloc_obj(struct rk_timer); |
| 258 | if (!rk_clksrc) { | 258 | if (!rk_clksrc) { |
| 259 | ret = -ENOMEM; | 259 | ret = -ENOMEM; |
| 260 | goto out; | 260 | goto out; |
| @@ -291,7 +291,7 @@ static int __init stm32_timer_init(struct device_node *node) · 290 unmodified lines | |||
| 291 | struct timer_of *to; | 291 | struct timer_of *to; |
| 292 | int ret; | 292 | int ret; |
| 293 | 293 | ||
| 294 | to = kzalloc_obj(*to, GFP_KERNEL); | 294 | to = kzalloc_obj(*to); |
| 295 | if (!to) | 295 | if (!to) |
| 296 | return -ENOMEM; | 296 | return -ENOMEM; |
| 297 | 297 | ||
| @@ -302,7 +302,7 @@ static int __init stm32_timer_init(struct device_node *node) · 4 unmodified lines | |||
| 302 | if (ret) | 302 | if (ret) |
| 303 | goto err; | 303 | goto err; |
| 304 | 304 | ||
| 305 | to->private_data = kzalloc_obj(struct stm32_timer_private, GFP_KERNEL); | 305 | to->private_data = kzalloc_obj(struct stm32_timer_private); |
| 306 | if (!to->private_data) { | 306 | if (!to->private_data) { |
| 307 | ret = -ENOMEM; | 307 | ret = -ENOMEM; |
| 308 | goto deinit; | 308 | goto deinit; |
| @@ -600,7 +600,7 @@ static int __init dmtimer_clockevent_init(struct device_node *np) · 599 unmodified lines | |||
| 600 | struct dmtimer_clockevent *clkevt; | 600 | struct dmtimer_clockevent *clkevt; |
| 601 | int error; | 601 | int error; |
| 602 | 602 | ||
| 603 | clkevt = kzalloc_obj(*clkevt, GFP_KERNEL); | 603 | clkevt = kzalloc_obj(*clkevt); |
| 604 | if (!clkevt) | 604 | if (!clkevt) |
| 605 | return -ENOMEM; | 605 | return -ENOMEM; |
| 606 | 606 | ||
| @@ -757,7 +757,7 @@ static int __init dmtimer_clocksource_init(struct device_node *np) · 150 unmodified lines | |||
| 757 | struct clocksource *dev; | 757 | struct clocksource *dev; |
| 758 | int error; | 758 | int error; |
| 759 | 759 | ||
| 760 | clksrc = kzalloc_obj(*clksrc, GFP_KERNEL); | 760 | clksrc = kzalloc_obj(*clksrc); |
| 761 | if (!clksrc) | 761 | if (!clksrc) |
| 762 | return -ENOMEM; | 762 | return -ENOMEM; |
| 763 | 763 | ||
| @@ -119,7 +119,7 @@ static int __init zevio_timer_add(struct device_node *node) · 118 unmodified lines | |||
| 119 | struct resource res; | 119 | struct resource res; |
| 120 | int irqnr, ret; | 120 | int irqnr, ret; |
| 121 | 121 | ||
| 122 | timer = kzalloc_obj(*timer, GFP_KERNEL); | 122 | timer = kzalloc_obj(*timer); |
| 123 | if (!timer) | 123 | if (!timer) |
| 124 | return -ENOMEM; | 124 | return -ENOMEM; |
| 125 | 125 | ||
| @@ -70,7 +70,7 @@ comedi_buf_map_alloc(struct comedi_device *dev, enum dma_data_direction dma_dir, · 69 unmodified lines | |||
| 70 | struct comedi_buf_page *buf; | 70 | struct comedi_buf_page *buf; |
| 71 | unsigned int i; | 71 | unsigned int i; |
| 72 | 72 | ||
| 73 | bm = kzalloc_obj(*bm, GFP_KERNEL); | 73 | bm = kzalloc_obj(*bm); |
| 74 | if (!bm) | 74 | if (!bm) |
| 75 | return NULL; | 75 | return NULL; |
| 76 | 76 | ||
| @@ -1058,7 +1058,7 @@ static int do_subdinfo_ioctl(struct comedi_device *dev, · 1057 unmodified lines | |||
| 1058 | struct comedi_subdevice *s; | 1058 | struct comedi_subdevice *s; |
| 1059 | 1059 | ||
| 1060 | lockdep_assert_held(&dev->mutex); | 1060 | lockdep_assert_held(&dev->mutex); |
| 1061 | tmp = kzalloc_objs(*tmp, dev->n_subdevices, GFP_KERNEL); | 1061 | tmp = kzalloc_objs(*tmp, dev->n_subdevices); |
| 1062 | if (!tmp) | 1062 | if (!tmp) |
| 1063 | return -ENOMEM; | 1063 | return -ENOMEM; |
| 1064 | 1064 | ||
| @@ -2969,7 +2969,7 @@ static int comedi_open(struct inode *inode, struct file *file) · 1904 unmodified lines | |||
| 2969 | return -ENODEV; | 2969 | return -ENODEV; |
| 2970 | } | 2970 | } |
| 2971 | 2971 | ||
| 2972 | cfp = kzalloc_obj(*cfp, GFP_KERNEL); | 2972 | cfp = kzalloc_obj(*cfp); |
| 2973 | if (!cfp) { | 2973 | if (!cfp) { |
| 2974 | comedi_dev_put(dev); | 2974 | comedi_dev_put(dev); |
| 2975 | return -ENOMEM; | 2975 | return -ENOMEM; |
| @@ -3322,7 +3322,7 @@ static int compat_insnlist(struct file *file, unsigned long arg) · 346 unmodified lines | |||
| 3322 | rc = check_insnlist_len(dev, insnlist32.n_insns); | 3322 | rc = check_insnlist_len(dev, insnlist32.n_insns); |
| 3323 | if (rc) | 3323 | if (rc) |
| 3324 | return rc; | 3324 | return rc; |
| 3325 | insns = kzalloc_objs(*insns, insnlist32.n_insns, GFP_KERNEL); | 3325 | insns = kzalloc_objs(*insns, insnlist32.n_insns); |
| 3326 | if (!insns) | 3326 | if (!insns) |
| 3327 | return -ENOMEM; | 3327 | return -ENOMEM; |
| 3328 | 3328 | ||
| @@ -3505,7 +3505,7 @@ struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device) · 176 unmodified lines | |||
| 3505 | struct device *csdev; | 3505 | struct device *csdev; |
| 3506 | unsigned int i; | 3506 | unsigned int i; |
| 3507 | 3507 | ||
| 3508 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 3508 | dev = kzalloc_obj(*dev); |
| 3509 | if (!dev) | 3509 | if (!dev) |
| 3510 | return ERR_PTR(-ENOMEM); | 3510 | return ERR_PTR(-ENOMEM); |
| 3511 | comedi_device_init(dev); | 3511 | comedi_device_init(dev); |
| @@ -101,7 +101,7 @@ int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices) · 100 unmodified lines | |||
| 101 | if (num_subdevices < 1) | 101 | if (num_subdevices < 1) |
| 102 | return -EINVAL; | 102 | return -EINVAL; |
| 103 | 103 | ||
| 104 | s = kzalloc_objs(*s, num_subdevices, GFP_KERNEL); | 104 | s = kzalloc_objs(*s, num_subdevices); |
| 105 | if (!s) | 105 | if (!s) |
| 106 | return -ENOMEM; | 106 | return -ENOMEM; |
| 107 | dev->subdevices = s; | 107 | dev->subdevices = s; |
| @@ -733,7 +733,7 @@ static int __comedi_device_postconfig_async(struct comedi_device *dev, · 625 unmodified lines | |||
| 733 | dev_warn(dev->class_dev, | 733 | dev_warn(dev->class_dev, |
| 734 | "async subdevices should have a cancel() function\n"); | 734 | "async subdevices should have a cancel() function\n"); |
| 735 | 735 | ||
| 736 | async = kzalloc_obj(*async, GFP_KERNEL); | 736 | async = kzalloc_obj(*async); |
| 737 | if (!async) | 737 | if (!async) |
| 738 | return -ENOMEM; | 738 | return -ENOMEM; |
| 739 | 739 | ||
| @@ -274,7 +274,7 @@ static int apci2032_auto_attach(struct comedi_device *dev, · 273 unmodified lines | |||
| 274 | struct apci2032_int_private *subpriv; | 274 | struct apci2032_int_private *subpriv; |
| 275 | 275 | ||
| 276 | dev->read_subdev = s; | 276 | dev->read_subdev = s; |
| 277 | subpriv = kzalloc_obj(*subpriv, GFP_KERNEL); | 277 | subpriv = kzalloc_obj(*subpriv); |
| 278 | if (!subpriv) | 278 | if (!subpriv) |
| 279 | return -ENOMEM; | 279 | return -ENOMEM; |
| 280 | spin_lock_init(&subpriv->spinlock); | 280 | spin_lock_init(&subpriv->spinlock); |
| @@ -633,7 +633,7 @@ static struct comedi_8254 *__i8254_init(comedi_8254_iocb_fn *iocb, · 632 unmodified lines | |||
| 633 | if (!iocb) | 633 | if (!iocb) |
| 634 | return ERR_PTR(-EINVAL); | 634 | return ERR_PTR(-EINVAL); |
| 635 | 635 | ||
| 636 | i8254 = kzalloc_obj(*i8254, GFP_KERNEL); | 636 | i8254 = kzalloc_obj(*i8254); |
| 637 | if (!i8254) | 637 | if (!i8254) |
| 638 | return ERR_PTR(-ENOMEM); | 638 | return ERR_PTR(-ENOMEM); |
| 639 | 639 | ||
| @@ -223,7 +223,7 @@ static int do_dev_config(struct comedi_device *dev, struct comedi_devconfig *it) · 222 unmodified lines | |||
| 223 | nchans, minor, sdev); | 223 | nchans, minor, sdev); |
| 224 | return -EINVAL; | 224 | return -EINVAL; |
| 225 | } | 225 | } |
| 226 | bdev = kmalloc_obj(*bdev, GFP_KERNEL); | 226 | bdev = kmalloc_obj(*bdev); |
| 227 | if (!bdev) | 227 | if (!bdev) |
| 228 | return -ENOMEM; | 228 | return -ENOMEM; |
| 229 | 229 | ||
| @@ -161,11 +161,11 @@ struct comedi_isadma *comedi_isadma_alloc(struct comedi_device *dev, · 160 unmodified lines | |||
| 161 | if (n_desc < 1 || n_desc > 2) | 161 | if (n_desc < 1 || n_desc > 2) |
| 162 | goto no_dma; | 162 | goto no_dma; |
| 163 | 163 | ||
| 164 | dma = kzalloc_obj(*dma, GFP_KERNEL); | 164 | dma = kzalloc_obj(*dma); |
| 165 | if (!dma) | 165 | if (!dma) |
| 166 | goto no_dma; | 166 | goto no_dma; |
| 167 | 167 | ||
| 168 | desc = kzalloc_objs(*desc, n_desc, GFP_KERNEL); | 168 | desc = kzalloc_objs(*desc, n_desc); |
| 169 | if (!desc) | 169 | if (!desc) |
| 170 | goto no_dma; | 170 | goto no_dma; |
| 171 | dma->desc = desc; | 171 | dma->desc = desc; |
| @@ -329,7 +329,7 @@ static int dt9812_write_multiple_registers(struct comedi_device *dev, · 328 unmodified lines | |||
| 329 | int i, count; | 329 | int i, count; |
| 330 | int ret; | 330 | int ret; |
| 331 | 331 | ||
| 332 | cmd = kzalloc_obj(*cmd, GFP_KERNEL); | 332 | cmd = kzalloc_obj(*cmd); |
| 333 | if (!cmd) | 333 | if (!cmd) |
| 334 | return -ENOMEM; | 334 | return -ENOMEM; |
| 335 | 335 | ||
| @@ -358,7 +358,7 @@ static int dt9812_rmw_multiple_registers(struct comedi_device *dev, · 22 unmodified lines | |||
| 358 | int i, count; | 358 | int i, count; |
| 359 | int ret; | 359 | int ret; |
| 360 | 360 | ||
| 361 | cmd = kzalloc_obj(*cmd, GFP_KERNEL); | 361 | cmd = kzalloc_obj(*cmd); |
| 362 | if (!cmd) | 362 | if (!cmd) |
| 363 | return -ENOMEM; | 363 | return -ENOMEM; |
| 364 | 364 | ||
| @@ -749,7 +749,7 @@ struct mite_ring *mite_alloc_ring(struct mite *mite) · 748 unmodified lines | |||
| 749 | { | 749 | { |
| 750 | struct mite_ring *ring; | 750 | struct mite_ring *ring; |
| 751 | 751 | ||
| 752 | ring = kmalloc_obj(*ring, GFP_KERNEL); | 752 | ring = kmalloc_obj(*ring); |
| 753 | if (!ring) | 753 | if (!ring) |
| 754 | return NULL; | 754 | return NULL; |
| 755 | ring->hw_dev = get_device(&mite->pcidev->dev); | 755 | ring->hw_dev = get_device(&mite->pcidev->dev); |
| @@ -879,7 +879,7 @@ struct mite *mite_attach(struct comedi_device *dev, bool use_win1) · 123 unmodified lines | |||
| 879 | unsigned int i; | 879 | unsigned int i; |
| 880 | int ret; | 880 | int ret; |
| 881 | 881 | ||
| 882 | mite = kzalloc_obj(*mite, GFP_KERNEL); | 882 | mite = kzalloc_obj(*mite); |
| 883 | if (!mite) | 883 | if (!mite) |
| 884 | return NULL; | 884 | return NULL; |
| 885 | 885 | ||
| @@ -1778,7 +1778,7 @@ ni_gpct_device_construct(struct comedi_device *dev, · 1777 unmodified lines | |||
| 1778 | if (num_counters == 0 || counters_per_chip == 0) | 1778 | if (num_counters == 0 || counters_per_chip == 0) |
| 1779 | return NULL; | 1779 | return NULL; |
| 1780 | 1780 | ||
| 1781 | counter_dev = kzalloc_obj(*counter_dev, GFP_KERNEL); | 1781 | counter_dev = kzalloc_obj(*counter_dev); |
| 1782 | if (!counter_dev) | 1782 | if (!counter_dev) |
| 1783 | return NULL; | 1783 | return NULL; |
| 1784 | 1784 | ||
| @@ -1793,7 +1793,7 @@ ni_gpct_device_construct(struct comedi_device *dev, · 8 unmodified lines | |||
| 1793 | counter_dev->num_counters = num_counters; | 1793 | counter_dev->num_counters = num_counters; |
| 1794 | counter_dev->num_chips = DIV_ROUND_UP(num_counters, counters_per_chip); | 1794 | counter_dev->num_chips = DIV_ROUND_UP(num_counters, counters_per_chip); |
| 1795 | 1795 | ||
| 1796 | counter_dev->counters = kzalloc_objs(*counter, num_counters, GFP_KERNEL); | 1796 | counter_dev->counters = kzalloc_objs(*counter, num_counters); |
| 1797 | counter_dev->regs = kzalloc_objs(*counter_dev->regs, | 1797 | counter_dev->regs = kzalloc_objs(*counter_dev->regs, |
| 1798 | counter_dev->num_chips, GFP_KERNEL); | 1798 | counter_dev->num_chips, GFP_KERNEL); |
| 1799 | if (!counter_dev->regs || !counter_dev->counters) { | 1799 | if (!counter_dev->regs || !counter_dev->counters) { |
| @@ -1336,8 +1336,8 @@ static int usbduxsigma_alloc_usb_buffers(struct comedi_device *dev) · 1335 unmodified lines | |||
| 1336 | devpriv->dux_commands = kzalloc(SIZEOFDUXBUFFER, GFP_KERNEL); | 1336 | devpriv->dux_commands = kzalloc(SIZEOFDUXBUFFER, GFP_KERNEL); |
| 1337 | devpriv->in_buf = kzalloc(SIZEINBUF, GFP_KERNEL); | 1337 | devpriv->in_buf = kzalloc(SIZEINBUF, GFP_KERNEL); |
| 1338 | devpriv->insn_buf = kzalloc(SIZEINSNBUF, GFP_KERNEL); | 1338 | devpriv->insn_buf = kzalloc(SIZEINSNBUF, GFP_KERNEL); |
| 1339 | devpriv->ai_urbs = kzalloc_objs(urb, devpriv->n_ai_urbs, GFP_KERNEL); | 1339 | devpriv->ai_urbs = kzalloc_objs(urb, devpriv->n_ai_urbs); |
| 1340 | devpriv->ao_urbs = kzalloc_objs(urb, devpriv->n_ao_urbs, GFP_KERNEL); | 1340 | devpriv->ao_urbs = kzalloc_objs(urb, devpriv->n_ao_urbs); |
| 1341 | if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || | 1341 | if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || |
| 1342 | !devpriv->ai_urbs || !devpriv->ao_urbs) | 1342 | !devpriv->ai_urbs || !devpriv->ao_urbs) |
| 1343 | return -ENOMEM; | 1343 | return -ENOMEM; |
| @@ -25,7 +25,7 @@ cn_queue_alloc_callback_entry(struct cn_queue_dev *dev, const char *name, · 24 unmodified lines | |||
| 25 | { | 25 | { |
| 26 | struct cn_callback_entry *cbq; | 26 | struct cn_callback_entry *cbq; |
| 27 | 27 | ||
| 28 | cbq = kzalloc_obj(*cbq, GFP_KERNEL); | 28 | cbq = kzalloc_obj(*cbq); |
| 29 | if (!cbq) { | 29 | if (!cbq) { |
| 30 | pr_err("Failed to create new callback queue.\n"); | 30 | pr_err("Failed to create new callback queue.\n"); |
| 31 | return NULL; | 31 | return NULL; |
| @@ -113,7 +113,7 @@ struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls) · 81 unmodified lines | |||
| 113 | { | 113 | { |
| 114 | struct cn_queue_dev *dev; | 114 | struct cn_queue_dev *dev; |
| 115 | 115 | ||
| 116 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 116 | dev = kzalloc_obj(*dev); |
| 117 | if (!dev) | 117 | if (!dev) |
| 118 | return NULL; | 118 | return NULL; |
| 119 | 119 | ||
| @@ -152,7 +152,7 @@ static int counter_set_event_node(struct counter_device *const counter, · 151 unmodified lines | |||
| 152 | /* If event is not already in the list */ | 152 | /* If event is not already in the list */ |
| 153 | if (&event_node->l == &counter->next_events_list) { | 153 | if (&event_node->l == &counter->next_events_list) { |
| 154 | /* Allocate new event node */ | 154 | /* Allocate new event node */ |
| 155 | event_node = kmalloc_obj(*event_node, GFP_KERNEL); | 155 | event_node = kmalloc_obj(*event_node); |
| 156 | if (!event_node) | 156 | if (!event_node) |
| 157 | return -ENOMEM; | 157 | return -ENOMEM; |
| 158 | 158 | ||
| @@ -172,7 +172,7 @@ static int counter_set_event_node(struct counter_device *const counter, · 13 unmodified lines | |||
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | /* Allocate component node */ | 174 | /* Allocate component node */ |
| 175 | comp_node = kmalloc_obj(*comp_node, GFP_KERNEL); | 175 | comp_node = kmalloc_obj(*comp_node); |
| 176 | if (!comp_node) { | 176 | if (!comp_node) { |
| 177 | err = -ENOMEM; | 177 | err = -ENOMEM; |
| 178 | goto exit_free_event_node; | 178 | goto exit_free_event_node; |
| @@ -700,7 +700,7 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) · 699 unmodified lines | |||
| 700 | return blacklisted; | 700 | return blacklisted; |
| 701 | #endif | 701 | #endif |
| 702 | 702 | ||
| 703 | data = kzalloc_obj(*data, GFP_KERNEL); | 703 | data = kzalloc_obj(*data); |
| 704 | if (!data) | 704 | if (!data) |
| 705 | return -ENOMEM; | 705 | return -ENOMEM; |
| 706 | 706 | ||
| @@ -993,7 +993,7 @@ static int amd_pstate_cpu_init(struct cpufreq_policy *policy) · 992 unmodified lines | |||
| 993 | if (!dev) | 993 | if (!dev) |
| 994 | return -ENODEV; | 994 | return -ENODEV; |
| 995 | 995 | ||
| 996 | cpudata = kzalloc_obj(*cpudata, GFP_KERNEL); | 996 | cpudata = kzalloc_obj(*cpudata); |
| 997 | if (!cpudata) | 997 | if (!cpudata) |
| 998 | return -ENOMEM; | 998 | return -ENOMEM; |
| 999 | 999 | ||
| @@ -1478,7 +1478,7 @@ static int amd_pstate_epp_cpu_init(struct cpufreq_policy *policy) · 478 unmodified lines | |||
| 1478 | if (!dev) | 1478 | if (!dev) |
| 1479 | return -ENODEV; | 1479 | return -ENODEV; |
| 1480 | 1480 | ||
| 1481 | cpudata = kzalloc_obj(*cpudata, GFP_KERNEL); | 1481 | cpudata = kzalloc_obj(*cpudata); |
| 1482 | if (!cpudata) | 1482 | if (!cpudata) |
| 1483 | return -ENOMEM; | 1483 | return -ENOMEM; |
| 1484 | 1484 | ||
| @@ -276,7 +276,7 @@ static int apple_soc_cpufreq_init(struct cpufreq_policy *policy) · 275 unmodified lines | |||
| 276 | goto out_free_opp; | 276 | goto out_free_opp; |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 279 | priv = kzalloc_obj(*priv); |
| 280 | if (!priv) { | 280 | if (!priv) { |
| 281 | ret = -ENOMEM; | 281 | ret = -ENOMEM; |
| 282 | goto out_free_opp; | 282 | goto out_free_opp; |
| @@ -143,7 +143,7 @@ static int __init armada_8k_cpufreq_init(void) · 142 unmodified lines | |||
| 143 | of_node_put(node); | 143 | of_node_put(node); |
| 144 | 144 | ||
| 145 | nb_cpus = num_possible_cpus(); | 145 | nb_cpus = num_possible_cpus(); |
| 146 | freq_tables = kzalloc_objs(*freq_tables, nb_cpus, GFP_KERNEL); | 146 | freq_tables = kzalloc_objs(*freq_tables, nb_cpus); |
| 147 | if (!freq_tables) | 147 | if (!freq_tables) |
| 148 | return -ENOMEM; | 148 | return -ENOMEM; |
| 149 | cpumask_copy(&cpus, cpu_possible_mask); | 149 | cpumask_copy(&cpus, cpu_possible_mask); |
| @@ -71,7 +71,7 @@ bmips_cpufreq_get_freq_table(const struct cpufreq_policy *policy) · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | cpu_freq = htp_freq_to_cpu_freq(priv->clk_mult); | 72 | cpu_freq = htp_freq_to_cpu_freq(priv->clk_mult); |
| 73 | 73 | ||
| 74 | table = kmalloc_objs(*table, priv->max_freqs + 1, GFP_KERNEL); | 74 | table = kmalloc_objs(*table, priv->max_freqs + 1); |
| 75 | if (!table) | 75 | if (!table) |
| 76 | return ERR_PTR(-ENOMEM); | 76 | return ERR_PTR(-ENOMEM); |
| 77 | 77 | ||
| @@ -575,7 +575,7 @@ static struct cppc_cpudata *cppc_cpufreq_get_cpu_data(unsigned int cpu) · 574 unmodified lines | |||
| 575 | struct cppc_cpudata *cpu_data; | 575 | struct cppc_cpudata *cpu_data; |
| 576 | int ret; | 576 | int ret; |
| 577 | 577 | ||
| 578 | cpu_data = kzalloc_obj(struct cppc_cpudata, GFP_KERNEL); | 578 | cpu_data = kzalloc_obj(struct cppc_cpudata); |
| 579 | if (!cpu_data) | 579 | if (!cpu_data) |
| 580 | goto out; | 580 | goto out; |
| 581 | 581 | ||
| @@ -1263,7 +1263,7 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu) · 1262 unmodified lines | |||
| 1263 | if (!dev) | 1263 | if (!dev) |
| 1264 | return NULL; | 1264 | return NULL; |
| 1265 | 1265 | ||
| 1266 | policy = kzalloc_obj(*policy, GFP_KERNEL); | 1266 | policy = kzalloc_obj(*policy); |
| 1267 | if (!policy) | 1267 | if (!policy) |
| 1268 | return NULL; | 1268 | return NULL; |
| 1269 | 1269 | ||
| @@ -273,7 +273,7 @@ static struct policy_dbs_info *cs_alloc(void) · 272 unmodified lines | |||
| 273 | { | 273 | { |
| 274 | struct cs_policy_dbs_info *dbs_info; | 274 | struct cs_policy_dbs_info *dbs_info; |
| 275 | 275 | ||
| 276 | dbs_info = kzalloc_obj(*dbs_info, GFP_KERNEL); | 276 | dbs_info = kzalloc_obj(*dbs_info); |
| 277 | return dbs_info ? &dbs_info->policy_dbs : NULL; | 277 | return dbs_info ? &dbs_info->policy_dbs : NULL; |
| 278 | } | 278 | } |
| 279 | 279 | ||
| @@ -286,7 +286,7 @@ static int cs_init(struct dbs_data *dbs_data) · 6 unmodified lines | |||
| 286 | { | 286 | { |
| 287 | struct cs_dbs_tuners *tuners; | 287 | struct cs_dbs_tuners *tuners; |
| 288 | 288 | ||
| 289 | tuners = kzalloc_obj(*tuners, GFP_KERNEL); | 289 | tuners = kzalloc_obj(*tuners); |
| 290 | if (!tuners) | 290 | if (!tuners) |
| 291 | return -ENOMEM; | 291 | return -ENOMEM; |
| 292 | 292 | ||
| @@ -429,7 +429,7 @@ int cpufreq_dbs_governor_init(struct cpufreq_policy *policy) · 428 unmodified lines | |||
| 429 | goto out; | 429 | goto out; |
| 430 | } | 430 | } |
| 431 | 431 | ||
| 432 | dbs_data = kzalloc_obj(*dbs_data, GFP_KERNEL); | 432 | dbs_data = kzalloc_obj(*dbs_data); |
| 433 | if (!dbs_data) { | 433 | if (!dbs_data) { |
| 434 | ret = -ENOMEM; | 434 | ret = -ENOMEM; |
| 435 | goto free_policy_dbs_info; | 435 | goto free_policy_dbs_info; |
| @@ -322,7 +322,7 @@ static struct policy_dbs_info *od_alloc(void) · 321 unmodified lines | |||
| 322 | { | 322 | { |
| 323 | struct od_policy_dbs_info *dbs_info; | 323 | struct od_policy_dbs_info *dbs_info; |
| 324 | 324 | ||
| 325 | dbs_info = kzalloc_obj(*dbs_info, GFP_KERNEL); | 325 | dbs_info = kzalloc_obj(*dbs_info); |
| 326 | return dbs_info ? &dbs_info->policy_dbs : NULL; | 326 | return dbs_info ? &dbs_info->policy_dbs : NULL; |
| 327 | } | 327 | } |
| 328 | 328 | ||
| @@ -335,7 +335,7 @@ static int od_init(struct dbs_data *dbs_data) · 6 unmodified lines | |||
| 335 | { | 335 | { |
| 336 | struct od_dbs_tuners *tuners; | 336 | struct od_dbs_tuners *tuners; |
| 337 | 337 | ||
| 338 | tuners = kzalloc_obj(*tuners, GFP_KERNEL); | 338 | tuners = kzalloc_obj(*tuners); |
| 339 | if (!tuners) | 339 | if (!tuners) |
| 340 | return -ENOMEM; | 340 | return -ENOMEM; |
| 341 | 341 | ||
| @@ -222,7 +222,7 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) · 221 unmodified lines | |||
| 222 | if (policy->stats) | 222 | if (policy->stats) |
| 223 | return; | 223 | return; |
| 224 | 224 | ||
| 225 | stats = kzalloc_obj(*stats, GFP_KERNEL); | 225 | stats = kzalloc_obj(*stats); |
| 226 | if (!stats) | 226 | if (!stats) |
| 227 | return; | 227 | return; |
| 228 | 228 | ||
| @@ -58,7 +58,7 @@ static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) · 57 unmodified lines | |||
| 58 | { | 58 | { |
| 59 | struct userspace_policy *userspace; | 59 | struct userspace_policy *userspace; |
| 60 | 60 | ||
| 61 | userspace = kzalloc_obj(*userspace, GFP_KERNEL); | 61 | userspace = kzalloc_obj(*userspace); |
| 62 | if (!userspace) | 62 | if (!userspace) |
| 63 | return -ENOMEM; | 63 | return -ENOMEM; |
| 64 | 64 | ||
| @@ -55,7 +55,7 @@ static struct acpi_processor_performance *eps_acpi_cpu_perf; · 54 unmodified lines | |||
| 55 | /* Minimum necessary to get acpi_processor_get_bios_limit() working */ | 55 | /* Minimum necessary to get acpi_processor_get_bios_limit() working */ |
| 56 | static int eps_acpi_init(void) | 56 | static int eps_acpi_init(void) |
| 57 | { | 57 | { |
| 58 | eps_acpi_cpu_perf = kzalloc_obj(*eps_acpi_cpu_perf, GFP_KERNEL); | 58 | eps_acpi_cpu_perf = kzalloc_obj(*eps_acpi_cpu_perf); |
| 59 | if (!eps_acpi_cpu_perf) | 59 | if (!eps_acpi_cpu_perf) |
| 60 | return -ENOMEM; | 60 | return -ENOMEM; |
| 61 | 61 | ||
| @@ -458,7 +458,7 @@ static int __init cpufreq_gx_init(void) · 457 unmodified lines | |||
| 458 | 458 | ||
| 459 | pr_debug("geode suspend modulation available.\n"); | 459 | pr_debug("geode suspend modulation available.\n"); |
| 460 | 460 | ||
| 461 | params = kzalloc_obj(*params, GFP_KERNEL); | 461 | params = kzalloc_obj(*params); |
| 462 | if (params == NULL) | 462 | if (params == NULL) |
| 463 | return -ENOMEM; | 463 | return -ENOMEM; |
| 464 | 464 | ||
| @@ -2745,7 +2745,7 @@ static int intel_pstate_init_cpu(unsigned int cpunum) · 2744 unmodified lines | |||
| 2745 | cpu = all_cpu_data[cpunum]; | 2745 | cpu = all_cpu_data[cpunum]; |
| 2746 | 2746 | ||
| 2747 | if (!cpu) { | 2747 | if (!cpu) { |
| 2748 | cpu = kzalloc_obj(*cpu, GFP_KERNEL); | 2748 | cpu = kzalloc_obj(*cpu); |
| 2749 | if (!cpu) | 2749 | if (!cpu) |
| 2750 | return -ENOMEM; | 2750 | return -ENOMEM; |
| 2751 | 2751 | ||
| @@ -3301,7 +3301,7 @@ static int intel_cpufreq_cpu_init(struct cpufreq_policy *policy) · 549 unmodified lines | |||
| 3301 | /* This reflects the intel_pstate_get_cpu_pstates() setting. */ | 3301 | /* This reflects the intel_pstate_get_cpu_pstates() setting. */ |
| 3302 | policy->cur = policy->cpuinfo.min_freq; | 3302 | policy->cur = policy->cpuinfo.min_freq; |
| 3303 | 3303 | ||
| 3304 | req = kzalloc_objs(*req, 2, GFP_KERNEL); | 3304 | req = kzalloc_objs(*req, 2); |
| 3305 | if (!req) { | 3305 | if (!req) { |
| 3306 | ret = -ENOMEM; | 3306 | ret = -ENOMEM; |
| 3307 | goto pstate_exit; | 3307 | goto pstate_exit; |
| @@ -304,7 +304,7 @@ static int powernow_acpi_init(void) · 303 unmodified lines | |||
| 304 | goto err0; | 304 | goto err0; |
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | acpi_processor_perf = kzalloc_obj(*acpi_processor_perf, GFP_KERNEL); | 307 | acpi_processor_perf = kzalloc_obj(*acpi_processor_perf); |
| 308 | if (!acpi_processor_perf) { | 308 | if (!acpi_processor_perf) { |
| 309 | retval = -ENOMEM; | 309 | retval = -ENOMEM; |
| 310 | goto err0; | 310 | goto err0; |
| @@ -1029,7 +1029,7 @@ static int powernowk8_cpu_init(struct cpufreq_policy *pol) · 1028 unmodified lines | |||
| 1029 | if (rc) | 1029 | if (rc) |
| 1030 | return -ENODEV; | 1030 | return -ENODEV; |
| 1031 | 1031 | ||
| 1032 | data = kzalloc_obj(*data, GFP_KERNEL); | 1032 | data = kzalloc_obj(*data); |
| 1033 | if (!data) | 1033 | if (!data) |
| 1034 | return -ENOMEM; | 1034 | return -ENOMEM; |
| 1035 | 1035 | ||
| @@ -323,7 +323,7 @@ next: · 322 unmodified lines | |||
| 323 | powernv_freqs[i].frequency = freq * 1000; /* kHz */ | 323 | powernv_freqs[i].frequency = freq * 1000; /* kHz */ |
| 324 | powernv_freqs[i].driver_data = id & 0xFF; | 324 | powernv_freqs[i].driver_data = id & 0xFF; |
| 325 | 325 | ||
| 326 | revmap_data = kmalloc_obj(*revmap_data, GFP_KERNEL); | 326 | revmap_data = kmalloc_obj(*revmap_data); |
| 327 | if (!revmap_data) { | 327 | if (!revmap_data) { |
| 328 | rc = -ENOMEM; | 328 | rc = -ENOMEM; |
| 329 | goto out; | 329 | goto out; |
| @@ -857,7 +857,7 @@ static int powernv_cpufreq_cpu_init(struct cpufreq_policy *policy) · 527 unmodified lines | |||
| 857 | return 0; | 857 | return 0; |
| 858 | 858 | ||
| 859 | /* Initialise Gpstate ramp-down timer only on POWER8 */ | 859 | /* Initialise Gpstate ramp-down timer only on POWER8 */ |
| 860 | gpstates = kzalloc_obj(*gpstates, GFP_KERNEL); | 860 | gpstates = kzalloc_obj(*gpstates); |
| 861 | if (!gpstates) | 861 | if (!gpstates) |
| 862 | return -ENOMEM; | 862 | return -ENOMEM; |
| 863 | 863 | ||
| @@ -1053,7 +1053,7 @@ static int init_chip_info(void) · 189 unmodified lines | |||
| 1053 | return -ENOMEM; | 1053 | return -ENOMEM; |
| 1054 | 1054 | ||
| 1055 | /* Allocate a chip cpu mask large enough to fit mask for all chips */ | 1055 | /* Allocate a chip cpu mask large enough to fit mask for all chips */ |
| 1056 | chip_cpu_mask = kzalloc_objs(cpumask_t, MAX_NR_CHIPS, GFP_KERNEL); | 1056 | chip_cpu_mask = kzalloc_objs(cpumask_t, MAX_NR_CHIPS); |
| 1057 | if (!chip_cpu_mask) { | 1057 | if (!chip_cpu_mask) { |
| 1058 | ret = -ENOMEM; | 1058 | ret = -ENOMEM; |
| 1059 | goto free_and_return; | 1059 | goto free_and_return; |
| @@ -1069,7 +1069,7 @@ static int init_chip_info(void) · 9 unmodified lines | |||
| 1069 | cpumask_set_cpu(cpu, &chip_cpu_mask[nr_chips-1]); | 1069 | cpumask_set_cpu(cpu, &chip_cpu_mask[nr_chips-1]); |
| 1070 | } | 1070 | } |
| 1071 | 1071 | ||
| 1072 | chips = kzalloc_objs(struct chip, nr_chips, GFP_KERNEL); | 1072 | chips = kzalloc_objs(struct chip, nr_chips); |
| 1073 | if (!chips) { | 1073 | if (!chips) { |
| 1074 | ret = -ENOMEM; | 1074 | ret = -ENOMEM; |
| 1075 | goto out_free_chip_cpu_mask; | 1075 | goto out_free_chip_cpu_mask; |
| @@ -110,7 +110,7 @@ static int setup_freqs_table(struct cpufreq_policy *policy, · 109 unmodified lines | |||
| 110 | struct cpufreq_frequency_table *table; | 110 | struct cpufreq_frequency_table *table; |
| 111 | int i; | 111 | int i; |
| 112 | 112 | ||
| 113 | table = kzalloc_objs(*table, num + 1, GFP_KERNEL); | 113 | table = kzalloc_objs(*table, num + 1); |
| 114 | if (table == NULL) | 114 | if (table == NULL) |
| 115 | return -ENOMEM; | 115 | return -ENOMEM; |
| 116 | 116 | ||
| @@ -211,7 +211,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev, · 210 unmodified lines | |||
| 211 | struct qcom_cpufreq_data *drv_data = policy->driver_data; | 211 | struct qcom_cpufreq_data *drv_data = policy->driver_data; |
| 212 | const struct qcom_cpufreq_soc_data *soc_data = qcom_cpufreq.soc_data; | 212 | const struct qcom_cpufreq_soc_data *soc_data = qcom_cpufreq.soc_data; |
| 213 | 213 | ||
| 214 | table = kzalloc_objs(*table, LUT_MAX_ENTRIES + 1, GFP_KERNEL); | 214 | table = kzalloc_objs(*table, LUT_MAX_ENTRIES + 1); |
| 215 | if (!table) | 215 | if (!table) |
| 216 | return -ENOMEM; | 216 | return -ENOMEM; |
| 217 | 217 | ||
| @@ -168,7 +168,7 @@ static int qoriq_cpufreq_cpu_init(struct cpufreq_policy *policy) · 167 unmodified lines | |||
| 168 | if (!np) | 168 | if (!np) |
| 169 | return -ENODEV; | 169 | return -ENODEV; |
| 170 | 170 | ||
| 171 | data = kzalloc_obj(*data, GFP_KERNEL); | 171 | data = kzalloc_obj(*data); |
| 172 | if (!data) | 172 | if (!data) |
| 173 | goto err_np; | 173 | goto err_np; |
| 174 | 174 | ||
| @@ -181,11 +181,11 @@ static int qoriq_cpufreq_cpu_init(struct cpufreq_policy *policy) · 6 unmodified lines | |||
| 181 | hwclk = __clk_get_hw(policy->clk); | 181 | hwclk = __clk_get_hw(policy->clk); |
| 182 | count = clk_hw_get_num_parents(hwclk); | 182 | count = clk_hw_get_num_parents(hwclk); |
| 183 | 183 | ||
| 184 | data->pclk = kzalloc_objs(struct clk *, count, GFP_KERNEL); | 184 | data->pclk = kzalloc_objs(struct clk *, count); |
| 185 | if (!data->pclk) | 185 | if (!data->pclk) |
| 186 | goto err_nomem2; | 186 | goto err_nomem2; |
| 187 | 187 | ||
| 188 | table = kzalloc_objs(*table, count + 1, GFP_KERNEL); | 188 | table = kzalloc_objs(*table, count + 1); |
| 189 | if (!table) | 189 | if (!table) |
| 190 | goto err_pclk; | 190 | goto err_pclk; |
| 191 | 191 | ||
| @@ -214,7 +214,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy) · 213 unmodified lines | |||
| 214 | if (domain < 0) | 214 | if (domain < 0) |
| 215 | return domain; | 215 | return domain; |
| 216 | 216 | ||
| 217 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 217 | priv = kzalloc_obj(*priv); |
| 218 | if (!priv) | 218 | if (!priv) |
| 219 | return -ENOMEM; | 219 | return -ENOMEM; |
| 220 | 220 | ||
| @@ -128,7 +128,7 @@ static int scpi_cpufreq_init(struct cpufreq_policy *policy) · 127 unmodified lines | |||
| 128 | goto out_free_opp; | 128 | goto out_free_opp; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 131 | priv = kzalloc_obj(*priv); |
| 132 | if (!priv) { | 132 | if (!priv) { |
| 133 | ret = -ENOMEM; | 133 | ret = -ENOMEM; |
| 134 | goto out_free_opp; | 134 | goto out_free_opp; |
| @@ -191,7 +191,7 @@ static int spear_cpufreq_probe(struct platform_device *pdev) · 190 unmodified lines | |||
| 191 | goto out_put_node; | 191 | goto out_put_node; |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | freq_tbl = kzalloc_objs(*freq_tbl, cnt + 1, GFP_KERNEL); | 194 | freq_tbl = kzalloc_objs(*freq_tbl, cnt + 1); |
| 195 | if (!freq_tbl) { | 195 | if (!freq_tbl) { |
| 196 | ret = -ENOMEM; | 196 | ret = -ENOMEM; |
| 197 | goto out_put_node; | 197 | goto out_put_node; |
| @@ -244,7 +244,7 @@ static int sun50i_cpufreq_nvmem_probe(struct platform_device *pdev) · 243 unmodified lines | |||
| 244 | int speed; | 244 | int speed; |
| 245 | int ret; | 245 | int ret; |
| 246 | 246 | ||
| 247 | opp_tokens = kzalloc_objs(*opp_tokens, num_possible_cpus(), GFP_KERNEL); | 247 | opp_tokens = kzalloc_objs(*opp_tokens, num_possible_cpus()); |
| 248 | if (!opp_tokens) | 248 | if (!opp_tokens) |
| 249 | return -ENOMEM; | 249 | return -ENOMEM; |
| 250 | 250 | ||
| @@ -135,7 +135,7 @@ static int tegra_cpufreq_init_cpufreq_table(struct cpufreq_policy *policy, · 134 unmodified lines | |||
| 135 | dev_pm_opp_disable(cpu_dev, rate); | 135 | dev_pm_opp_disable(cpu_dev, rate); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | freq_table = kzalloc_objs(*freq_table, (max_opps + 1), GFP_KERNEL); | 138 | freq_table = kzalloc_objs(*freq_table, (max_opps + 1)); |
| 139 | if (!freq_table) | 139 | if (!freq_table) |
| 140 | return -ENOMEM; | 140 | return -ENOMEM; |
| 141 | 141 | ||
| @@ -463,7 +463,7 @@ static int tegra_cpufreq_init_cpufreq_table(struct cpufreq_policy *policy, · 462 unmodified lines | |||
| 463 | return ret; | 463 | return ret; |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | freq_table = kzalloc_objs(*freq_table, (max_opps + 1), GFP_KERNEL); | 466 | freq_table = kzalloc_objs(*freq_table, (max_opps + 1)); |
| 467 | if (!freq_table) | 467 | if (!freq_table) |
| 468 | return -ENOMEM; | 468 | return -ENOMEM; |
| 469 | 469 | ||
| @@ -252,7 +252,7 @@ static int merge_cluster_tables(void) · 251 unmodified lines | |||
| 252 | for (i = 0; i < MAX_CLUSTERS; i++) | 252 | for (i = 0; i < MAX_CLUSTERS; i++) |
| 253 | count += get_table_count(freq_table[i]); | 253 | count += get_table_count(freq_table[i]); |
| 254 | 254 | ||
| 255 | table = kzalloc_objs(*table, count, GFP_KERNEL); | 255 | table = kzalloc_objs(*table, count); |
| 256 | if (!table) | 256 | if (!table) |
| 257 | return -ENOMEM; | 257 | return -ENOMEM; |
| 258 | 258 | ||
| @@ -171,7 +171,7 @@ static int virt_cpufreq_get_freq_info(struct cpufreq_policy *policy) · 170 unmodified lines | |||
| 171 | return 0; | 171 | return 0; |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | table = kzalloc_objs(*table, num_perftbl_entries + 1, GFP_KERNEL); | 174 | table = kzalloc_objs(*table, num_perftbl_entries + 1); |
| 175 | if (!table) | 175 | if (!table) |
| 176 | return -ENOMEM; | 176 | return -ENOMEM; |
| 177 | 177 | ||
| @@ -651,7 +651,7 @@ int cpuidle_coupled_register_device(struct cpuidle_device *dev) · 650 unmodified lines | |||
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | /* No existing coupled info found, create a new one */ | 653 | /* No existing coupled info found, create a new one */ |
| 654 | coupled = kzalloc_obj(struct cpuidle_coupled, GFP_KERNEL); | 654 | coupled = kzalloc_obj(struct cpuidle_coupled); |
| 655 | if (!coupled) | 655 | if (!coupled) |
| 656 | return -ENOMEM; | 656 | return -ENOMEM; |
| 657 | 657 | ||
| @@ -55,7 +55,7 @@ static int psci_pd_init(struct device_node *np, bool use_osi) · 54 unmodified lines | |||
| 55 | if (!pd) | 55 | if (!pd) |
| 56 | goto out; | 56 | goto out; |
| 57 | 57 | ||
| 58 | pd_provider = kzalloc_obj(*pd_provider, GFP_KERNEL); | 58 | pd_provider = kzalloc_obj(*pd_provider); |
| 59 | if (!pd_provider) | 59 | if (!pd_provider) |
| 60 | goto free_pd; | 60 | goto free_pd; |
| 61 | 61 | ||
| @@ -380,7 +380,7 @@ static int sbi_pd_init(struct device_node *np) · 379 unmodified lines | |||
| 380 | if (!pd) | 380 | if (!pd) |
| 381 | goto out; | 381 | goto out; |
| 382 | 382 | ||
| 383 | pd_provider = kzalloc_obj(*pd_provider, GFP_KERNEL); | 383 | pd_provider = kzalloc_obj(*pd_provider); |
| 384 | if (!pd_provider) | 384 | if (!pd_provider) |
| 385 | goto free_pd; | 385 | goto free_pd; |
| 386 | 386 | ||
| @@ -95,7 +95,7 @@ struct generic_pm_domain *dt_idle_pd_alloc(struct device_node *np, · 94 unmodified lines | |||
| 95 | struct genpd_power_state *states = NULL; | 95 | struct genpd_power_state *states = NULL; |
| 96 | int ret, state_count = 0; | 96 | int ret, state_count = 0; |
| 97 | 97 | ||
| 98 | pd = kzalloc_obj(*pd, GFP_KERNEL); | 98 | pd = kzalloc_obj(*pd); |
| 99 | if (!pd) | 99 | if (!pd) |
| 100 | goto out; | 100 | goto out; |
| 101 | 101 | ||
| @@ -482,7 +482,7 @@ static int cpuidle_add_state_sysfs(struct cpuidle_device *device) · 481 unmodified lines | |||
| 482 | 482 | ||
| 483 | /* state statistics */ | 483 | /* state statistics */ |
| 484 | for (i = 0; i < drv->state_count; i++) { | 484 | for (i = 0; i < drv->state_count; i++) { |
| 485 | kobj = kzalloc_obj(struct cpuidle_state_kobj, GFP_KERNEL); | 485 | kobj = kzalloc_obj(struct cpuidle_state_kobj); |
| 486 | if (!kobj) { | 486 | if (!kobj) { |
| 487 | ret = -ENOMEM; | 487 | ret = -ENOMEM; |
| 488 | goto error_state; | 488 | goto error_state; |
| @@ -618,7 +618,7 @@ static int cpuidle_add_driver_sysfs(struct cpuidle_device *dev) · 129 unmodified lines | |||
| 618 | struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); | 618 | struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); |
| 619 | int ret; | 619 | int ret; |
| 620 | 620 | ||
| 621 | kdrv = kzalloc_obj(*kdrv, GFP_KERNEL); | 621 | kdrv = kzalloc_obj(*kdrv); |
| 622 | if (!kdrv) | 622 | if (!kdrv) |
| 623 | return -ENOMEM; | 623 | return -ENOMEM; |
| 624 | 624 | ||
| @@ -712,7 +712,7 @@ int cpuidle_add_sysfs(struct cpuidle_device *dev) · 87 unmodified lines | |||
| 712 | if (!cpu_dev) | 712 | if (!cpu_dev) |
| 713 | return -ENODEV; | 713 | return -ENODEV; |
| 714 | 714 | ||
| 715 | kdev = kzalloc_obj(*kdev, GFP_KERNEL); | 715 | kdev = kzalloc_obj(*kdev); |
| 716 | if (!kdev) | 716 | if (!kdev) |
| 717 | return -ENOMEM; | 717 | return -ENOMEM; |
| 718 | kdev->dev = dev; | 718 | kdev->dev = dev; |
| @@ -974,7 +974,7 @@ static int crypto4xx_register_alg(struct crypto4xx_device *sec_dev, · 973 unmodified lines | |||
| 974 | int rc = 0; | 974 | int rc = 0; |
| 975 | 975 | ||
| 976 | for (i = 0; i < array_size; i++) { | 976 | for (i = 0; i < array_size; i++) { |
| 977 | alg = kzalloc_obj(struct crypto4xx_alg, GFP_KERNEL); | 977 | alg = kzalloc_obj(struct crypto4xx_alg); |
| 978 | if (!alg) | 978 | if (!alg) |
| 979 | return -ENOMEM; | 979 | return -ENOMEM; |
| 980 | 980 | ||
| @@ -87,7 +87,7 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev) · 86 unmodified lines | |||
| 87 | if (!dev->trng_base) | 87 | if (!dev->trng_base) |
| 88 | goto err_out; | 88 | goto err_out; |
| 89 | 89 | ||
| 90 | rng = kzalloc_obj(*rng, GFP_KERNEL); | 90 | rng = kzalloc_obj(*rng); |
| 91 | if (!rng) | 91 | if (!rng) |
| 92 | goto err_out; | 92 | goto err_out; |
| 93 | 93 | ||
| @@ -99,7 +99,7 @@ static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, · 98 unmodified lines | |||
| 99 | return crypto_kpp_set_secret(ctx->fallback, buf, len); | 99 | return crypto_kpp_set_secret(ctx->fallback, buf, len); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | cmd = kmalloc_obj(*cmd, GFP_KERNEL); | 102 | cmd = kmalloc_obj(*cmd); |
| 103 | if (!cmd) | 103 | if (!cmd) |
| 104 | return -ENOMEM; | 104 | return -ENOMEM; |
| 105 | 105 | ||
| @@ -321,7 +321,7 @@ static int device_sanity_check(struct i2c_client *client) · 320 unmodified lines | |||
| 321 | struct atmel_i2c_cmd *cmd; | 321 | struct atmel_i2c_cmd *cmd; |
| 322 | int ret; | 322 | int ret; |
| 323 | 323 | ||
| 324 | cmd = kmalloc_obj(*cmd, GFP_KERNEL); | 324 | cmd = kmalloc_obj(*cmd); |
| 325 | if (!cmd) | 325 | if (!cmd) |
| 326 | return -ENOMEM; | 326 | return -ENOMEM; |
| 327 | 327 | ||
| @@ -2207,7 +2207,7 @@ struct atmel_sha_authenc_ctx *atmel_sha_authenc_spawn(unsigned long mode) · 2206 unmodified lines | |||
| 2207 | tctx->start = atmel_sha_authenc_start; | 2207 | tctx->start = atmel_sha_authenc_start; |
| 2208 | tctx->flags = mode; | 2208 | tctx->flags = mode; |
| 2209 | 2209 | ||
| 2210 | auth = kzalloc_obj(*auth, GFP_KERNEL); | 2210 | auth = kzalloc_obj(*auth); |
| 2211 | if (!auth) { | 2211 | if (!auth) { |
| 2212 | err = -ENOMEM; | 2212 | err = -ENOMEM; |
| 2213 | goto err_free_ahash; | 2213 | goto err_free_ahash; |
| @@ -3224,14 +3224,14 @@ static int hash_digest_key(struct caam_hash_ctx *ctx, u32 *keylen, u8 *key, · 3223 unmodified lines | |||
| 3224 | int ret = -ENOMEM; | 3224 | int ret = -ENOMEM; |
| 3225 | struct dpaa2_fl_entry *in_fle, *out_fle; | 3225 | struct dpaa2_fl_entry *in_fle, *out_fle; |
| 3226 | 3226 | ||
| 3227 | req_ctx = kzalloc_obj(*req_ctx, GFP_KERNEL); | 3227 | req_ctx = kzalloc_obj(*req_ctx); |
| 3228 | if (!req_ctx) | 3228 | if (!req_ctx) |
| 3229 | return -ENOMEM; | 3229 | return -ENOMEM; |
| 3230 | 3230 | ||
| 3231 | in_fle = &req_ctx->fd_flt[1]; | 3231 | in_fle = &req_ctx->fd_flt[1]; |
| 3232 | out_fle = &req_ctx->fd_flt[0]; | 3232 | out_fle = &req_ctx->fd_flt[0]; |
| 3233 | 3233 | ||
| 3234 | flc = kzalloc_obj(*flc, GFP_KERNEL); | 3234 | flc = kzalloc_obj(*flc); |
| 3235 | if (!flc) | 3235 | if (!flc) |
| 3236 | goto err_flc; | 3236 | goto err_flc; |
| 3237 | 3237 | ||
| @@ -4635,7 +4635,7 @@ static struct caam_hash_alg *caam_hash_alloc(struct device *dev, · 1397 unmodified lines | |||
| 4635 | struct ahash_alg *halg; | 4635 | struct ahash_alg *halg; |
| 4636 | struct crypto_alg *alg; | 4636 | struct crypto_alg *alg; |
| 4637 | 4637 | ||
| 4638 | t_alg = kzalloc_obj(*t_alg, GFP_KERNEL); | 4638 | t_alg = kzalloc_obj(*t_alg); |
| 4639 | if (!t_alg) | 4639 | if (!t_alg) |
| 4640 | return ERR_PTR(-ENOMEM); | 4640 | return ERR_PTR(-ENOMEM); |
| 4641 | 4641 | ||
| @@ -1904,7 +1904,7 @@ caam_hash_alloc(struct caam_hash_template *template, · 1903 unmodified lines | |||
| 1904 | struct ahash_alg *halg; | 1904 | struct ahash_alg *halg; |
| 1905 | struct crypto_alg *alg; | 1905 | struct crypto_alg *alg; |
| 1906 | 1906 | ||
| 1907 | t_alg = kzalloc_obj(*t_alg, GFP_KERNEL); | 1907 | t_alg = kzalloc_obj(*t_alg); |
| 1908 | if (!t_alg) | 1908 | if (!t_alg) |
| 1909 | return ERR_PTR(-ENOMEM); | 1909 | return ERR_PTR(-ENOMEM); |
| 1910 | 1910 | ||
| @@ -619,7 +619,7 @@ static int alloc_rsp_fq_cpu(struct device *qidev, unsigned int cpu) · 618 unmodified lines | |||
| 619 | struct qman_fq *fq; | 619 | struct qman_fq *fq; |
| 620 | int ret; | 620 | int ret; |
| 621 | 621 | ||
| 622 | fq = kzalloc_obj(*fq, GFP_KERNEL); | 622 | fq = kzalloc_obj(*fq); |
| 623 | if (!fq) | 623 | if (!fq) |
| 624 | return -ENOMEM; | 624 | return -ENOMEM; |
| 625 | 625 | ||
| @@ -35,7 +35,7 @@ static int init_worker_threads(struct cpt_vf *cptvf) · 34 unmodified lines | |||
| 35 | struct cptvf_wqe_info *cwqe_info; | 35 | struct cptvf_wqe_info *cwqe_info; |
| 36 | int i; | 36 | int i; |
| 37 | 37 | ||
| 38 | cwqe_info = kzalloc_obj(*cwqe_info, GFP_KERNEL); | 38 | cwqe_info = kzalloc_obj(*cwqe_info); |
| 39 | if (!cwqe_info) | 39 | if (!cwqe_info) |
| 40 | return -ENOMEM; | 40 | return -ENOMEM; |
| 41 | 41 | ||
| @@ -111,7 +111,7 @@ static int alloc_pending_queues(struct pending_qinfo *pqinfo, u32 qlen, · 69 unmodified lines | |||
| 111 | pqinfo->qlen = qlen; | 111 | pqinfo->qlen = qlen; |
| 112 | 112 | ||
| 113 | for_each_pending_queue(pqinfo, queue, i) { | 113 | for_each_pending_queue(pqinfo, queue, i) { |
| 114 | queue->head = kzalloc_objs(*queue->head, qlen, GFP_KERNEL); | 114 | queue->head = kzalloc_objs(*queue->head, qlen); |
| 115 | if (!queue->head) { | 115 | if (!queue->head) { |
| 116 | ret = -ENOMEM; | 116 | ret = -ENOMEM; |
| 117 | goto pending_qfail; | 117 | goto pending_qfail; |
| @@ -225,7 +225,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf, · 107 unmodified lines | |||
| 225 | queue = &cqinfo->queue[i]; | 225 | queue = &cqinfo->queue[i]; |
| 226 | INIT_HLIST_HEAD(&cqinfo->queue[i].chead); | 226 | INIT_HLIST_HEAD(&cqinfo->queue[i].chead); |
| 227 | do { | 227 | do { |
| 228 | curr = kzalloc_obj(*curr, GFP_KERNEL); | 228 | curr = kzalloc_obj(*curr); |
| 229 | if (!curr) | 229 | if (!curr) |
| 230 | goto cmd_qfail; | 230 | goto cmd_qfail; |
| 231 | 231 | ||
| @@ -320,7 +320,7 @@ int nitrox_register_interrupts(struct nitrox_device *ndev) · 319 unmodified lines | |||
| 320 | } | 320 | } |
| 321 | ndev->num_vecs = nr_vecs; | 321 | ndev->num_vecs = nr_vecs; |
| 322 | 322 | ||
| 323 | ndev->qvec = kzalloc_objs(*qvec, nr_vecs, GFP_KERNEL); | 323 | ndev->qvec = kzalloc_objs(*qvec, nr_vecs); |
| 324 | if (!ndev->qvec) { | 324 | if (!ndev->qvec) { |
| 325 | pci_free_irq_vectors(pdev); | 325 | pci_free_irq_vectors(pdev); |
| 326 | return -ENOMEM; | 326 | return -ENOMEM; |
| @@ -424,7 +424,7 @@ int nitrox_sriov_register_interupts(struct nitrox_device *ndev) · 97 unmodified lines | |||
| 424 | return ret; | 424 | return ret; |
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | qvec = kzalloc_objs(*qvec, NR_NON_RING_VECTORS, GFP_KERNEL); | 427 | qvec = kzalloc_objs(*qvec, NR_NON_RING_VECTORS); |
| 428 | if (!qvec) { | 428 | if (!qvec) { |
| 429 | pci_disable_msix(pdev); | 429 | pci_disable_msix(pdev); |
| 430 | return -ENOMEM; | 430 | return -ENOMEM; |
| @@ -219,7 +219,7 @@ void *crypto_alloc_context(struct nitrox_device *ndev) · 218 unmodified lines | |||
| 219 | void *vaddr; | 219 | void *vaddr; |
| 220 | dma_addr_t dma; | 220 | dma_addr_t dma; |
| 221 | 221 | ||
| 222 | chdr = kmalloc_obj(*chdr, GFP_KERNEL); | 222 | chdr = kmalloc_obj(*chdr); |
| 223 | if (!chdr) | 223 | if (!chdr) |
| 224 | return NULL; | 224 | return NULL; |
| 225 | 225 | ||
| @@ -441,7 +441,7 @@ static int nitrox_probe(struct pci_dev *pdev, · 440 unmodified lines | |||
| 441 | goto flr_fail; | 441 | goto flr_fail; |
| 442 | pci_set_master(pdev); | 442 | pci_set_master(pdev); |
| 443 | 443 | ||
| 444 | ndev = kzalloc_obj(*ndev, GFP_KERNEL); | 444 | ndev = kzalloc_obj(*ndev); |
| 445 | if (!ndev) { | 445 | if (!ndev) { |
| 446 | err = -ENOMEM; | 446 | err = -ENOMEM; |
| 447 | goto ndev_fail; | 447 | goto ndev_fail; |
| @@ -354,7 +354,7 @@ int ccp_register_aes_cmac_algs(struct list_head *head) · 353 unmodified lines | |||
| 354 | struct crypto_alg *base; | 354 | struct crypto_alg *base; |
| 355 | int ret; | 355 | int ret; |
| 356 | 356 | ||
| 357 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 357 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 358 | if (!ccp_alg) | 358 | if (!ccp_alg) |
| 359 | return -ENOMEM; | 359 | return -ENOMEM; |
| 360 | 360 | ||
| @@ -212,7 +212,7 @@ static int ccp_register_aes_aead(struct list_head *head, · 211 unmodified lines | |||
| 212 | struct aead_alg *alg; | 212 | struct aead_alg *alg; |
| 213 | int ret; | 213 | int ret; |
| 214 | 214 | ||
| 215 | ccp_aead = kzalloc_obj(*ccp_aead, GFP_KERNEL); | 215 | ccp_aead = kzalloc_obj(*ccp_aead); |
| 216 | if (!ccp_aead) | 216 | if (!ccp_aead) |
| 217 | return -ENOMEM; | 217 | return -ENOMEM; |
| 218 | 218 | ||
| @@ -231,7 +231,7 @@ static int ccp_register_aes_xts_alg(struct list_head *head, · 230 unmodified lines | |||
| 231 | struct skcipher_alg *alg; | 231 | struct skcipher_alg *alg; |
| 232 | int ret; | 232 | int ret; |
| 233 | 233 | ||
| 234 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 234 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 235 | if (!ccp_alg) | 235 | if (!ccp_alg) |
| 236 | return -ENOMEM; | 236 | return -ENOMEM; |
| 237 | 237 | ||
| @@ -294,7 +294,7 @@ static int ccp_register_aes_alg(struct list_head *head, · 293 unmodified lines | |||
| 294 | struct skcipher_alg *alg; | 294 | struct skcipher_alg *alg; |
| 295 | int ret; | 295 | int ret; |
| 296 | 296 | ||
| 297 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 297 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 298 | if (!ccp_alg) | 298 | if (!ccp_alg) |
| 299 | return -ENOMEM; | 299 | return -ENOMEM; |
| 300 | 300 | ||
| @@ -182,7 +182,7 @@ static int ccp_register_des3_alg(struct list_head *head, · 181 unmodified lines | |||
| 182 | struct skcipher_alg *alg; | 182 | struct skcipher_alg *alg; |
| 183 | int ret; | 183 | int ret; |
| 184 | 184 | ||
| 185 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 185 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 186 | if (!ccp_alg) | 186 | if (!ccp_alg) |
| 187 | return -ENOMEM; | 187 | return -ENOMEM; |
| 188 | 188 | ||
| @@ -249,7 +249,7 @@ static int ccp_register_rsa_alg(struct list_head *head, · 248 unmodified lines | |||
| 249 | struct akcipher_alg *alg; | 249 | struct akcipher_alg *alg; |
| 250 | int ret; | 250 | int ret; |
| 251 | 251 | ||
| 252 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 252 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 253 | if (!ccp_alg) | 253 | if (!ccp_alg) |
| 254 | return -ENOMEM; | 254 | return -ENOMEM; |
| 255 | 255 | ||
| @@ -418,7 +418,7 @@ static int ccp_register_hmac_alg(struct list_head *head, · 417 unmodified lines | |||
| 418 | struct crypto_alg *base; | 418 | struct crypto_alg *base; |
| 419 | int ret; | 419 | int ret; |
| 420 | 420 | ||
| 421 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 421 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 422 | if (!ccp_alg) | 422 | if (!ccp_alg) |
| 423 | return -ENOMEM; | 423 | return -ENOMEM; |
| 424 | 424 | ||
| @@ -462,7 +462,7 @@ static int ccp_register_sha_alg(struct list_head *head, · 37 unmodified lines | |||
| 462 | struct crypto_alg *base; | 462 | struct crypto_alg *base; |
| 463 | int ret; | 463 | int ret; |
| 464 | 464 | ||
| 465 | ccp_alg = kzalloc_obj(*ccp_alg, GFP_KERNEL); | 465 | ccp_alg = kzalloc_obj(*ccp_alg); |
| 466 | if (!ccp_alg) | 466 | if (!ccp_alg) |
| 467 | return -ENOMEM; | 467 | return -ENOMEM; |
| 468 | 468 | ||
| @@ -642,7 +642,7 @@ ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) · 641 unmodified lines | |||
| 642 | struct ccp_data dst; | 642 | struct ccp_data dst; |
| 643 | struct ccp_data aad; | 643 | struct ccp_data aad; |
| 644 | struct ccp_op op; | 644 | struct ccp_op op; |
| 645 | } *wa __free(kfree) = kzalloc_obj(*wa, GFP_KERNEL); | 645 | } *wa __free(kfree) = kzalloc_obj(*wa); |
| 646 | unsigned int dm_offset; | 646 | unsigned int dm_offset; |
| 647 | unsigned int authsize; | 647 | unsigned int authsize; |
| 648 | unsigned int jobid; | 648 | unsigned int jobid; |
| @@ -87,7 +87,7 @@ static int psp_populate_hsti(struct psp_device *psp) · 86 unmodified lines | |||
| 87 | return 0; | 87 | return 0; |
| 88 | 88 | ||
| 89 | /* Allocate command-response buffer */ | 89 | /* Allocate command-response buffer */ |
| 90 | req = kzalloc_obj(*req, GFP_KERNEL); | 90 | req = kzalloc_obj(*req); |
| 91 | if (!req) | 91 | if (!req) |
| 92 | return -ENOMEM; | 92 | return -ENOMEM; |
| 93 | 93 | ||
| @@ -330,7 +330,7 @@ static struct sla_buffer_hdr *sla_buffer_map(struct sla_addr_t sla) · 329 unmodified lines | |||
| 330 | if (WARN_ON_ONCE(!npages)) | 330 | if (WARN_ON_ONCE(!npages)) |
| 331 | return NULL; | 331 | return NULL; |
| 332 | 332 | ||
| 333 | struct page **pp = kmalloc_objs(pp[0], npages, GFP_KERNEL); | 333 | struct page **pp = kmalloc_objs(pp[0], npages); |
| 334 | 334 | ||
| 335 | if (!pp) | 335 | if (!pp) |
| 336 | return NULL; | 336 | return NULL; |
| @@ -207,7 +207,7 @@ static int stream_alloc(struct pci_dev *pdev, struct pci_ide **ide, · 206 unmodified lines | |||
| 207 | 207 | ||
| 208 | static struct pci_tsm *tio_pf0_probe(struct pci_dev *pdev, struct sev_device *sev) | 208 | static struct pci_tsm *tio_pf0_probe(struct pci_dev *pdev, struct sev_device *sev) |
| 209 | { | 209 | { |
| 210 | struct tio_dsm *dsm __free(kfree) = kzalloc_obj(*dsm, GFP_KERNEL); | 210 | struct tio_dsm *dsm __free(kfree) = kzalloc_obj(*dsm); |
| 211 | int rc; | 211 | int rc; |
| 212 | 212 | ||
| 213 | if (!dsm) | 213 | if (!dsm) |
| @@ -341,7 +341,7 @@ static struct pci_tsm_ops sev_tsm_ops = { · 127 unmodified lines | |||
| 341 | 341 | ||
| 342 | void sev_tsm_init_locked(struct sev_device *sev, void *tio_status_page) | 342 | void sev_tsm_init_locked(struct sev_device *sev, void *tio_status_page) |
| 343 | { | 343 | { |
| 344 | struct sev_tio_status *t = kzalloc_obj(*t, GFP_KERNEL); | 344 | struct sev_tio_status *t = kzalloc_obj(*t); |
| 345 | struct tsm_dev *tsmdev; | 345 | struct tsm_dev *tsmdev; |
| 346 | int ret; | 346 | int ret; |
| 347 | 347 | ||
| @@ -1144,7 +1144,7 @@ struct page *snp_alloc_hv_fixed_pages(unsigned int num_2mb_pages) · 1143 unmodified lines | |||
| 1144 | if (!page) | 1144 | if (!page) |
| 1145 | return NULL; | 1145 | return NULL; |
| 1146 | 1146 | ||
| 1147 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 1147 | entry = kzalloc_obj(*entry); |
| 1148 | if (!entry) { | 1148 | if (!entry) { |
| 1149 | __free_pages(page, order); | 1149 | __free_pages(page, order); |
| 1150 | return NULL; | 1150 | return NULL; |
| @@ -2658,7 +2658,7 @@ static int sev_misc_init(struct sev_device *sev) · 1507 unmodified lines | |||
| 2658 | if (!misc_dev) { | 2658 | if (!misc_dev) { |
| 2659 | struct miscdevice *misc; | 2659 | struct miscdevice *misc; |
| 2660 | 2660 | ||
| 2661 | misc_dev = kzalloc_obj(*misc_dev, GFP_KERNEL); | 2661 | misc_dev = kzalloc_obj(*misc_dev); |
| 2662 | if (!misc_dev) | 2662 | if (!misc_dev) |
| 2663 | return -ENOMEM; | 2663 | return -ENOMEM; |
| 2664 | 2664 | ||
| @@ -223,7 +223,7 @@ static int sfs_misc_init(struct sfs_device *sfs) · 222 unmodified lines | |||
| 223 | if (!misc_dev) { | 223 | if (!misc_dev) { |
| 224 | struct miscdevice *misc; | 224 | struct miscdevice *misc; |
| 225 | 225 | ||
| 226 | misc_dev = kzalloc_obj(*misc_dev, GFP_KERNEL); | 226 | misc_dev = kzalloc_obj(*misc_dev); |
| 227 | if (!misc_dev) | 227 | if (!misc_dev) |
| 228 | return -ENOMEM; | 228 | return -ENOMEM; |
| 229 | 229 | ||
| @@ -67,7 +67,7 @@ struct tee_init_ring_cmd *tee_alloc_cmd_buffer(struct psp_tee_device *tee) · 66 unmodified lines | |||
| 67 | { | 67 | { |
| 68 | struct tee_init_ring_cmd *cmd; | 68 | struct tee_init_ring_cmd *cmd; |
| 69 | 69 | ||
| 70 | cmd = kzalloc_obj(*cmd, GFP_KERNEL); | 70 | cmd = kzalloc_obj(*cmd); |
| 71 | if (!cmd) | 71 | if (!cmd) |
| 72 | return NULL; | 72 | return NULL; |
| 73 | 73 | ||
| @@ -116,7 +116,7 @@ int cc_req_mgr_init(struct cc_drvdata *drvdata) · 115 unmodified lines | |||
| 116 | struct device *dev = drvdata_to_dev(drvdata); | 116 | struct device *dev = drvdata_to_dev(drvdata); |
| 117 | int rc = 0; | 117 | int rc = 0; |
| 118 | 118 | ||
| 119 | req_mgr_h = kzalloc_obj(*req_mgr_h, GFP_KERNEL); | 119 | req_mgr_h = kzalloc_obj(*req_mgr_h); |
| 120 | if (!req_mgr_h) { | 120 | if (!req_mgr_h) { |
| 121 | rc = -ENOMEM; | 121 | rc = -ENOMEM; |
| 122 | goto req_mgr_init_err; | 122 | goto req_mgr_init_err; |
| @@ -189,7 +189,7 @@ static void *chcr_uld_add(const struct cxgb4_lld_info *lld) · 188 unmodified lines | |||
| 189 | return ERR_PTR(-EOPNOTSUPP); | 189 | return ERR_PTR(-EOPNOTSUPP); |
| 190 | 190 | ||
| 191 | /* Create the device and add it in the device list */ | 191 | /* Create the device and add it in the device list */ |
| 192 | u_ctx = kzalloc_obj(*u_ctx, GFP_KERNEL); | 192 | u_ctx = kzalloc_obj(*u_ctx); |
| 193 | if (!u_ctx) { | 193 | if (!u_ctx) { |
| 194 | u_ctx = ERR_PTR(-ENOMEM); | 194 | u_ctx = ERR_PTR(-ENOMEM); |
| 195 | goto out; | 195 | goto out; |
| @@ -2248,7 +2248,7 @@ static int hifn_alg_alloc(struct hifn_device *dev, const struct hifn_alg_templat · 2247 unmodified lines | |||
| 2248 | struct hifn_crypto_alg *alg; | 2248 | struct hifn_crypto_alg *alg; |
| 2249 | int err; | 2249 | int err; |
| 2250 | 2250 | ||
| 2251 | alg = kzalloc_obj(*alg, GFP_KERNEL); | 2251 | alg = kzalloc_obj(*alg); |
| 2252 | if (!alg) | 2252 | if (!alg) |
| 2253 | return -ENOMEM; | 2253 | return -ENOMEM; |
| 2254 | 2254 | ||
| @@ -838,7 +838,7 @@ static struct dfx_diff_registers *dfx_regs_init(struct hisi_qm *qm, · 837 unmodified lines | |||
| 838 | u32 j, base_offset; | 838 | u32 j, base_offset; |
| 839 | int i; | 839 | int i; |
| 840 | 840 | ||
| 841 | diff_regs = kzalloc_objs(*diff_regs, reg_len, GFP_KERNEL); | 841 | diff_regs = kzalloc_objs(*diff_regs, reg_len); |
| 842 | if (!diff_regs) | 842 | if (!diff_regs) |
| 843 | return ERR_PTR(-ENOMEM); | 843 | return ERR_PTR(-ENOMEM); |
| 844 | 844 | ||
| @@ -2722,7 +2722,7 @@ static int qm_hw_err_isolate(struct hisi_qm *qm) · 2721 unmodified lines | |||
| 2722 | if (qm->uacce->is_vf || isolate->is_isolate || !isolate->err_threshold) | 2722 | if (qm->uacce->is_vf || isolate->is_isolate || !isolate->err_threshold) |
| 2723 | return 0; | 2723 | return 0; |
| 2724 | 2724 | ||
| 2725 | hw_err = kzalloc_obj(*hw_err, GFP_KERNEL); | 2725 | hw_err = kzalloc_obj(*hw_err); |
| 2726 | if (!hw_err) | 2726 | if (!hw_err) |
| 2727 | return -ENOMEM; | 2727 | return -ENOMEM; |
| 2728 | 2728 | ||
| @@ -3747,7 +3747,7 @@ static int hisi_qm_sort_devices(int node, struct list_head *head, · 1018 unmodified lines | |||
| 3747 | if (dev_node < 0) | 3747 | if (dev_node < 0) |
| 3748 | dev_node = 0; | 3748 | dev_node = 0; |
| 3749 | 3749 | ||
| 3750 | res = kzalloc_obj(*res, GFP_KERNEL); | 3750 | res = kzalloc_obj(*res); |
| 3751 | if (!res) | 3751 | if (!res) |
| 3752 | return -ENOMEM; | 3752 | return -ENOMEM; |
| 3753 | 3753 | ||
| @@ -5767,7 +5767,7 @@ static int hisi_qp_alloc_memory(struct hisi_qm *qm) · 2013 unmodified lines | |||
| 5767 | size_t qp_dma_size; | 5767 | size_t qp_dma_size; |
| 5768 | int i, ret; | 5768 | int i, ret; |
| 5769 | 5769 | ||
| 5770 | qm->qp_array = kzalloc_objs(struct hisi_qp, qm->qp_num, GFP_KERNEL); | 5770 | qm->qp_array = kzalloc_objs(struct hisi_qp, qm->qp_num); |
| 5771 | if (!qm->qp_array) | 5771 | if (!qm->qp_array) |
| 5772 | return -ENOMEM; | 5772 | return -ENOMEM; |
| 5773 | 5773 | ||
| @@ -569,11 +569,11 @@ static int sec_alloc_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ · 568 unmodified lines | |||
| 569 | struct device *dev = ctx->dev; | 569 | struct device *dev = ctx->dev; |
| 570 | int ret = -ENOMEM; | 570 | int ret = -ENOMEM; |
| 571 | 571 | ||
| 572 | qp_ctx->req_list = kzalloc_objs(struct sec_req *, q_depth, GFP_KERNEL); | 572 | qp_ctx->req_list = kzalloc_objs(struct sec_req *, q_depth); |
| 573 | if (!qp_ctx->req_list) | 573 | if (!qp_ctx->req_list) |
| 574 | return ret; | 574 | return ret; |
| 575 | 575 | ||
| 576 | qp_ctx->res = kzalloc_objs(struct sec_alg_res, q_depth, GFP_KERNEL); | 576 | qp_ctx->res = kzalloc_objs(struct sec_alg_res, q_depth); |
| 577 | if (!qp_ctx->res) | 577 | if (!qp_ctx->res) |
| 578 | goto err_free_req_list; | 578 | goto err_free_req_list; |
| 579 | qp_ctx->res->depth = q_depth; | 579 | qp_ctx->res->depth = q_depth; |
| @@ -420,7 +420,7 @@ struct hisi_qp **sec_create_qps(void) · 419 unmodified lines | |||
| 420 | u8 *type; | 420 | u8 *type; |
| 421 | int ret; | 421 | int ret; |
| 422 | 422 | ||
| 423 | qps = kzalloc_objs(struct hisi_qp *, ctx_num, GFP_KERNEL); | 423 | qps = kzalloc_objs(struct hisi_qp *, ctx_num); |
| 424 | if (!qps) | 424 | if (!qps) |
| 425 | return NULL; | 425 | return NULL; |
| 426 | 426 | ||
| @@ -83,7 +83,7 @@ struct hisi_acc_sgl_pool *hisi_acc_create_sgl_pool(struct device *dev, · 82 unmodified lines | |||
| 83 | (remain_sgl > 0 && block_num > HISI_ACC_MEM_BLOCK_NR - 1)) | 83 | (remain_sgl > 0 && block_num > HISI_ACC_MEM_BLOCK_NR - 1)) |
| 84 | return ERR_PTR(-EINVAL); | 84 | return ERR_PTR(-EINVAL); |
| 85 | 85 | ||
| 86 | pool = kzalloc_obj(*pool, GFP_KERNEL); | 86 | pool = kzalloc_obj(*pool); |
| 87 | if (!pool) | 87 | if (!pool) |
| 88 | return ERR_PTR(-ENOMEM); | 88 | return ERR_PTR(-ENOMEM); |
| 89 | block = pool->mem_block; | 89 | block = pool->mem_block; |
| @@ -70,7 +70,7 @@ static int eip93_aead_cra_init(struct crypto_tfm *tfm) · 69 unmodified lines | |||
| 70 | ctx->type = tmpl->type; | 70 | ctx->type = tmpl->type; |
| 71 | ctx->set_assoc = true; | 71 | ctx->set_assoc = true; |
| 72 | 72 | ||
| 73 | ctx->sa_record = kzalloc_obj(*ctx->sa_record, GFP_KERNEL); | 73 | ctx->sa_record = kzalloc_obj(*ctx->sa_record); |
| 74 | if (!ctx->sa_record) | 74 | if (!ctx->sa_record) |
| 75 | return -ENOMEM; | 75 | return -ENOMEM; |
| 76 | 76 | ||
| @@ -61,7 +61,7 @@ static int eip93_skcipher_cra_init(struct crypto_tfm *tfm) · 60 unmodified lines | |||
| 61 | ctx->eip93 = tmpl->eip93; | 61 | ctx->eip93 = tmpl->eip93; |
| 62 | ctx->type = tmpl->type; | 62 | ctx->type = tmpl->type; |
| 63 | 63 | ||
| 64 | ctx->sa_record = kzalloc_obj(*ctx->sa_record, GFP_KERNEL); | 64 | ctx->sa_record = kzalloc_obj(*ctx->sa_record); |
| 65 | if (!ctx->sa_record) | 65 | if (!ctx->sa_record) |
| 66 | return -ENOMEM; | 66 | return -ENOMEM; |
| 67 | 67 | ||
| @@ -152,7 +152,7 @@ static int eip93_make_sg_copy(struct scatterlist *src, struct scatterlist **dst, · 151 unmodified lines | |||
| 152 | { | 152 | { |
| 153 | void *pages; | 153 | void *pages; |
| 154 | 154 | ||
| 155 | *dst = kmalloc_obj(**dst, GFP_KERNEL); | 155 | *dst = kmalloc_obj(**dst); |
| 156 | if (!*dst) | 156 | if (!*dst) |
| 157 | return -ENOMEM; | 157 | return -ENOMEM; |
| 158 | 158 | ||
| @@ -1889,7 +1889,7 @@ static int safexcel_pci_probe(struct pci_dev *pdev, · 1888 unmodified lines | |||
| 1889 | ent->vendor, ent->device, ent->subvendor, | 1889 | ent->vendor, ent->device, ent->subvendor, |
| 1890 | ent->subdevice, ent->driver_data); | 1890 | ent->subdevice, ent->driver_data); |
| 1891 | 1891 | ||
| 1892 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 1892 | priv = kzalloc_obj(*priv); |
| 1893 | if (!priv) | 1893 | if (!priv) |
| 1894 | return -ENOMEM; | 1894 | return -ENOMEM; |
| 1895 | 1895 | ||
| @@ -2008,7 +2008,7 @@ static int safexcel_xcbcmac_cra_init(struct crypto_tfm *tfm) · 2007 unmodified lines | |||
| 2008 | struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); | 2008 | struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); |
| 2009 | 2009 | ||
| 2010 | safexcel_ahash_cra_init(tfm); | 2010 | safexcel_ahash_cra_init(tfm); |
| 2011 | ctx->aes = kmalloc_obj(*ctx->aes, GFP_KERNEL); | 2011 | ctx->aes = kmalloc_obj(*ctx->aes); |
| 2012 | return ctx->aes == NULL ? -ENOMEM : 0; | 2012 | return ctx->aes == NULL ? -ENOMEM : 0; |
| 2013 | } | 2013 | } |
| 2014 | 2014 | ||
| @@ -335,7 +335,7 @@ int add_iaa_compression_mode(const char *name, · 334 unmodified lines | |||
| 335 | goto out; | 335 | goto out; |
| 336 | } | 336 | } |
| 337 | 337 | ||
| 338 | mode = kzalloc_obj(*mode, GFP_KERNEL); | 338 | mode = kzalloc_obj(*mode); |
| 339 | if (!mode) | 339 | if (!mode) |
| 340 | goto out; | 340 | goto out; |
| 341 | 341 | ||
| @@ -422,7 +422,7 @@ static int init_device_compression_mode(struct iaa_device *iaa_device, · 80 unmodified lines | |||
| 422 | struct iaa_device_compression_mode *device_mode; | 422 | struct iaa_device_compression_mode *device_mode; |
| 423 | int ret = -ENOMEM; | 423 | int ret = -ENOMEM; |
| 424 | 424 | ||
| 425 | device_mode = kzalloc_obj(*device_mode, GFP_KERNEL); | 425 | device_mode = kzalloc_obj(*device_mode); |
| 426 | if (!device_mode) | 426 | if (!device_mode) |
| 427 | return -ENOMEM; | 427 | return -ENOMEM; |
| 428 | 428 | ||
| @@ -503,7 +503,7 @@ static struct iaa_device *iaa_device_alloc(void) · 74 unmodified lines | |||
| 503 | { | 503 | { |
| 504 | struct iaa_device *iaa_device; | 504 | struct iaa_device *iaa_device; |
| 505 | 505 | ||
| 506 | iaa_device = kzalloc_obj(*iaa_device, GFP_KERNEL); | 506 | iaa_device = kzalloc_obj(*iaa_device); |
| 507 | if (!iaa_device) | 507 | if (!iaa_device) |
| 508 | return NULL; | 508 | return NULL; |
| 509 | 509 | ||
| @@ -561,7 +561,7 @@ static int add_iaa_wq(struct iaa_device *iaa_device, struct idxd_wq *wq, · 51 unmodified lines | |||
| 561 | struct device *dev = &pdev->dev; | 561 | struct device *dev = &pdev->dev; |
| 562 | struct iaa_wq *iaa_wq; | 562 | struct iaa_wq *iaa_wq; |
| 563 | 563 | ||
| 564 | iaa_wq = kzalloc_obj(*iaa_wq, GFP_KERNEL); | 564 | iaa_wq = kzalloc_obj(*iaa_wq); |
| 565 | if (!iaa_wq) | 565 | if (!iaa_wq) |
| 566 | return -ENOMEM; | 566 | return -ENOMEM; |
| 567 | 567 | ||
| @@ -718,7 +718,7 @@ static int alloc_wq_table(int max_wqs) · 150 unmodified lines | |||
| 718 | 718 | ||
| 719 | for (cpu = 0; cpu < nr_cpus; cpu++) { | 719 | for (cpu = 0; cpu < nr_cpus; cpu++) { |
| 720 | entry = per_cpu_ptr(wq_table, cpu); | 720 | entry = per_cpu_ptr(wq_table, cpu); |
| 721 | entry->wqs = kzalloc_objs(*entry->wqs, max_wqs, GFP_KERNEL); | 721 | entry->wqs = kzalloc_objs(*entry->wqs, max_wqs); |
| 722 | if (!entry->wqs) { | 722 | if (!entry->wqs) { |
| 723 | free_wq_table(); | 723 | free_wq_table(); |
| 724 | return -ENOMEM; | 724 | return -ENOMEM; |
| @@ -491,7 +491,7 @@ struct ocs_hcu_dma_list *ocs_hcu_dma_list_alloc(struct ocs_hcu_dev *hcu_dev, · 490 unmodified lines | |||
| 491 | { | 491 | { |
| 492 | struct ocs_hcu_dma_list *dma_list; | 492 | struct ocs_hcu_dma_list *dma_list; |
| 493 | 493 | ||
| 494 | dma_list = kmalloc_obj(*dma_list, GFP_KERNEL); | 494 | dma_list = kmalloc_obj(*dma_list); |
| 495 | if (!dma_list) | 495 | if (!dma_list) |
| 496 | return NULL; | 496 | return NULL; |
| 497 | 497 | ||
| @@ -178,7 +178,7 @@ int adf_ae_init(struct adf_accel_dev *accel_dev) · 177 unmodified lines | |||
| 178 | if (!hw_device->fw_name) | 178 | if (!hw_device->fw_name) |
| 179 | return 0; | 179 | return 0; |
| 180 | 180 | ||
| 181 | loader_data = kzalloc_obj(*loader_data, GFP_KERNEL); | 181 | loader_data = kzalloc_obj(*loader_data); |
| 182 | if (!loader_data) | 182 | if (!loader_data) |
| 183 | return -ENOMEM; | 183 | return -ENOMEM; |
| 184 | 184 | ||
| @@ -160,7 +160,7 @@ static int adf_dev_aer_schedule_reset(struct adf_accel_dev *accel_dev, · 159 unmodified lines | |||
| 160 | return 0; | 160 | return 0; |
| 161 | 161 | ||
| 162 | set_bit(ADF_STATUS_RESTARTING, &accel_dev->status); | 162 | set_bit(ADF_STATUS_RESTARTING, &accel_dev->status); |
| 163 | reset_data = kzalloc_obj(*reset_data, GFP_KERNEL); | 163 | reset_data = kzalloc_obj(*reset_data); |
| 164 | if (!reset_data) | 164 | if (!reset_data) |
| 165 | return -ENOMEM; | 165 | return -ENOMEM; |
| 166 | reset_data->accel_dev = accel_dev; | 166 | reset_data->accel_dev = accel_dev; |
| @@ -68,7 +68,7 @@ int adf_cfg_dev_add(struct adf_accel_dev *accel_dev) · 67 unmodified lines | |||
| 68 | { | 68 | { |
| 69 | struct adf_cfg_device_data *dev_cfg_data; | 69 | struct adf_cfg_device_data *dev_cfg_data; |
| 70 | 70 | ||
| 71 | dev_cfg_data = kzalloc_obj(*dev_cfg_data, GFP_KERNEL); | 71 | dev_cfg_data = kzalloc_obj(*dev_cfg_data); |
| 72 | if (!dev_cfg_data) | 72 | if (!dev_cfg_data) |
| 73 | return -ENOMEM; | 73 | return -ENOMEM; |
| 74 | INIT_LIST_HEAD(&dev_cfg_data->sec_list); | 74 | INIT_LIST_HEAD(&dev_cfg_data->sec_list); |
| @@ -289,7 +289,7 @@ int adf_cfg_add_key_value_param(struct adf_accel_dev *accel_dev, · 214 unmodified lines | |||
| 289 | if (!section) | 289 | if (!section) |
| 290 | return -EFAULT; | 290 | return -EFAULT; |
| 291 | 291 | ||
| 292 | key_val = kzalloc_obj(*key_val, GFP_KERNEL); | 292 | key_val = kzalloc_obj(*key_val); |
| 293 | if (!key_val) | 293 | if (!key_val) |
| 294 | return -ENOMEM; | 294 | return -ENOMEM; |
| 295 | 295 | ||
| @@ -356,7 +356,7 @@ int adf_cfg_section_add(struct adf_accel_dev *accel_dev, const char *name) · 60 unmodified lines | |||
| 356 | if (sec) | 356 | if (sec) |
| 357 | return 0; | 357 | return 0; |
| 358 | 358 | ||
| 359 | sec = kzalloc_obj(*sec, GFP_KERNEL); | 359 | sec = kzalloc_obj(*sec); |
| 360 | if (!sec) | 360 | if (!sec) |
| 361 | return -ENOMEM; | 361 | return -ENOMEM; |
| 362 | 362 | ||
| @@ -172,7 +172,7 @@ int adf_devmgr_add_dev(struct adf_accel_dev *accel_dev, · 171 unmodified lines | |||
| 172 | goto unlock; | 172 | goto unlock; |
| 173 | } | 173 | } |
| 174 | num_devices++; | 174 | num_devices++; |
| 175 | map = kzalloc_obj(*map, GFP_KERNEL); | 175 | map = kzalloc_obj(*map); |
| 176 | if (!map) { | 176 | if (!map) { |
| 177 | ret = -ENOMEM; | 177 | ret = -ENOMEM; |
| 178 | goto unlock; | 178 | goto unlock; |
| @@ -204,7 +204,7 @@ int adf_devmgr_add_dev(struct adf_accel_dev *accel_dev, · 25 unmodified lines | |||
| 204 | goto unlock; | 204 | goto unlock; |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | map = kzalloc_obj(*map, GFP_KERNEL); | 207 | map = kzalloc_obj(*map); |
| 208 | if (!map) { | 208 | if (!map) { |
| 209 | ret = -ENOMEM; | 209 | ret = -ENOMEM; |
| 210 | goto unlock; | 210 | goto unlock; |
| @@ -59,7 +59,7 @@ static int adf_gen4_vfmig_open_device(struct qat_mig_dev *mdev) · 58 unmodified lines | |||
| 59 | 59 | ||
| 60 | vf_info = &accel_dev->pf.vf_info[mdev->vf_id]; | 60 | vf_info = &accel_dev->pf.vf_info[mdev->vf_id]; |
| 61 | 61 | ||
| 62 | vfmig = kzalloc_obj(*vfmig, GFP_KERNEL); | 62 | vfmig = kzalloc_obj(*vfmig); |
| 63 | if (!vfmig) | 63 | if (!vfmig) |
| 64 | return -ENOMEM; | 64 | return -ENOMEM; |
| 65 | 65 | ||
| @@ -281,7 +281,7 @@ int adf_heartbeat_init(struct adf_accel_dev *accel_dev) · 280 unmodified lines | |||
| 281 | { | 281 | { |
| 282 | struct adf_heartbeat *hb; | 282 | struct adf_heartbeat *hb; |
| 283 | 283 | ||
| 284 | hb = kzalloc_obj(*hb, GFP_KERNEL); | 284 | hb = kzalloc_obj(*hb); |
| 285 | if (!hb) | 285 | if (!hb) |
| 286 | goto err_ret; | 286 | goto err_ret; |
| 287 | 287 | ||
| @@ -37,7 +37,7 @@ struct adf_mstate_mgr *adf_mstate_mgr_new(u8 *buf, u32 size) · 36 unmodified lines | |||
| 37 | { | 37 | { |
| 38 | struct adf_mstate_mgr *mgr; | 38 | struct adf_mstate_mgr *mgr; |
| 39 | 39 | ||
| 40 | mgr = kzalloc_obj(*mgr, GFP_KERNEL); | 40 | mgr = kzalloc_obj(*mgr); |
| 41 | if (!mgr) | 41 | if (!mgr) |
| 42 | return NULL; | 42 | return NULL; |
| 43 | 43 | ||
| @@ -622,7 +622,7 @@ static int add_new_sla_entry(struct adf_accel_dev *accel_dev, · 621 unmodified lines | |||
| 622 | struct rl_sla *sla; | 622 | struct rl_sla *sla; |
| 623 | int ret = 0; | 623 | int ret = 0; |
| 624 | 624 | ||
| 625 | sla = kzalloc_obj(*sla, GFP_KERNEL); | 625 | sla = kzalloc_obj(*sla); |
| 626 | if (!sla) { | 626 | if (!sla) { |
| 627 | ret = -ENOMEM; | 627 | ret = -ENOMEM; |
| 628 | goto ret_err; | 628 | goto ret_err; |
| @@ -1065,7 +1065,7 @@ int adf_rl_init(struct adf_accel_dev *accel_dev) · 436 unmodified lines | |||
| 1065 | goto err_ret; | 1065 | goto err_ret; |
| 1066 | } | 1066 | } |
| 1067 | 1067 | ||
| 1068 | rl = kzalloc_obj(*rl, GFP_KERNEL); | 1068 | rl = kzalloc_obj(*rl); |
| 1069 | if (!rl) { | 1069 | if (!rl) { |
| 1070 | ret = -ENOMEM; | 1070 | ret = -ENOMEM; |
| 1071 | goto err_ret; | 1071 | goto err_ret; |
| @@ -40,7 +40,7 @@ int adf_timer_start(struct adf_accel_dev *accel_dev) · 39 unmodified lines | |||
| 40 | { | 40 | { |
| 41 | struct adf_timer *timer_ctx; | 41 | struct adf_timer *timer_ctx; |
| 42 | 42 | ||
| 43 | timer_ctx = kzalloc_obj(*timer_ctx, GFP_KERNEL); | 43 | timer_ctx = kzalloc_obj(*timer_ctx); |
| 44 | if (!timer_ctx) | 44 | if (!timer_ctx) |
| 45 | return -ENOMEM; | 45 | return -ENOMEM; |
| 46 | 46 | ||
| @@ -99,7 +99,7 @@ int adf_ring_debugfs_add(struct adf_etr_ring_data *ring, const char *name) · 98 unmodified lines | |||
| 99 | struct adf_etr_ring_debug_entry *ring_debug; | 99 | struct adf_etr_ring_debug_entry *ring_debug; |
| 100 | char entry_name[16]; | 100 | char entry_name[16]; |
| 101 | 101 | ||
| 102 | ring_debug = kzalloc_obj(*ring_debug, GFP_KERNEL); | 102 | ring_debug = kzalloc_obj(*ring_debug); |
| 103 | if (!ring_debug) | 103 | if (!ring_debug) |
| 104 | return -ENOMEM; | 104 | return -ENOMEM; |
| 105 | 105 | ||
| @@ -832,17 +832,17 @@ int qat_hal_init(struct adf_accel_dev *accel_dev) · 831 unmodified lines | |||
| 832 | struct icp_qat_fw_loader_handle *handle; | 832 | struct icp_qat_fw_loader_handle *handle; |
| 833 | int ret = 0; | 833 | int ret = 0; |
| 834 | 834 | ||
| 835 | handle = kzalloc_obj(*handle, GFP_KERNEL); | 835 | handle = kzalloc_obj(*handle); |
| 836 | if (!handle) | 836 | if (!handle) |
| 837 | return -ENOMEM; | 837 | return -ENOMEM; |
| 838 | 838 | ||
| 839 | handle->hal_handle = kzalloc_obj(*handle->hal_handle, GFP_KERNEL); | 839 | handle->hal_handle = kzalloc_obj(*handle->hal_handle); |
| 840 | if (!handle->hal_handle) { | 840 | if (!handle->hal_handle) { |
| 841 | ret = -ENOMEM; | 841 | ret = -ENOMEM; |
| 842 | goto out_hal_handle; | 842 | goto out_hal_handle; |
| 843 | } | 843 | } |
| 844 | 844 | ||
| 845 | handle->chip_info = kzalloc_obj(*handle->chip_info, GFP_KERNEL); | 845 | handle->chip_info = kzalloc_obj(*handle->chip_info); |
| 846 | if (!handle->chip_info) { | 846 | if (!handle->chip_info) { |
| 847 | ret = -ENOMEM; | 847 | ret = -ENOMEM; |
| 848 | goto out_chip_info; | 848 | goto out_chip_info; |
| @@ -24,7 +24,7 @@ struct qat_mig_dev *qat_vfmig_create(struct pci_dev *pdev, int vf_id) · 23 unmodified lines | |||
| 24 | !ops->load_state || !ops->save_setup || !ops->load_setup) | 24 | !ops->load_state || !ops->save_setup || !ops->load_setup) |
| 25 | return ERR_PTR(-EINVAL); | 25 | return ERR_PTR(-EINVAL); |
| 26 | 26 | ||
| 27 | mdev = kmalloc_obj(*mdev, GFP_KERNEL); | 27 | mdev = kmalloc_obj(*mdev); |
| 28 | if (!mdev) | 28 | if (!mdev) |
| 29 | return ERR_PTR(-ENOMEM); | 29 | return ERR_PTR(-ENOMEM); |
| 30 | 30 | ||
| @@ -42,10 +42,10 @@ static int qat_uclo_init_ae_data(struct icp_qat_uclo_objhandle *obj_handle, · 41 unmodified lines | |||
| 42 | } else { | 42 | } else { |
| 43 | ae_slice->ctx_mask_assigned = 0; | 43 | ae_slice->ctx_mask_assigned = 0; |
| 44 | } | 44 | } |
| 45 | ae_slice->region = kzalloc_obj(*ae_slice->region, GFP_KERNEL); | 45 | ae_slice->region = kzalloc_obj(*ae_slice->region); |
| 46 | if (!ae_slice->region) | 46 | if (!ae_slice->region) |
| 47 | return -ENOMEM; | 47 | return -ENOMEM; |
| 48 | ae_slice->page = kzalloc_obj(*ae_slice->page, GFP_KERNEL); | 48 | ae_slice->page = kzalloc_obj(*ae_slice->page); |
| 49 | if (!ae_slice->page) | 49 | if (!ae_slice->page) |
| 50 | goto out_err; | 50 | goto out_err; |
| 51 | page = ae_slice->page; | 51 | page = ae_slice->page; |
| @@ -258,7 +258,7 @@ static int qat_uclo_create_batch_init_list(struct icp_qat_fw_loader_handle · 206 unmodified lines | |||
| 258 | 258 | ||
| 259 | init_header = *init_tab_base; | 259 | init_header = *init_tab_base; |
| 260 | if (!init_header) { | 260 | if (!init_header) { |
| 261 | init_header = kzalloc_obj(*init_header, GFP_KERNEL); | 261 | init_header = kzalloc_obj(*init_header); |
| 262 | if (!init_header) | 262 | if (!init_header) |
| 263 | return -ENOMEM; | 263 | return -ENOMEM; |
| 264 | init_header->size = 1; | 264 | init_header->size = 1; |
| @@ -270,7 +270,7 @@ static int qat_uclo_create_batch_init_list(struct icp_qat_fw_loader_handle · 5 unmodified lines | |||
| 270 | tail_old = tail_old->next; | 270 | tail_old = tail_old->next; |
| 271 | tail = tail_old; | 271 | tail = tail_old; |
| 272 | for (i = 0; i < init_mem->val_attr_num; i++) { | 272 | for (i = 0; i < init_mem->val_attr_num; i++) { |
| 273 | mem_init = kzalloc_obj(*mem_init, GFP_KERNEL); | 273 | mem_init = kzalloc_obj(*mem_init); |
| 274 | if (!mem_init) | 274 | if (!mem_init) |
| 275 | goto out_err; | 275 | goto out_err; |
| 276 | mem_init->ae = ae; | 276 | mem_init->ae = ae; |
| @@ -501,7 +501,7 @@ qat_uclo_map_chunk(char *buf, struct icp_qat_uof_filehdr *file_hdr, · 224 unmodified lines | |||
| 501 | if (file_chunk->checksum != qat_uclo_calc_str_checksum( | 501 | if (file_chunk->checksum != qat_uclo_calc_str_checksum( |
| 502 | chunk, file_chunk->size)) | 502 | chunk, file_chunk->size)) |
| 503 | break; | 503 | break; |
| 504 | obj_hdr = kzalloc_obj(*obj_hdr, GFP_KERNEL); | 504 | obj_hdr = kzalloc_obj(*obj_hdr); |
| 505 | if (!obj_hdr) | 505 | if (!obj_hdr) |
| 506 | break; | 506 | break; |
| 507 | obj_hdr->file_buff = chunk; | 507 | obj_hdr->file_buff = chunk; |
| @@ -634,7 +634,7 @@ static int qat_uclo_map_uimage(struct icp_qat_uclo_objhandle *obj_handle, · 126 unmodified lines | |||
| 634 | if (qat_uclo_check_image_compat(encap_uof_obj, image)) | 634 | if (qat_uclo_check_image_compat(encap_uof_obj, image)) |
| 635 | goto out_err; | 635 | goto out_err; |
| 636 | ae_uimage[j].page = | 636 | ae_uimage[j].page = |
| 637 | kzalloc_obj(struct icp_qat_uclo_encap_page, GFP_KERNEL); | 637 | kzalloc_obj(struct icp_qat_uclo_encap_page); |
| 638 | if (!ae_uimage[j].page) | 638 | if (!ae_uimage[j].page) |
| 639 | goto out_err; | 639 | goto out_err; |
| 640 | qat_uclo_map_image_page(encap_uof_obj, image, | 640 | qat_uclo_map_image_page(encap_uof_obj, image, |
| @@ -1719,7 +1719,7 @@ static int qat_uclo_map_suof_obj(struct icp_qat_fw_loader_handle *handle, · 1078 unmodified lines | |||
| 1719 | { | 1719 | { |
| 1720 | struct icp_qat_suof_handle *suof_handle; | 1720 | struct icp_qat_suof_handle *suof_handle; |
| 1721 | 1721 | ||
| 1722 | suof_handle = kzalloc_obj(*suof_handle, GFP_KERNEL); | 1722 | suof_handle = kzalloc_obj(*suof_handle); |
| 1723 | if (!suof_handle) | 1723 | if (!suof_handle) |
| 1724 | return -ENOMEM; | 1724 | return -ENOMEM; |
| 1725 | handle->sobj_handle = suof_handle; | 1725 | handle->sobj_handle = suof_handle; |
| @@ -1763,7 +1763,7 @@ static int qat_uclo_map_uof_obj(struct icp_qat_fw_loader_handle *handle, · 37 unmodified lines | |||
| 1763 | struct icp_qat_uof_filehdr *filehdr; | 1763 | struct icp_qat_uof_filehdr *filehdr; |
| 1764 | struct icp_qat_uclo_objhandle *objhdl; | 1764 | struct icp_qat_uclo_objhandle *objhdl; |
| 1765 | 1765 | ||
| 1766 | objhdl = kzalloc_obj(*objhdl, GFP_KERNEL); | 1766 | objhdl = kzalloc_obj(*objhdl); |
| 1767 | if (!objhdl) | 1767 | if (!objhdl) |
| 1768 | return -ENOMEM; | 1768 | return -ENOMEM; |
| 1769 | objhdl->obj_buf = kmemdup(addr_ptr, mem_size, GFP_KERNEL); | 1769 | objhdl->obj_buf = kmemdup(addr_ptr, mem_size, GFP_KERNEL); |
| @@ -2003,7 +2003,7 @@ static int qat_uclo_map_mof_obj(struct icp_qat_fw_loader_handle *handle, · 233 unmodified lines | |||
| 2003 | if (qat_uclo_check_mof_format(mof_ptr)) | 2003 | if (qat_uclo_check_mof_format(mof_ptr)) |
| 2004 | return -EINVAL; | 2004 | return -EINVAL; |
| 2005 | 2005 | ||
| 2006 | mobj_handle = kzalloc_obj(*mobj_handle, GFP_KERNEL); | 2006 | mobj_handle = kzalloc_obj(*mobj_handle); |
| 2007 | if (!mobj_handle) | 2007 | if (!mobj_handle) |
| 2008 | return -ENOMEM; | 2008 | return -ENOMEM; |
| 2009 | 2009 | ||
| @@ -318,7 +318,7 @@ static int process_tar_file(struct device *dev, · 317 unmodified lines | |||
| 318 | return -EINVAL; | 318 | return -EINVAL; |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | tar_info = kzalloc_obj(struct tar_ucode_info_t, GFP_KERNEL); | 321 | tar_info = kzalloc_obj(struct tar_ucode_info_t); |
| 322 | if (!tar_info) | 322 | if (!tar_info) |
| 323 | return -ENOMEM; | 323 | return -ENOMEM; |
| 324 | 324 | ||
| @@ -412,7 +412,7 @@ static struct tar_arch_info_t *load_tar_archive(struct device *dev, · 87 unmodified lines | |||
| 412 | size_t tar_size; | 412 | size_t tar_size; |
| 413 | int ret; | 413 | int ret; |
| 414 | 414 | ||
| 415 | tar_arch = kzalloc_obj(struct tar_arch_info_t, GFP_KERNEL); | 415 | tar_arch = kzalloc_obj(struct tar_arch_info_t); |
| 416 | if (!tar_arch) | 416 | if (!tar_arch) |
| 417 | return NULL; | 417 | return NULL; |
| 418 | 418 | ||
| @@ -31,7 +31,7 @@ static int init_worker_threads(struct otx_cptvf *cptvf) · 30 unmodified lines | |||
| 31 | struct otx_cptvf_wqe_info *cwqe_info; | 31 | struct otx_cptvf_wqe_info *cwqe_info; |
| 32 | int i; | 32 | int i; |
| 33 | 33 | ||
| 34 | cwqe_info = kzalloc_obj(*cwqe_info, GFP_KERNEL); | 34 | cwqe_info = kzalloc_obj(*cwqe_info); |
| 35 | if (!cwqe_info) | 35 | if (!cwqe_info) |
| 36 | return -ENOMEM; | 36 | return -ENOMEM; |
| 37 | 37 | ||
| @@ -100,7 +100,7 @@ static int alloc_pending_queues(struct otx_cpt_pending_qinfo *pqinfo, u32 qlen, · 62 unmodified lines | |||
| 100 | pqinfo->num_queues = num_queues; | 100 | pqinfo->num_queues = num_queues; |
| 101 | 101 | ||
| 102 | for_each_pending_queue(pqinfo, queue, i) { | 102 | for_each_pending_queue(pqinfo, queue, i) { |
| 103 | queue->head = kzalloc_objs(*queue->head, qlen, GFP_KERNEL); | 103 | queue->head = kzalloc_objs(*queue->head, qlen); |
| 104 | if (!queue->head) { | 104 | if (!queue->head) { |
| 105 | ret = -ENOMEM; | 105 | ret = -ENOMEM; |
| 106 | goto pending_qfail; | 106 | goto pending_qfail; |
| @@ -212,7 +212,7 @@ static int alloc_command_queues(struct otx_cptvf *cptvf, · 105 unmodified lines | |||
| 212 | queue = &cqinfo->queue[i]; | 212 | queue = &cqinfo->queue[i]; |
| 213 | INIT_LIST_HEAD(&queue->chead); | 213 | INIT_LIST_HEAD(&queue->chead); |
| 214 | do { | 214 | do { |
| 215 | curr = kzalloc_obj(*curr, GFP_KERNEL); | 215 | curr = kzalloc_obj(*curr); |
| 216 | if (!curr) | 216 | if (!curr) |
| 217 | goto cmd_qfail; | 217 | goto cmd_qfail; |
| 218 | 218 | ||
| @@ -372,7 +372,7 @@ static int load_fw(struct device *dev, struct fw_info_t *fw_info, · 371 unmodified lines | |||
| 372 | int ucode_type, ucode_size; | 372 | int ucode_type, ucode_size; |
| 373 | int ret; | 373 | int ret; |
| 374 | 374 | ||
| 375 | uc_info = kzalloc_obj(*uc_info, GFP_KERNEL); | 375 | uc_info = kzalloc_obj(*uc_info); |
| 376 | if (!uc_info) | 376 | if (!uc_info) |
| 377 | return -ENOMEM; | 377 | return -ENOMEM; |
| 378 | 378 | ||
| @@ -150,7 +150,7 @@ static int init_tasklet_work(struct otx2_cptlfs_info *lfs) · 149 unmodified lines | |||
| 150 | int i, ret = 0; | 150 | int i, ret = 0; |
| 151 | 151 | ||
| 152 | for (i = 0; i < lfs->lfs_num; i++) { | 152 | for (i = 0; i < lfs->lfs_num; i++) { |
| 153 | wqe = kzalloc_obj(struct otx2_cptlf_wqe, GFP_KERNEL); | 153 | wqe = kzalloc_obj(struct otx2_cptlf_wqe); |
| 154 | if (!wqe) { | 154 | if (!wqe) { |
| 155 | ret = -ENOMEM; | 155 | ret = -ENOMEM; |
| 156 | goto cleanup_tasklet; | 156 | goto cleanup_tasklet; |
| @@ -105,7 +105,7 @@ void *nx842_crypto_alloc_ctx(struct nx842_driver *driver) · 104 unmodified lines | |||
| 105 | { | 105 | { |
| 106 | struct nx842_crypto_ctx *ctx; | 106 | struct nx842_crypto_ctx *ctx; |
| 107 | 107 | ||
| 108 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 108 | ctx = kzalloc_obj(*ctx); |
| 109 | if (!ctx) | 109 | if (!ctx) |
| 110 | return ERR_PTR(-ENOMEM); | 110 | return ERR_PTR(-ENOMEM); |
| 111 | 111 | ||
| @@ -810,7 +810,7 @@ static int __init vas_cfg_coproc_info(struct device_node *dn, int chip_id, · 809 unmodified lines | |||
| 810 | return ret; | 810 | return ret; |
| 811 | } | 811 | } |
| 812 | 812 | ||
| 813 | coproc = kzalloc_obj(*coproc, GFP_KERNEL); | 813 | coproc = kzalloc_obj(*coproc); |
| 814 | if (!coproc) | 814 | if (!coproc) |
| 815 | return -ENOMEM; | 815 | return -ENOMEM; |
| 816 | 816 | ||
| @@ -968,7 +968,7 @@ static int __init nx842_powernv_probe(struct device_node *dn) · 151 unmodified lines | |||
| 968 | return -EINVAL; | 968 | return -EINVAL; |
| 969 | } | 969 | } |
| 970 | 970 | ||
| 971 | coproc = kzalloc_obj(*coproc, GFP_KERNEL); | 971 | coproc = kzalloc_obj(*coproc); |
| 972 | if (!coproc) | 972 | if (!coproc) |
| 973 | return -ENOMEM; | 973 | return -ENOMEM; |
| 974 | 974 | ||
| @@ -1148,7 +1148,7 @@ static void __init nxcop_get_capabilities(void) · 1147 unmodified lines | |||
| 1148 | u64 feat; | 1148 | u64 feat; |
| 1149 | int rc; | 1149 | int rc; |
| 1150 | 1150 | ||
| 1151 | hv_caps = kmalloc_obj(*hv_caps, GFP_KERNEL); | 1151 | hv_caps = kmalloc_obj(*hv_caps); |
| 1152 | if (!hv_caps) | 1152 | if (!hv_caps) |
| 1153 | return; | 1153 | return; |
| 1154 | /* | 1154 | /* |
| @@ -1167,7 +1167,7 @@ static void __init nxcop_get_capabilities(void) · 12 unmodified lines | |||
| 1167 | /* | 1167 | /* |
| 1168 | * NX-GZIP feature available | 1168 | * NX-GZIP feature available |
| 1169 | */ | 1169 | */ |
| 1170 | hv_nxc = kmalloc_obj(*hv_nxc, GFP_KERNEL); | 1170 | hv_nxc = kmalloc_obj(*hv_nxc); |
| 1171 | if (!hv_nxc) | 1171 | if (!hv_nxc) |
| 1172 | return; | 1172 | return; |
| 1173 | /* | 1173 | /* |
| @@ -1217,7 +1217,7 @@ static int __init nx842_pseries_init(void) · 43 unmodified lines | |||
| 1217 | of_node_put(np); | 1217 | of_node_put(np); |
| 1218 | 1218 | ||
| 1219 | RCU_INIT_POINTER(devdata, NULL); | 1219 | RCU_INIT_POINTER(devdata, NULL); |
| 1220 | new_devdata = kzalloc_obj(*new_devdata, GFP_KERNEL); | 1220 | new_devdata = kzalloc_obj(*new_devdata); |
| 1221 | if (!new_devdata) | 1221 | if (!new_devdata) |
| 1222 | return -ENOMEM; | 1222 | return -ENOMEM; |
| 1223 | 1223 | ||
| @@ -21,7 +21,7 @@ static int omap_crypto_copy_sg_lists(int total, int bs, · 20 unmodified lines | |||
| 21 | struct scatterlist *tmp; | 21 | struct scatterlist *tmp; |
| 22 | 22 | ||
| 23 | if (!(flags & OMAP_CRYPTO_FORCE_SINGLE_ENTRY)) { | 23 | if (!(flags & OMAP_CRYPTO_FORCE_SINGLE_ENTRY)) { |
| 24 | new_sg = kmalloc_objs(*new_sg, n, GFP_KERNEL); | 24 | new_sg = kmalloc_objs(*new_sg, n); |
| 25 | if (!new_sg) | 25 | if (!new_sg) |
| 26 | return -ENOMEM; | 26 | return -ENOMEM; |
| 27 | 27 | ||
| @@ -636,7 +636,7 @@ static int omap_sham_copy_sg_lists(struct omap_sham_reqctx *ctx, · 635 unmodified lines | |||
| 636 | if (ctx->bufcnt) | 636 | if (ctx->bufcnt) |
| 637 | n++; | 637 | n++; |
| 638 | 638 | ||
| 639 | ctx->sg = kmalloc_objs(*sg, n, GFP_KERNEL); | 639 | ctx->sg = kmalloc_objs(*sg, n); |
| 640 | if (!ctx->sg) | 640 | if (!ctx->sg) |
| 641 | return -ENOMEM; | 641 | return -ENOMEM; |
| 642 | 642 | ||
| @@ -762,7 +762,7 @@ static int qce_aead_register_one(const struct qce_aead_def *def, struct qce_devi · 761 unmodified lines | |||
| 762 | struct aead_alg *alg; | 762 | struct aead_alg *alg; |
| 763 | int ret; | 763 | int ret; |
| 764 | 764 | ||
| 765 | tmpl = kzalloc_obj(*tmpl, GFP_KERNEL); | 765 | tmpl = kzalloc_obj(*tmpl); |
| 766 | if (!tmpl) | 766 | if (!tmpl) |
| 767 | return -ENOMEM; | 767 | return -ENOMEM; |
| 768 | 768 | ||
| @@ -457,7 +457,7 @@ static int qce_ahash_register_one(const struct qce_ahash_def *def, · 456 unmodified lines | |||
| 457 | struct crypto_alg *base; | 457 | struct crypto_alg *base; |
| 458 | int ret; | 458 | int ret; |
| 459 | 459 | ||
| 460 | tmpl = kzalloc_obj(*tmpl, GFP_KERNEL); | 460 | tmpl = kzalloc_obj(*tmpl); |
| 461 | if (!tmpl) | 461 | if (!tmpl) |
| 462 | return -ENOMEM; | 462 | return -ENOMEM; |
| 463 | 463 | ||
| @@ -440,7 +440,7 @@ static int qce_skcipher_register_one(const struct qce_skcipher_def *def, · 439 unmodified lines | |||
| 440 | struct skcipher_alg *alg; | 440 | struct skcipher_alg *alg; |
| 441 | int ret; | 441 | int ret; |
| 442 | 442 | ||
| 443 | tmpl = kzalloc_obj(*tmpl, GFP_KERNEL); | 443 | tmpl = kzalloc_obj(*tmpl); |
| 444 | if (!tmpl) | 444 | if (!tmpl) |
| 445 | return -ENOMEM; | 445 | return -ENOMEM; |
| 446 | 446 | ||
| @@ -1056,7 +1056,7 @@ static int s5p_hash_copy_sg_lists(struct s5p_hash_reqctx *ctx, · 1055 unmodified lines | |||
| 1056 | if (ctx->bufcnt) | 1056 | if (ctx->bufcnt) |
| 1057 | n++; | 1057 | n++; |
| 1058 | 1058 | ||
| 1059 | ctx->sg = kmalloc_objs(*sg, n, GFP_KERNEL); | 1059 | ctx->sg = kmalloc_objs(*sg, n); |
| 1060 | if (!ctx->sg) { | 1060 | if (!ctx->sg) { |
| 1061 | ctx->error = true; | 1061 | ctx->error = true; |
| 1062 | return -ENOMEM; | 1062 | return -ENOMEM; |
| @@ -47,7 +47,7 @@ tegra_se_cmdbuf_pin(struct device *dev, struct host1x_bo *bo, enum dma_data_dire · 46 unmodified lines | |||
| 47 | struct host1x_bo_mapping *map; | 47 | struct host1x_bo_mapping *map; |
| 48 | int err; | 48 | int err; |
| 49 | 49 | ||
| 50 | map = kzalloc_obj(*map, GFP_KERNEL); | 50 | map = kzalloc_obj(*map); |
| 51 | if (!map) | 51 | if (!map) |
| 52 | return ERR_PTR(-ENOMEM); | 52 | return ERR_PTR(-ENOMEM); |
| 53 | 53 | ||
| @@ -56,7 +56,7 @@ tegra_se_cmdbuf_pin(struct device *dev, struct host1x_bo *bo, enum dma_data_dire · 2 unmodified lines | |||
| 56 | map->direction = direction; | 56 | map->direction = direction; |
| 57 | map->dev = dev; | 57 | map->dev = dev; |
| 58 | 58 | ||
| 59 | map->sgt = kzalloc_obj(*map->sgt, GFP_KERNEL); | 59 | map->sgt = kzalloc_obj(*map->sgt); |
| 60 | if (!map->sgt) { | 60 | if (!map->sgt) { |
| 61 | err = -ENOMEM; | 61 | err = -ENOMEM; |
| 62 | goto free; | 62 | goto free; |
| @@ -123,7 +123,7 @@ static struct tegra_se_cmdbuf *tegra_se_host1x_bo_alloc(struct tegra_se *se, ssi · 60 unmodified lines | |||
| 123 | struct tegra_se_cmdbuf *cmdbuf; | 123 | struct tegra_se_cmdbuf *cmdbuf; |
| 124 | struct device *dev = se->dev->parent; | 124 | struct device *dev = se->dev->parent; |
| 125 | 125 | ||
| 126 | cmdbuf = kzalloc_obj(*cmdbuf, GFP_KERNEL); | 126 | cmdbuf = kzalloc_obj(*cmdbuf); |
| 127 | if (!cmdbuf) | 127 | if (!cmdbuf) |
| 128 | return NULL; | 128 | return NULL; |
| 129 | 129 | ||
| @@ -112,7 +112,7 @@ static int virtio_crypto_alg_akcipher_init_session(struct virtio_crypto_akcipher · 111 unmodified lines | |||
| 112 | if (!pkey) | 112 | if (!pkey) |
| 113 | return -ENOMEM; | 113 | return -ENOMEM; |
| 114 | 114 | ||
| 115 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req, GFP_KERNEL); | 115 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req); |
| 116 | if (!vc_ctrl_req) { | 116 | if (!vc_ctrl_req) { |
| 117 | err = -ENOMEM; | 117 | err = -ENOMEM; |
| 118 | goto out; | 118 | goto out; |
| @@ -169,7 +169,7 @@ static int virtio_crypto_alg_akcipher_close_session(struct virtio_crypto_akciphe · 50 unmodified lines | |||
| 169 | if (!ctx->session_valid) | 169 | if (!ctx->session_valid) |
| 170 | return 0; | 170 | return 0; |
| 171 | 171 | ||
| 172 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req, GFP_KERNEL); | 172 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req); |
| 173 | if (!vc_ctrl_req) | 173 | if (!vc_ctrl_req) |
| 174 | return -ENOMEM; | 174 | return -ENOMEM; |
| 175 | 175 | ||
| @@ -115,10 +115,10 @@ static int virtcrypto_find_vqs(struct virtio_crypto *vi) · 114 unmodified lines | |||
| 115 | total_vqs = vi->max_data_queues + 1; | 115 | total_vqs = vi->max_data_queues + 1; |
| 116 | 116 | ||
| 117 | /* Allocate space for find_vqs parameters */ | 117 | /* Allocate space for find_vqs parameters */ |
| 118 | vqs = kzalloc_objs(*vqs, total_vqs, GFP_KERNEL); | 118 | vqs = kzalloc_objs(*vqs, total_vqs); |
| 119 | if (!vqs) | 119 | if (!vqs) |
| 120 | goto err_vq; | 120 | goto err_vq; |
| 121 | vqs_info = kzalloc_objs(*vqs_info, total_vqs, GFP_KERNEL); | 121 | vqs_info = kzalloc_objs(*vqs_info, total_vqs); |
| 122 | if (!vqs_info) | 122 | if (!vqs_info) |
| 123 | goto err_vqs_info; | 123 | goto err_vqs_info; |
| 124 | 124 | ||
| @@ -131,7 +131,7 @@ static int virtio_crypto_alg_skcipher_init_session( · 130 unmodified lines | |||
| 131 | if (!cipher_key) | 131 | if (!cipher_key) |
| 132 | return -ENOMEM; | 132 | return -ENOMEM; |
| 133 | 133 | ||
| 134 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req, GFP_KERNEL); | 134 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req); |
| 135 | if (!vc_ctrl_req) { | 135 | if (!vc_ctrl_req) { |
| 136 | err = -ENOMEM; | 136 | err = -ENOMEM; |
| 137 | goto out; | 137 | goto out; |
| @@ -200,7 +200,7 @@ static int virtio_crypto_alg_skcipher_close_session( · 62 unmodified lines | |||
| 200 | struct virtio_crypto_inhdr *ctrl_status; | 200 | struct virtio_crypto_inhdr *ctrl_status; |
| 201 | struct virtio_crypto_ctrl_request *vc_ctrl_req; | 201 | struct virtio_crypto_ctrl_request *vc_ctrl_req; |
| 202 | 202 | ||
| 203 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req, GFP_KERNEL); | 203 | vc_ctrl_req = kzalloc_obj(*vc_ctrl_req); |
| 204 | if (!vc_ctrl_req) | 204 | if (!vc_ctrl_req) |
| 205 | return -ENOMEM; | 205 | return -ENOMEM; |
| 206 | 206 | ||
| @@ -336,7 +336,7 @@ static void del_cxl_resource(struct resource *res) · 335 unmodified lines | |||
| 336 | static struct resource *alloc_cxl_resource(resource_size_t base, | 336 | static struct resource *alloc_cxl_resource(resource_size_t base, |
| 337 | resource_size_t n, int id) | 337 | resource_size_t n, int id) |
| 338 | { | 338 | { |
| 339 | struct resource *res __free(kfree) = kzalloc_obj(*res, GFP_KERNEL); | 339 | struct resource *res __free(kfree) = kzalloc_obj(*res); |
| 340 | 340 | ||
| 341 | if (!res) | 341 | if (!res) |
| 342 | return NULL; | 342 | return NULL; |
| @@ -825,7 +825,7 @@ static int add_cxl_resources(struct resource *cxl_res) · 482 unmodified lines | |||
| 825 | struct resource *res, *new, *next; | 825 | struct resource *res, *new, *next; |
| 826 | 826 | ||
| 827 | for (res = cxl_res->child; res; res = next) { | 827 | for (res = cxl_res->child; res; res = next) { |
| 828 | new = kzalloc_obj(*new, GFP_KERNEL); | 828 | new = kzalloc_obj(*new); |
| 829 | if (!new) | 829 | if (!new) |
| 830 | return -ENOMEM; | 830 | return -ENOMEM; |
| 831 | new->name = res->name; | 831 | new->name = res->name; |
| @@ -69,7 +69,7 @@ static int cdat_dsmas_handler(union acpi_subtable_headers *header, void *arg, · 68 unmodified lines | |||
| 69 | /* Skip common header */ | 69 | /* Skip common header */ |
| 70 | dsmas = (struct acpi_cdat_dsmas *)(hdr + 1); | 70 | dsmas = (struct acpi_cdat_dsmas *)(hdr + 1); |
| 71 | 71 | ||
| 72 | dent = kzalloc_obj(*dent, GFP_KERNEL); | 72 | dent = kzalloc_obj(*dent); |
| 73 | if (!dent) | 73 | if (!dent) |
| 74 | return -ENOMEM; | 74 | return -ENOMEM; |
| 75 | 75 | ||
| @@ -669,7 +669,7 @@ static int cxl_endpoint_gather_bandwidth(struct cxl_region *cxlr, · 593 unmodified lines | |||
| 669 | perf_ctx = xa_load(usp_xa, index); | 669 | perf_ctx = xa_load(usp_xa, index); |
| 670 | if (!perf_ctx) { | 670 | if (!perf_ctx) { |
| 671 | struct cxl_perf_ctx *c __free(kfree) = | 671 | struct cxl_perf_ctx *c __free(kfree) = |
| 672 | kzalloc_obj(*perf_ctx, GFP_KERNEL); | 672 | kzalloc_obj(*perf_ctx); |
| 673 | 673 | ||
| 674 | if (!c) | 674 | if (!c) |
| 675 | return -ENOMEM; | 675 | return -ENOMEM; |
| @@ -756,7 +756,7 @@ static struct xarray *cxl_switch_gather_bandwidth(struct cxl_region *cxlr, · 80 unmodified lines | |||
| 756 | bool *gp_is_root) | 756 | bool *gp_is_root) |
| 757 | { | 757 | { |
| 758 | struct xarray *res_xa __free(free_perf_xa) = | 758 | struct xarray *res_xa __free(free_perf_xa) = |
| 759 | kzalloc_obj(*res_xa, GFP_KERNEL); | 759 | kzalloc_obj(*res_xa); |
| 760 | struct access_coordinate coords[ACCESS_COORDINATE_MAX]; | 760 | struct access_coordinate coords[ACCESS_COORDINATE_MAX]; |
| 761 | struct cxl_perf_ctx *ctx, *us_ctx; | 761 | struct cxl_perf_ctx *ctx, *us_ctx; |
| 762 | unsigned long index, us_index; | 762 | unsigned long index, us_index; |
| @@ -795,7 +795,7 @@ static struct xarray *cxl_switch_gather_bandwidth(struct cxl_region *cxlr, · 32 unmodified lines | |||
| 795 | us_ctx = xa_load(res_xa, us_index); | 795 | us_ctx = xa_load(res_xa, us_index); |
| 796 | if (!us_ctx) { | 796 | if (!us_ctx) { |
| 797 | struct cxl_perf_ctx *n __free(kfree) = | 797 | struct cxl_perf_ctx *n __free(kfree) = |
| 798 | kzalloc_obj(*n, GFP_KERNEL); | 798 | kzalloc_obj(*n); |
| 799 | 799 | ||
| 800 | if (!n) | 800 | if (!n) |
| 801 | return ERR_PTR(-ENOMEM); | 801 | return ERR_PTR(-ENOMEM); |
| @@ -862,7 +862,7 @@ static struct xarray *cxl_switch_gather_bandwidth(struct cxl_region *cxlr, · 60 unmodified lines | |||
| 862 | static struct xarray *cxl_rp_gather_bandwidth(struct xarray *xa) | 862 | static struct xarray *cxl_rp_gather_bandwidth(struct xarray *xa) |
| 863 | { | 863 | { |
| 864 | struct xarray *hb_xa __free(free_perf_xa) = | 864 | struct xarray *hb_xa __free(free_perf_xa) = |
| 865 | kzalloc_obj(*hb_xa, GFP_KERNEL); | 865 | kzalloc_obj(*hb_xa); |
| 866 | struct cxl_perf_ctx *ctx; | 866 | struct cxl_perf_ctx *ctx; |
| 867 | unsigned long index; | 867 | unsigned long index; |
| 868 | 868 | ||
| @@ -879,7 +879,7 @@ static struct xarray *cxl_rp_gather_bandwidth(struct xarray *xa) · 10 unmodified lines | |||
| 879 | hb_ctx = xa_load(hb_xa, hb_index); | 879 | hb_ctx = xa_load(hb_xa, hb_index); |
| 880 | if (!hb_ctx) { | 880 | if (!hb_ctx) { |
| 881 | struct cxl_perf_ctx *n __free(kfree) = | 881 | struct cxl_perf_ctx *n __free(kfree) = |
| 882 | kzalloc_obj(*n, GFP_KERNEL); | 882 | kzalloc_obj(*n); |
| 883 | 883 | ||
| 884 | if (!n) | 884 | if (!n) |
| 885 | return ERR_PTR(-ENOMEM); | 885 | return ERR_PTR(-ENOMEM); |
| @@ -906,7 +906,7 @@ static struct xarray *cxl_rp_gather_bandwidth(struct xarray *xa) · 20 unmodified lines | |||
| 906 | static struct xarray *cxl_hb_gather_bandwidth(struct xarray *xa) | 906 | static struct xarray *cxl_hb_gather_bandwidth(struct xarray *xa) |
| 907 | { | 907 | { |
| 908 | struct xarray *mw_xa __free(free_perf_xa) = | 908 | struct xarray *mw_xa __free(free_perf_xa) = |
| 909 | kzalloc_obj(*mw_xa, GFP_KERNEL); | 909 | kzalloc_obj(*mw_xa); |
| 910 | struct cxl_perf_ctx *ctx; | 910 | struct cxl_perf_ctx *ctx; |
| 911 | unsigned long index; | 911 | unsigned long index; |
| 912 | 912 | ||
| @@ -928,7 +928,7 @@ static struct xarray *cxl_hb_gather_bandwidth(struct xarray *xa) · 15 unmodified lines | |||
| 928 | mw_ctx = xa_load(mw_xa, mw_index); | 928 | mw_ctx = xa_load(mw_xa, mw_index); |
| 929 | if (!mw_ctx) { | 929 | if (!mw_ctx) { |
| 930 | struct cxl_perf_ctx *n __free(kfree) = | 930 | struct cxl_perf_ctx *n __free(kfree) = |
| 931 | kzalloc_obj(*n, GFP_KERNEL); | 931 | kzalloc_obj(*n); |
| 932 | 932 | ||
| 933 | if (!n) | 933 | if (!n) |
| 934 | return ERR_PTR(-ENOMEM); | 934 | return ERR_PTR(-ENOMEM); |
| @@ -987,7 +987,7 @@ void cxl_region_shared_upstream_bandwidth_update(struct cxl_region *cxlr) · 52 unmodified lines | |||
| 987 | lockdep_assert_held(&cxl_rwsem.dpa); | 987 | lockdep_assert_held(&cxl_rwsem.dpa); |
| 988 | 988 | ||
| 989 | struct xarray *usp_xa __free(free_perf_xa) = | 989 | struct xarray *usp_xa __free(free_perf_xa) = |
| 990 | kzalloc_obj(*usp_xa, GFP_KERNEL); | 990 | kzalloc_obj(*usp_xa); |
| 991 | 991 | ||
| 992 | if (!usp_xa) | 992 | if (!usp_xa) |
| 993 | return; | 993 | return; |
| @@ -2009,7 +2009,7 @@ static void err_rec_free(void *_cxlmd) · 2008 unmodified lines | |||
| 2009 | 2009 | ||
| 2010 | static int devm_cxl_memdev_setup_err_rec(struct cxl_memdev *cxlmd) | 2010 | static int devm_cxl_memdev_setup_err_rec(struct cxl_memdev *cxlmd) |
| 2011 | { | 2011 | { |
| 2012 | struct cxl_mem_err_rec *array_rec = kzalloc_obj(*array_rec, GFP_KERNEL); | 2012 | struct cxl_mem_err_rec *array_rec = kzalloc_obj(*array_rec); |
| 2013 | 2013 | ||
| 2014 | if (!array_rec) | 2014 | if (!array_rec) |
| 2015 | return -ENOMEM; | 2015 | return -ENOMEM; |
| @@ -204,7 +204,7 @@ int devm_cxl_setup_features(struct cxl_dev_state *cxlds) · 203 unmodified lines | |||
| 204 | return -ENODEV; | 204 | return -ENODEV; |
| 205 | 205 | ||
| 206 | struct cxl_features_state *cxlfs __free(kfree) = | 206 | struct cxl_features_state *cxlfs __free(kfree) = |
| 207 | kzalloc_obj(*cxlfs, GFP_KERNEL); | 207 | kzalloc_obj(*cxlfs); |
| 208 | if (!cxlfs) | 208 | if (!cxlfs) |
| 209 | return -ENOMEM; | 209 | return -ENOMEM; |
| 210 | 210 | ||
| @@ -665,7 +665,7 @@ static struct cxl_memdev *cxl_memdev_alloc(struct cxl_dev_state *cxlds, · 664 unmodified lines | |||
| 665 | struct cdev *cdev; | 665 | struct cdev *cdev; |
| 666 | int rc; | 666 | int rc; |
| 667 | 667 | ||
| 668 | cxlmd = kzalloc_obj(*cxlmd, GFP_KERNEL); | 668 | cxlmd = kzalloc_obj(*cxlmd); |
| 669 | if (!cxlmd) | 669 | if (!cxlmd) |
| 670 | return ERR_PTR(-ENOMEM); | 670 | return ERR_PTR(-ENOMEM); |
| 671 | 671 | ||
| @@ -83,7 +83,7 @@ static struct cxl_nvdimm_bridge *cxl_nvdimm_bridge_alloc(struct cxl_port *port) · 82 unmodified lines | |||
| 83 | struct device *dev; | 83 | struct device *dev; |
| 84 | int rc; | 84 | int rc; |
| 85 | 85 | ||
| 86 | cxl_nvb = kzalloc_obj(*cxl_nvb, GFP_KERNEL); | 86 | cxl_nvb = kzalloc_obj(*cxl_nvb); |
| 87 | if (!cxl_nvb) | 87 | if (!cxl_nvb) |
| 88 | return ERR_PTR(-ENOMEM); | 88 | return ERR_PTR(-ENOMEM); |
| 89 | 89 | ||
| @@ -198,7 +198,7 @@ static struct cxl_nvdimm *cxl_nvdimm_alloc(struct cxl_nvdimm_bridge *cxl_nvb, · 108 unmodified lines | |||
| 198 | struct cxl_nvdimm *cxl_nvd; | 198 | struct cxl_nvdimm *cxl_nvd; |
| 199 | struct device *dev; | 199 | struct device *dev; |
| 200 | 200 | ||
| 201 | cxl_nvd = kzalloc_obj(*cxl_nvd, GFP_KERNEL); | 201 | cxl_nvd = kzalloc_obj(*cxl_nvd); |
| 202 | if (!cxl_nvd) | 202 | if (!cxl_nvd) |
| 203 | return ERR_PTR(-ENOMEM); | 203 | return ERR_PTR(-ENOMEM); |
| 204 | 204 | ||
| @@ -33,7 +33,7 @@ int devm_cxl_pmu_add(struct device *parent, struct cxl_pmu_regs *regs, · 32 unmodified lines | |||
| 33 | struct device *dev; | 33 | struct device *dev; |
| 34 | int rc; | 34 | int rc; |
| 35 | 35 | ||
| 36 | pmu = kzalloc_obj(*pmu, GFP_KERNEL); | 36 | pmu = kzalloc_obj(*pmu); |
| 37 | if (!pmu) | 37 | if (!pmu) |
| 38 | return -ENOMEM; | 38 | return -ENOMEM; |
| 39 | 39 | ||
| @@ -688,11 +688,11 @@ static struct cxl_port *cxl_port_alloc(struct device *uport_dev, · 687 unmodified lines | |||
| 688 | 688 | ||
| 689 | /* No parent_dport, root cxl_port */ | 689 | /* No parent_dport, root cxl_port */ |
| 690 | if (!parent_dport) { | 690 | if (!parent_dport) { |
| 691 | cxl_root = kzalloc_obj(*cxl_root, GFP_KERNEL); | 691 | cxl_root = kzalloc_obj(*cxl_root); |
| 692 | if (!cxl_root) | 692 | if (!cxl_root) |
| 693 | return ERR_PTR(-ENOMEM); | 693 | return ERR_PTR(-ENOMEM); |
| 694 | } else { | 694 | } else { |
| 695 | _port = kzalloc_obj(*port, GFP_KERNEL); | 695 | _port = kzalloc_obj(*port); |
| 696 | if (!_port) | 696 | if (!_port) |
| 697 | return ERR_PTR(-ENOMEM); | 697 | return ERR_PTR(-ENOMEM); |
| 698 | } | 698 | } |
| @@ -1184,7 +1184,7 @@ __devm_cxl_add_dport(struct cxl_port *port, struct device *dport_dev, · 485 unmodified lines | |||
| 1184 | CXL_TARGET_STRLEN) | 1184 | CXL_TARGET_STRLEN) |
| 1185 | return ERR_PTR(-EINVAL); | 1185 | return ERR_PTR(-EINVAL); |
| 1186 | 1186 | ||
| 1187 | dport = kzalloc_obj(*dport, GFP_KERNEL); | 1187 | dport = kzalloc_obj(*dport); |
| 1188 | if (!dport) | 1188 | if (!dport) |
| 1189 | return ERR_PTR(-ENOMEM); | 1189 | return ERR_PTR(-ENOMEM); |
| 1190 | 1190 | ||
| @@ -1350,7 +1350,7 @@ static int cxl_add_ep(struct cxl_dport *dport, struct device *ep_dev) · 159 unmodified lines | |||
| 1350 | struct cxl_ep *ep; | 1350 | struct cxl_ep *ep; |
| 1351 | int rc; | 1351 | int rc; |
| 1352 | 1352 | ||
| 1353 | ep = kzalloc_obj(*ep, GFP_KERNEL); | 1353 | ep = kzalloc_obj(*ep); |
| 1354 | if (!ep) | 1354 | if (!ep) |
| 1355 | return -ENOMEM; | 1355 | return -ENOMEM; |
| 1356 | 1356 | ||
| @@ -2101,7 +2101,7 @@ struct cxl_endpoint_decoder *cxl_endpoint_decoder_alloc(struct cxl_port *port) · 744 unmodified lines | |||
| 2101 | if (!is_cxl_endpoint(port)) | 2101 | if (!is_cxl_endpoint(port)) |
| 2102 | return ERR_PTR(-EINVAL); | 2102 | return ERR_PTR(-EINVAL); |
| 2103 | 2103 | ||
| 2104 | cxled = kzalloc_obj(*cxled, GFP_KERNEL); | 2104 | cxled = kzalloc_obj(*cxled); |
| 2105 | if (!cxled) | 2105 | if (!cxled) |
| 2106 | return ERR_PTR(-ENOMEM); | 2106 | return ERR_PTR(-ENOMEM); |
| 2107 | 2107 | ||
| @@ -998,7 +998,7 @@ alloc_region_ref(struct cxl_port *port, struct cxl_region *cxlr, · 997 unmodified lines | |||
| 998 | return ERR_PTR(-EBUSY); | 998 | return ERR_PTR(-EBUSY); |
| 999 | } | 999 | } |
| 1000 | 1000 | ||
| 1001 | cxl_rr = kzalloc_obj(*cxl_rr, GFP_KERNEL); | 1001 | cxl_rr = kzalloc_obj(*cxl_rr); |
| 1002 | if (!cxl_rr) | 1002 | if (!cxl_rr) |
| 1003 | return ERR_PTR(-ENOMEM); | 1003 | return ERR_PTR(-ENOMEM); |
| 1004 | cxl_rr->port = port; | 1004 | cxl_rr->port = port; |
| @@ -2474,7 +2474,7 @@ static struct cxl_region *cxl_region_alloc(struct cxl_root_decoder *cxlrd, int i · 1469 unmodified lines | |||
| 2474 | struct cxl_region *cxlr; | 2474 | struct cxl_region *cxlr; |
| 2475 | struct device *dev; | 2475 | struct device *dev; |
| 2476 | 2476 | ||
| 2477 | cxlr = kzalloc_obj(*cxlr, GFP_KERNEL); | 2477 | cxlr = kzalloc_obj(*cxlr); |
| 2478 | if (!cxlr) { | 2478 | if (!cxlr) { |
| 2479 | memregion_free(id); | 2479 | memregion_free(id); |
| 2480 | return ERR_PTR(-ENOMEM); | 2480 | return ERR_PTR(-ENOMEM); |
| @@ -3552,7 +3552,7 @@ static struct cxl_dax_region *cxl_dax_region_alloc(struct cxl_region *cxlr) · 1071 unmodified lines | |||
| 3552 | if (p->state != CXL_CONFIG_COMMIT) | 3552 | if (p->state != CXL_CONFIG_COMMIT) |
| 3553 | return ERR_PTR(-ENXIO); | 3553 | return ERR_PTR(-ENXIO); |
| 3554 | 3554 | ||
| 3555 | cxlr_dax = kzalloc_obj(*cxlr_dax, GFP_KERNEL); | 3555 | cxlr_dax = kzalloc_obj(*cxlr_dax); |
| 3556 | if (!cxlr_dax) | 3556 | if (!cxlr_dax) |
| 3557 | return ERR_PTR(-ENOMEM); | 3557 | return ERR_PTR(-ENOMEM); |
| 3558 | 3558 | ||
| @@ -3835,7 +3835,7 @@ static int __construct_region(struct cxl_region *cxlr, · 276 unmodified lines | |||
| 3835 | set_bit(CXL_REGION_F_AUTO, &cxlr->flags); | 3835 | set_bit(CXL_REGION_F_AUTO, &cxlr->flags); |
| 3836 | cxlr->hpa_range = *hpa_range; | 3836 | cxlr->hpa_range = *hpa_range; |
| 3837 | 3837 | ||
| 3838 | res = kmalloc_obj(*res, GFP_KERNEL); | 3838 | res = kmalloc_obj(*res); |
| 3839 | if (!res) | 3839 | if (!res) |
| 3840 | return -ENOMEM; | 3840 | return -ENOMEM; |
| 3841 | 3841 | ||
| @@ -426,7 +426,7 @@ static int cxl_pmem_region_probe(struct device *dev) · 425 unmodified lines | |||
| 426 | set_bit(ND_REGION_CXL, &ndr_desc.flags); | 426 | set_bit(ND_REGION_CXL, &ndr_desc.flags); |
| 427 | set_bit(ND_REGION_PERSIST_MEMCTRL, &ndr_desc.flags); | 427 | set_bit(ND_REGION_PERSIST_MEMCTRL, &ndr_desc.flags); |
| 428 | 428 | ||
| 429 | info = kmalloc_objs(*info, cxlr_pmem->nr_mappings, GFP_KERNEL); | 429 | info = kmalloc_objs(*info, cxlr_pmem->nr_mappings); |
| 430 | if (!info) | 430 | if (!info) |
| 431 | return -ENOMEM; | 431 | return -ENOMEM; |
| 432 | 432 | ||
| @@ -110,7 +110,7 @@ static ssize_t do_id_store(struct device_driver *drv, const char *buf, · 109 unmodified lines | |||
| 110 | dax_id = __dax_match_id(dax_drv, buf); | 110 | dax_id = __dax_match_id(dax_drv, buf); |
| 111 | if (!dax_id) { | 111 | if (!dax_id) { |
| 112 | if (action == ID_ADD) { | 112 | if (action == ID_ADD) { |
| 113 | dax_id = kzalloc_obj(*dax_id, GFP_KERNEL); | 113 | dax_id = kzalloc_obj(*dax_id); |
| 114 | if (dax_id) { | 114 | if (dax_id) { |
| 115 | strscpy(dax_id->dev_name, buf, DAX_NAME_LEN); | 115 | strscpy(dax_id->dev_name, buf, DAX_NAME_LEN); |
| 116 | list_add(&dax_id->list, &dax_drv->ids); | 116 | list_add(&dax_id->list, &dax_drv->ids); |
| @@ -650,7 +650,7 @@ struct dax_region *alloc_dax_region(struct device *parent, int region_id, · 533 unmodified lines | |||
| 650 | || !IS_ALIGNED(range_len(range), align)) | 650 | || !IS_ALIGNED(range_len(range), align)) |
| 651 | return NULL; | 651 | return NULL; |
| 652 | 652 | ||
| 653 | dax_region = kzalloc_obj(*dax_region, GFP_KERNEL); | 653 | dax_region = kzalloc_obj(*dax_region); |
| 654 | if (!dax_region) | 654 | if (!dax_region) |
| 655 | return NULL; | 655 | return NULL; |
| 656 | 656 | ||
| @@ -807,7 +807,7 @@ static int devm_register_dax_mapping(struct dev_dax *dev_dax, int range_id) · 150 unmodified lines | |||
| 807 | "region disabled\n")) | 807 | "region disabled\n")) |
| 808 | return -ENXIO; | 808 | return -ENXIO; |
| 809 | 809 | ||
| 810 | mapping = kzalloc_obj(*mapping, GFP_KERNEL); | 810 | mapping = kzalloc_obj(*mapping); |
| 811 | if (!mapping) | 811 | if (!mapping) |
| 812 | return -ENOMEM; | 812 | return -ENOMEM; |
| 813 | mapping->range_id = range_id; | 813 | mapping->range_id = range_id; |
| @@ -1427,7 +1427,7 @@ static struct dev_dax *__devm_create_dev_dax(struct dev_dax_data *data) · 613 unmodified lines | |||
| 1427 | struct device *dev; | 1427 | struct device *dev; |
| 1428 | int rc; | 1428 | int rc; |
| 1429 | 1429 | ||
| 1430 | dev_dax = kzalloc_obj(*dev_dax, GFP_KERNEL); | 1430 | dev_dax = kzalloc_obj(*dev_dax); |
| 1431 | if (!dev_dax) | 1431 | if (!dev_dax) |
| 1432 | return ERR_PTR(-ENOMEM); | 1432 | return ERR_PTR(-ENOMEM); |
| 1433 | 1433 | ||
| @@ -313,7 +313,7 @@ struct devfreq_event_dev *devfreq_event_add_edev(struct device *dev, · 312 unmodified lines | |||
| 313 | if (!desc->ops->set_event || !desc->ops->get_event) | 313 | if (!desc->ops->set_event || !desc->ops->get_event) |
| 314 | return ERR_PTR(-EINVAL); | 314 | return ERR_PTR(-EINVAL); |
| 315 | 315 | ||
| 316 | edev = kzalloc_obj(struct devfreq_event_dev, GFP_KERNEL); | 316 | edev = kzalloc_obj(struct devfreq_event_dev); |
| 317 | if (!edev) | 317 | if (!edev) |
| 318 | return ERR_PTR(-ENOMEM); | 318 | return ERR_PTR(-ENOMEM); |
| 319 | 319 | ||
| @@ -821,7 +821,7 @@ struct devfreq *devfreq_add_device(struct device *dev, · 820 unmodified lines | |||
| 821 | goto err_out; | 821 | goto err_out; |
| 822 | } | 822 | } |
| 823 | 823 | ||
| 824 | devfreq = kzalloc_obj(struct devfreq, GFP_KERNEL); | 824 | devfreq = kzalloc_obj(struct devfreq); |
| 825 | if (!devfreq) { | 825 | if (!devfreq) { |
| 826 | err = -ENOMEM; | 826 | err = -ENOMEM; |
| 827 | goto err_out; | 827 | goto err_out; |
| @@ -310,7 +310,7 @@ static int cpufreq_passive_register_notifier(struct devfreq *devfreq) · 309 unmodified lines | |||
| 310 | continue; | 310 | continue; |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | parent_cpu_data = kzalloc_obj(*parent_cpu_data, GFP_KERNEL); | 313 | parent_cpu_data = kzalloc_obj(*parent_cpu_data); |
| 314 | if (!parent_cpu_data) { | 314 | if (!parent_cpu_data) { |
| 315 | ret = -ENOMEM; | 315 | ret = -ENOMEM; |
| 316 | goto err_put_policy; | 316 | goto err_put_policy; |
| @@ -64,7 +64,7 @@ static int dibs_lo_register_dmb(struct dibs_dev *dibs, struct dibs_dmb *dmb, · 63 unmodified lines | |||
| 64 | if (sba_idx == DIBS_LO_MAX_DMBS) | 64 | if (sba_idx == DIBS_LO_MAX_DMBS) |
| 65 | return -ENOSPC; | 65 | return -ENOSPC; |
| 66 | 66 | ||
| 67 | dmb_node = kzalloc_obj(*dmb_node, GFP_KERNEL); | 67 | dmb_node = kzalloc_obj(*dmb_node); |
| 68 | if (!dmb_node) { | 68 | if (!dmb_node) { |
| 69 | rc = -ENOMEM; | 69 | rc = -ENOMEM; |
| 70 | goto err_bit; | 70 | goto err_bit; |
| @@ -303,7 +303,7 @@ static int dibs_lo_dev_probe(void) · 232 unmodified lines | |||
| 303 | struct dibs_dev *dibs; | 303 | struct dibs_dev *dibs; |
| 304 | int ret; | 304 | int ret; |
| 305 | 305 | ||
| 306 | ldev = kzalloc_obj(*ldev, GFP_KERNEL); | 306 | ldev = kzalloc_obj(*ldev); |
| 307 | if (!ldev) | 307 | if (!ldev) |
| 308 | return -ENOMEM; | 308 | return -ENOMEM; |
| 309 | 309 | ||
| @@ -133,7 +133,7 @@ struct dibs_dev *dibs_dev_alloc(void) · 132 unmodified lines | |||
| 133 | { | 133 | { |
| 134 | struct dibs_dev *dibs; | 134 | struct dibs_dev *dibs; |
| 135 | 135 | ||
| 136 | dibs = kzalloc_obj(*dibs, GFP_KERNEL); | 136 | dibs = kzalloc_obj(*dibs); |
| 137 | if (!dibs) | 137 | if (!dibs) |
| 138 | return dibs; | 138 | return dibs; |
| 139 | dibs->dev.release = dibs_dev_release; | 139 | dibs->dev.release = dibs_dev_release; |
| @@ -221,7 +221,7 @@ static int __init dio_init(void) · 220 unmodified lines | |||
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | /* Found a board, allocate it an entry in the list */ | 223 | /* Found a board, allocate it an entry in the list */ |
| 224 | dev = kzalloc_obj(struct dio_dev, GFP_KERNEL); | 224 | dev = kzalloc_obj(struct dio_dev); |
| 225 | if (!dev) { | 225 | if (!dev) { |
| 226 | if (scode >= DIOII_SCBASE) | 226 | if (scode >= DIOII_SCBASE) |
| 227 | iounmap(va); | 227 | iounmap(va); |
| @@ -108,7 +108,7 @@ struct sg_table *dma_buf_phys_vec_to_sgt(struct dma_buf_attachment *attach, · 107 unmodified lines | |||
| 108 | /* This function is supposed to work on MMIO memory only */ | 108 | /* This function is supposed to work on MMIO memory only */ |
| 109 | return ERR_PTR(-EINVAL); | 109 | return ERR_PTR(-EINVAL); |
| 110 | 110 | ||
| 111 | dma = kzalloc_obj(*dma, GFP_KERNEL); | 111 | dma = kzalloc_obj(*dma); |
| 112 | if (!dma) | 112 | if (!dma) |
| 113 | return ERR_PTR(-ENOMEM); | 113 | return ERR_PTR(-ENOMEM); |
| 114 | 114 | ||
| @@ -119,7 +119,7 @@ struct sg_table *dma_buf_phys_vec_to_sgt(struct dma_buf_attachment *attach, · 4 unmodified lines | |||
| 119 | */ | 119 | */ |
| 120 | break; | 120 | break; |
| 121 | case PCI_P2PDMA_MAP_THRU_HOST_BRIDGE: | 121 | case PCI_P2PDMA_MAP_THRU_HOST_BRIDGE: |
| 122 | dma->state = kzalloc_obj(*dma->state, GFP_KERNEL); | 122 | dma->state = kzalloc_obj(*dma->state); |
| 123 | if (!dma->state) { | 123 | if (!dma->state) { |
| 124 | ret = -ENOMEM; | 124 | ret = -ENOMEM; |
| 125 | goto err_free_dma; | 125 | goto err_free_dma; |
| @@ -866,7 +866,7 @@ static int dma_buf_wrap_sg_table(struct sg_table **sg_table) · 865 unmodified lines | |||
| 866 | * sg_table without copying the page_link and give only the copy back to | 866 | * sg_table without copying the page_link and give only the copy back to |
| 867 | * the importer. | 867 | * the importer. |
| 868 | */ | 868 | */ |
| 869 | to = kzalloc_obj(*to, GFP_KERNEL); | 869 | to = kzalloc_obj(*to); |
| 870 | if (!to) | 870 | if (!to) |
| 871 | return -ENOMEM; | 871 | return -ENOMEM; |
| 872 | 872 | ||
| @@ -1020,7 +1020,7 @@ dma_buf_dynamic_attach(struct dma_buf *dmabuf, struct device *dev, · 147 unmodified lines | |||
| 1020 | if (WARN_ON(importer_ops && !importer_ops->move_notify)) | 1020 | if (WARN_ON(importer_ops && !importer_ops->move_notify)) |
| 1021 | return ERR_PTR(-EINVAL); | 1021 | return ERR_PTR(-EINVAL); |
| 1022 | 1022 | ||
| 1023 | attach = kzalloc_obj(*attach, GFP_KERNEL); | 1023 | attach = kzalloc_obj(*attach); |
| 1024 | if (!attach) | 1024 | if (!attach) |
| 1025 | return ERR_PTR(-ENOMEM); | 1025 | return ERR_PTR(-ENOMEM); |
| 1026 | 1026 | ||
| @@ -155,7 +155,7 @@ struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences, · 154 unmodified lines | |||
| 155 | 155 | ||
| 156 | dma_fence_put(unsignaled); | 156 | dma_fence_put(unsignaled); |
| 157 | 157 | ||
| 158 | array = kmalloc_objs(*array, count, GFP_KERNEL); | 158 | array = kmalloc_objs(*array, count); |
| 159 | if (!array) | 159 | if (!array) |
| 160 | return NULL; | 160 | return NULL; |
| 161 | 161 | ||
| @@ -156,7 +156,7 @@ struct dma_fence *dma_fence_allocate_private_stub(ktime_t timestamp) · 155 unmodified lines | |||
| 156 | { | 156 | { |
| 157 | struct dma_fence *fence; | 157 | struct dma_fence *fence; |
| 158 | 158 | ||
| 159 | fence = kzalloc_obj(*fence, GFP_KERNEL); | 159 | fence = kzalloc_obj(*fence); |
| 160 | if (fence == NULL) | 160 | if (fence == NULL) |
| 161 | return NULL; | 161 | return NULL; |
| 162 | 162 | ||
| @@ -905,7 +905,7 @@ dma_fence_wait_any_timeout(struct dma_fence **fences, uint32_t count, · 742 unmodified lines | |||
| 905 | return 0; | 905 | return 0; |
| 906 | } | 906 | } |
| 907 | 907 | ||
| 908 | cb = kzalloc_objs(struct default_wait_cb, count, GFP_KERNEL); | 908 | cb = kzalloc_objs(struct default_wait_cb, count); |
| 909 | if (cb == NULL) { | 909 | if (cb == NULL) { |
| 910 | ret = -ENOMEM; | 910 | ret = -ENOMEM; |
| 911 | goto err_free_cb; | 911 | goto err_free_cb; |
| @@ -244,7 +244,7 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) · 243 unmodified lines | |||
| 244 | return ERR_PTR(-EINVAL); | 244 | return ERR_PTR(-EINVAL); |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | heap = kzalloc_obj(*heap, GFP_KERNEL); | 247 | heap = kzalloc_obj(*heap); |
| 248 | if (!heap) | 248 | if (!heap) |
| 249 | return ERR_PTR(-ENOMEM); | 249 | return ERR_PTR(-ENOMEM); |
| 250 | 250 | ||
| @@ -74,7 +74,7 @@ static int cma_heap_attach(struct dma_buf *dmabuf, · 73 unmodified lines | |||
| 74 | struct dma_heap_attachment *a; | 74 | struct dma_heap_attachment *a; |
| 75 | int ret; | 75 | int ret; |
| 76 | 76 | ||
| 77 | a = kzalloc_obj(*a, GFP_KERNEL); | 77 | a = kzalloc_obj(*a); |
| 78 | if (!a) | 78 | if (!a) |
| 79 | return -ENOMEM; | 79 | return -ENOMEM; |
| 80 | 80 | ||
| @@ -308,7 +308,7 @@ static struct dma_buf *cma_heap_allocate(struct dma_heap *heap, · 227 unmodified lines | |||
| 308 | int ret = -ENOMEM; | 308 | int ret = -ENOMEM; |
| 309 | pgoff_t pg; | 309 | pgoff_t pg; |
| 310 | 310 | ||
| 311 | buffer = kzalloc_obj(*buffer, GFP_KERNEL); | 311 | buffer = kzalloc_obj(*buffer); |
| 312 | if (!buffer) | 312 | if (!buffer) |
| 313 | return ERR_PTR(-ENOMEM); | 313 | return ERR_PTR(-ENOMEM); |
| 314 | 314 | ||
| @@ -346,7 +346,7 @@ static struct dma_buf *cma_heap_allocate(struct dma_heap *heap, · 31 unmodified lines | |||
| 346 | memset(page_address(cma_pages), 0, size); | 346 | memset(page_address(cma_pages), 0, size); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | buffer->pages = kmalloc_objs(*buffer->pages, pagecount, GFP_KERNEL); | 349 | buffer->pages = kmalloc_objs(*buffer->pages, pagecount); |
| 350 | if (!buffer->pages) { | 350 | if (!buffer->pages) { |
| 351 | ret = -ENOMEM; | 351 | ret = -ENOMEM; |
| 352 | goto free_cma; | 352 | goto free_cma; |
| @@ -391,7 +391,7 @@ static int __init __add_cma_heap(struct cma *cma, const char *name) · 38 unmodified lines | |||
| 391 | struct dma_heap_export_info exp_info; | 391 | struct dma_heap_export_info exp_info; |
| 392 | struct cma_heap *cma_heap; | 392 | struct cma_heap *cma_heap; |
| 393 | 393 | ||
| 394 | cma_heap = kzalloc_obj(*cma_heap, GFP_KERNEL); | 394 | cma_heap = kzalloc_obj(*cma_heap); |
| 395 | if (!cma_heap) | 395 | if (!cma_heap) |
| 396 | return -ENOMEM; | 396 | return -ENOMEM; |
| 397 | cma_heap->cma = cma; | 397 | cma_heap->cma = cma; |
| @@ -77,7 +77,7 @@ static int system_heap_attach(struct dma_buf *dmabuf, · 76 unmodified lines | |||
| 77 | struct dma_heap_attachment *a; | 77 | struct dma_heap_attachment *a; |
| 78 | int ret; | 78 | int ret; |
| 79 | 79 | ||
| 80 | a = kzalloc_obj(*a, GFP_KERNEL); | 80 | a = kzalloc_obj(*a); |
| 81 | if (!a) | 81 | if (!a) |
| 82 | return -ENOMEM; | 82 | return -ENOMEM; |
| 83 | 83 | ||
| @@ -354,7 +354,7 @@ static struct dma_buf *system_heap_allocate(struct dma_heap *heap, · 270 unmodified lines | |||
| 354 | struct page *page, *tmp_page; | 354 | struct page *page, *tmp_page; |
| 355 | int i, ret = -ENOMEM; | 355 | int i, ret = -ENOMEM; |
| 356 | 356 | ||
| 357 | buffer = kzalloc_obj(*buffer, GFP_KERNEL); | 357 | buffer = kzalloc_obj(*buffer); |
| 358 | if (!buffer) | 358 | if (!buffer) |
| 359 | return ERR_PTR(-ENOMEM); | 359 | return ERR_PTR(-ENOMEM); |
| 360 | 360 | ||
| @@ -450,7 +450,7 @@ static int find_race(void *arg) · 449 unmodified lines | |||
| 450 | if (err) | 450 | if (err) |
| 451 | return err; | 451 | return err; |
| 452 | 452 | ||
| 453 | threads = kmalloc_objs(*threads, ncpus, GFP_KERNEL); | 453 | threads = kmalloc_objs(*threads, ncpus); |
| 454 | if (!threads) { | 454 | if (!threads) { |
| 455 | err = -ENOMEM; | 455 | err = -ENOMEM; |
| 456 | goto err; | 456 | goto err; |
| @@ -32,7 +32,7 @@ static struct dma_fence *__mock_fence(u64 context, u64 seqno) · 31 unmodified lines | |||
| 32 | { | 32 | { |
| 33 | struct mock_fence *f; | 33 | struct mock_fence *f; |
| 34 | 34 | ||
| 35 | f = kmalloc_obj(*f, GFP_KERNEL); | 35 | f = kmalloc_obj(*f); |
| 36 | if (!f) | 36 | if (!f) |
| 37 | return NULL; | 37 | return NULL; |
| 38 | 38 | ||
| @@ -54,7 +54,7 @@ static struct dma_fence *mock_array(unsigned int num_fences, ...) · 15 unmodified lines | |||
| 54 | va_list valist; | 54 | va_list valist; |
| 55 | int i; | 55 | int i; |
| 56 | 56 | ||
| 57 | fences = kzalloc_objs(*fences, num_fences, GFP_KERNEL); | 57 | fences = kzalloc_objs(*fences, num_fences); |
| 58 | if (!fences) | 58 | if (!fences) |
| 59 | goto error_put; | 59 | goto error_put; |
| 60 | 60 | ||
| @@ -27,7 +27,7 @@ static struct dma_fence *alloc_fence(void) · 26 unmodified lines | |||
| 27 | { | 27 | { |
| 28 | struct dma_fence *f; | 28 | struct dma_fence *f; |
| 29 | 29 | ||
| 30 | f = kmalloc_obj(*f, GFP_KERNEL); | 30 | f = kmalloc_obj(*f); |
| 31 | if (!f) | 31 | if (!f) |
| 32 | return NULL; | 32 | return NULL; |
| 33 | 33 | ||
| @@ -101,7 +101,7 @@ static struct sync_timeline *sync_timeline_create(const char *name) · 100 unmodified lines | |||
| 101 | { | 101 | { |
| 102 | struct sync_timeline *obj; | 102 | struct sync_timeline *obj; |
| 103 | 103 | ||
| 104 | obj = kzalloc_obj(*obj, GFP_KERNEL); | 104 | obj = kzalloc_obj(*obj); |
| 105 | if (!obj) | 105 | if (!obj) |
| 106 | return NULL; | 106 | return NULL; |
| 107 | 107 | ||
| @@ -252,7 +252,7 @@ static struct sync_pt *sync_pt_create(struct sync_timeline *obj, · 144 unmodified lines | |||
| 252 | { | 252 | { |
| 253 | struct sync_pt *pt; | 253 | struct sync_pt *pt; |
| 254 | 254 | ||
| 255 | pt = kzalloc_obj(*pt, GFP_KERNEL); | 255 | pt = kzalloc_obj(*pt); |
| 256 | if (!pt) | 256 | if (!pt) |
| 257 | return NULL; | 257 | return NULL; |
| 258 | 258 | ||
| @@ -24,7 +24,7 @@ static struct sync_file *sync_file_alloc(void) · 23 unmodified lines | |||
| 24 | { | 24 | { |
| 25 | struct sync_file *sync_file; | 25 | struct sync_file *sync_file; |
| 26 | 26 | ||
| 27 | sync_file = kzalloc_obj(*sync_file, GFP_KERNEL); | 27 | sync_file = kzalloc_obj(*sync_file); |
| 28 | if (!sync_file) | 28 | if (!sync_file) |
| 29 | return NULL; | 29 | return NULL; |
| 30 | 30 | ||
| @@ -115,7 +115,7 @@ static int vmap_udmabuf(struct dma_buf *buf, struct iosys_map *map) · 114 unmodified lines | |||
| 115 | 115 | ||
| 116 | dma_resv_assert_held(buf->resv); | 116 | dma_resv_assert_held(buf->resv); |
| 117 | 117 | ||
| 118 | pages = kvmalloc_objs(*pages, ubuf->pagecount, GFP_KERNEL); | 118 | pages = kvmalloc_objs(*pages, ubuf->pagecount); |
| 119 | if (!pages) | 119 | if (!pages) |
| 120 | return -ENOMEM; | 120 | return -ENOMEM; |
| 121 | 121 | ||
| @@ -150,7 +150,7 @@ static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf, · 28 unmodified lines | |||
| 150 | unsigned int i = 0; | 150 | unsigned int i = 0; |
| 151 | int ret; | 151 | int ret; |
| 152 | 152 | ||
| 153 | sg = kzalloc_obj(*sg, GFP_KERNEL); | 153 | sg = kzalloc_obj(*sg); |
| 154 | if (!sg) | 154 | if (!sg) |
| 155 | return ERR_PTR(-ENOMEM); | 155 | return ERR_PTR(-ENOMEM); |
| 156 | 156 | ||
| @@ -207,11 +207,11 @@ static void unpin_all_folios(struct udmabuf *ubuf) · 50 unmodified lines | |||
| 207 | 207 | ||
| 208 | static __always_inline int init_udmabuf(struct udmabuf *ubuf, pgoff_t pgcnt) | 208 | static __always_inline int init_udmabuf(struct udmabuf *ubuf, pgoff_t pgcnt) |
| 209 | { | 209 | { |
| 210 | ubuf->folios = kvmalloc_objs(*ubuf->folios, pgcnt, GFP_KERNEL); | 210 | ubuf->folios = kvmalloc_objs(*ubuf->folios, pgcnt); |
| 211 | if (!ubuf->folios) | 211 | if (!ubuf->folios) |
| 212 | return -ENOMEM; | 212 | return -ENOMEM; |
| 213 | 213 | ||
| 214 | ubuf->offsets = kvzalloc_objs(*ubuf->offsets, pgcnt, GFP_KERNEL); | 214 | ubuf->offsets = kvzalloc_objs(*ubuf->offsets, pgcnt); |
| 215 | if (!ubuf->offsets) | 215 | if (!ubuf->offsets) |
| 216 | return -ENOMEM; | 216 | return -ENOMEM; |
| 217 | 217 | ||
| @@ -189,7 +189,7 @@ int acpi_dma_controller_register(struct device *dev, · 188 unmodified lines | |||
| 189 | if (!adev) | 189 | if (!adev) |
| 190 | return -EINVAL; | 190 | return -EINVAL; |
| 191 | 191 | ||
| 192 | adma = kzalloc_obj(*adma, GFP_KERNEL); | 192 | adma = kzalloc_obj(*adma); |
| 193 | if (!adma) | 193 | if (!adma) |
| 194 | return -ENOMEM; | 194 | return -ENOMEM; |
| 195 | 195 | ||
| @@ -2372,7 +2372,7 @@ static int pl08x_dma_init_virtual_channels(struct pl08x_driver_data *pl08x, · 2371 unmodified lines | |||
| 2372 | * to cope with that situation. | 2372 | * to cope with that situation. |
| 2373 | */ | 2373 | */ |
| 2374 | for (i = 0; i < channels; i++) { | 2374 | for (i = 0; i < channels; i++) { |
| 2375 | chan = kzalloc_obj(*chan, GFP_KERNEL); | 2375 | chan = kzalloc_obj(*chan); |
| 2376 | if (!chan) | 2376 | if (!chan) |
| 2377 | return -ENOMEM; | 2377 | return -ENOMEM; |
| 2378 | 2378 | ||
| @@ -2390,7 +2390,7 @@ static int pl08x_dma_init_virtual_channels(struct pl08x_driver_data *pl08x, · 11 unmodified lines | |||
| 2390 | chan->signal = i; | 2390 | chan->signal = i; |
| 2391 | pl08x_dma_slave_init(chan); | 2391 | pl08x_dma_slave_init(chan); |
| 2392 | } else { | 2392 | } else { |
| 2393 | chan->cd = kzalloc_obj(*chan->cd, GFP_KERNEL); | 2393 | chan->cd = kzalloc_obj(*chan->cd); |
| 2394 | if (!chan->cd) { | 2394 | if (!chan->cd) { |
| 2395 | kfree(chan); | 2395 | kfree(chan); |
| 2396 | return -ENOMEM; | 2396 | return -ENOMEM; |
| @@ -2709,7 +2709,7 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) · 312 unmodified lines | |||
| 2709 | goto out_no_pl08x; | 2709 | goto out_no_pl08x; |
| 2710 | 2710 | ||
| 2711 | /* Create the driver state holder */ | 2711 | /* Create the driver state holder */ |
| 2712 | pl08x = kzalloc_obj(*pl08x, GFP_KERNEL); | 2712 | pl08x = kzalloc_obj(*pl08x); |
| 2713 | if (!pl08x) { | 2713 | if (!pl08x) { |
| 2714 | ret = -ENOMEM; | 2714 | ret = -ENOMEM; |
| 2715 | goto out_no_pl08x; | 2715 | goto out_no_pl08x; |
| @@ -1818,7 +1818,7 @@ static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, · 1817 unmodified lines | |||
| 1818 | dma_cap_zero(mask); | 1818 | dma_cap_zero(mask); |
| 1819 | dma_cap_set(DMA_SLAVE, mask); | 1819 | dma_cap_set(DMA_SLAVE, mask); |
| 1820 | 1820 | ||
| 1821 | atslave = kmalloc_obj(*atslave, GFP_KERNEL); | 1821 | atslave = kmalloc_obj(*atslave); |
| 1822 | if (!atslave) { | 1822 | if (!atslave) { |
| 1823 | put_device(&dmac_pdev->dev); | 1823 | put_device(&dmac_pdev->dev); |
| 1824 | return NULL; | 1824 | return NULL; |
| @@ -393,7 +393,7 @@ static int mpc52xx_bcom_probe(struct platform_device *op) · 392 unmodified lines | |||
| 393 | } | 393 | } |
| 394 | 394 | ||
| 395 | /* Get a clean struct */ | 395 | /* Get a clean struct */ |
| 396 | bcom_eng = kzalloc_obj(struct bcom_engine, GFP_KERNEL); | 396 | bcom_eng = kzalloc_obj(struct bcom_engine); |
| 397 | if (!bcom_eng) { | 397 | if (!bcom_eng) { |
| 398 | rv = -ENOMEM; | 398 | rv = -ENOMEM; |
| 399 | goto error_sramclean; | 399 | goto error_sramclean; |
| @@ -48,7 +48,7 @@ int bcom_sram_init(struct device_node *sram_node, char *owner) · 47 unmodified lines | |||
| 48 | return -EBUSY; | 48 | return -EBUSY; |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | bcom_sram = kmalloc_obj(struct bcom_sram, GFP_KERNEL); | 51 | bcom_sram = kmalloc_obj(struct bcom_sram); |
| 52 | if (!bcom_sram) { | 52 | if (!bcom_sram) { |
| 53 | printk(KERN_ERR "%s: bcom_sram_init: " | 53 | printk(KERN_ERR "%s: bcom_sram_init: " |
| 54 | "Couldn't allocate internal state !\n", owner); | 54 | "Couldn't allocate internal state !\n", owner); |
| @@ -1075,7 +1075,7 @@ static int __dma_async_device_channel_register(struct dma_device *device, · 1074 unmodified lines | |||
| 1075 | chan->local = alloc_percpu(typeof(*chan->local)); | 1075 | chan->local = alloc_percpu(typeof(*chan->local)); |
| 1076 | if (!chan->local) | 1076 | if (!chan->local) |
| 1077 | return -ENOMEM; | 1077 | return -ENOMEM; |
| 1078 | chan->dev = kzalloc_obj(*chan->dev, GFP_KERNEL); | 1078 | chan->dev = kzalloc_obj(*chan->dev); |
| 1079 | if (!chan->dev) { | 1079 | if (!chan->dev) { |
| 1080 | rc = -ENOMEM; | 1080 | rc = -ENOMEM; |
| 1081 | goto err_free_local; | 1081 | goto err_free_local; |
| @@ -677,11 +677,11 @@ static int dmatest_func(void *data) · 676 unmodified lines | |||
| 677 | 677 | ||
| 678 | set_user_nice(current, 10); | 678 | set_user_nice(current, 10); |
| 679 | 679 | ||
| 680 | srcs = kzalloc_objs(dma_addr_t, src->cnt, GFP_KERNEL); | 680 | srcs = kzalloc_objs(dma_addr_t, src->cnt); |
| 681 | if (!srcs) | 681 | if (!srcs) |
| 682 | goto err_dst; | 682 | goto err_dst; |
| 683 | 683 | ||
| 684 | dma_pq = kzalloc_objs(dma_addr_t, dst->cnt, GFP_KERNEL); | 684 | dma_pq = kzalloc_objs(dma_addr_t, dst->cnt); |
| 685 | if (!dma_pq) | 685 | if (!dma_pq) |
| 686 | goto err_srcs_array; | 686 | goto err_srcs_array; |
| 687 | 687 | ||
| @@ -987,7 +987,7 @@ static int dmatest_add_threads(struct dmatest_info *info, · 299 unmodified lines | |||
| 987 | return -EINVAL; | 987 | return -EINVAL; |
| 988 | 988 | ||
| 989 | for (i = 0; i < params->threads_per_chan; i++) { | 989 | for (i = 0; i < params->threads_per_chan; i++) { |
| 990 | thread = kzalloc_obj(struct dmatest_thread, GFP_KERNEL); | 990 | thread = kzalloc_obj(struct dmatest_thread); |
| 991 | if (!thread) { | 991 | if (!thread) { |
| 992 | pr_warn("No memory for %s-%s%u\n", | 992 | pr_warn("No memory for %s-%s%u\n", |
| 993 | dma_chan_name(chan), op, i); | 993 | dma_chan_name(chan), op, i); |
| @@ -1025,7 +1025,7 @@ static int dmatest_add_channel(struct dmatest_info *info, · 31 unmodified lines | |||
| 1025 | unsigned int thread_count = 0; | 1025 | unsigned int thread_count = 0; |
| 1026 | int cnt; | 1026 | int cnt; |
| 1027 | 1027 | ||
| 1028 | dtc = kmalloc_obj(struct dmatest_chan, GFP_KERNEL); | 1028 | dtc = kmalloc_obj(struct dmatest_chan); |
| 1029 | if (!dtc) { | 1029 | if (!dtc) { |
| 1030 | pr_warn("No memory for %s\n", dma_chan_name(chan)); | 1030 | pr_warn("No memory for %s\n", dma_chan_name(chan)); |
| 1031 | return -ENOMEM; | 1031 | return -ENOMEM; |
| @@ -167,7 +167,7 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev, · 166 unmodified lines | |||
| 167 | int i, mask; | 167 | int i, mask; |
| 168 | 168 | ||
| 169 | struct dw_edma_pcie_data *vsec_data __free(kfree) = | 169 | struct dw_edma_pcie_data *vsec_data __free(kfree) = |
| 170 | kmalloc_obj(*vsec_data, GFP_KERNEL); | 170 | kmalloc_obj(*vsec_data); |
| 171 | if (!vsec_data) | 171 | if (!vsec_data) |
| 172 | return -ENOMEM; | 172 | return -ENOMEM; |
| 173 | 173 | ||
| @@ -53,7 +53,7 @@ static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec, · 52 unmodified lines | |||
| 53 | goto put_device; | 53 | goto put_device; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | map = kzalloc_obj(*map, GFP_KERNEL); | 56 | map = kzalloc_obj(*map); |
| 57 | if (!map) { | 57 | if (!map) { |
| 58 | ret = -ENOMEM; | 58 | ret = -ENOMEM; |
| 59 | goto put_device; | 59 | goto put_device; |
| @@ -966,7 +966,7 @@ static int ep93xx_dma_alloc_chan_resources(struct dma_chan *chan) · 965 unmodified lines | |||
| 966 | for (i = 0; i < DMA_MAX_CHAN_DESCRIPTORS; i++) { | 966 | for (i = 0; i < DMA_MAX_CHAN_DESCRIPTORS; i++) { |
| 967 | struct ep93xx_dma_desc *desc; | 967 | struct ep93xx_dma_desc *desc; |
| 968 | 968 | ||
| 969 | desc = kzalloc_obj(*desc, GFP_KERNEL); | 969 | desc = kzalloc_obj(*desc); |
| 970 | if (!desc) { | 970 | if (!desc) { |
| 971 | dev_warn(chan2dev(edmac), "not enough descriptors\n"); | 971 | dev_warn(chan2dev(edmac), "not enough descriptors\n"); |
| 972 | break; | 972 | break; |
| @@ -353,7 +353,7 @@ static int __cold dpaa2_qdma_setup(struct fsl_mc_device *ls_dev) · 352 unmodified lines | |||
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | priv->num_pairs = min(priv->dpdmai_attr.num_of_priorities, prio_def); | 355 | priv->num_pairs = min(priv->dpdmai_attr.num_of_priorities, prio_def); |
| 356 | ppriv = kzalloc_objs(*ppriv, priv->num_pairs, GFP_KERNEL); | 356 | ppriv = kzalloc_objs(*ppriv, priv->num_pairs); |
| 357 | if (!ppriv) { | 357 | if (!ppriv) { |
| 358 | err = -ENOMEM; | 358 | err = -ENOMEM; |
| 359 | goto exit; | 359 | goto exit; |
| @@ -659,7 +659,7 @@ static int dpaa2_qdma_probe(struct fsl_mc_device *dpdmai_dev) · 299 unmodified lines | |||
| 659 | struct dpaa2_qdma_priv *priv; | 659 | struct dpaa2_qdma_priv *priv; |
| 660 | int err; | 660 | int err; |
| 661 | 661 | ||
| 662 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 662 | priv = kzalloc_obj(*priv); |
| 663 | if (!priv) | 663 | if (!priv) |
| 664 | return -ENOMEM; | 664 | return -ENOMEM; |
| 665 | dev_set_drvdata(dev, priv); | 665 | dev_set_drvdata(dev, priv); |
| @@ -707,7 +707,7 @@ static int dpaa2_qdma_probe(struct fsl_mc_device *dpdmai_dev) · 41 unmodified lines | |||
| 707 | goto err_enable; | 707 | goto err_enable; |
| 708 | } | 708 | } |
| 709 | 709 | ||
| 710 | dpaa2_qdma = kzalloc_obj(*dpaa2_qdma, GFP_KERNEL); | 710 | dpaa2_qdma = kzalloc_obj(*dpaa2_qdma); |
| 711 | if (!dpaa2_qdma) { | 711 | if (!dpaa2_qdma) { |
| 712 | err = -ENOMEM; | 712 | err = -ENOMEM; |
| 713 | goto err_eng; | 713 | goto err_eng; |
| @@ -406,7 +406,7 @@ static int fsl_qdma_pre_request_enqueue_desc(struct fsl_qdma_queue *queue) · 405 unmodified lines | |||
| 406 | struct fsl_qdma_comp *comp_temp, *_comp_temp; | 406 | struct fsl_qdma_comp *comp_temp, *_comp_temp; |
| 407 | 407 | ||
| 408 | for (i = 0; i < queue->n_cq + FSL_COMMAND_QUEUE_OVERFLLOW; i++) { | 408 | for (i = 0; i < queue->n_cq + FSL_COMMAND_QUEUE_OVERFLLOW; i++) { |
| 409 | comp_temp = kzalloc_obj(*comp_temp, GFP_KERNEL); | 409 | comp_temp = kzalloc_obj(*comp_temp); |
| 410 | if (!comp_temp) | 410 | if (!comp_temp) |
| 411 | goto err_alloc; | 411 | goto err_alloc; |
| 412 | comp_temp->virt_addr = | 412 | comp_temp->virt_addr = |
| @@ -579,7 +579,7 @@ static int fsl_re_alloc_chan_resources(struct dma_chan *chan) · 578 unmodified lines | |||
| 579 | 579 | ||
| 580 | re_chan = container_of(chan, struct fsl_re_chan, chan); | 580 | re_chan = container_of(chan, struct fsl_re_chan, chan); |
| 581 | for (i = 0; i < FSL_RE_MIN_DESCS; i++) { | 581 | for (i = 0; i < FSL_RE_MIN_DESCS; i++) { |
| 582 | desc = kzalloc_obj(*desc, GFP_KERNEL); | 582 | desc = kzalloc_obj(*desc); |
| 583 | if (!desc) | 583 | if (!desc) |
| 584 | break; | 584 | break; |
| 585 | 585 | ||
| @@ -1111,7 +1111,7 @@ static int fsl_dma_chan_probe(struct fsldma_device *fdev, · 1110 unmodified lines | |||
| 1111 | int err; | 1111 | int err; |
| 1112 | 1112 | ||
| 1113 | /* alloc channel */ | 1113 | /* alloc channel */ |
| 1114 | chan = kzalloc_obj(*chan, GFP_KERNEL); | 1114 | chan = kzalloc_obj(*chan); |
| 1115 | if (!chan) { | 1115 | if (!chan) { |
| 1116 | err = -ENOMEM; | 1116 | err = -ENOMEM; |
| 1117 | goto out_return; | 1117 | goto out_return; |
| @@ -1218,7 +1218,7 @@ static int fsldma_of_probe(struct platform_device *op) · 100 unmodified lines | |||
| 1218 | unsigned int i; | 1218 | unsigned int i; |
| 1219 | int err; | 1219 | int err; |
| 1220 | 1220 | ||
| 1221 | fdev = kzalloc_obj(*fdev, GFP_KERNEL); | 1221 | fdev = kzalloc_obj(*fdev); |
| 1222 | if (!fdev) { | 1222 | if (!fdev) { |
| 1223 | err = -ENOMEM; | 1223 | err = -ENOMEM; |
| 1224 | goto out_return; | 1224 | goto out_return; |
| @@ -232,7 +232,7 @@ static int idxd_cdev_open(struct inode *inode, struct file *filp) · 231 unmodified lines | |||
| 232 | 232 | ||
| 233 | dev_dbg(dev, "%s called: %d\n", __func__, idxd_wq_refcount(wq)); | 233 | dev_dbg(dev, "%s called: %d\n", __func__, idxd_wq_refcount(wq)); |
| 234 | 234 | ||
| 235 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 235 | ctx = kzalloc_obj(*ctx); |
| 236 | if (!ctx) | 236 | if (!ctx) |
| 237 | return -ENOMEM; | 237 | return -ENOMEM; |
| 238 | 238 | ||
| @@ -538,7 +538,7 @@ int idxd_wq_add_cdev(struct idxd_wq *wq) · 299 unmodified lines | |||
| 538 | struct idxd_cdev_context *cdev_ctx; | 538 | struct idxd_cdev_context *cdev_ctx; |
| 539 | int rc, minor; | 539 | int rc, minor; |
| 540 | 540 | ||
| 541 | idxd_cdev = kzalloc_obj(*idxd_cdev, GFP_KERNEL); | 541 | idxd_cdev = kzalloc_obj(*idxd_cdev); |
| 542 | if (!idxd_cdev) | 542 | if (!idxd_cdev) |
| 543 | return -ENOMEM; | 543 | return -ENOMEM; |
| 544 | 544 | ||
| @@ -567,7 +567,7 @@ bool idxd_queue_int_handle_resubmit(struct idxd_desc *desc) · 566 unmodified lines | |||
| 567 | struct idxd_device *idxd = wq->idxd; | 567 | struct idxd_device *idxd = wq->idxd; |
| 568 | struct idxd_resubmit *irw; | 568 | struct idxd_resubmit *irw; |
| 569 | 569 | ||
| 570 | irw = kzalloc_obj(*irw, GFP_KERNEL); | 570 | irw = kzalloc_obj(*irw); |
| 571 | if (!irw) | 571 | if (!irw) |
| 572 | return false; | 572 | return false; |
| 573 | 573 | ||
| @@ -128,7 +128,7 @@ static int perfmon_validate_group(struct idxd_pmu *pmu, · 127 unmodified lines | |||
| 128 | struct idxd_pmu *fake_pmu; | 128 | struct idxd_pmu *fake_pmu; |
| 129 | int i, ret = 0, n, idx; | 129 | int i, ret = 0, n, idx; |
| 130 | 130 | ||
| 131 | fake_pmu = kzalloc_obj(*fake_pmu, GFP_KERNEL); | 131 | fake_pmu = kzalloc_obj(*fake_pmu); |
| 132 | if (!fake_pmu) | 132 | if (!fake_pmu) |
| 133 | return -ENOMEM; | 133 | return -ENOMEM; |
| 134 | 134 | ||
| @@ -484,7 +484,7 @@ int perfmon_pmu_init(struct idxd_device *idxd) · 349 unmodified lines | |||
| 484 | if (idxd->perfmon_offset == 0) | 484 | if (idxd->perfmon_offset == 0) |
| 485 | return -ENODEV; | 485 | return -ENODEV; |
| 486 | 486 | ||
| 487 | idxd_pmu = kzalloc_obj(*idxd_pmu, GFP_KERNEL); | 487 | idxd_pmu = kzalloc_obj(*idxd_pmu); |
| 488 | if (!idxd_pmu) | 488 | if (!idxd_pmu) |
| 489 | return -ENOMEM; | 489 | return -ENOMEM; |
| 490 | 490 | ||
| @@ -746,7 +746,7 @@ static int imxdma_alloc_chan_resources(struct dma_chan *chan) · 745 unmodified lines | |||
| 746 | while (imxdmac->descs_allocated < IMXDMA_MAX_CHAN_DESCRIPTORS) { | 746 | while (imxdmac->descs_allocated < IMXDMA_MAX_CHAN_DESCRIPTORS) { |
| 747 | struct imxdma_desc *desc; | 747 | struct imxdma_desc *desc; |
| 748 | 748 | ||
| 749 | desc = kzalloc_obj(*desc, GFP_KERNEL); | 749 | desc = kzalloc_obj(*desc); |
| 750 | if (!desc) | 750 | if (!desc) |
| 751 | break; | 751 | break; |
| 752 | dma_async_tx_descriptor_init(&desc->desc, chan); | 752 | dma_async_tx_descriptor_init(&desc->desc, chan); |
| @@ -2288,7 +2288,7 @@ static int sdma_probe(struct platform_device *pdev) · 2287 unmodified lines | |||
| 2288 | 2288 | ||
| 2289 | sdma->irq = irq; | 2289 | sdma->irq = irq; |
| 2290 | 2290 | ||
| 2291 | sdma->script_addrs = kzalloc_obj(*sdma->script_addrs, GFP_KERNEL); | 2291 | sdma->script_addrs = kzalloc_obj(*sdma->script_addrs); |
| 2292 | if (!sdma->script_addrs) { | 2292 | if (!sdma->script_addrs) { |
| 2293 | ret = -ENOMEM; | 2293 | ret = -ENOMEM; |
| 2294 | goto err_irq; | 2294 | goto err_irq; |
| @@ -574,7 +574,7 @@ static void ioat_enumerate_channels(struct ioatdma_device *ioat_dma) · 573 unmodified lines | |||
| 574 | dev_dbg(dev, "%s: xfercap = %d\n", __func__, 1 << xfercap_log); | 574 | dev_dbg(dev, "%s: xfercap = %d\n", __func__, 1 << xfercap_log); |
| 575 | 575 | ||
| 576 | for (i = 0; i < chancnt; i++) { | 576 | for (i = 0; i < chancnt; i++) { |
| 577 | ioat_chan = kzalloc_obj(*ioat_chan, GFP_KERNEL); | 577 | ioat_chan = kzalloc_obj(*ioat_chan); |
| 578 | if (!ioat_chan) | 578 | if (!ioat_chan) |
| 579 | break; | 579 | break; |
| 580 | 580 | ||
| @@ -1332,7 +1332,7 @@ static void release_ioatdma(struct dma_device *device) · 751 unmodified lines | |||
| 1332 | static struct ioatdma_device * | 1332 | static struct ioatdma_device * |
| 1333 | alloc_ioatdma(struct pci_dev *pdev, void __iomem *iobase) | 1333 | alloc_ioatdma(struct pci_dev *pdev, void __iomem *iobase) |
| 1334 | { | 1334 | { |
| 1335 | struct ioatdma_device *d = kzalloc_obj(*d, GFP_KERNEL); | 1335 | struct ioatdma_device *d = kzalloc_obj(*d); |
| 1336 | 1336 | ||
| 1337 | if (!d) | 1337 | if (!d) |
| 1338 | return NULL; | 1338 | return NULL; |
| @@ -503,7 +503,7 @@ static int mpc_dma_alloc_chan_resources(struct dma_chan *chan) · 502 unmodified lines | |||
| 503 | 503 | ||
| 504 | /* Alloc descriptors for this channel */ | 504 | /* Alloc descriptors for this channel */ |
| 505 | for (i = 0; i < MPC_DMA_DESCRIPTORS; i++) { | 505 | for (i = 0; i < MPC_DMA_DESCRIPTORS; i++) { |
| 506 | mdesc = kzalloc_obj(struct mpc_dma_desc, GFP_KERNEL); | 506 | mdesc = kzalloc_obj(struct mpc_dma_desc); |
| 507 | if (!mdesc) { | 507 | if (!mdesc) { |
| 508 | dev_notice(mdma->dma.dev, | 508 | dev_notice(mdma->dma.dev, |
| 509 | "Memory allocation error. Allocated only %u descriptors\n", i); | 509 | "Memory allocation error. Allocated only %u descriptors\n", i); |
| @@ -443,7 +443,7 @@ static int mv_xor_alloc_chan_resources(struct dma_chan *chan) · 442 unmodified lines | |||
| 443 | /* Allocate descriptor slots */ | 443 | /* Allocate descriptor slots */ |
| 444 | idx = mv_chan->slots_allocated; | 444 | idx = mv_chan->slots_allocated; |
| 445 | while (idx < num_descs_in_pool) { | 445 | while (idx < num_descs_in_pool) { |
| 446 | slot = kzalloc_obj(*slot, GFP_KERNEL); | 446 | slot = kzalloc_obj(*slot); |
| 447 | if (!slot) { | 447 | if (!slot) { |
| 448 | dev_info(mv_chan_to_devp(mv_chan), | 448 | dev_info(mv_chan_to_devp(mv_chan), |
| 449 | "channel only initialized %d descriptor slots", | 449 | "channel only initialized %d descriptor slots", |
| @@ -127,7 +127,7 @@ int of_dma_controller_register(struct device_node *np, · 126 unmodified lines | |||
| 127 | return -EINVAL; | 127 | return -EINVAL; |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | ofdma = kzalloc_obj(*ofdma, GFP_KERNEL); | 130 | ofdma = kzalloc_obj(*ofdma); |
| 131 | if (!ofdma) | 131 | if (!ofdma) |
| 132 | return -ENOMEM; | 132 | return -ENOMEM; |
| 133 | 133 | ||
| @@ -194,7 +194,7 @@ int of_dma_router_register(struct device_node *np, · 60 unmodified lines | |||
| 194 | return -EINVAL; | 194 | return -EINVAL; |
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | ofdma = kzalloc_obj(*ofdma, GFP_KERNEL); | 197 | ofdma = kzalloc_obj(*ofdma); |
| 198 | if (!ofdma) | 198 | if (!ofdma) |
| 199 | return -ENOMEM; | 199 | return -ENOMEM; |
| 200 | 200 | ||
| @@ -806,7 +806,7 @@ static int pch_dma_probe(struct pci_dev *pdev, · 805 unmodified lines | |||
| 806 | int i; | 806 | int i; |
| 807 | 807 | ||
| 808 | nr_channels = id->driver_data; | 808 | nr_channels = id->driver_data; |
| 809 | pd = kzalloc_obj(*pd, GFP_KERNEL); | 809 | pd = kzalloc_obj(*pd); |
| 810 | if (!pd) | 810 | if (!pd) |
| 811 | return -ENOMEM; | 811 | return -ENOMEM; |
| 812 | 812 | ||
| @@ -1887,7 +1887,7 @@ static int dmac_alloc_threads(struct pl330_dmac *pl330) · 1886 unmodified lines | |||
| 1887 | int i; | 1887 | int i; |
| 1888 | 1888 | ||
| 1889 | /* Allocate 1 Manager and 'chans' Channel threads */ | 1889 | /* Allocate 1 Manager and 'chans' Channel threads */ |
| 1890 | pl330->channels = kzalloc_objs(*thrd, 1 + chans, GFP_KERNEL); | 1890 | pl330->channels = kzalloc_objs(*thrd, 1 + chans); |
| 1891 | if (!pl330->channels) | 1891 | if (!pl330->channels) |
| 1892 | return -ENOMEM; | 1892 | return -ENOMEM; |
| 1893 | 1893 | ||
| @@ -3092,7 +3092,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) · 1198 unmodified lines | |||
| 3092 | 3092 | ||
| 3093 | pl330->num_peripherals = num_chan; | 3093 | pl330->num_peripherals = num_chan; |
| 3094 | 3094 | ||
| 3095 | pl330->peripherals = kzalloc_objs(*pch, num_chan, GFP_KERNEL); | 3095 | pl330->peripherals = kzalloc_objs(*pch, num_chan); |
| 3096 | if (!pl330->peripherals) { | 3096 | if (!pl330->peripherals) { |
| 3097 | ret = -ENOMEM; | 3097 | ret = -ENOMEM; |
| 3098 | goto probe_err2; | 3098 | goto probe_err2; |
| @@ -384,7 +384,7 @@ static int plx_dma_alloc_desc(struct plx_dma_dev *plxdev) · 383 unmodified lines | |||
| 384 | return -ENOMEM; | 384 | return -ENOMEM; |
| 385 | 385 | ||
| 386 | for (i = 0; i < PLX_DMA_RING_COUNT; i++) { | 386 | for (i = 0; i < PLX_DMA_RING_COUNT; i++) { |
| 387 | desc = kzalloc_obj(*desc, GFP_KERNEL); | 387 | desc = kzalloc_obj(*desc); |
| 388 | if (!desc) | 388 | if (!desc) |
| 389 | goto free_and_exit; | 389 | goto free_and_exit; |
| 390 | 390 | ||
| @@ -501,7 +501,7 @@ static int plx_dma_create(struct pci_dev *pdev) · 110 unmodified lines | |||
| 501 | struct dma_chan *chan; | 501 | struct dma_chan *chan; |
| 502 | int rc; | 502 | int rc; |
| 503 | 503 | ||
| 504 | plxdev = kzalloc_obj(*plxdev, GFP_KERNEL); | 504 | plxdev = kzalloc_obj(*plxdev); |
| 505 | if (!plxdev) | 505 | if (!plxdev) |
| 506 | return -ENOMEM; | 506 | return -ENOMEM; |
| 507 | 507 | ||
| @@ -1781,7 +1781,7 @@ static int ppc440spe_adma_alloc_chan_resources(struct dma_chan *chan) · 1780 unmodified lines | |||
| 1781 | db_sz = sizeof(struct xor_cb); | 1781 | db_sz = sizeof(struct xor_cb); |
| 1782 | 1782 | ||
| 1783 | for (; i < (ppc440spe_chan->device->pool_size / db_sz); i++) { | 1783 | for (; i < (ppc440spe_chan->device->pool_size / db_sz); i++) { |
| 1784 | slot = kzalloc_obj(struct ppc440spe_adma_desc_slot, GFP_KERNEL); | 1784 | slot = kzalloc_obj(struct ppc440spe_adma_desc_slot); |
| 1785 | if (!slot) { | 1785 | if (!slot) { |
| 1786 | printk(KERN_INFO "SPE ADMA Channel only initialized" | 1786 | printk(KERN_INFO "SPE ADMA Channel only initialized" |
| 1787 | " %d descriptor slots", i--); | 1787 | " %d descriptor slots", i--); |
| @@ -4063,7 +4063,7 @@ static int ppc440spe_adma_probe(struct platform_device *ofdev) · 2275 unmodified lines | |||
| 4063 | } | 4063 | } |
| 4064 | 4064 | ||
| 4065 | /* create a device */ | 4065 | /* create a device */ |
| 4066 | adev = kzalloc_obj(*adev, GFP_KERNEL); | 4066 | adev = kzalloc_obj(*adev); |
| 4067 | if (!adev) { | 4067 | if (!adev) { |
| 4068 | initcode = PPC_ADMA_INIT_ALLOC; | 4068 | initcode = PPC_ADMA_INIT_ALLOC; |
| 4069 | ret = -ENOMEM; | 4069 | ret = -ENOMEM; |
| @@ -4123,7 +4123,7 @@ static int ppc440spe_adma_probe(struct platform_device *ofdev) · 53 unmodified lines | |||
| 4123 | platform_set_drvdata(ofdev, adev); | 4123 | platform_set_drvdata(ofdev, adev); |
| 4124 | 4124 | ||
| 4125 | /* create a channel */ | 4125 | /* create a channel */ |
| 4126 | chan = kzalloc_obj(*chan, GFP_KERNEL); | 4126 | chan = kzalloc_obj(*chan); |
| 4127 | if (!chan) { | 4127 | if (!chan) { |
| 4128 | initcode = PPC_ADMA_INIT_CHANNEL; | 4128 | initcode = PPC_ADMA_INIT_CHANNEL; |
| 4129 | ret = -ENOMEM; | 4129 | ret = -ENOMEM; |
| @@ -4160,7 +4160,7 @@ static int ppc440spe_adma_probe(struct platform_device *ofdev) · 30 unmodified lines | |||
| 4160 | PAGE_SIZE, DMA_BIDIRECTIONAL); | 4160 | PAGE_SIZE, DMA_BIDIRECTIONAL); |
| 4161 | } | 4161 | } |
| 4162 | 4162 | ||
| 4163 | ref = kmalloc_obj(*ref, GFP_KERNEL); | 4163 | ref = kmalloc_obj(*ref); |
| 4164 | if (ref) { | 4164 | if (ref) { |
| 4165 | ref->chan = &chan->common; | 4165 | ref->chan = &chan->common; |
| 4166 | INIT_LIST_HEAD(&ref->node); | 4166 | INIT_LIST_HEAD(&ref->node); |
| @@ -342,7 +342,7 @@ static void pxad_init_debugfs(struct pxad_device *pdev) · 341 unmodified lines | |||
| 342 | struct dentry *chandir; | 342 | struct dentry *chandir; |
| 343 | 343 | ||
| 344 | pdev->dbgfs_chan = | 344 | pdev->dbgfs_chan = |
| 345 | kmalloc_objs(struct dentry *, pdev->nr_chans, GFP_KERNEL); | 345 | kmalloc_objs(struct dentry *, pdev->nr_chans); |
| 346 | if (!pdev->dbgfs_chan) | 346 | if (!pdev->dbgfs_chan) |
| 347 | return; | 347 | return; |
| 348 | 348 | ||
| @@ -848,7 +848,7 @@ static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, · 847 unmodified lines | |||
| 848 | for (i = 0; i < ARRAY_SIZE(chan_desc); i++) { | 848 | for (i = 0; i < ARRAY_SIZE(chan_desc); i++) { |
| 849 | struct sa11x0_dma_chan *c; | 849 | struct sa11x0_dma_chan *c; |
| 850 | 850 | ||
| 851 | c = kzalloc_obj(*c, GFP_KERNEL); | 851 | c = kzalloc_obj(*c); |
| 852 | if (!c) { | 852 | if (!c) { |
| 853 | dev_err(dev, "no memory for channel %u\n", i); | 853 | dev_err(dev, "no memory for channel %u\n", i); |
| 854 | return -ENOMEM; | 854 | return -ENOMEM; |
| @@ -907,7 +907,7 @@ static int sa11x0_dma_probe(struct platform_device *pdev) · 52 unmodified lines | |||
| 907 | if (!res) | 907 | if (!res) |
| 908 | return -ENXIO; | 908 | return -ENXIO; |
| 909 | 909 | ||
| 910 | d = kzalloc_obj(*d, GFP_KERNEL); | 910 | d = kzalloc_obj(*d); |
| 911 | if (!d) { | 911 | if (!d) { |
| 912 | ret = -ENOMEM; | 912 | ret = -ENOMEM; |
| 913 | goto err_alloc; | 913 | goto err_alloc; |
| @@ -443,7 +443,7 @@ static int rz_dmac_alloc_chan_resources(struct dma_chan *chan) · 442 unmodified lines | |||
| 443 | while (channel->descs_allocated < RZ_DMAC_MAX_CHAN_DESCRIPTORS) { | 443 | while (channel->descs_allocated < RZ_DMAC_MAX_CHAN_DESCRIPTORS) { |
| 444 | struct rz_dmac_desc *desc; | 444 | struct rz_dmac_desc *desc; |
| 445 | 445 | ||
| 446 | desc = kzalloc_obj(*desc, GFP_KERNEL); | 446 | desc = kzalloc_obj(*desc); |
| 447 | if (!desc) | 447 | if (!desc) |
| 448 | break; | 448 | break; |
| 449 | 449 | ||
| @@ -740,7 +740,7 @@ static struct dma_async_tx_descriptor *shdma_prep_dma_cyclic( · 739 unmodified lines | |||
| 740 | * Allocate the sg list dynamically as it would consume too much stack | 740 | * Allocate the sg list dynamically as it would consume too much stack |
| 741 | * space. | 741 | * space. |
| 742 | */ | 742 | */ |
| 743 | sgl = kmalloc_objs(*sgl, sg_len, GFP_KERNEL); | 743 | sgl = kmalloc_objs(*sgl, sg_len); |
| 744 | if (!sgl) | 744 | if (!sgl) |
| 745 | return NULL; | 745 | return NULL; |
| 746 | 746 | ||
| @@ -1012,7 +1012,7 @@ int shdma_init(struct device *dev, struct shdma_dev *sdev, · 265 unmodified lines | |||
| 1012 | !sdev->ops->desc_completed) | 1012 | !sdev->ops->desc_completed) |
| 1013 | return -EINVAL; | 1013 | return -EINVAL; |
| 1014 | 1014 | ||
| 1015 | sdev->schan = kzalloc_objs(*sdev->schan, chan_num, GFP_KERNEL); | 1015 | sdev->schan = kzalloc_objs(*sdev->schan, chan_num); |
| 1016 | if (!sdev->schan) | 1016 | if (!sdev->schan) |
| 1017 | return -ENOMEM; | 1017 | return -ENOMEM; |
| 1018 | 1018 | ||
| @@ -104,7 +104,7 @@ static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, · 103 unmodified lines | |||
| 104 | goto err_put_pdev; | 104 | goto err_put_pdev; |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | mux = kzalloc_obj(*mux, GFP_KERNEL); | 107 | mux = kzalloc_obj(*mux); |
| 108 | if (!mux) { | 108 | if (!mux) { |
| 109 | ret = -ENOMEM; | 109 | ret = -ENOMEM; |
| 110 | goto err_put_pdev; | 110 | goto err_put_pdev; |
| @@ -103,7 +103,7 @@ static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, · 102 unmodified lines | |||
| 103 | goto out_put_pdev; | 103 | goto out_put_pdev; |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | map = kzalloc_obj(*map, GFP_KERNEL); | 106 | map = kzalloc_obj(*map); |
| 107 | if (!map) { | 107 | if (!map) { |
| 108 | of_node_put(dma_spec->np); | 108 | of_node_put(dma_spec->np); |
| 109 | map = ERR_PTR(-ENOMEM); | 109 | map = ERR_PTR(-ENOMEM); |
| @@ -260,7 +260,7 @@ static void *ti_dra7_xbar_route_allocate(struct of_phandle_args *dma_spec, · 150 unmodified lines | |||
| 260 | goto out_put_pdev; | 260 | goto out_put_pdev; |
| 261 | } | 261 | } |
| 262 | 262 | ||
| 263 | map = kzalloc_obj(*map, GFP_KERNEL); | 263 | map = kzalloc_obj(*map); |
| 264 | if (!map) { | 264 | if (!map) { |
| 265 | of_node_put(dma_spec->np); | 265 | of_node_put(dma_spec->np); |
| 266 | map = ERR_PTR(-ENOMEM); | 266 | map = ERR_PTR(-ENOMEM); |
| @@ -393,7 +393,7 @@ static int ti_dra7_xbar_probe(struct platform_device *pdev) · 126 unmodified lines | |||
| 393 | if (!nelm) | 393 | if (!nelm) |
| 394 | return -EINVAL; | 394 | return -EINVAL; |
| 395 | 395 | ||
| 396 | rsv_events = kzalloc_objs(*rsv_events, nelm, GFP_KERNEL); | 396 | rsv_events = kzalloc_objs(*rsv_events, nelm); |
| 397 | if (!rsv_events) | 397 | if (!rsv_events) |
| 398 | return -ENOMEM; | 398 | return -ENOMEM; |
| 399 | 399 | ||
| @@ -4686,7 +4686,7 @@ static int udma_setup_resources(struct udma_dev *ud) · 4685 unmodified lines | |||
| 4686 | irq_res.sets += rm_res->sets; | 4686 | irq_res.sets += rm_res->sets; |
| 4687 | } | 4687 | } |
| 4688 | 4688 | ||
| 4689 | irq_res.desc = kzalloc_objs(*irq_res.desc, irq_res.sets, GFP_KERNEL); | 4689 | irq_res.desc = kzalloc_objs(*irq_res.desc, irq_res.sets); |
| 4690 | if (!irq_res.desc) | 4690 | if (!irq_res.desc) |
| 4691 | return -ENOMEM; | 4691 | return -ENOMEM; |
| 4692 | rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; | 4692 | rm_res = tisci_rm->rm_ranges[RM_RANGE_TCHAN]; |
| @@ -4878,7 +4878,7 @@ static int bcdma_setup_resources(struct udma_dev *ud) · 185 unmodified lines | |||
| 4878 | } | 4878 | } |
| 4879 | } | 4879 | } |
| 4880 | 4880 | ||
| 4881 | irq_res.desc = kzalloc_objs(*irq_res.desc, irq_res.sets, GFP_KERNEL); | 4881 | irq_res.desc = kzalloc_objs(*irq_res.desc, irq_res.sets); |
| 4882 | if (!irq_res.desc) | 4882 | if (!irq_res.desc) |
| 4883 | return -ENOMEM; | 4883 | return -ENOMEM; |
| 4884 | if (ud->bchan_cnt) { | 4884 | if (ud->bchan_cnt) { |
| @@ -5080,7 +5080,7 @@ static int pktdma_setup_resources(struct udma_dev *ud) · 195 unmodified lines | |||
| 5080 | irq_res.sets += rm_res->sets; | 5080 | irq_res.sets += rm_res->sets; |
| 5081 | } | 5081 | } |
| 5082 | 5082 | ||
| 5083 | irq_res.desc = kzalloc_objs(*irq_res.desc, irq_res.sets, GFP_KERNEL); | 5083 | irq_res.desc = kzalloc_objs(*irq_res.desc, irq_res.sets); |
| 5084 | if (!irq_res.desc) | 5084 | if (!irq_res.desc) |
| 5085 | return -ENOMEM; | 5085 | return -ENOMEM; |
| 5086 | rm_res = tisci_rm->rm_ranges[RM_RANGE_TFLOW]; | 5086 | rm_res = tisci_rm->rm_ranges[RM_RANGE_TFLOW]; |
| @@ -1503,7 +1503,7 @@ static int omap_dma_chan_init(struct omap_dmadev *od) · 1502 unmodified lines | |||
| 1503 | { | 1503 | { |
| 1504 | struct omap_chan *c; | 1504 | struct omap_chan *c; |
| 1505 | 1505 | ||
| 1506 | c = kzalloc_obj(*c, GFP_KERNEL); | 1506 | c = kzalloc_obj(*c); |
| 1507 | if (!c) | 1507 | if (!c) |
| 1508 | return -ENOMEM; | 1508 | return -ENOMEM; |
| 1509 | 1509 | ||
| @@ -325,7 +325,7 @@ static struct timb_dma_desc *td_alloc_init_desc(struct timb_dma_chan *td_chan) · 324 unmodified lines | |||
| 325 | struct timb_dma_desc *td_desc; | 325 | struct timb_dma_desc *td_desc; |
| 326 | int err; | 326 | int err; |
| 327 | 327 | ||
| 328 | td_desc = kzalloc_obj(struct timb_dma_desc, GFP_KERNEL); | 328 | td_desc = kzalloc_obj(struct timb_dma_desc); |
| 329 | if (!td_desc) | 329 | if (!td_desc) |
| 330 | goto out; | 330 | goto out; |
| 331 | 331 | ||
| @@ -205,7 +205,7 @@ dpll_xa_ref_pin_add(struct xarray *xa_pins, struct dpll_pin *pin, · 204 unmodified lines | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | if (!ref_exists) { | 207 | if (!ref_exists) { |
| 208 | ref = kzalloc_obj(*ref, GFP_KERNEL); | 208 | ref = kzalloc_obj(*ref); |
| 209 | if (!ref) | 209 | if (!ref) |
| 210 | return -ENOMEM; | 210 | return -ENOMEM; |
| 211 | ref->pin = pin; | 211 | ref->pin = pin; |
| @@ -218,7 +218,7 @@ dpll_xa_ref_pin_add(struct xarray *xa_pins, struct dpll_pin *pin, · 6 unmodified lines | |||
| 218 | refcount_set(&ref->refcount, 1); | 218 | refcount_set(&ref->refcount, 1); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | reg = kzalloc_obj(*reg, GFP_KERNEL); | 221 | reg = kzalloc_obj(*reg); |
| 222 | if (!reg) { | 222 | if (!reg) { |
| 223 | if (!ref_exists) { | 223 | if (!ref_exists) { |
| 224 | xa_erase(xa_pins, pin->pin_idx); | 224 | xa_erase(xa_pins, pin->pin_idx); |
| @@ -286,7 +286,7 @@ dpll_xa_ref_dpll_add(struct xarray *xa_dplls, struct dpll_device *dpll, · 61 unmodified lines | |||
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | if (!ref_exists) { | 288 | if (!ref_exists) { |
| 289 | ref = kzalloc_obj(*ref, GFP_KERNEL); | 289 | ref = kzalloc_obj(*ref); |
| 290 | if (!ref) | 290 | if (!ref) |
| 291 | return -ENOMEM; | 291 | return -ENOMEM; |
| 292 | ref->dpll = dpll; | 292 | ref->dpll = dpll; |
| @@ -299,7 +299,7 @@ dpll_xa_ref_dpll_add(struct xarray *xa_dplls, struct dpll_device *dpll, · 6 unmodified lines | |||
| 299 | refcount_set(&ref->refcount, 1); | 299 | refcount_set(&ref->refcount, 1); |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | reg = kzalloc_obj(*reg, GFP_KERNEL); | 302 | reg = kzalloc_obj(*reg); |
| 303 | if (!reg) { | 303 | if (!reg) { |
| 304 | if (!ref_exists) { | 304 | if (!ref_exists) { |
| 305 | xa_erase(xa_dplls, dpll->id); | 305 | xa_erase(xa_dplls, dpll->id); |
| @@ -360,7 +360,7 @@ dpll_device_alloc(const u64 clock_id, u32 device_idx, struct module *module) · 54 unmodified lines | |||
| 360 | struct dpll_device *dpll; | 360 | struct dpll_device *dpll; |
| 361 | int ret; | 361 | int ret; |
| 362 | 362 | ||
| 363 | dpll = kzalloc_obj(*dpll, GFP_KERNEL); | 363 | dpll = kzalloc_obj(*dpll); |
| 364 | if (!dpll) | 364 | if (!dpll) |
| 365 | return ERR_PTR(-ENOMEM); | 365 | return ERR_PTR(-ENOMEM); |
| 366 | refcount_set(&dpll->refcount, 1); | 366 | refcount_set(&dpll->refcount, 1); |
| @@ -490,7 +490,7 @@ int dpll_device_register(struct dpll_device *dpll, enum dpll_type type, · 123 unmodified lines | |||
| 490 | return -EEXIST; | 490 | return -EEXIST; |
| 491 | } | 491 | } |
| 492 | 492 | ||
| 493 | reg = kzalloc_obj(*reg, GFP_KERNEL); | 493 | reg = kzalloc_obj(*reg); |
| 494 | if (!reg) { | 494 | if (!reg) { |
| 495 | mutex_unlock(&dpll_lock); | 495 | mutex_unlock(&dpll_lock); |
| 496 | return -ENOMEM; | 496 | return -ENOMEM; |
| @@ -644,7 +644,7 @@ dpll_pin_alloc(u64 clock_id, u32 pin_idx, struct module *module, · 147 unmodified lines | |||
| 644 | } else if (pin_idx > INT_MAX) { | 644 | } else if (pin_idx > INT_MAX) { |
| 645 | return ERR_PTR(-EINVAL); | 645 | return ERR_PTR(-EINVAL); |
| 646 | } | 646 | } |
| 647 | pin = kzalloc_obj(*pin, GFP_KERNEL); | 647 | pin = kzalloc_obj(*pin); |
| 648 | if (!pin) { | 648 | if (!pin) { |
| 649 | ret = -ENOMEM; | 649 | ret = -ENOMEM; |
| 650 | goto err_pin_alloc; | 650 | goto err_pin_alloc; |
| @@ -1372,7 +1372,7 @@ zl3073x_dpll_pin_alloc(struct zl3073x_dpll *zldpll, enum dpll_pin_direction dir, · 1371 unmodified lines | |||
| 1372 | { | 1372 | { |
| 1373 | struct zl3073x_dpll_pin *pin; | 1373 | struct zl3073x_dpll_pin *pin; |
| 1374 | 1374 | ||
| 1375 | pin = kzalloc_obj(*pin, GFP_KERNEL); | 1375 | pin = kzalloc_obj(*pin); |
| 1376 | if (!pin) | 1376 | if (!pin) |
| 1377 | return ERR_PTR(-ENOMEM); | 1377 | return ERR_PTR(-ENOMEM); |
| 1378 | 1378 | ||
| @@ -1944,7 +1944,7 @@ zl3073x_dpll_alloc(struct zl3073x_dev *zldev, u8 ch) · 565 unmodified lines | |||
| 1944 | { | 1944 | { |
| 1945 | struct zl3073x_dpll *zldpll; | 1945 | struct zl3073x_dpll *zldpll; |
| 1946 | 1946 | ||
| 1947 | zldpll = kzalloc_obj(*zldpll, GFP_KERNEL); | 1947 | zldpll = kzalloc_obj(*zldpll); |
| 1948 | if (!zldpll) | 1948 | if (!zldpll) |
| 1949 | return ERR_PTR(-ENOMEM); | 1949 | return ERR_PTR(-ENOMEM); |
| 1950 | 1950 | ||
| @@ -129,7 +129,7 @@ zl3073x_fw_component_alloc(size_t size) · 128 unmodified lines | |||
| 129 | { | 129 | { |
| 130 | struct zl3073x_fw_component *comp; | 130 | struct zl3073x_fw_component *comp; |
| 131 | 131 | ||
| 132 | comp = kzalloc_obj(*comp, GFP_KERNEL); | 132 | comp = kzalloc_obj(*comp); |
| 133 | if (!comp) | 133 | if (!comp) |
| 134 | return NULL; | 134 | return NULL; |
| 135 | 135 | ||
| @@ -313,7 +313,7 @@ struct zl3073x_fw *zl3073x_fw_load(struct zl3073x_dev *zldev, const char *data, · 177 unmodified lines | |||
| 313 | ssize_t rc; | 313 | ssize_t rc; |
| 314 | 314 | ||
| 315 | /* Allocate firmware structure */ | 315 | /* Allocate firmware structure */ |
| 316 | fw = kzalloc_obj(*fw, GFP_KERNEL); | 316 | fw = kzalloc_obj(*fw); |
| 317 | if (!fw) | 317 | if (!fw) |
| 318 | return ERR_PTR(-ENOMEM); | 318 | return ERR_PTR(-ENOMEM); |
| 319 | 319 | ||
| @@ -198,7 +198,7 @@ struct zl3073x_pin_props *zl3073x_pin_props_get(struct zl3073x_dev *zldev, · 197 unmodified lines | |||
| 198 | const char *type; | 198 | const char *type; |
| 199 | u32 curr_freq; | 199 | u32 curr_freq; |
| 200 | 200 | ||
| 201 | props = kzalloc_obj(*props, GFP_KERNEL); | 201 | props = kzalloc_obj(*props); |
| 202 | if (!props) | 202 | if (!props) |
| 203 | return ERR_PTR(-ENOMEM); | 203 | return ERR_PTR(-ENOMEM); |
| 204 | 204 | ||
| @@ -289,7 +289,7 @@ struct zl3073x_pin_props *zl3073x_pin_props_get(struct zl3073x_dev *zldev, · 84 unmodified lines | |||
| 289 | 289 | ||
| 290 | skip_fwnode_props: | 290 | skip_fwnode_props: |
| 291 | /* Allocate frequency ranges list - extra slot for current frequency */ | 291 | /* Allocate frequency ranges list - extra slot for current frequency */ |
| 292 | ranges = kzalloc_objs(*ranges, num_freqs + 1, GFP_KERNEL); | 292 | ranges = kzalloc_objs(*ranges, num_freqs + 1); |
| 293 | if (!ranges) { | 293 | if (!ranges) { |
| 294 | rc = -ENOMEM; | 294 | rc = -ENOMEM; |
| 295 | goto err_alloc_ranges; | 295 | goto err_alloc_ranges; |
| @@ -3485,7 +3485,7 @@ static int dct_hw_info_get(struct amd64_pvt *pvt) · 3484 unmodified lines | |||
| 3485 | 3485 | ||
| 3486 | static int umc_hw_info_get(struct amd64_pvt *pvt) | 3486 | static int umc_hw_info_get(struct amd64_pvt *pvt) |
| 3487 | { | 3487 | { |
| 3488 | pvt->umc = kzalloc_objs(struct amd64_umc, pvt->max_mcs, GFP_KERNEL); | 3488 | pvt->umc = kzalloc_objs(struct amd64_umc, pvt->max_mcs); |
| 3489 | if (!pvt->umc) | 3489 | if (!pvt->umc) |
| 3490 | return -ENOMEM; | 3490 | return -ENOMEM; |
| 3491 | 3491 | ||
| @@ -3716,7 +3716,7 @@ static int gpu_hw_info_get(struct amd64_pvt *pvt) · 224 unmodified lines | |||
| 3716 | if (ret) | 3716 | if (ret) |
| 3717 | return ret; | 3717 | return ret; |
| 3718 | 3718 | ||
| 3719 | pvt->umc = kzalloc_objs(struct amd64_umc, pvt->max_mcs, GFP_KERNEL); | 3719 | pvt->umc = kzalloc_objs(struct amd64_umc, pvt->max_mcs); |
| 3720 | if (!pvt->umc) | 3720 | if (!pvt->umc) |
| 3721 | return -ENOMEM; | 3721 | return -ENOMEM; |
| 3722 | 3722 | ||
| @@ -3916,7 +3916,7 @@ static int per_family_init(struct amd64_pvt *pvt) · 193 unmodified lines | |||
| 3916 | scnprintf(pvt->ctl_name, sizeof(pvt->ctl_name), "F%02Xh_M%02Xh", | 3916 | scnprintf(pvt->ctl_name, sizeof(pvt->ctl_name), "F%02Xh_M%02Xh", |
| 3917 | pvt->fam, pvt->model); | 3917 | pvt->fam, pvt->model); |
| 3918 | 3918 | ||
| 3919 | pvt->csels = kzalloc_objs(*pvt->csels, pvt->max_mcs, GFP_KERNEL); | 3919 | pvt->csels = kzalloc_objs(*pvt->csels, pvt->max_mcs); |
| 3920 | if (!pvt->csels) | 3920 | if (!pvt->csels) |
| 3921 | return -ENOMEM; | 3921 | return -ENOMEM; |
| 3922 | 3922 | ||
| @@ -4000,13 +4000,13 @@ static int probe_one_instance(unsigned int nid) · 77 unmodified lines | |||
| 4000 | int ret; | 4000 | int ret; |
| 4001 | 4001 | ||
| 4002 | ret = -ENOMEM; | 4002 | ret = -ENOMEM; |
| 4003 | s = kzalloc_obj(struct ecc_settings, GFP_KERNEL); | 4003 | s = kzalloc_obj(struct ecc_settings); |
| 4004 | if (!s) | 4004 | if (!s) |
| 4005 | goto err_out; | 4005 | goto err_out; |
| 4006 | 4006 | ||
| 4007 | ecc_stngs[nid] = s; | 4007 | ecc_stngs[nid] = s; |
| 4008 | 4008 | ||
| 4009 | pvt = kzalloc_obj(struct amd64_pvt, GFP_KERNEL); | 4009 | pvt = kzalloc_obj(struct amd64_pvt); |
| 4010 | if (!pvt) | 4010 | if (!pvt) |
| 4011 | goto err_settings; | 4011 | goto err_settings; |
| 4012 | 4012 | ||
| @@ -4146,7 +4146,7 @@ static int __init amd64_edac_init(void) · 133 unmodified lines | |||
| 4146 | opstate_init(); | 4146 | opstate_init(); |
| 4147 | 4147 | ||
| 4148 | err = -ENOMEM; | 4148 | err = -ENOMEM; |
| 4149 | ecc_stngs = kzalloc_objs(ecc_stngs[0], amd_nb_num(), GFP_KERNEL); | 4149 | ecc_stngs = kzalloc_objs(ecc_stngs[0], amd_nb_num()); |
| 4150 | if (!ecc_stngs) | 4150 | if (!ecc_stngs) |
| 4151 | goto err_free; | 4151 | goto err_free; |
| 4152 | 4152 | ||
| @@ -67,7 +67,7 @@ edac_device_alloc_ctl_info(unsigned pvt_sz, char *dev_name, unsigned nr_instance · 66 unmodified lines | |||
| 67 | 67 | ||
| 68 | edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); | 68 | edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); |
| 69 | 69 | ||
| 70 | dev_ctl = kzalloc_obj(struct edac_device_ctl_info, GFP_KERNEL); | 70 | dev_ctl = kzalloc_obj(struct edac_device_ctl_info); |
| 71 | if (!dev_ctl) | 71 | if (!dev_ctl) |
| 72 | return NULL; | 72 | return NULL; |
| 73 | 73 | ||
| @@ -644,7 +644,7 @@ int edac_dev_register(struct device *parent, char *name, · 570 unmodified lines | |||
| 644 | } | 644 | } |
| 645 | } | 645 | } |
| 646 | 646 | ||
| 647 | ctx = kzalloc_obj(*ctx, GFP_KERNEL); | 647 | ctx = kzalloc_obj(*ctx); |
| 648 | if (!ctx) | 648 | if (!ctx) |
| 649 | return -ENOMEM; | 649 | return -ENOMEM; |
| 650 | 650 | ||
| @@ -654,7 +654,7 @@ int edac_dev_register(struct device *parent, char *name, · 3 unmodified lines | |||
| 654 | goto ctx_free; | 654 | goto ctx_free; |
| 655 | 655 | ||
| 656 | if (scrub_cnt) { | 656 | if (scrub_cnt) { |
| 657 | ctx->scrub = kzalloc_objs(*ctx->scrub, scrub_cnt, GFP_KERNEL); | 657 | ctx->scrub = kzalloc_objs(*ctx->scrub, scrub_cnt); |
| 658 | if (!ctx->scrub) | 658 | if (!ctx->scrub) |
| 659 | goto groups_free; | 659 | goto groups_free; |
| 660 | } | 660 | } |
| @@ -216,14 +216,14 @@ static int edac_mc_alloc_csrows(struct mem_ctl_info *mci) · 215 unmodified lines | |||
| 216 | /* | 216 | /* |
| 217 | * Allocate and fill the csrow/channels structs | 217 | * Allocate and fill the csrow/channels structs |
| 218 | */ | 218 | */ |
| 219 | mci->csrows = kzalloc_objs(*mci->csrows, tot_csrows, GFP_KERNEL); | 219 | mci->csrows = kzalloc_objs(*mci->csrows, tot_csrows); |
| 220 | if (!mci->csrows) | 220 | if (!mci->csrows) |
| 221 | return -ENOMEM; | 221 | return -ENOMEM; |
| 222 | 222 | ||
| 223 | for (row = 0; row < tot_csrows; row++) { | 223 | for (row = 0; row < tot_csrows; row++) { |
| 224 | struct csrow_info *csr; | 224 | struct csrow_info *csr; |
| 225 | 225 | ||
| 226 | csr = kzalloc_obj(**mci->csrows, GFP_KERNEL); | 226 | csr = kzalloc_obj(**mci->csrows); |
| 227 | if (!csr) | 227 | if (!csr) |
| 228 | return -ENOMEM; | 228 | return -ENOMEM; |
| 229 | 229 | ||
| @@ -239,7 +239,7 @@ static int edac_mc_alloc_csrows(struct mem_ctl_info *mci) · 9 unmodified lines | |||
| 239 | for (chn = 0; chn < tot_channels; chn++) { | 239 | for (chn = 0; chn < tot_channels; chn++) { |
| 240 | struct rank_info *chan; | 240 | struct rank_info *chan; |
| 241 | 241 | ||
| 242 | chan = kzalloc_obj(**csr->channels, GFP_KERNEL); | 242 | chan = kzalloc_obj(**csr->channels); |
| 243 | if (!chan) | 243 | if (!chan) |
| 244 | return -ENOMEM; | 244 | return -ENOMEM; |
| 245 | 245 | ||
| @@ -262,7 +262,7 @@ static int edac_mc_alloc_dimms(struct mem_ctl_info *mci) · 16 unmodified lines | |||
| 262 | /* | 262 | /* |
| 263 | * Allocate and fill the dimm structs | 263 | * Allocate and fill the dimm structs |
| 264 | */ | 264 | */ |
| 265 | mci->dimms = kzalloc_objs(*mci->dimms, mci->tot_dimms, GFP_KERNEL); | 265 | mci->dimms = kzalloc_objs(*mci->dimms, mci->tot_dimms); |
| 266 | if (!mci->dimms) | 266 | if (!mci->dimms) |
| 267 | return -ENOMEM; | 267 | return -ENOMEM; |
| 268 | 268 | ||
| @@ -276,7 +276,7 @@ static int edac_mc_alloc_dimms(struct mem_ctl_info *mci) · 7 unmodified lines | |||
| 276 | 276 | ||
| 277 | chan = mci->csrows[row]->channels[chn]; | 277 | chan = mci->csrows[row]->channels[chn]; |
| 278 | 278 | ||
| 279 | dimm = kzalloc_obj(**mci->dimms, GFP_KERNEL); | 279 | dimm = kzalloc_obj(**mci->dimms); |
| 280 | if (!dimm) | 280 | if (!dimm) |
| 281 | return -ENOMEM; | 281 | return -ENOMEM; |
| 282 | mci->dimms[idx] = dimm; | 282 | mci->dimms[idx] = dimm; |
| @@ -362,11 +362,11 @@ struct mem_ctl_info *edac_mc_alloc(unsigned int mc_num, · 79 unmodified lines | |||
| 362 | per_rank = true; | 362 | per_rank = true; |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | mci = kzalloc_obj(struct mem_ctl_info, GFP_KERNEL); | 365 | mci = kzalloc_obj(struct mem_ctl_info); |
| 366 | if (!mci) | 366 | if (!mci) |
| 367 | return NULL; | 367 | return NULL; |
| 368 | 368 | ||
| 369 | mci->layers = kzalloc_objs(struct edac_mc_layer, n_layers, GFP_KERNEL); | 369 | mci->layers = kzalloc_objs(struct edac_mc_layer, n_layers); |
| 370 | if (!mci->layers) | 370 | if (!mci->layers) |
| 371 | goto error; | 371 | goto error; |
| 372 | 372 | ||
| @@ -648,7 +648,7 @@ int __init edac_mc_sysfs_init(void) · 647 unmodified lines | |||
| 648 | { | 648 | { |
| 649 | int err; | 649 | int err; |
| 650 | 650 | ||
| 651 | mci_pdev = kzalloc_obj(*mci_pdev, GFP_KERNEL); | 651 | mci_pdev = kzalloc_obj(*mci_pdev); |
| 652 | if (!mci_pdev) | 652 | if (!mci_pdev) |
| 653 | return -ENOMEM; | 653 | return -ENOMEM; |
| 654 | 654 | ||
| @@ -32,7 +32,7 @@ struct edac_pci_ctl_info *edac_pci_alloc_ctl_info(unsigned int sz_pvt, · 31 unmodified lines | |||
| 32 | 32 | ||
| 33 | edac_dbg(1, "\n"); | 33 | edac_dbg(1, "\n"); |
| 34 | 34 | ||
| 35 | pci = kzalloc_obj(struct edac_pci_ctl_info, GFP_KERNEL); | 35 | pci = kzalloc_obj(struct edac_pci_ctl_info); |
| 36 | if (!pci) | 36 | if (!pci) |
| 37 | return NULL; | 37 | return NULL; |
| 38 | 38 | ||
| @@ -361,7 +361,7 @@ static int edac_pci_main_kobj_setup(void) · 360 unmodified lines | |||
| 361 | goto decrement_count_fail; | 361 | goto decrement_count_fail; |
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | edac_pci_top_main_kobj = kzalloc_obj(struct kobject, GFP_KERNEL); | 364 | edac_pci_top_main_kobj = kzalloc_obj(struct kobject); |
| 365 | if (!edac_pci_top_main_kobj) { | 365 | if (!edac_pci_top_main_kobj) { |
| 366 | edac_dbg(1, "Failed to allocate\n"); | 366 | edac_dbg(1, "Failed to allocate\n"); |
| 367 | err = -ENOMEM; | 367 | err = -ENOMEM; |
| @@ -455,7 +455,7 @@ static struct i7core_dev *alloc_i7core_dev(u8 socket, · 454 unmodified lines | |||
| 455 | { | 455 | { |
| 456 | struct i7core_dev *i7core_dev; | 456 | struct i7core_dev *i7core_dev; |
| 457 | 457 | ||
| 458 | i7core_dev = kzalloc_obj(*i7core_dev, GFP_KERNEL); | 458 | i7core_dev = kzalloc_obj(*i7core_dev); |
| 459 | if (!i7core_dev) | 459 | if (!i7core_dev) |
| 460 | return NULL; | 460 | return NULL; |
| 461 | 461 | ||
| @@ -1159,7 +1159,7 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci) · 697 unmodified lines | |||
| 1159 | struct i7core_pvt *pvt = mci->pvt_info; | 1159 | struct i7core_pvt *pvt = mci->pvt_info; |
| 1160 | int rc; | 1160 | int rc; |
| 1161 | 1161 | ||
| 1162 | pvt->addrmatch_dev = kzalloc_obj(*pvt->addrmatch_dev, GFP_KERNEL); | 1162 | pvt->addrmatch_dev = kzalloc_obj(*pvt->addrmatch_dev); |
| 1163 | if (!pvt->addrmatch_dev) | 1163 | if (!pvt->addrmatch_dev) |
| 1164 | return -ENOMEM; | 1164 | return -ENOMEM; |
| 1165 | 1165 | ||
| @@ -1549,7 +1549,7 @@ static int igen6_probe(struct pci_dev *pdev, const struct pci_device_id *ent) · 1548 unmodified lines | |||
| 1549 | 1549 | ||
| 1550 | edac_dbg(2, "\n"); | 1550 | edac_dbg(2, "\n"); |
| 1551 | 1551 | ||
| 1552 | igen6_pvt = kzalloc_obj(*igen6_pvt, GFP_KERNEL); | 1552 | igen6_pvt = kzalloc_obj(*igen6_pvt); |
| 1553 | if (!igen6_pvt) | 1553 | if (!igen6_pvt) |
| 1554 | return -ENOMEM; | 1554 | return -ENOMEM; |
| 1555 | 1555 | ||
| @@ -171,7 +171,7 @@ static int __get_ddr_munits(struct res_config *cfg, struct skx_dev *d, · 170 unmodified lines | |||
| 171 | d->imc[lmc].lmc = lmc; | 171 | d->imc[lmc].lmc = lmc; |
| 172 | 172 | ||
| 173 | /* Create the imc device instance. */ | 173 | /* Create the imc device instance. */ |
| 174 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 174 | dev = kzalloc_obj(*dev); |
| 175 | if (!dev) | 175 | if (!dev) |
| 176 | return -ENOMEM; | 176 | return -ENOMEM; |
| 177 | 177 | ||
| @@ -771,7 +771,7 @@ static struct sbridge_dev *alloc_sbridge_dev(int seg, u8 bus, enum domain dom, · 770 unmodified lines | |||
| 771 | { | 771 | { |
| 772 | struct sbridge_dev *sbridge_dev; | 772 | struct sbridge_dev *sbridge_dev; |
| 773 | 773 | ||
| 774 | sbridge_dev = kzalloc_obj(*sbridge_dev, GFP_KERNEL); | 774 | sbridge_dev = kzalloc_obj(*sbridge_dev); |
| 775 | if (!sbridge_dev) | 775 | if (!sbridge_dev) |
| 776 | return NULL; | 776 | return NULL; |
| 777 | 777 | ||
| @@ -559,7 +559,7 @@ static int setup_mcdi(struct mc_priv *mc_priv) · 558 unmodified lines | |||
| 559 | struct cdx_mcdi *amd_mcdi; | 559 | struct cdx_mcdi *amd_mcdi; |
| 560 | int ret, i; | 560 | int ret, i; |
| 561 | 561 | ||
| 562 | amd_mcdi = kzalloc_obj(*amd_mcdi, GFP_KERNEL); | 562 | amd_mcdi = kzalloc_obj(*amd_mcdi); |
| 563 | if (!amd_mcdi) | 563 | if (!amd_mcdi) |
| 564 | return -ENOMEM; | 564 | return -ENOMEM; |
| 565 | 565 | ||
| @@ -812,7 +812,7 @@ static int init_versalnet(struct mc_priv *priv, struct platform_device *pdev) · 246 unmodified lines | |||
| 812 | priv->mci[i] = mci; | 812 | priv->mci[i] = mci; |
| 813 | priv->dwidth = dt; | 813 | priv->dwidth = dt; |
| 814 | 814 | ||
| 815 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 815 | dev = kzalloc_obj(*dev); |
| 816 | dev->release = versal_edac_release; | 816 | dev->release = versal_edac_release; |
| 817 | name = kmalloc(32, GFP_KERNEL); | 817 | name = kmalloc(32, GFP_KERNEL); |
| 818 | sprintf(name, "versal-net-ddrmc5-edac-%d", i); | 818 | sprintf(name, "versal-net-ddrmc5-edac-%d", i); |
| @@ -317,7 +317,7 @@ static int __init eisa_probe(struct eisa_root_device *root) · 316 unmodified lines | |||
| 317 | /* First try to get hold of slot 0. If there is no device | 317 | /* First try to get hold of slot 0. If there is no device |
| 318 | * here, simply fail, unless root->force_probe is set. */ | 318 | * here, simply fail, unless root->force_probe is set. */ |
| 319 | 319 | ||
| 320 | edev = kzalloc_obj(*edev, GFP_KERNEL); | 320 | edev = kzalloc_obj(*edev); |
| 321 | if (!edev) | 321 | if (!edev) |
| 322 | return -ENOMEM; | 322 | return -ENOMEM; |
| 323 | 323 | ||
| @@ -350,7 +350,7 @@ static int __init eisa_probe(struct eisa_root_device *root) · 26 unmodified lines | |||
| 350 | force_probe: | 350 | force_probe: |
| 351 | 351 | ||
| 352 | for (c = 0, i = 1; i <= root->slots; i++) { | 352 | for (c = 0, i = 1; i <= root->slots; i++) { |
| 353 | edev = kzalloc_obj(*edev, GFP_KERNEL); | 353 | edev = kzalloc_obj(*edev); |
| 354 | if (!edev) { | 354 | if (!edev) { |
| 355 | dev_err(root->dev, "EISA: Out of memory for slot %d\n", | 355 | dev_err(root->dev, "EISA: Out of memory for slot %d\n", |
| 356 | i); | 356 | i); |
| @@ -1060,7 +1060,7 @@ struct extcon_dev *extcon_dev_allocate(const unsigned int *supported_cable) · 1059 unmodified lines | |||
| 1060 | if (!supported_cable) | 1060 | if (!supported_cable) |
| 1061 | return ERR_PTR(-EINVAL); | 1061 | return ERR_PTR(-EINVAL); |
| 1062 | 1062 | ||
| 1063 | edev = kzalloc_obj(*edev, GFP_KERNEL); | 1063 | edev = kzalloc_obj(*edev); |
| 1064 | if (!edev) | 1064 | if (!edev) |
| 1065 | return ERR_PTR(-ENOMEM); | 1065 | return ERR_PTR(-ENOMEM); |
| 1066 | 1066 | ||
| @@ -291,7 +291,7 @@ static int fw_device_op_open(struct inode *inode, struct file *file) · 290 unmodified lines | |||
| 291 | return -ENODEV; | 291 | return -ENODEV; |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | client = kzalloc_obj(*client, GFP_KERNEL); | 294 | client = kzalloc_obj(*client); |
| 295 | if (client == NULL) { | 295 | if (client == NULL) { |
| 296 | fw_device_put(device); | 296 | fw_device_put(device); |
| 297 | return -ENOMEM; | 297 | return -ENOMEM; |
| @@ -412,7 +412,7 @@ static void queue_bus_reset_event(struct client *client) · 114 unmodified lines | |||
| 412 | struct client_resource *resource; | 412 | struct client_resource *resource; |
| 413 | unsigned long index; | 413 | unsigned long index; |
| 414 | 414 | ||
| 415 | e = kzalloc_obj(*e, GFP_KERNEL); | 415 | e = kzalloc_obj(*e); |
| 416 | if (e == NULL) | 416 | if (e == NULL) |
| 417 | return; | 417 | return; |
| 418 | 418 | ||
| @@ -837,7 +837,7 @@ static int ioctl_allocate(struct client *client, union ioctl_arg *arg) · 418 unmodified lines | |||
| 837 | struct fw_address_region region; | 837 | struct fw_address_region region; |
| 838 | int ret; | 838 | int ret; |
| 839 | 839 | ||
| 840 | r = kmalloc_obj(*r, GFP_KERNEL); | 840 | r = kmalloc_obj(*r); |
| 841 | if (r == NULL) | 841 | if (r == NULL) |
| 842 | return -ENOMEM; | 842 | return -ENOMEM; |
| 843 | 843 | ||
| @@ -1006,7 +1006,7 @@ static void iso_mc_callback(struct fw_iso_context *context, · 162 unmodified lines | |||
| 1006 | struct client *client = data; | 1006 | struct client *client = data; |
| 1007 | struct iso_interrupt_mc_event *e; | 1007 | struct iso_interrupt_mc_event *e; |
| 1008 | 1008 | ||
| 1009 | e = kmalloc_obj(*e, GFP_KERNEL); | 1009 | e = kmalloc_obj(*e); |
| 1010 | if (e == NULL) | 1010 | if (e == NULL) |
| 1011 | return; | 1011 | return; |
| 1012 | 1012 | ||
| @@ -1409,9 +1409,9 @@ static int init_iso_resource(struct client *client, · 396 unmodified lines | |||
| 1409 | request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL) | 1409 | request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL) |
| 1410 | return -EINVAL; | 1410 | return -EINVAL; |
| 1411 | 1411 | ||
| 1412 | r = kmalloc_obj(*r, GFP_KERNEL); | 1412 | r = kmalloc_obj(*r); |
| 1413 | e1 = kmalloc_obj(*e1, GFP_KERNEL); | 1413 | e1 = kmalloc_obj(*e1); |
| 1414 | e2 = kmalloc_obj(*e2, GFP_KERNEL); | 1414 | e2 = kmalloc_obj(*e2); |
| 1415 | if (r == NULL || e1 == NULL || e2 == NULL) { | 1415 | if (r == NULL || e1 == NULL || e2 == NULL) { |
| 1416 | ret = -ENOMEM; | 1416 | ret = -ENOMEM; |
| 1417 | goto fail; | 1417 | goto fail; |
| @@ -849,7 +849,7 @@ static void create_units(struct fw_device *device) · 848 unmodified lines | |||
| 849 | * Get the address of the unit directory and try to | 849 | * Get the address of the unit directory and try to |
| 850 | * match the drivers id_tables against it. | 850 | * match the drivers id_tables against it. |
| 851 | */ | 851 | */ |
| 852 | unit = kzalloc_obj(*unit, GFP_KERNEL); | 852 | unit = kzalloc_obj(*unit); |
| 853 | if (unit == NULL) | 853 | if (unit == NULL) |
| 854 | continue; | 854 | continue; |
| 855 | 855 | ||
| @@ -1402,7 +1402,7 @@ static int fwnet_add_peer(struct fwnet_device *dev, · 1401 unmodified lines | |||
| 1402 | { | 1402 | { |
| 1403 | struct fwnet_peer *peer; | 1403 | struct fwnet_peer *peer; |
| 1404 | 1404 | ||
| 1405 | peer = kmalloc_obj(*peer, GFP_KERNEL); | 1405 | peer = kmalloc_obj(*peer); |
| 1406 | if (!peer) | 1406 | if (!peer) |
| 1407 | return -ENOMEM; | 1407 | return -ENOMEM; |
| 1408 | 1408 | ||
| @@ -281,7 +281,7 @@ nosy_open(struct inode *inode, struct file *file) · 280 unmodified lines | |||
| 281 | if (lynx == NULL) | 281 | if (lynx == NULL) |
| 282 | return -ENODEV; | 282 | return -ENODEV; |
| 283 | 283 | ||
| 284 | client = kmalloc_obj(*client, GFP_KERNEL); | 284 | client = kmalloc_obj(*client); |
| 285 | if (client == NULL) | 285 | if (client == NULL) |
| 286 | goto fail; | 286 | goto fail; |
| 287 | 287 | ||
| @@ -545,7 +545,7 @@ add_card(struct pci_dev *dev, const struct pci_device_id *unused) · 257 unmodified lines | |||
| 545 | } | 545 | } |
| 546 | pci_set_master(dev); | 546 | pci_set_master(dev); |
| 547 | 547 | ||
| 548 | lynx = kzalloc_obj(*lynx, GFP_KERNEL); | 548 | lynx = kzalloc_obj(*lynx); |
| 549 | if (lynx == NULL) { | 549 | if (lynx == NULL) { |
| 550 | dev_err(&dev->dev, "Failed to allocate control structure\n"); | 550 | dev_err(&dev->dev, "Failed to allocate control structure\n"); |
| 551 | ret = -ENOMEM; | 551 | ret = -ENOMEM; |
| @@ -966,7 +966,7 @@ static int sbp2_add_logical_unit(struct sbp2_target *tgt, int lun_entry) · 965 unmodified lines | |||
| 966 | { | 966 | { |
| 967 | struct sbp2_logical_unit *lu; | 967 | struct sbp2_logical_unit *lu; |
| 968 | 968 | ||
| 969 | lu = kmalloc_obj(*lu, GFP_KERNEL); | 969 | lu = kmalloc_obj(*lu); |
| 970 | if (!lu) | 970 | if (!lu) |
| 971 | return -ENOMEM; | 971 | return -ENOMEM; |
| 972 | 972 | ||
| @@ -203,7 +203,7 @@ ffa_device_register(const struct ffa_partition_info *part_info, · 202 unmodified lines | |||
| 203 | if (id < 0) | 203 | if (id < 0) |
| 204 | return NULL; | 204 | return NULL; |
| 205 | 205 | ||
| 206 | ffa_dev = kzalloc_obj(*ffa_dev, GFP_KERNEL); | 206 | ffa_dev = kzalloc_obj(*ffa_dev); |
| 207 | if (!ffa_dev) { | 207 | if (!ffa_dev) { |
| 208 | ida_free(&ffa_bus_id, id); | 208 | ida_free(&ffa_bus_id, id); |
| 209 | return NULL; | 209 | return NULL; |
| @@ -410,7 +410,7 @@ ffa_partition_probe(const uuid_t *uuid, struct ffa_partition_info **buffer) · 409 unmodified lines | |||
| 410 | if (count <= 0) | 410 | if (count <= 0) |
| 411 | return count; | 411 | return count; |
| 412 | 412 | ||
| 413 | pbuf = kzalloc_objs(*pbuf, count, GFP_KERNEL); | 413 | pbuf = kzalloc_objs(*pbuf, count); |
| 414 | if (!pbuf) | 414 | if (!pbuf) |
| 415 | return -ENOMEM; | 415 | return -ENOMEM; |
| 416 | 416 | ||
| @@ -1376,7 +1376,7 @@ static int __ffa_notify_request(struct ffa_device *dev, bool is_per_vcpu, · 959 unmodified lines | |||
| 1376 | if (notify_id >= FFA_MAX_NOTIFICATIONS) | 1376 | if (notify_id >= FFA_MAX_NOTIFICATIONS) |
| 1377 | return -EINVAL; | 1377 | return -EINVAL; |
| 1378 | 1378 | ||
| 1379 | cb_info = kzalloc_obj(*cb_info, GFP_KERNEL); | 1379 | cb_info = kzalloc_obj(*cb_info); |
| 1380 | if (!cb_info) | 1380 | if (!cb_info) |
| 1381 | return -ENOMEM; | 1381 | return -ENOMEM; |
| 1382 | 1382 | ||
| @@ -1647,7 +1647,7 @@ static int ffa_xa_add_partition_info(struct ffa_device *dev) · 264 unmodified lines | |||
| 1647 | } | 1647 | } |
| 1648 | } | 1648 | } |
| 1649 | 1649 | ||
| 1650 | info = kzalloc_obj(*info, GFP_KERNEL); | 1650 | info = kzalloc_obj(*info); |
| 1651 | if (!info) | 1651 | if (!info) |
| 1652 | return ret; | 1652 | return ret; |
| 1653 | 1653 | ||
| @@ -1655,7 +1655,7 @@ static int ffa_xa_add_partition_info(struct ffa_device *dev) · 1 unmodified line | |||
| 1655 | info->dev = dev; | 1655 | info->dev = dev; |
| 1656 | 1656 | ||
| 1657 | if (!phead) { | 1657 | if (!phead) { |
| 1658 | phead = kzalloc_obj(*phead, GFP_KERNEL); | 1658 | phead = kzalloc_obj(*phead); |
| 1659 | if (!phead) | 1659 | if (!phead) |
| 1660 | goto free_out; | 1660 | goto free_out; |
| 1661 | 1661 | ||
| @@ -2039,7 +2039,7 @@ static int __init ffa_init(void) · 377 unmodified lines | |||
| 2039 | if (ret) | 2039 | if (ret) |
| 2040 | return ret; | 2040 | return ret; |
| 2041 | 2041 | ||
| 2042 | drv_info = kzalloc_obj(*drv_info, GFP_KERNEL); | 2042 | drv_info = kzalloc_obj(*drv_info); |
| 2043 | if (!drv_info) | 2043 | if (!drv_info) |
| 2044 | return -ENOMEM; | 2044 | return -ENOMEM; |
| 2045 | 2045 | ||
| @@ -90,7 +90,7 @@ static int scmi_protocol_device_request(const struct scmi_device_id *id_table) · 89 unmodified lines | |||
| 90 | * No duplicate found for requested id_table, so let's create a new | 90 | * No duplicate found for requested id_table, so let's create a new |
| 91 | * requested device entry for this new valid request. | 91 | * requested device entry for this new valid request. |
| 92 | */ | 92 | */ |
| 93 | rdev = kzalloc_obj(*rdev, GFP_KERNEL); | 93 | rdev = kzalloc_obj(*rdev); |
| 94 | if (!rdev) { | 94 | if (!rdev) { |
| 95 | ret = -ENOMEM; | 95 | ret = -ENOMEM; |
| 96 | goto out; | 96 | goto out; |
| @@ -103,7 +103,7 @@ static int scmi_protocol_device_request(const struct scmi_device_id *id_table) · 6 unmodified lines | |||
| 103 | * there. | 103 | * there. |
| 104 | */ | 104 | */ |
| 105 | if (!phead) { | 105 | if (!phead) { |
| 106 | phead = kzalloc_obj(*phead, GFP_KERNEL); | 106 | phead = kzalloc_obj(*phead); |
| 107 | if (!phead) { | 107 | if (!phead) { |
| 108 | kfree(rdev); | 108 | kfree(rdev); |
| 109 | ret = -ENOMEM; | 109 | ret = -ENOMEM; |
| @@ -445,7 +445,7 @@ __scmi_device_create(struct device_node *np, struct device *parent, · 335 unmodified lines | |||
| 445 | return NULL; | 445 | return NULL; |
| 446 | } | 446 | } |
| 447 | 447 | ||
| 448 | scmi_dev = kzalloc_obj(*scmi_dev, GFP_KERNEL); | 448 | scmi_dev = kzalloc_obj(*scmi_dev); |
| 449 | if (!scmi_dev) | 449 | if (!scmi_dev) |
| 450 | return NULL; | 450 | return NULL; |
| 451 | 451 | ||
| @@ -897,7 +897,7 @@ scmi_allocate_event_handler(struct scmi_notify_instance *ni, u32 evt_key) · 896 unmodified lines | |||
| 897 | { | 897 | { |
| 898 | struct scmi_event_handler *hndl; | 898 | struct scmi_event_handler *hndl; |
| 899 | 899 | ||
| 900 | hndl = kzalloc_obj(*hndl, GFP_KERNEL); | 900 | hndl = kzalloc_obj(*hndl); |
| 901 | if (!hndl) | 901 | if (!hndl) |
| 902 | return NULL; | 902 | return NULL; |
| 903 | hndl->key = evt_key; | 903 | hndl->key = evt_key; |
| @@ -908,7 +908,7 @@ static int scmi_dbg_raw_mode_open(struct inode *inode, struct file *filp) · 907 unmodified lines | |||
| 908 | return -ENODEV; | 908 | return -ENODEV; |
| 909 | 909 | ||
| 910 | raw = inode->i_private; | 910 | raw = inode->i_private; |
| 911 | rd = kzalloc_obj(*rd, GFP_KERNEL); | 911 | rd = kzalloc_obj(*rd); |
| 912 | if (!rd) | 912 | if (!rd) |
| 913 | return -ENOMEM; | 913 | return -ENOMEM; |
| 914 | 914 | ||
| @@ -633,14 +633,14 @@ static struct scpi_dvfs_info *scpi_dvfs_get_info(u8 domain) · 632 unmodified lines | |||
| 633 | if (!buf.opp_count) | 633 | if (!buf.opp_count) |
| 634 | return ERR_PTR(-ENOENT); | 634 | return ERR_PTR(-ENOENT); |
| 635 | 635 | ||
| 636 | info = kmalloc_obj(*info, GFP_KERNEL); | 636 | info = kmalloc_obj(*info); |
| 637 | if (!info) | 637 | if (!info) |
| 638 | return ERR_PTR(-ENOMEM); | 638 | return ERR_PTR(-ENOMEM); |
| 639 | 639 | ||
| 640 | info->count = buf.opp_count; | 640 | info->count = buf.opp_count; |
| 641 | info->latency = le16_to_cpu(buf.latency) * 1000; /* uS to nS */ | 641 | info->latency = le16_to_cpu(buf.latency) * 1000; /* uS to nS */ |
| 642 | 642 | ||
| 643 | info->opps = kzalloc_objs(*opp, info->count, GFP_KERNEL); | 643 | info->opps = kzalloc_objs(*opp, info->count); |
| 644 | if (!info->opps) { | 644 | if (!info->opps) { |
| 645 | kfree(info); | 645 | kfree(info); |
| 646 | return ERR_PTR(-ENOMEM); | 646 | return ERR_PTR(-ENOMEM); |
| @@ -205,7 +205,7 @@ static struct sdei_event *sdei_event_create(u32 event_num, · 204 unmodified lines | |||
| 205 | 205 | ||
| 206 | lockdep_assert_held(&sdei_events_lock); | 206 | lockdep_assert_held(&sdei_events_lock); |
| 207 | 207 | ||
| 208 | event = kzalloc_obj(*event, GFP_KERNEL); | 208 | event = kzalloc_obj(*event); |
| 209 | if (!event) { | 209 | if (!event) { |
| 210 | err = -ENOMEM; | 210 | err = -ENOMEM; |
| 211 | goto fail; | 211 | goto fail; |
| @@ -227,7 +227,7 @@ static struct sdei_event *sdei_event_create(u32 event_num, · 15 unmodified lines | |||
| 227 | event->type = result; | 227 | event->type = result; |
| 228 | 228 | ||
| 229 | if (event->type == SDEI_EVENT_TYPE_SHARED) { | 229 | if (event->type == SDEI_EVENT_TYPE_SHARED) { |
| 230 | reg = kzalloc_obj(*reg, GFP_KERNEL); | 230 | reg = kzalloc_obj(*reg); |
| 231 | if (!reg) { | 231 | if (!reg) { |
| 232 | err = -ENOMEM; | 232 | err = -ENOMEM; |
| 233 | goto fail; | 233 | goto fail; |
| @@ -1059,7 +1059,7 @@ static int cs_dsp_create_control(struct cs_dsp *dsp, · 1058 unmodified lines | |||
| 1059 | } | 1059 | } |
| 1060 | } | 1060 | } |
| 1061 | 1061 | ||
| 1062 | ctl = kzalloc_obj(*ctl, GFP_KERNEL); | 1062 | ctl = kzalloc_obj(*ctl); |
| 1063 | if (!ctl) | 1063 | if (!ctl) |
| 1064 | return -ENOMEM; | 1064 | return -ENOMEM; |
| 1065 | 1065 | ||
| @@ -1781,7 +1781,7 @@ static struct cs_dsp_alg_region *cs_dsp_create_region(struct cs_dsp *dsp, · 715 unmodified lines | |||
| 1781 | { | 1781 | { |
| 1782 | struct cs_dsp_alg_region_list_item *item; | 1782 | struct cs_dsp_alg_region_list_item *item; |
| 1783 | 1783 | ||
| 1784 | item = kzalloc_obj(*item, GFP_KERNEL); | 1784 | item = kzalloc_obj(*item); |
| 1785 | if (!item) | 1785 | if (!item) |
| 1786 | return ERR_PTR(-ENOMEM); | 1786 | return ERR_PTR(-ENOMEM); |
| 1787 | 1787 | ||
| @@ -237,7 +237,7 @@ static int __init dmi_id_init(void) · 236 unmodified lines | |||
| 237 | if (ret) | 237 | if (ret) |
| 238 | return ret; | 238 | return ret; |
| 239 | 239 | ||
| 240 | dmi_dev = kzalloc_obj(*dmi_dev, GFP_KERNEL); | 240 | dmi_dev = kzalloc_obj(*dmi_dev); |
| 241 | if (!dmi_dev) { | 241 | if (!dmi_dev) { |
| 242 | ret = -ENOMEM; | 242 | ret = -ENOMEM; |
| 243 | goto fail_class_unregister; | 243 | goto fail_class_unregister; |
| @@ -451,7 +451,7 @@ static int dmi_system_event_log(struct dmi_sysfs_entry *entry) · 450 unmodified lines | |||
| 451 | { | 451 | { |
| 452 | int ret; | 452 | int ret; |
| 453 | 453 | ||
| 454 | entry->child = kzalloc_obj(*entry->child, GFP_KERNEL); | 454 | entry->child = kzalloc_obj(*entry->child); |
| 455 | if (!entry->child) | 455 | if (!entry->child) |
| 456 | return -ENOMEM; | 456 | return -ENOMEM; |
| 457 | ret = kobject_init_and_add(entry->child, | 457 | ret = kobject_init_and_add(entry->child, |
| @@ -586,7 +586,7 @@ static void __init dmi_sysfs_register_handle(const struct dmi_header *dh, · 128 unmodified lines | |||
| 586 | return; | 586 | return; |
| 587 | 587 | ||
| 588 | /* Allocate and register a new entry into the entries set */ | 588 | /* Allocate and register a new entry into the entries set */ |
| 589 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 589 | entry = kzalloc_obj(*entry); |
| 590 | if (!entry) { | 590 | if (!entry) { |
| 591 | *ret = -ENOMEM; | 591 | *ret = -ENOMEM; |
| 592 | return; | 592 | return; |
| @@ -740,7 +740,7 @@ edd_init(void) · 739 unmodified lines | |||
| 740 | return -ENOMEM; | 740 | return -ENOMEM; |
| 741 | 741 | ||
| 742 | for (i = 0; i < edd_num_devices(); i++) { | 742 | for (i = 0; i < edd_num_devices(); i++) { |
| 743 | edev = kzalloc_obj(*edev, GFP_KERNEL); | 743 | edev = kzalloc_obj(*edev); |
| 744 | if (!edev) { | 744 | if (!edev) { |
| 745 | rc = -ENOMEM; | 745 | rc = -ENOMEM; |
| 746 | goto out; | 746 | goto out; |
| @@ -113,7 +113,7 @@ static int __init arm_enable_runtime_services(void) · 112 unmodified lines | |||
| 113 | if (!(md->attribute & EFI_MEMORY_SP)) | 113 | if (!(md->attribute & EFI_MEMORY_SP)) |
| 114 | continue; | 114 | continue; |
| 115 | 115 | ||
| 116 | res = kzalloc_obj(*res, GFP_KERNEL); | 116 | res = kzalloc_obj(*res); |
| 117 | if (WARN_ON(!res)) | 117 | if (WARN_ON(!res)) |
| 118 | break; | 118 | break; |
| 119 | 119 | ||
| @@ -282,7 +282,7 @@ static int efi_capsule_open(struct inode *inode, struct file *file) · 281 unmodified lines | |||
| 282 | { | 282 | { |
| 283 | struct capsule_info *cap_info; | 283 | struct capsule_info *cap_info; |
| 284 | 284 | ||
| 285 | cap_info = kzalloc_obj(*cap_info, GFP_KERNEL); | 285 | cap_info = kzalloc_obj(*cap_info); |
| 286 | if (!cap_info) | 286 | if (!cap_info) |
| 287 | return -ENOMEM; | 287 | return -ENOMEM; |
| 288 | 288 | ||
| @@ -292,7 +292,7 @@ static int efi_capsule_open(struct inode *inode, struct file *file) · 3 unmodified lines | |||
| 292 | return -ENOMEM; | 292 | return -ENOMEM; |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | cap_info->phys = kzalloc_obj(phys_addr_t, GFP_KERNEL); | 295 | cap_info->phys = kzalloc_obj(phys_addr_t); |
| 296 | if (!cap_info->phys) { | 296 | if (!cap_info->phys) { |
| 297 | kfree(cap_info->pages); | 297 | kfree(cap_info->pages); |
| 298 | kfree(cap_info); | 298 | kfree(cap_info); |
| @@ -230,7 +230,7 @@ int efi_capsule_update(efi_capsule_header_t *capsule, phys_addr_t *pages) · 229 unmodified lines | |||
| 230 | count = DIV_ROUND_UP(imagesize, PAGE_SIZE); | 230 | count = DIV_ROUND_UP(imagesize, PAGE_SIZE); |
| 231 | sg_count = sg_pages_num(count); | 231 | sg_count = sg_pages_num(count); |
| 232 | 232 | ||
| 233 | sg_pages = kzalloc_objs(*sg_pages, sg_count, GFP_KERNEL); | 233 | sg_pages = kzalloc_objs(*sg_pages, sg_count); |
| 234 | if (!sg_pages) | 234 | if (!sg_pages) |
| 235 | return -ENOMEM; | 235 | return -ENOMEM; |
| 236 | 236 | ||
| @@ -47,7 +47,7 @@ static int efibc_reboot_notifier_call(struct notifier_block *notifier, · 46 unmodified lines | |||
| 47 | if (ret || !data) | 47 | if (ret || !data) |
| 48 | return NOTIFY_DONE; | 48 | return NOTIFY_DONE; |
| 49 | 49 | ||
| 50 | wdata = kmalloc_objs(efi_char16_t, MAX_DATA_LEN, GFP_KERNEL); | 50 | wdata = kmalloc_objs(efi_char16_t, MAX_DATA_LEN); |
| 51 | if (!wdata) | 51 | if (!wdata) |
| 52 | return NOTIFY_DONE; | 52 | return NOTIFY_DONE; |
| 53 | 53 | ||
| @@ -64,7 +64,7 @@ static int __init efi_check_md_for_embedded_firmware( · 63 unmodified lines | |||
| 64 | 64 | ||
| 65 | pr_info("Found EFI embedded fw '%s'\n", desc->name); | 65 | pr_info("Found EFI embedded fw '%s'\n", desc->name); |
| 66 | 66 | ||
| 67 | fw = kmalloc_obj(*fw, GFP_KERNEL); | 67 | fw = kmalloc_obj(*fw); |
| 68 | if (!fw) { | 68 | if (!fw) { |
| 69 | memunmap(map); | 69 | memunmap(map); |
| 70 | return -ENOMEM; | 70 | return -ENOMEM; |
| @@ -164,7 +164,7 @@ static int esre_create_sysfs_entry(void *esre, int entry_num) · 163 unmodified lines | |||
| 164 | { | 164 | { |
| 165 | struct esre_entry *entry; | 165 | struct esre_entry *entry; |
| 166 | 166 | ||
| 167 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 167 | entry = kzalloc_obj(*entry); |
| 168 | if (!entry) | 168 | if (!entry) |
| 169 | return -ENOMEM; | 169 | return -ENOMEM; |
| 170 | 170 | ||
| @@ -329,7 +329,7 @@ static int __init efi_mokvar_sysfs_init(void) · 328 unmodified lines | |||
| 329 | } | 329 | } |
| 330 | 330 | ||
| 331 | while (efi_mokvar_entry_next(&mokvar_entry)) { | 331 | while (efi_mokvar_entry_next(&mokvar_entry)) { |
| 332 | mokvar_sysfs = kzalloc_obj(*mokvar_sysfs, GFP_KERNEL); | 332 | mokvar_sysfs = kzalloc_obj(*mokvar_sysfs); |
| 333 | if (!mokvar_sysfs) { | 333 | if (!mokvar_sysfs) { |
| 334 | err = -ENOMEM; | 334 | err = -ENOMEM; |
| 335 | break; | 335 | break; |
| @@ -83,7 +83,7 @@ static int __init riscv_enable_runtime_services(void) · 82 unmodified lines | |||
| 83 | if (!(md->attribute & EFI_MEMORY_SP)) | 83 | if (!(md->attribute & EFI_MEMORY_SP)) |
| 84 | continue; | 84 | continue; |
| 85 | 85 | ||
| 86 | res = kzalloc_obj(*res, GFP_KERNEL); | 86 | res = kzalloc_obj(*res); |
| 87 | if (WARN_ON(!res)) | 87 | if (WARN_ON(!res)) |
| 88 | break; | 88 | break; |
| 89 | 89 | ||
| @@ -153,7 +153,7 @@ static struct gsmi_buf *gsmi_buf_alloc(void) · 152 unmodified lines | |||
| 153 | { | 153 | { |
| 154 | struct gsmi_buf *smibuf; | 154 | struct gsmi_buf *smibuf; |
| 155 | 155 | ||
| 156 | smibuf = kzalloc_obj(*smibuf, GFP_KERNEL); | 156 | smibuf = kzalloc_obj(*smibuf); |
| 157 | if (!smibuf) { | 157 | if (!smibuf) { |
| 158 | printk(KERN_ERR "gsmi: out of memory\n"); | 158 | printk(KERN_ERR "gsmi: out of memory\n"); |
| 159 | return NULL; | 159 | return NULL; |
| @@ -107,7 +107,7 @@ static int vpd_section_attrib_add(const u8 *key, u32 key_len, · 106 unmodified lines | |||
| 107 | if (vpd_section_check_key_name(key, key_len) != VPD_OK) | 107 | if (vpd_section_check_key_name(key, key_len) != VPD_OK) |
| 108 | return VPD_OK; | 108 | return VPD_OK; |
| 109 | 109 | ||
| 110 | info = kzalloc_obj(*info, GFP_KERNEL); | 110 | info = kzalloc_obj(*info); |
| 111 | if (!info) | 111 | if (!info) |
| 112 | return -ENOMEM; | 112 | return -ENOMEM; |
| 113 | 113 | ||
| @@ -634,7 +634,7 @@ static int __init ibft_create_kobject(struct acpi_table_ibft *header, · 633 unmodified lines | |||
| 634 | struct pci_dev *pci_dev; | 634 | struct pci_dev *pci_dev; |
| 635 | int rc = 0; | 635 | int rc = 0; |
| 636 | 636 | ||
| 637 | ibft_kobj = kzalloc_obj(*ibft_kobj, GFP_KERNEL); | 637 | ibft_kobj = kzalloc_obj(*ibft_kobj); |
| 638 | if (!ibft_kobj) | 638 | if (!ibft_kobj) |
| 639 | return -ENOMEM; | 639 | return -ENOMEM; |
| 640 | 640 | ||
| @@ -773,7 +773,7 @@ static int __init ibft_register_kobjects(struct acpi_table_ibft *header) · 132 unmodified lines | |||
| 773 | if (rc) | 773 | if (rc) |
| 774 | return rc; | 774 | return rc; |
| 775 | 775 | ||
| 776 | ibft_kobj = kzalloc_obj(*ibft_kobj, GFP_KERNEL); | 776 | ibft_kobj = kzalloc_obj(*ibft_kobj); |
| 777 | if (!ibft_kobj) | 777 | if (!ibft_kobj) |
| 778 | return -ENOMEM; | 778 | return -ENOMEM; |
| 779 | 779 | ||
| @@ -162,9 +162,9 @@ static int mpfs_auto_update_verify_image(struct fw_upload *fw_uploader) · 161 unmodified lines | |||
| 162 | u32 *response_msg __free(kfree) = | 162 | u32 *response_msg __free(kfree) = |
| 163 | kzalloc(AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(*response_msg), GFP_KERNEL); | 163 | kzalloc(AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(*response_msg), GFP_KERNEL); |
| 164 | struct mpfs_mss_response *response __free(kfree) = | 164 | struct mpfs_mss_response *response __free(kfree) = |
| 165 | kzalloc_obj(struct mpfs_mss_response, GFP_KERNEL); | 165 | kzalloc_obj(struct mpfs_mss_response); |
| 166 | struct mpfs_mss_msg *message __free(kfree) = | 166 | struct mpfs_mss_msg *message __free(kfree) = |
| 167 | kzalloc_obj(struct mpfs_mss_msg, GFP_KERNEL); | 167 | kzalloc_obj(struct mpfs_mss_msg); |
| 168 | int ret; | 168 | int ret; |
| 169 | 169 | ||
| 170 | if (!response_msg || !response || !message) | 170 | if (!response_msg || !response || !message) |
| @@ -364,9 +364,9 @@ static int mpfs_auto_update_available(struct mpfs_auto_update_priv *priv) · 193 unmodified lines | |||
| 364 | u32 *response_msg __free(kfree) = | 364 | u32 *response_msg __free(kfree) = |
| 365 | kzalloc(AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(*response_msg), GFP_KERNEL); | 365 | kzalloc(AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(*response_msg), GFP_KERNEL); |
| 366 | struct mpfs_mss_response *response __free(kfree) = | 366 | struct mpfs_mss_response *response __free(kfree) = |
| 367 | kzalloc_obj(struct mpfs_mss_response, GFP_KERNEL); | 367 | kzalloc_obj(struct mpfs_mss_response); |
| 368 | struct mpfs_mss_msg *message __free(kfree) = | 368 | struct mpfs_mss_msg *message __free(kfree) = |
| 369 | kzalloc_obj(struct mpfs_mss_msg, GFP_KERNEL); | 369 | kzalloc_obj(struct mpfs_mss_msg); |
| 370 | int ret; | 370 | int ret; |
| 371 | 371 | ||
| 372 | if (!response_msg || !response || !message) | 372 | if (!response_msg || !response || !message) |
| @@ -155,7 +155,7 @@ static int alloc_init_cpu_groups(cpumask_var_t **pcpu_groups) · 154 unmodified lines | |||
| 155 | if (!alloc_cpumask_var(&tmp, GFP_KERNEL)) | 155 | if (!alloc_cpumask_var(&tmp, GFP_KERNEL)) |
| 156 | return -ENOMEM; | 156 | return -ENOMEM; |
| 157 | 157 | ||
| 158 | cpu_groups = kzalloc_objs(*cpu_groups, nb_available_cpus, GFP_KERNEL); | 158 | cpu_groups = kzalloc_objs(*cpu_groups, nb_available_cpus); |
| 159 | if (!cpu_groups) { | 159 | if (!cpu_groups) { |
| 160 | free_cpumask_var(tmp); | 160 | free_cpumask_var(tmp); |
| 161 | return -ENOMEM; | 161 | return -ENOMEM; |
| @@ -369,7 +369,7 @@ static int suspend_tests(void) · 207 unmodified lines | |||
| 369 | struct task_struct **threads; | 369 | struct task_struct **threads; |
| 370 | int nb_threads = 0; | 370 | int nb_threads = 0; |
| 371 | 371 | ||
| 372 | threads = kmalloc_objs(*threads, nb_available_cpus, GFP_KERNEL); | 372 | threads = kmalloc_objs(*threads, nb_available_cpus); |
| 373 | if (!threads) | 373 | if (!threads) |
| 374 | return -ENOMEM; | 374 | return -ENOMEM; |
| 375 | 375 | ||
| @@ -50,7 +50,7 @@ static int qseecom_client_register(struct platform_device *qseecom_dev, · 49 unmodified lines | |||
| 50 | dev_info(&qseecom_dev->dev, "setting up client for %s\n", desc->app_name); | 50 | dev_info(&qseecom_dev->dev, "setting up client for %s\n", desc->app_name); |
| 51 | 51 | ||
| 52 | /* Allocate and set-up the client device */ | 52 | /* Allocate and set-up the client device */ |
| 53 | client = kzalloc_obj(*client, GFP_KERNEL); | 53 | client = kzalloc_obj(*client); |
| 54 | if (!client) | 54 | if (!client) |
| 55 | return -ENOMEM; | 55 | return -ENOMEM; |
| 56 | 56 | ||
| @@ -94,7 +94,7 @@ static ssize_t fw_cfg_dma_transfer(void *address, u32 length, u32 control) · 93 unmodified lines | |||
| 94 | struct fw_cfg_dma_access *d = NULL; | 94 | struct fw_cfg_dma_access *d = NULL; |
| 95 | ssize_t ret = length; | 95 | ssize_t ret = length; |
| 96 | 96 | ||
| 97 | d = kmalloc_obj(*d, GFP_KERNEL); | 97 | d = kmalloc_obj(*d); |
| 98 | if (!d) { | 98 | if (!d) { |
| 99 | ret = -ENOMEM; | 99 | ret = -ENOMEM; |
| 100 | goto end; | 100 | goto end; |
| @@ -325,7 +325,7 @@ static ssize_t fw_cfg_write_vmcoreinfo(const struct fw_cfg_file *f) · 224 unmodified lines | |||
| 325 | static struct fw_cfg_vmcoreinfo *data; | 325 | static struct fw_cfg_vmcoreinfo *data; |
| 326 | ssize_t ret; | 326 | ssize_t ret; |
| 327 | 327 | ||
| 328 | data = kmalloc_obj(struct fw_cfg_vmcoreinfo, GFP_KERNEL); | 328 | data = kmalloc_obj(struct fw_cfg_vmcoreinfo); |
| 329 | if (!data) | 329 | if (!data) |
| 330 | return -ENOMEM; | 330 | return -ENOMEM; |
| 331 | 331 | ||
| @@ -530,7 +530,7 @@ static int fw_cfg_build_symlink(struct kset *dir, · 198 unmodified lines | |||
| 530 | dir = to_kset(ko); | 530 | dir = to_kset(ko); |
| 531 | } else { | 531 | } else { |
| 532 | /* create new subdirectory kset */ | 532 | /* create new subdirectory kset */ |
| 533 | subdir = kzalloc_obj(struct kset, GFP_KERNEL); | 533 | subdir = kzalloc_obj(struct kset); |
| 534 | if (!subdir) { | 534 | if (!subdir) { |
| 535 | ret = -ENOMEM; | 535 | ret = -ENOMEM; |
| 536 | break; | 536 | break; |
| @@ -593,7 +593,7 @@ static int fw_cfg_register_file(const struct fw_cfg_file *f) · 56 unmodified lines | |||
| 593 | #endif | 593 | #endif |
| 594 | 594 | ||
| 595 | /* allocate new entry */ | 595 | /* allocate new entry */ |
| 596 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 596 | entry = kzalloc_obj(*entry); |
| 597 | if (!entry) | 597 | if (!entry) |
| 598 | return -ENOMEM; | 598 | return -ENOMEM; |
| 599 | 599 | ||
| @@ -282,7 +282,7 @@ static int rpi_firmware_probe(struct platform_device *pdev) · 281 unmodified lines | |||
| 282 | * Memory will be freed by rpi_firmware_delete() once all users have | 282 | * Memory will be freed by rpi_firmware_delete() once all users have |
| 283 | * released their firmware handles. Don't use devm_kzalloc() here. | 283 | * released their firmware handles. Don't use devm_kzalloc() here. |
| 284 | */ | 284 | */ |
| 285 | fw = kzalloc_obj(*fw, GFP_KERNEL); | 285 | fw = kzalloc_obj(*fw); |
| 286 | if (!fw) | 286 | if (!fw) |
| 287 | return -ENOMEM; | 287 | return -ENOMEM; |
| 288 | 288 | ||
| @@ -137,7 +137,7 @@ static int __init smccc_soc_init(void) · 136 unmodified lines | |||
| 137 | return -EINVAL; | 137 | return -EINVAL; |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL); | 140 | soc_dev_attr = kzalloc_obj(*soc_dev_attr); |
| 141 | if (!soc_dev_attr) | 141 | if (!soc_dev_attr) |
| 142 | return -ENOMEM; | 142 | return -ENOMEM; |
| 143 | 143 | ||
| @@ -535,11 +535,11 @@ static int svc_normal_to_secure_thread(void *data) · 534 unmodified lines | |||
| 535 | unsigned long a0, a1, a2, a3, a4, a5, a6, a7; | 535 | unsigned long a0, a1, a2, a3, a4, a5, a6, a7; |
| 536 | int ret_fifo = 0; | 536 | int ret_fifo = 0; |
| 537 | 537 | ||
| 538 | pdata = kmalloc_obj(*pdata, GFP_KERNEL); | 538 | pdata = kmalloc_obj(*pdata); |
| 539 | if (!pdata) | 539 | if (!pdata) |
| 540 | return -ENOMEM; | 540 | return -ENOMEM; |
| 541 | 541 | ||
| 542 | cbdata = kmalloc_obj(*cbdata, GFP_KERNEL); | 542 | cbdata = kmalloc_obj(*cbdata); |
| 543 | if (!cbdata) { | 543 | if (!cbdata) { |
| 544 | kfree(pdata); | 544 | kfree(pdata); |
| 545 | return -ENOMEM; | 545 | return -ENOMEM; |
| @@ -1119,7 +1119,7 @@ int stratix10_svc_add_async_client(struct stratix10_svc_chan *chan, · 573 unmodified lines | |||
| 1119 | return 0; | 1119 | return 0; |
| 1120 | } | 1120 | } |
| 1121 | 1121 | ||
| 1122 | achan = kzalloc_obj(*achan, GFP_KERNEL); | 1122 | achan = kzalloc_obj(*achan); |
| 1123 | if (!achan) | 1123 | if (!achan) |
| 1124 | return -ENOMEM; | 1124 | return -ENOMEM; |
| 1125 | 1125 | ||
| @@ -1692,7 +1692,7 @@ int stratix10_svc_send(struct stratix10_svc_chan *chan, void *msg) · 566 unmodified lines | |||
| 1692 | int ret = 0; | 1692 | int ret = 0; |
| 1693 | unsigned int cpu = 0; | 1693 | unsigned int cpu = 0; |
| 1694 | 1694 | ||
| 1695 | p_data = kzalloc_obj(*p_data, GFP_KERNEL); | 1695 | p_data = kzalloc_obj(*p_data); |
| 1696 | if (!p_data) | 1696 | if (!p_data) |
| 1697 | return -ENOMEM; | 1697 | return -ENOMEM; |
| 1698 | 1698 | ||
| @@ -205,7 +205,7 @@ struct th1520_aon_chan *th1520_aon_init(struct device *dev) · 204 unmodified lines | |||
| 205 | struct mbox_client *cl; | 205 | struct mbox_client *cl; |
| 206 | int ret; | 206 | int ret; |
| 207 | 207 | ||
| 208 | aon_chan = kzalloc_obj(*aon_chan, GFP_KERNEL); | 208 | aon_chan = kzalloc_obj(*aon_chan); |
| 209 | if (!aon_chan) | 209 | if (!aon_chan) |
| 210 | return ERR_PTR(-ENOMEM); | 210 | return ERR_PTR(-ENOMEM); |
| 211 | 211 | ||
| @@ -42,7 +42,7 @@ static int afu_dma_pin_pages(struct dfl_feature_dev_data *fdata, · 41 unmodified lines | |||
| 42 | if (ret) | 42 | if (ret) |
| 43 | return ret; | 43 | return ret; |
| 44 | 44 | ||
| 45 | region->pages = kzalloc_objs(struct page *, npages, GFP_KERNEL); | 45 | region->pages = kzalloc_objs(struct page *, npages); |
| 46 | if (!region->pages) { | 46 | if (!region->pages) { |
| 47 | ret = -ENOMEM; | 47 | ret = -ENOMEM; |
| 48 | goto unlock_vm; | 48 | goto unlock_vm; |
| @@ -139,7 +139,7 @@ static int *cci_pci_create_irq_table(struct pci_dev *pcidev, unsigned int nvec) · 138 unmodified lines | |||
| 139 | unsigned int i; | 139 | unsigned int i; |
| 140 | int *table; | 140 | int *table; |
| 141 | 141 | ||
| 142 | table = kzalloc_objs(int, nvec, GFP_KERNEL); | 142 | table = kzalloc_objs(int, nvec); |
| 143 | if (!table) | 143 | if (!table) |
| 144 | return table; | 144 | return table; |
| 145 | 145 | ||
| @@ -347,7 +347,7 @@ dfl_dev_add(struct dfl_feature_dev_data *fdata, · 346 unmodified lines | |||
| 347 | struct dfl_device *ddev; | 347 | struct dfl_device *ddev; |
| 348 | int id, i, ret; | 348 | int id, i, ret; |
| 349 | 349 | ||
| 350 | ddev = kzalloc_obj(*ddev, GFP_KERNEL); | 350 | ddev = kzalloc_obj(*ddev); |
| 351 | if (!ddev) | 351 | if (!ddev) |
| 352 | return ERR_PTR(-ENOMEM); | 352 | return ERR_PTR(-ENOMEM); |
| 353 | 353 | ||
| @@ -346,7 +346,7 @@ __fpga_bridge_register(struct device *parent, const char *name, · 345 unmodified lines | |||
| 346 | return ERR_PTR(-EINVAL); | 346 | return ERR_PTR(-EINVAL); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | bridge = kzalloc_obj(*bridge, GFP_KERNEL); | 349 | bridge = kzalloc_obj(*bridge); |
| 350 | if (!bridge) | 350 | if (!bridge) |
| 351 | return ERR_PTR(-ENOMEM); | 351 | return ERR_PTR(-ENOMEM); |
| 352 | 352 | ||
| @@ -486,7 +486,7 @@ static int fpga_mgr_buf_load(struct fpga_manager *mgr, · 485 unmodified lines | |||
| 486 | */ | 486 | */ |
| 487 | nr_pages = DIV_ROUND_UP((unsigned long)buf + count, PAGE_SIZE) - | 487 | nr_pages = DIV_ROUND_UP((unsigned long)buf + count, PAGE_SIZE) - |
| 488 | (unsigned long)buf / PAGE_SIZE; | 488 | (unsigned long)buf / PAGE_SIZE; |
| 489 | pages = kmalloc_objs(struct page *, nr_pages, GFP_KERNEL); | 489 | pages = kmalloc_objs(struct page *, nr_pages); |
| 490 | if (!pages) | 490 | if (!pages) |
| 491 | return -ENOMEM; | 491 | return -ENOMEM; |
| 492 | 492 | ||
| @@ -801,7 +801,7 @@ __fpga_mgr_register_full(struct device *parent, const struct fpga_manager_info * · 308 unmodified lines | |||
| 801 | return ERR_PTR(-EINVAL); | 801 | return ERR_PTR(-EINVAL); |
| 802 | } | 802 | } |
| 803 | 803 | ||
| 804 | mgr = kzalloc_obj(*mgr, GFP_KERNEL); | 804 | mgr = kzalloc_obj(*mgr); |
| 805 | if (!mgr) | 805 | if (!mgr) |
| 806 | return ERR_PTR(-ENOMEM); | 806 | return ERR_PTR(-ENOMEM); |
| 807 | 807 | ||
| @@ -201,7 +201,7 @@ __fpga_region_register_full(struct device *parent, const struct fpga_region_info · 200 unmodified lines | |||
| 201 | return ERR_PTR(-EINVAL); | 201 | return ERR_PTR(-EINVAL); |
| 202 | } | 202 | } |
| 203 | 203 | ||
| 204 | region = kzalloc_obj(*region, GFP_KERNEL); | 204 | region = kzalloc_obj(*region); |
| 205 | if (!region) | 205 | if (!region) |
| 206 | return ERR_PTR(-ENOMEM); | 206 | return ERR_PTR(-ENOMEM); |
| 207 | 207 | ||
| @@ -211,7 +211,7 @@ static struct fsi_device *fsi_create_device(struct fsi_slave *slave) · 210 unmodified lines | |||
| 211 | { | 211 | { |
| 212 | struct fsi_device *dev; | 212 | struct fsi_device *dev; |
| 213 | 213 | ||
| 214 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 214 | dev = kzalloc_obj(*dev); |
| 215 | if (!dev) | 215 | if (!dev) |
| 216 | return NULL; | 216 | return NULL; |
| 217 | 217 | ||
| @@ -1083,7 +1083,7 @@ static int fsi_slave_init(struct fsi_master *master, int link, uint8_t id) · 865 unmodified lines | |||
| 1083 | /* We can communicate with a slave; create the slave device and | 1083 | /* We can communicate with a slave; create the slave device and |
| 1084 | * register. | 1084 | * register. |
| 1085 | */ | 1085 | */ |
| 1086 | slave = kzalloc_obj(*slave, GFP_KERNEL); | 1086 | slave = kzalloc_obj(*slave); |
| 1087 | if (!slave) | 1087 | if (!slave) |
| 1088 | return -ENOMEM; | 1088 | return -ENOMEM; |
| 1089 | 1089 | ||
| @@ -546,7 +546,7 @@ static int fsi_master_aspeed_probe(struct platform_device *pdev) · 545 unmodified lines | |||
| 546 | return rc; | 546 | return rc; |
| 547 | } | 547 | } |
| 548 | 548 | ||
| 549 | aspeed = kzalloc_obj(*aspeed, GFP_KERNEL); | 549 | aspeed = kzalloc_obj(*aspeed); |
| 550 | if (!aspeed) | 550 | if (!aspeed) |
| 551 | return -ENOMEM; | 551 | return -ENOMEM; |
| 552 | 552 | ||
| @@ -1220,7 +1220,7 @@ static int fsi_master_acf_probe(struct platform_device *pdev) · 1219 unmodified lines | |||
| 1220 | uint32_t cf_mem_align; | 1220 | uint32_t cf_mem_align; |
| 1221 | int rc; | 1221 | int rc; |
| 1222 | 1222 | ||
| 1223 | master = kzalloc_obj(*master, GFP_KERNEL); | 1223 | master = kzalloc_obj(*master); |
| 1224 | if (!master) | 1224 | if (!master) |
| 1225 | return -ENOMEM; | 1225 | return -ENOMEM; |
| 1226 | 1226 | ||
| @@ -774,7 +774,7 @@ static int fsi_master_gpio_probe(struct platform_device *pdev) · 773 unmodified lines | |||
| 774 | struct gpio_desc *gpio; | 774 | struct gpio_desc *gpio; |
| 775 | int rc; | 775 | int rc; |
| 776 | 776 | ||
| 777 | master = kzalloc_obj(*master, GFP_KERNEL); | 777 | master = kzalloc_obj(*master); |
| 778 | if (!master) | 778 | if (!master) |
| 779 | return -ENOMEM; | 779 | return -ENOMEM; |
| 780 | 780 | ||
| @@ -215,7 +215,7 @@ static int hub_master_probe(struct fsi_device *fsi_dev) · 214 unmodified lines | |||
| 215 | return rc; | 215 | return rc; |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | hub = kzalloc_obj(*hub, GFP_KERNEL); | 218 | hub = kzalloc_obj(*hub); |
| 219 | if (!hub) { | 219 | if (!hub) { |
| 220 | rc = -ENOMEM; | 220 | rc = -ENOMEM; |
| 221 | goto err_release; | 221 | goto err_release; |
| @@ -261,7 +261,7 @@ static int i2cr_probe(struct i2c_client *client) · 260 unmodified lines | |||
| 261 | struct fsi_master_i2cr *i2cr; | 261 | struct fsi_master_i2cr *i2cr; |
| 262 | int ret; | 262 | int ret; |
| 263 | 263 | ||
| 264 | i2cr = kzalloc_obj(*i2cr, GFP_KERNEL); | 264 | i2cr = kzalloc_obj(*i2cr); |
| 265 | if (!i2cr) | 265 | if (!i2cr) |
| 266 | return -ENOMEM; | 266 | return -ENOMEM; |
| 267 | 267 | ||
| @@ -79,7 +79,7 @@ static DEFINE_IDA(occ_ida); · 78 unmodified lines | |||
| 79 | 79 | ||
| 80 | static int occ_open(struct inode *inode, struct file *file) | 80 | static int occ_open(struct inode *inode, struct file *file) |
| 81 | { | 81 | { |
| 82 | struct occ_client *client = kzalloc_obj(*client, GFP_KERNEL); | 82 | struct occ_client *client = kzalloc_obj(*client); |
| 83 | struct miscdevice *mdev = file->private_data; | 83 | struct miscdevice *mdev = file->private_data; |
| 84 | struct occ *occ = to_occ(mdev); | 84 | struct occ *occ = to_occ(mdev); |
| 85 | 85 | ||
| @@ -792,7 +792,7 @@ static int sbefifo_user_open(struct inode *inode, struct file *file) · 791 unmodified lines | |||
| 792 | struct sbefifo *sbefifo = container_of(inode->i_cdev, struct sbefifo, cdev); | 792 | struct sbefifo *sbefifo = container_of(inode->i_cdev, struct sbefifo, cdev); |
| 793 | struct sbefifo_user *user; | 793 | struct sbefifo_user *user; |
| 794 | 794 | ||
| 795 | user = kzalloc_obj(struct sbefifo_user, GFP_KERNEL); | 795 | user = kzalloc_obj(struct sbefifo_user); |
| 796 | if (!user) | 796 | if (!user) |
| 797 | return -ENOMEM; | 797 | return -ENOMEM; |
| 798 | 798 | ||
| @@ -1033,7 +1033,7 @@ static int sbefifo_probe(struct fsi_device *fsi_dev) · 234 unmodified lines | |||
| 1033 | 1033 | ||
| 1034 | dev_dbg(dev, "Found sbefifo device\n"); | 1034 | dev_dbg(dev, "Found sbefifo device\n"); |
| 1035 | 1035 | ||
| 1036 | sbefifo = kzalloc_obj(*sbefifo, GFP_KERNEL); | 1036 | sbefifo = kzalloc_obj(*sbefifo); |
| 1037 | if (!sbefifo) | 1037 | if (!sbefifo) |
| 1038 | return -ENOMEM; | 1038 | return -ENOMEM; |
| 1039 | 1039 | ||
| @@ -533,7 +533,7 @@ static int scom_probe(struct fsi_device *fsi_dev) · 532 unmodified lines | |||
| 533 | struct scom_device *scom; | 533 | struct scom_device *scom; |
| 534 | int rc, didx; | 534 | int rc, didx; |
| 535 | 535 | ||
| 536 | scom = kzalloc_obj(*scom, GFP_KERNEL); | 536 | scom = kzalloc_obj(*scom); |
| 537 | if (!scom) | 537 | if (!scom) |
| 538 | return -ENOMEM; | 538 | return -ENOMEM; |
| 539 | fsi_set_drvdata(fsi_dev, scom); | 539 | fsi_set_drvdata(fsi_dev, scom); |
| @@ -167,7 +167,7 @@ static void *mlx5ctl_info(struct fwctl_uctx *uctx, size_t *length) · 166 unmodified lines | |||
| 167 | container_of(uctx, struct mlx5ctl_uctx, uctx); | 167 | container_of(uctx, struct mlx5ctl_uctx, uctx); |
| 168 | struct fwctl_info_mlx5 *info; | 168 | struct fwctl_info_mlx5 *info; |
| 169 | 169 | ||
| 170 | info = kzalloc_obj(*info, GFP_KERNEL); | 170 | info = kzalloc_obj(*info); |
| 171 | if (!info) | 171 | if (!info) |
| 172 | return ERR_PTR(-ENOMEM); | 172 | return ERR_PTR(-ENOMEM); |
| 173 | 173 | ||
| @@ -58,7 +58,7 @@ static void *pdsfc_info(struct fwctl_uctx *uctx, size_t *length) · 57 unmodified lines | |||
| 58 | struct pdsfc_uctx *pdsfc_uctx = container_of(uctx, struct pdsfc_uctx, uctx); | 58 | struct pdsfc_uctx *pdsfc_uctx = container_of(uctx, struct pdsfc_uctx, uctx); |
| 59 | struct fwctl_info_pds *info; | 59 | struct fwctl_info_pds *info; |
| 60 | 60 | ||
| 61 | info = kzalloc_obj(*info, GFP_KERNEL); | 61 | info = kzalloc_obj(*info); |
| 62 | if (!info) | 62 | if (!info) |
| 63 | return ERR_PTR(-ENOMEM); | 63 | return ERR_PTR(-ENOMEM); |
| 64 | 64 | ||
| @@ -227,7 +227,7 @@ struct gnss_device *gnss_allocate_device(struct device *parent) · 226 unmodified lines | |||
| 227 | int id; | 227 | int id; |
| 228 | int ret; | 228 | int ret; |
| 229 | 229 | ||
| 230 | gdev = kzalloc_obj(*gdev, GFP_KERNEL); | 230 | gdev = kzalloc_obj(*gdev); |
| 231 | if (!gdev) | 231 | if (!gdev) |
| 232 | return NULL; | 232 | return NULL; |
| 233 | 233 | ||
| @@ -131,7 +131,7 @@ static int gnss_usb_probe(struct usb_interface *intf, const struct usb_device_id · 130 unmodified lines | |||
| 131 | if (ret) | 131 | if (ret) |
| 132 | return ret; | 132 | return ret; |
| 133 | 133 | ||
| 134 | gusb = kzalloc_obj(*gusb, GFP_KERNEL); | 134 | gusb = kzalloc_obj(*gusb); |
| 135 | if (!gusb) | 135 | if (!gusb) |
| 136 | return -ENOMEM; | 136 | return -ENOMEM; |
| 137 | 137 | ||
| @@ -856,7 +856,7 @@ static int cb7210_allocate_private(struct gpib_board *board) · 855 unmodified lines | |||
| 856 | { | 856 | { |
| 857 | struct cb7210_priv *priv; | 857 | struct cb7210_priv *priv; |
| 858 | 858 | ||
| 859 | board->private_data = kzalloc_obj(struct cb7210_priv, GFP_KERNEL); | 859 | board->private_data = kzalloc_obj(struct cb7210_priv); |
| 860 | if (!board->private_data) | 860 | if (!board->private_data) |
| 861 | return -ENOMEM; | 861 | return -ENOMEM; |
| 862 | priv = board->private_data; | 862 | priv = board->private_data; |
| @@ -1188,7 +1188,7 @@ static int cb_gpib_probe(struct pcmcia_device *link) · 325 unmodified lines | |||
| 1188 | int ret; | 1188 | int ret; |
| 1189 | 1189 | ||
| 1190 | /* Allocate space for private device-specific data */ | 1190 | /* Allocate space for private device-specific data */ |
| 1191 | info = kzalloc_obj(*info, GFP_KERNEL); | 1191 | info = kzalloc_obj(*info); |
| 1192 | if (!info) | 1192 | if (!info) |
| 1193 | return -ENOMEM; | 1193 | return -ENOMEM; |
| 1194 | 1194 | ||
| @@ -220,7 +220,7 @@ static int cec_allocate_private(struct gpib_board *board) · 219 unmodified lines | |||
| 220 | { | 220 | { |
| 221 | struct cec_priv *priv; | 221 | struct cec_priv *priv; |
| 222 | 222 | ||
| 223 | board->private_data = kzalloc_obj(struct cec_priv, GFP_KERNEL); | 223 | board->private_data = kzalloc_obj(struct cec_priv); |
| 224 | if (!board->private_data) | 224 | if (!board->private_data) |
| 225 | return -ENOMEM; | 225 | return -ENOMEM; |
| 226 | priv = board->private_data; | 226 | priv = board->private_data; |
| @@ -199,7 +199,7 @@ int push_status_byte(struct gpib_board *board, struct gpib_status_queue *device, · 198 unmodified lines | |||
| 199 | return retval; | 199 | return retval; |
| 200 | } | 200 | } |
| 201 | 201 | ||
| 202 | status = kmalloc_obj(*status, GFP_KERNEL); | 202 | status = kmalloc_obj(*status); |
| 203 | if (!status) | 203 | if (!status) |
| 204 | return -ENOMEM; | 204 | return -ENOMEM; |
| 205 | 205 | ||
| @@ -513,7 +513,7 @@ static int init_gpib_file_private(struct gpib_file_private *priv) · 307 unmodified lines | |||
| 513 | { | 513 | { |
| 514 | memset(priv, 0, sizeof(*priv)); | 514 | memset(priv, 0, sizeof(*priv)); |
| 515 | atomic_set(&priv->holding_mutex, 0); | 515 | atomic_set(&priv->holding_mutex, 0); |
| 516 | priv->descriptors[0] = kmalloc_obj(struct gpib_descriptor, GFP_KERNEL); | 516 | priv->descriptors[0] = kmalloc_obj(struct gpib_descriptor); |
| 517 | if (!priv->descriptors[0]) { | 517 | if (!priv->descriptors[0]) { |
| 518 | pr_err("gpib: failed to allocate default board descriptor\n"); | 518 | pr_err("gpib: failed to allocate default board descriptor\n"); |
| 519 | return -ENOMEM; | 519 | return -ENOMEM; |
| @@ -537,7 +537,7 @@ int ibopen(struct inode *inode, struct file *filep) · 17 unmodified lines | |||
| 537 | 537 | ||
| 538 | board = &board_array[minor]; | 538 | board = &board_array[minor]; |
| 539 | 539 | ||
| 540 | filep->private_data = kmalloc_obj(struct gpib_file_private, GFP_KERNEL); | 540 | filep->private_data = kmalloc_obj(struct gpib_file_private); |
| 541 | if (!filep->private_data) | 541 | if (!filep->private_data) |
| 542 | return -ENOMEM; | 542 | return -ENOMEM; |
| 543 | 543 | ||
| @@ -2042,7 +2042,7 @@ int gpib_register_driver(struct gpib_interface *interface, struct module *provid · 1498 unmodified lines | |||
| 2042 | { | 2042 | { |
| 2043 | struct gpib_interface_list *entry; | 2043 | struct gpib_interface_list *entry; |
| 2044 | 2044 | ||
| 2045 | entry = kmalloc_obj(*entry, GFP_KERNEL); | 2045 | entry = kmalloc_obj(*entry); |
| 2046 | if (!entry) | 2046 | if (!entry) |
| 2047 | return -ENOMEM; | 2047 | return -ENOMEM; |
| 2048 | 2048 | ||
| @@ -853,7 +853,7 @@ static int fluke_allocate_private(struct gpib_board *board) · 852 unmodified lines | |||
| 853 | { | 853 | { |
| 854 | struct fluke_priv *priv; | 854 | struct fluke_priv *priv; |
| 855 | 855 | ||
| 856 | board->private_data = kzalloc_obj(struct fluke_priv, GFP_KERNEL); | 856 | board->private_data = kzalloc_obj(struct fluke_priv); |
| 857 | if (!board->private_data) | 857 | if (!board->private_data) |
| 858 | return -ENOMEM; | 858 | return -ENOMEM; |
| 859 | priv = board->private_data; | 859 | priv = board->private_data; |
| @@ -1250,7 +1250,7 @@ static int fmh_gpib_allocate_private(struct gpib_board *board) · 1249 unmodified lines | |||
| 1250 | { | 1250 | { |
| 1251 | struct fmh_priv *priv; | 1251 | struct fmh_priv *priv; |
| 1252 | 1252 | ||
| 1253 | board->private_data = kzalloc_obj(struct fmh_priv, GFP_KERNEL); | 1253 | board->private_data = kzalloc_obj(struct fmh_priv); |
| 1254 | if (!board->private_data) | 1254 | if (!board->private_data) |
| 1255 | return -ENOMEM; | 1255 | return -ENOMEM; |
| 1256 | priv = board->private_data; | 1256 | priv = board->private_data; |
| @@ -1066,7 +1066,7 @@ static int bb_line_status(const struct gpib_board *board) · 1065 unmodified lines | |||
| 1066 | 1066 | ||
| 1067 | static int allocate_private(struct gpib_board *board) | 1067 | static int allocate_private(struct gpib_board *board) |
| 1068 | { | 1068 | { |
| 1069 | board->private_data = kzalloc_obj(struct bb_priv, GFP_KERNEL); | 1069 | board->private_data = kzalloc_obj(struct bb_priv); |
| 1070 | if (!board->private_data) | 1070 | if (!board->private_data) |
| 1071 | return -ENOMEM; | 1071 | return -ENOMEM; |
| 1072 | return 0; | 1072 | return 0; |
| @@ -210,7 +210,7 @@ static struct gpib_interface hp82335_interface = { · 209 unmodified lines | |||
| 210 | 210 | ||
| 211 | static int hp82335_allocate_private(struct gpib_board *board) | 211 | static int hp82335_allocate_private(struct gpib_board *board) |
| 212 | { | 212 | { |
| 213 | board->private_data = kzalloc_obj(struct hp82335_priv, GFP_KERNEL); | 213 | board->private_data = kzalloc_obj(struct hp82335_priv); |
| 214 | if (!board->private_data) | 214 | if (!board->private_data) |
| 215 | return -ENOMEM; | 215 | return -ENOMEM; |
| 216 | return 0; | 216 | return 0; |
| @@ -462,7 +462,7 @@ static struct gpib_interface hp_82341_interface = { · 461 unmodified lines | |||
| 462 | 462 | ||
| 463 | static int hp_82341_allocate_private(struct gpib_board *board) | 463 | static int hp_82341_allocate_private(struct gpib_board *board) |
| 464 | { | 464 | { |
| 465 | board->private_data = kzalloc_obj(struct hp_82341_priv, GFP_KERNEL); | 465 | board->private_data = kzalloc_obj(struct hp_82341_priv); |
| 466 | if (!board->private_data) | 466 | if (!board->private_data) |
| 467 | return -ENOMEM; | 467 | return -ENOMEM; |
| 468 | return 0; | 468 | return 0; |
| @@ -657,7 +657,7 @@ static int ines_allocate_private(struct gpib_board *board) · 656 unmodified lines | |||
| 657 | { | 657 | { |
| 658 | struct ines_priv *priv; | 658 | struct ines_priv *priv; |
| 659 | 659 | ||
| 660 | board->private_data = kzalloc_obj(struct ines_priv, GFP_KERNEL); | 660 | board->private_data = kzalloc_obj(struct ines_priv); |
| 661 | if (!board->private_data) | 661 | if (!board->private_data) |
| 662 | return -ENOMEM; | 662 | return -ENOMEM; |
| 663 | priv = board->private_data; | 663 | priv = board->private_data; |
| @@ -1061,7 +1061,7 @@ static int ines_gpib_probe(struct pcmcia_device *link) · 397 unmodified lines | |||
| 1061 | // int ret, i; | 1061 | // int ret, i; |
| 1062 | 1062 | ||
| 1063 | /* Allocate space for private device-specific data */ | 1063 | /* Allocate space for private device-specific data */ |
| 1064 | info = kzalloc_obj(*info, GFP_KERNEL); | 1064 | info = kzalloc_obj(*info); |
| 1065 | if (!info) | 1065 | if (!info) |
| 1066 | return -ENOMEM; | 1066 | return -ENOMEM; |
| 1067 | 1067 | ||
| @@ -440,7 +440,7 @@ static int usb_gpib_attach(struct gpib_board *board, const struct gpib_board_con · 439 unmodified lines | |||
| 440 | return -EIO; | 440 | return -EIO; |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | board->private_data = kzalloc_obj(struct usb_gpib_priv, GFP_KERNEL); | 443 | board->private_data = kzalloc_obj(struct usb_gpib_priv); |
| 444 | if (!board->private_data) | 444 | if (!board->private_data) |
| 445 | return -ENOMEM; | 445 | return -ENOMEM; |
| 446 | 446 | ||
| @@ -1864,7 +1864,7 @@ static int skel_probe(struct usb_interface *interface, · 1417 unmodified lines | |||
| 1864 | mutex_init(&minors_lock); /* required for handling minor numbers table */ | 1864 | mutex_init(&minors_lock); /* required for handling minor numbers table */ |
| 1865 | 1865 | ||
| 1866 | /* allocate memory for our device state and initialize it */ | 1866 | /* allocate memory for our device state and initialize it */ |
| 1867 | dev = kzalloc_obj(*dev, GFP_KERNEL); | 1867 | dev = kzalloc_obj(*dev); |
| 1868 | if (!dev) | 1868 | if (!dev) |
| 1869 | return -ENOMEM; | 1869 | return -ENOMEM; |
| 1870 | 1870 | ||
| @@ -1659,7 +1659,7 @@ static int ni_usb_allocate_private(struct gpib_board *board) · 1658 unmodified lines | |||
| 1659 | { | 1659 | { |
| 1660 | struct ni_usb_priv *ni_priv; | 1660 | struct ni_usb_priv *ni_priv; |
| 1661 | 1661 | ||
| 1662 | board->private_data = kzalloc_obj(struct ni_usb_priv, GFP_KERNEL); | 1662 | board->private_data = kzalloc_obj(struct ni_usb_priv); |
| 1663 | if (!board->private_data) | 1663 | if (!board->private_data) |
| 1664 | return -ENOMEM; | 1664 | return -ENOMEM; |
| 1665 | ni_priv = board->private_data; | 1665 | ni_priv = board->private_data; |
| @@ -1793,7 +1793,7 @@ static int ni_usb_init(struct gpib_board *board) · 127 unmodified lines | |||
| 1793 | unsigned int ibsta; | 1793 | unsigned int ibsta; |
| 1794 | int writes_len; | 1794 | int writes_len; |
| 1795 | 1795 | ||
| 1796 | writes = kmalloc_objs(*writes, NUM_INIT_WRITES, GFP_KERNEL); | 1796 | writes = kmalloc_objs(*writes, NUM_INIT_WRITES); |
| 1797 | if (!writes) | 1797 | if (!writes) |
| 1798 | return -ENOMEM; | 1798 | return -ENOMEM; |
| 1799 | 1799 | ||
| @@ -237,7 +237,7 @@ static int allocate_private(struct gpib_board *board) · 236 unmodified lines | |||
| 237 | { | 237 | { |
| 238 | struct pc2_priv *priv; | 238 | struct pc2_priv *priv; |
| 239 | 239 | ||
| 240 | board->private_data = kzalloc_obj(struct pc2_priv, GFP_KERNEL); | 240 | board->private_data = kzalloc_obj(struct pc2_priv); |
| 241 | if (!board->private_data) | 241 | if (!board->private_data) |
| 242 | return -ENOMEM; | 242 | return -ENOMEM; |
| 243 | priv = board->private_data; | 243 | priv = board->private_data; |
| @@ -57,7 +57,7 @@ void mite_init(void) · 56 unmodified lines | |||
| 57 | for (pcidev = pci_get_device(PCI_VENDOR_ID_NATINST, PCI_ANY_ID, NULL); | 57 | for (pcidev = pci_get_device(PCI_VENDOR_ID_NATINST, PCI_ANY_ID, NULL); |
| 58 | pcidev; | 58 | pcidev; |
| 59 | pcidev = pci_get_device(PCI_VENDOR_ID_NATINST, PCI_ANY_ID, pcidev)) { | 59 | pcidev = pci_get_device(PCI_VENDOR_ID_NATINST, PCI_ANY_ID, pcidev)) { |
| 60 | mite = kzalloc_obj(*mite, GFP_KERNEL); | 60 | mite = kzalloc_obj(*mite); |
| 61 | if (!mite) | 61 | if (!mite) |
| 62 | return; | 62 | return; |
| 63 | 63 | ||
| @@ -843,7 +843,7 @@ static int tnt4882_allocate_private(struct gpib_board *board) · 842 unmodified lines | |||
| 843 | { | 843 | { |
| 844 | struct tnt4882_priv *tnt_priv; | 844 | struct tnt4882_priv *tnt_priv; |
| 845 | 845 | ||
| 846 | board->private_data = kzalloc_obj(struct tnt4882_priv, GFP_KERNEL); | 846 | board->private_data = kzalloc_obj(struct tnt4882_priv); |
| 847 | if (!board->private_data) | 847 | if (!board->private_data) |
| 848 | return -ENOMEM; | 848 | return -ENOMEM; |
| 849 | tnt_priv = board->private_data; | 849 | tnt_priv = board->private_data; |
| @@ -1567,7 +1567,7 @@ static int ni_gpib_probe(struct pcmcia_device *link) · 717 unmodified lines | |||
| 1567 | //struct struct gpib_board *dev; | 1567 | //struct struct gpib_board *dev; |
| 1568 | 1568 | ||
| 1569 | /* Allocate space for private device-specific data */ | 1569 | /* Allocate space for private device-specific data */ |
| 1570 | info = kzalloc_obj(*info, GFP_KERNEL); | 1570 | info = kzalloc_obj(*info); |
| 1571 | if (!info) | 1571 | if (!info) |
| 1572 | return -ENOMEM; | 1572 | return -ENOMEM; |
| 1573 | 1573 | ||
| @@ -159,7 +159,7 @@ gpio_aggregator_line_alloc(struct gpio_aggregator *parent, unsigned int idx, · 158 unmodified lines | |||
| 159 | { | 159 | { |
| 160 | struct gpio_aggregator_line *line; | 160 | struct gpio_aggregator_line *line; |
| 161 | 161 | ||
| 162 | line = kzalloc_obj(*line, GFP_KERNEL); | 162 | line = kzalloc_obj(*line); |
| 163 | if (!line) | 163 | if (!line) |
| 164 | return ERR_PTR(-ENOMEM); | 164 | return ERR_PTR(-ENOMEM); |
| 165 | 165 | ||
| @@ -150,7 +150,7 @@ struct gpio_chip *gpio_reg_init(struct device *dev, void __iomem *reg, · 149 unmodified lines | |||
| 150 | if (dev) | 150 | if (dev) |
| 151 | r = devm_kzalloc(dev, sizeof(*r), GFP_KERNEL); | 151 | r = devm_kzalloc(dev, sizeof(*r), GFP_KERNEL); |
| 152 | else | 152 | else |
| 153 | r = kzalloc_obj(*r, GFP_KERNEL); | 153 | r = kzalloc_obj(*r); |
| 154 | 154 | ||
| 155 | if (!r) | 155 | if (!r) |
| 156 | return ERR_PTR(-ENOMEM); | 156 | return ERR_PTR(-ENOMEM); |
| @@ -259,7 +259,7 @@ struct gpio_regmap *gpio_regmap_register(const struct gpio_regmap_config *config · 258 unmodified lines | |||
| 259 | if (config->reg_dir_out_base && config->reg_dir_in_base) | 259 | if (config->reg_dir_out_base && config->reg_dir_in_base) |
| 260 | return ERR_PTR(-EINVAL); | 260 | return ERR_PTR(-EINVAL); |
| 261 | 261 | ||
| 262 | gpio = kzalloc_obj(*gpio, GFP_KERNEL); | 262 | gpio = kzalloc_obj(*gpio); |
| 263 | if (!gpio) | 263 | if (!gpio) |
| 264 | return ERR_PTR(-ENOMEM); | 264 | return ERR_PTR(-ENOMEM); |
| 265 | 265 | ||
| @@ -813,7 +813,7 @@ static int gpio_sim_add_hogs(struct gpio_sim_device *dev) · 812 unmodified lines | |||
| 813 | return 0; | 813 | return 0; |
| 814 | 814 | ||
| 815 | /* Allocate one more for the sentinel. */ | 815 | /* Allocate one more for the sentinel. */ |
| 816 | dev->hogs = kzalloc_objs(*dev->hogs, num_hogs + 1, GFP_KERNEL); | 816 | dev->hogs = kzalloc_objs(*dev->hogs, num_hogs + 1); |
| 817 | if (!dev->hogs) | 817 | if (!dev->hogs) |
| 818 | return -ENOMEM; | 818 | return -ENOMEM; |
| 819 | 819 | ||
| @@ -1406,7 +1406,7 @@ gpio_sim_line_config_make_hog_item(struct config_group *group, const char *name) · 586 unmodified lines | |||
| 1406 | 1406 | ||
| 1407 | guard(mutex)(&dev->lock); | 1407 | guard(mutex)(&dev->lock); |
| 1408 | 1408 | ||
| 1409 | hog = kzalloc_obj(*hog, GFP_KERNEL); | 1409 | hog = kzalloc_obj(*hog); |
| 1410 | if (!hog) | 1410 | if (!hog) |
| 1411 | return ERR_PTR(-ENOMEM); | 1411 | return ERR_PTR(-ENOMEM); |
| 1412 | 1412 | ||
| @@ -1467,7 +1467,7 @@ gpio_sim_bank_config_make_line_group(struct config_group *group, · 54 unmodified lines | |||
| 1467 | if (gpio_sim_device_is_live(dev)) | 1467 | if (gpio_sim_device_is_live(dev)) |
| 1468 | return ERR_PTR(-EBUSY); | 1468 | return ERR_PTR(-EBUSY); |
| 1469 | 1469 | ||
| 1470 | line = kzalloc_obj(*line, GFP_KERNEL); | 1470 | line = kzalloc_obj(*line); |
| 1471 | if (!line) | 1471 | if (!line) |
| 1472 | return ERR_PTR(-ENOMEM); | 1472 | return ERR_PTR(-ENOMEM); |
| 1473 | 1473 | ||
| @@ -1521,7 +1521,7 @@ gpio_sim_device_config_make_bank_group(struct config_group *group, · 47 unmodified lines | |||
| 1521 | if (gpio_sim_device_is_live(dev)) | 1521 | if (gpio_sim_device_is_live(dev)) |
| 1522 | return ERR_PTR(-EBUSY); | 1522 | return ERR_PTR(-EBUSY); |
| 1523 | 1523 | ||
| 1524 | bank = kzalloc_obj(*bank, GFP_KERNEL); | 1524 | bank = kzalloc_obj(*bank); |
| 1525 | if (!bank) | 1525 | if (!bank) |
| 1526 | return ERR_PTR(-ENOMEM); | 1526 | return ERR_PTR(-ENOMEM); |
| 1527 | 1527 | ||
| @@ -1605,7 +1605,7 @@ gpio_virtuser_make_lookup_entry_group(struct config_group *group, · 1604 unmodified lines | |||
| 1605 | return ERR_PTR(-EBUSY); | 1605 | return ERR_PTR(-EBUSY); |
| 1606 | 1606 | ||
| 1607 | struct gpio_virtuser_lookup_entry *entry __free(kfree) = | 1607 | struct gpio_virtuser_lookup_entry *entry __free(kfree) = |
| 1608 | kzalloc_obj(*entry, GFP_KERNEL); | 1608 | kzalloc_obj(*entry); |
| 1609 | if (!entry) | 1609 | if (!entry) |
| 1610 | return ERR_PTR(-ENOMEM); | 1610 | return ERR_PTR(-ENOMEM); |
| 1611 | 1611 | ||
| @@ -1661,7 +1661,7 @@ gpio_virtuser_make_lookup_group(struct config_group *group, const char *name) · 49 unmodified lines | |||
| 1661 | return ERR_PTR(-EBUSY); | 1661 | return ERR_PTR(-EBUSY); |
| 1662 | 1662 | ||
| 1663 | struct gpio_virtuser_lookup *lookup __free(kfree) = | 1663 | struct gpio_virtuser_lookup *lookup __free(kfree) = |
| 1664 | kzalloc_obj(*lookup, GFP_KERNEL); | 1664 | kzalloc_obj(*lookup); |
| 1665 | if (!lookup) | 1665 | if (!lookup) |
| 1666 | return ERR_PTR(-ENOMEM); | 1666 | return ERR_PTR(-ENOMEM); |
| 1667 | 1667 | ||
| @@ -403,7 +403,7 @@ static acpi_status acpi_gpiochip_alloc_event(struct acpi_resource *ares, · 402 unmodified lines | |||
| 403 | goto fail_unlock_irq; | 403 | goto fail_unlock_irq; |
| 404 | } | 404 | } |
| 405 | 405 | ||
| 406 | event = kzalloc_obj(*event, GFP_KERNEL); | 406 | event = kzalloc_obj(*event); |
| 407 | if (!event) | 407 | if (!event) |
| 408 | goto fail_unlock_irq; | 408 | goto fail_unlock_irq; |
| 409 | 409 | ||
| @@ -1144,7 +1144,7 @@ acpi_gpio_adr_space_handler(u32 function, acpi_physical_address address, · 734 unmodified lines | |||
| 1144 | goto out; | 1144 | goto out; |
| 1145 | } | 1145 | } |
| 1146 | 1146 | ||
| 1147 | conn = kzalloc_obj(*conn, GFP_KERNEL); | 1147 | conn = kzalloc_obj(*conn); |
| 1148 | if (!conn) { | 1148 | if (!conn) { |
| 1149 | gpiochip_free_own_desc(desc); | 1149 | gpiochip_free_own_desc(desc); |
| 1150 | mutex_unlock(&achip->conn_lock); | 1150 | mutex_unlock(&achip->conn_lock); |
| @@ -1302,7 +1302,7 @@ void acpi_gpiochip_add(struct gpio_chip *chip) · 151 unmodified lines | |||
| 1302 | if (!adev) | 1302 | if (!adev) |
| 1303 | return; | 1303 | return; |
| 1304 | 1304 | ||
| 1305 | acpi_gpio = kzalloc_obj(*acpi_gpio, GFP_KERNEL); | 1305 | acpi_gpio = kzalloc_obj(*acpi_gpio); |
| 1306 | if (!acpi_gpio) { | 1306 | if (!acpi_gpio) { |
| 1307 | dev_err(chip->parent, | 1307 | dev_err(chip->parent, |
| 1308 | "Failed to allocate memory for ACPI GPIO chip\n"); | 1308 | "Failed to allocate memory for ACPI GPIO chip\n"); |
| @@ -318,7 +318,7 @@ static int linehandle_create(struct gpio_device *gdev, void __user *ip) · 317 unmodified lines | |||
| 318 | if (ret) | 318 | if (ret) |
| 319 | return ret; | 319 | return ret; |
| 320 | 320 | ||
| 321 | lh = kzalloc_obj(*lh, GFP_KERNEL); | 321 | lh = kzalloc_obj(*lh); |
| 322 | if (!lh) | 322 | if (!lh) |
| 323 | return -ENOMEM; | 323 | return -ENOMEM; |
| 324 | lh->gdev = gpio_device_get(gdev); | 324 | lh->gdev = gpio_device_get(gdev); |
| @@ -1280,7 +1280,7 @@ static long linereq_get_values(struct linereq *lr, void __user *ip) · 955 unmodified lines | |||
| 1280 | 1280 | ||
| 1281 | if (num_get != 1) { | 1281 | if (num_get != 1) { |
| 1282 | /* build compacted desc array */ | 1282 | /* build compacted desc array */ |
| 1283 | descs = kmalloc_objs(*descs, num_get, GFP_KERNEL); | 1283 | descs = kmalloc_objs(*descs, num_get); |
| 1284 | if (!descs) | 1284 | if (!descs) |
| 1285 | return -ENOMEM; | 1285 | return -ENOMEM; |
| 1286 | for (didx = 0, i = 0; i < lr->num_lines; i++) { | 1286 | for (didx = 0, i = 0; i < lr->num_lines; i++) { |
| @@ -1355,7 +1355,7 @@ static long linereq_set_values(struct linereq *lr, void __user *ip) · 68 unmodified lines | |||
| 1355 | 1355 | ||
| 1356 | if (num_set != 1) { | 1356 | if (num_set != 1) { |
| 1357 | /* build compacted desc array */ | 1357 | /* build compacted desc array */ |
| 1358 | descs = kmalloc_objs(*descs, num_set, GFP_KERNEL); | 1358 | descs = kmalloc_objs(*descs, num_set); |
| 1359 | if (!descs) | 1359 | if (!descs) |
| 1360 | return -ENOMEM; | 1360 | return -ENOMEM; |
| 1361 | for (didx = 0, i = 0; i < lr->num_lines; i++) { | 1361 | for (didx = 0, i = 0; i < lr->num_lines; i++) { |
| @@ -2054,7 +2054,7 @@ static int lineevent_create(struct gpio_device *gdev, void __user *ip) · 692 unmodified lines | |||
| 2054 | (lflags & GPIOHANDLE_REQUEST_BIAS_PULL_UP))) | 2054 | (lflags & GPIOHANDLE_REQUEST_BIAS_PULL_UP))) |
| 2055 | return -EINVAL; | 2055 | return -EINVAL; |
| 2056 | 2056 | ||
| 2057 | le = kzalloc_obj(*le, GFP_KERNEL); | 2057 | le = kzalloc_obj(*le); |
| 2058 | if (!le) | 2058 | if (!le) |
| 2059 | return -ENOMEM; | 2059 | return -ENOMEM; |
| 2060 | le->gdev = gpio_device_get(gdev); | 2060 | le->gdev = gpio_device_get(gdev); |
| @@ -228,7 +228,7 @@ static int gpio_shared_of_traverse(struct device_node *curr) · 227 unmodified lines | |||
| 228 | 228 | ||
| 229 | entry = gpio_shared_find_entry(fwnode, offset); | 229 | entry = gpio_shared_find_entry(fwnode, offset); |
| 230 | if (!entry) { | 230 | if (!entry) { |
| 231 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 231 | entry = kzalloc_obj(*entry); |
| 232 | if (!entry) | 232 | if (!entry) |
| 233 | return -ENOMEM; | 233 | return -ENOMEM; |
| 234 | 234 | ||
| @@ -627,7 +627,7 @@ gpiod_shared_desc_create(struct gpio_shared_entry *entry) · 392 unmodified lines | |||
| 627 | 627 | ||
| 628 | lockdep_assert_held(&entry->lock); | 628 | lockdep_assert_held(&entry->lock); |
| 629 | 629 | ||
| 630 | shared_desc = kzalloc_obj(*shared_desc, GFP_KERNEL); | 630 | shared_desc = kzalloc_obj(*shared_desc); |
| 631 | if (!shared_desc) | 631 | if (!shared_desc) |
| 632 | return ERR_PTR(-ENOMEM); | 632 | return ERR_PTR(-ENOMEM); |
| 633 | 633 | ||
| @@ -761,7 +761,7 @@ int gpiod_export(struct gpio_desc *desc, bool direction_may_change) · 760 unmodified lines | |||
| 761 | goto err_clear_bit; | 761 | goto err_clear_bit; |
| 762 | } | 762 | } |
| 763 | 763 | ||
| 764 | desc_data = kzalloc_obj(*desc_data, GFP_KERNEL); | 764 | desc_data = kzalloc_obj(*desc_data); |
| 765 | if (!desc_data) { | 765 | if (!desc_data) { |
| 766 | status = -ENOMEM; | 766 | status = -ENOMEM; |
| 767 | goto err_clear_bit; | 767 | goto err_clear_bit; |
| @@ -1014,7 +1014,7 @@ int gpiochip_sysfs_register(struct gpio_device *gdev) · 246 unmodified lines | |||
| 1014 | else | 1014 | else |
| 1015 | parent = &gdev->dev; | 1015 | parent = &gdev->dev; |
| 1016 | 1016 | ||
| 1017 | data = kmalloc_obj(*data, GFP_KERNEL); | 1017 | data = kmalloc_obj(*data); |
| 1018 | if (!data) | 1018 | if (!data) |
| 1019 | return -ENOMEM; | 1019 | return -ENOMEM; |
| 1020 | 1020 | ||
| @@ -2332,7 +2332,7 @@ int gpiochip_add_pingroup_range(struct gpio_chip *gc, · 2331 unmodified lines | |||
| 2332 | struct gpio_device *gdev = gc->gpiodev; | 2332 | struct gpio_device *gdev = gc->gpiodev; |
| 2333 | int ret; | 2333 | int ret; |
| 2334 | 2334 | ||
| 2335 | pin_range = kzalloc_obj(*pin_range, GFP_KERNEL); | 2335 | pin_range = kzalloc_obj(*pin_range); |
| 2336 | if (!pin_range) | 2336 | if (!pin_range) |
| 2337 | return -ENOMEM; | 2337 | return -ENOMEM; |
| 2338 | 2338 | ||
| @@ -2393,7 +2393,7 @@ int gpiochip_add_pin_range_with_pins(struct gpio_chip *gc, · 54 unmodified lines | |||
| 2393 | struct gpio_device *gdev = gc->gpiodev; | 2393 | struct gpio_device *gdev = gc->gpiodev; |
| 2394 | int ret; | 2394 | int ret; |
| 2395 | 2395 | ||
| 2396 | pin_range = kzalloc_obj(*pin_range, GFP_KERNEL); | 2396 | pin_range = kzalloc_obj(*pin_range); |
| 2397 | if (!pin_range) | 2397 | if (!pin_range) |
| 2398 | return -ENOMEM; | 2398 | return -ENOMEM; |
| 2399 | 2399 | ||
| @@ -5369,7 +5369,7 @@ static void *gpiolib_seq_start(struct seq_file *s, loff_t *pos) · 2969 unmodified lines | |||
| 5369 | 5369 | ||
| 5370 | s->private = NULL; | 5370 | s->private = NULL; |
| 5371 | 5371 | ||
| 5372 | priv = kzalloc_obj(*priv, GFP_KERNEL); | 5372 | priv = kzalloc_obj(*priv); |
| 5373 | if (!priv) | 5373 | if (!priv) |
| 5374 | return NULL; | 5374 | return NULL; |
| 5375 | 5375 | ||
| @@ -447,7 +447,7 @@ int aldebaran_reset_init(struct amdgpu_device *adev) · 446 unmodified lines | |||
| 447 | { | 447 | { |
| 448 | struct amdgpu_reset_control *reset_ctl; | 448 | struct amdgpu_reset_control *reset_ctl; |
| 449 | 449 | ||
| 450 | reset_ctl = kzalloc_obj(*reset_ctl, GFP_KERNEL); | 450 | reset_ctl = kzalloc_obj(*reset_ctl); |
| 451 | if (!reset_ctl) | 451 | if (!reset_ctl) |
| 452 | return -ENOMEM; | 452 | return -ENOMEM; |
| 453 | 453 | ||
| @@ -52,7 +52,7 @@ static int aca_banks_add_bank(struct aca_banks *banks, struct aca_bank *bank) · 51 unmodified lines | |||
| 52 | if (!bank) | 52 | if (!bank) |
| 53 | return -EINVAL; | 53 | return -EINVAL; |
| 54 | 54 | ||
| 55 | node = kvzalloc_obj(*node, GFP_KERNEL); | 55 | node = kvzalloc_obj(*node); |
| 56 | if (!node) | 56 | if (!node) |
| 57 | return -ENOMEM; | 57 | return -ENOMEM; |
| 58 | 58 | ||
| @@ -230,7 +230,7 @@ static struct aca_bank_error *new_bank_error(struct aca_error *aerr, struct aca_ · 171 unmodified lines | |||
| 230 | { | 230 | { |
| 231 | struct aca_bank_error *bank_error; | 231 | struct aca_bank_error *bank_error; |
| 232 | 232 | ||
| 233 | bank_error = kvzalloc_obj(*bank_error, GFP_KERNEL); | 233 | bank_error = kvzalloc_obj(*bank_error); |
| 234 | if (!bank_error) | 234 | if (!bank_error) |
| 235 | return NULL; | 235 | return NULL; |
| 236 | 236 | ||
| @@ -246,7 +246,7 @@ static int acp_hw_init(struct amdgpu_ip_block *ip_block) · 245 unmodified lines | |||
| 246 | return -EINVAL; | 246 | return -EINVAL; |
| 247 | 247 | ||
| 248 | acp_base = adev->rmmio_base; | 248 | acp_base = adev->rmmio_base; |
| 249 | adev->acp.acp_genpd = kzalloc_obj(struct acp_pm_domain, GFP_KERNEL); | 249 | adev->acp.acp_genpd = kzalloc_obj(struct acp_pm_domain); |
| 250 | if (!adev->acp.acp_genpd) | 250 | if (!adev->acp.acp_genpd) |
| 251 | return -ENOMEM; | 251 | return -ENOMEM; |
| 252 | 252 | ||
| @@ -267,7 +267,7 @@ static int acp_hw_init(struct amdgpu_ip_block *ip_block) · 14 unmodified lines | |||
| 267 | goto failure; | 267 | goto failure; |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | adev->acp.acp_res = kzalloc_objs(struct resource, 3, GFP_KERNEL); | 270 | adev->acp.acp_res = kzalloc_objs(struct resource, 3); |
| 271 | if (!adev->acp.acp_res) { | 271 | if (!adev->acp.acp_res) { |
| 272 | r = -ENOMEM; | 272 | r = -ENOMEM; |
| 273 | goto failure; | 273 | goto failure; |
| @@ -333,7 +333,7 @@ static int acp_hw_init(struct amdgpu_ip_block *ip_block) · 59 unmodified lines | |||
| 333 | goto failure; | 333 | goto failure; |
| 334 | } | 334 | } |
| 335 | 335 | ||
| 336 | adev->acp.acp_res = kzalloc_objs(struct resource, 5, GFP_KERNEL); | 336 | adev->acp.acp_res = kzalloc_objs(struct resource, 5); |
| 337 | if (!adev->acp.acp_res) { | 337 | if (!adev->acp.acp_res) { |
| 338 | r = -ENOMEM; | 338 | r = -ENOMEM; |
| 339 | goto failure; | 339 | goto failure; |
| @@ -897,7 +897,7 @@ static struct amdgpu_numa_info *amdgpu_acpi_get_numa_info(uint32_t pxm) · 896 unmodified lines | |||
| 897 | if (!numa_info) { | 897 | if (!numa_info) { |
| 898 | struct sysinfo info; | 898 | struct sysinfo info; |
| 899 | 899 | ||
| 900 | numa_info = kzalloc_obj(*numa_info, GFP_KERNEL); | 900 | numa_info = kzalloc_obj(*numa_info); |
| 901 | if (!numa_info) | 901 | if (!numa_info) |
| 902 | return NULL; | 902 | return NULL; |
| 903 | 903 | ||
| @@ -1016,7 +1016,7 @@ static int amdgpu_acpi_dev_init(struct amdgpu_acpi_dev_info **dev_info, · 112 unmodified lines | |||
| 1016 | int ret = -ENOENT; | 1016 | int ret = -ENOENT; |
| 1017 | 1017 | ||
| 1018 | *dev_info = NULL; | 1018 | *dev_info = NULL; |
| 1019 | tmp = kzalloc_obj(struct amdgpu_acpi_dev_info, GFP_KERNEL); | 1019 | tmp = kzalloc_obj(struct amdgpu_acpi_dev_info); |
| 1020 | if (!tmp) | 1020 | if (!tmp) |
| 1021 | return -ENOMEM; | 1021 | return -ENOMEM; |
| 1022 | 1022 | ||
| @@ -1166,7 +1166,7 @@ int amdgpu_acpi_enumerate_xcc(void) · 143 unmodified lines | |||
| 1166 | break; | 1166 | break; |
| 1167 | } | 1167 | } |
| 1168 | 1168 | ||
| 1169 | xcc_info = kzalloc_obj(struct amdgpu_acpi_xcc_info, GFP_KERNEL); | 1169 | xcc_info = kzalloc_obj(struct amdgpu_acpi_xcc_info); |
| 1170 | if (!xcc_info) | 1170 | if (!xcc_info) |
| 1171 | return -ENOMEM; | 1171 | return -ENOMEM; |
| 1172 | 1172 | ||
| @@ -829,11 +829,11 @@ int amdgpu_amdkfd_unmap_hiq(struct amdgpu_device *adev, u32 doorbell_off, · 828 unmodified lines | |||
| 829 | if (!kiq_ring->sched.ready || amdgpu_in_reset(adev)) | 829 | if (!kiq_ring->sched.ready || amdgpu_in_reset(adev)) |
| 830 | return 0; | 830 | return 0; |
| 831 | 831 | ||
| 832 | ring_funcs = kzalloc_obj(*ring_funcs, GFP_KERNEL); | 832 | ring_funcs = kzalloc_obj(*ring_funcs); |
| 833 | if (!ring_funcs) | 833 | if (!ring_funcs) |
| 834 | return -ENOMEM; | 834 | return -ENOMEM; |
| 835 | 835 | ||
| 836 | ring = kzalloc_obj(*ring, GFP_KERNEL); | 836 | ring = kzalloc_obj(*ring); |
| 837 | if (!ring) { | 837 | if (!ring) { |
| 838 | r = -ENOMEM; | 838 | r = -ENOMEM; |
| 839 | goto free_ring_funcs; | 839 | goto free_ring_funcs; |
| @@ -199,7 +199,7 @@ int kgd_arcturus_hqd_sdma_dump(struct amdgpu_device *adev, · 198 unmodified lines | |||
| 199 | #undef HQD_N_REGS | 199 | #undef HQD_N_REGS |
| 200 | #define HQD_N_REGS (19+6+7+10) | 200 | #define HQD_N_REGS (19+6+7+10) |
| 201 | 201 | ||
| 202 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 202 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 203 | if (*dump == NULL) | 203 | if (*dump == NULL) |
| 204 | return -ENOMEM; | 204 | return -ENOMEM; |
| 205 | 205 | ||
| @@ -67,7 +67,7 @@ struct amdgpu_amdkfd_fence *amdgpu_amdkfd_fence_create(u64 context, · 66 unmodified lines | |||
| 67 | { | 67 | { |
| 68 | struct amdgpu_amdkfd_fence *fence; | 68 | struct amdgpu_amdkfd_fence *fence; |
| 69 | 69 | ||
| 70 | fence = kzalloc_obj(*fence, GFP_KERNEL); | 70 | fence = kzalloc_obj(*fence); |
| 71 | if (fence == NULL) | 71 | if (fence == NULL) |
| 72 | return NULL; | 72 | return NULL; |
| 73 | 73 | ||
| @@ -141,7 +141,7 @@ static int kgd_gfx_v9_4_3_hqd_sdma_dump(struct amdgpu_device *adev, · 140 unmodified lines | |||
| 141 | (*dump)[i++][1] = RREG32(addr); \ | 141 | (*dump)[i++][1] = RREG32(addr); \ |
| 142 | } while (0) | 142 | } while (0) |
| 143 | 143 | ||
| 144 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 144 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 145 | if (*dump == NULL) | 145 | if (*dump == NULL) |
| 146 | return -ENOMEM; | 146 | return -ENOMEM; |
| 147 | 147 | ||
| @@ -352,7 +352,7 @@ static int kgd_hqd_dump(struct amdgpu_device *adev, · 351 unmodified lines | |||
| 352 | (*dump)[i++][1] = RREG32_SOC15_IP(GC, addr); \ | 352 | (*dump)[i++][1] = RREG32_SOC15_IP(GC, addr); \ |
| 353 | } while (0) | 353 | } while (0) |
| 354 | 354 | ||
| 355 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 355 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 356 | if (*dump == NULL) | 356 | if (*dump == NULL) |
| 357 | return -ENOMEM; | 357 | return -ENOMEM; |
| 358 | 358 | ||
| @@ -449,7 +449,7 @@ static int kgd_hqd_sdma_dump(struct amdgpu_device *adev, · 90 unmodified lines | |||
| 449 | #undef HQD_N_REGS | 449 | #undef HQD_N_REGS |
| 450 | #define HQD_N_REGS (19+6+7+10) | 450 | #define HQD_N_REGS (19+6+7+10) |
| 451 | 451 | ||
| 452 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 452 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 453 | if (*dump == NULL) | 453 | if (*dump == NULL) |
| 454 | return -ENOMEM; | 454 | return -ENOMEM; |
| 455 | 455 | ||
| @@ -338,7 +338,7 @@ static int hqd_dump_v10_3(struct amdgpu_device *adev, · 337 unmodified lines | |||
| 338 | (*dump)[i++][1] = RREG32_SOC15_IP(GC, addr); \ | 338 | (*dump)[i++][1] = RREG32_SOC15_IP(GC, addr); \ |
| 339 | } while (0) | 339 | } while (0) |
| 340 | 340 | ||
| 341 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 341 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 342 | if (*dump == NULL) | 342 | if (*dump == NULL) |
| 343 | return -ENOMEM; | 343 | return -ENOMEM; |
| 344 | 344 | ||
| @@ -435,7 +435,7 @@ static int hqd_sdma_dump_v10_3(struct amdgpu_device *adev, · 90 unmodified lines | |||
| 435 | #undef HQD_N_REGS | 435 | #undef HQD_N_REGS |
| 436 | #define HQD_N_REGS (19+6+7+12) | 436 | #define HQD_N_REGS (19+6+7+12) |
| 437 | 437 | ||
| 438 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 438 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 439 | if (*dump == NULL) | 439 | if (*dump == NULL) |
| 440 | return -ENOMEM; | 440 | return -ENOMEM; |
| 441 | 441 | ||
| @@ -323,7 +323,7 @@ static int hqd_dump_v11(struct amdgpu_device *adev, · 322 unmodified lines | |||
| 323 | (*dump)[i++][1] = RREG32(addr); \ | 323 | (*dump)[i++][1] = RREG32(addr); \ |
| 324 | } while (0) | 324 | } while (0) |
| 325 | 325 | ||
| 326 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 326 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 327 | if (*dump == NULL) | 327 | if (*dump == NULL) |
| 328 | return -ENOMEM; | 328 | return -ENOMEM; |
| 329 | 329 | ||
| @@ -420,7 +420,7 @@ static int hqd_sdma_dump_v11(struct amdgpu_device *adev, · 90 unmodified lines | |||
| 420 | #undef HQD_N_REGS | 420 | #undef HQD_N_REGS |
| 421 | #define HQD_N_REGS (7+11+1+12+12) | 421 | #define HQD_N_REGS (7+11+1+12+12) |
| 422 | 422 | ||
| 423 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 423 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 424 | if (*dump == NULL) | 424 | if (*dump == NULL) |
| 425 | return -ENOMEM; | 425 | return -ENOMEM; |
| 426 | 426 | ||
| @@ -115,7 +115,7 @@ static int hqd_dump_v12(struct amdgpu_device *adev, · 114 unmodified lines | |||
| 115 | (*dump)[i++][1] = RREG32(addr); \ | 115 | (*dump)[i++][1] = RREG32(addr); \ |
| 116 | } while (0) | 116 | } while (0) |
| 117 | 117 | ||
| 118 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 118 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 119 | if (*dump == NULL) | 119 | if (*dump == NULL) |
| 120 | return -ENOMEM; | 120 | return -ENOMEM; |
| 121 | 121 | ||
| @@ -146,7 +146,7 @@ static int hqd_sdma_dump_v12(struct amdgpu_device *adev, · 24 unmodified lines | |||
| 146 | #undef HQD_N_REGS | 146 | #undef HQD_N_REGS |
| 147 | #define HQD_N_REGS (last_reg - first_reg + 1) | 147 | #define HQD_N_REGS (last_reg - first_reg + 1) |
| 148 | 148 | ||
| 149 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 149 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 150 | if (*dump == NULL) | 150 | if (*dump == NULL) |
| 151 | return -ENOMEM; | 151 | return -ENOMEM; |
| 152 | 152 | ||
| @@ -214,7 +214,7 @@ static int kgd_hqd_dump(struct amdgpu_device *adev, · 213 unmodified lines | |||
| 214 | (*dump)[i++][1] = RREG32(addr); \ | 214 | (*dump)[i++][1] = RREG32(addr); \ |
| 215 | } while (0) | 215 | } while (0) |
| 216 | 216 | ||
| 217 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 217 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 218 | if (*dump == NULL) | 218 | if (*dump == NULL) |
| 219 | return -ENOMEM; | 219 | return -ENOMEM; |
| 220 | 220 | ||
| @@ -301,7 +301,7 @@ static int kgd_hqd_sdma_dump(struct amdgpu_device *adev, · 80 unmodified lines | |||
| 301 | #undef HQD_N_REGS | 301 | #undef HQD_N_REGS |
| 302 | #define HQD_N_REGS (19+4) | 302 | #define HQD_N_REGS (19+4) |
| 303 | 303 | ||
| 304 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 304 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 305 | if (*dump == NULL) | 305 | if (*dump == NULL) |
| 306 | return -ENOMEM; | 306 | return -ENOMEM; |
| 307 | 307 | ||
| @@ -238,7 +238,7 @@ static int kgd_hqd_dump(struct amdgpu_device *adev, · 237 unmodified lines | |||
| 238 | (*dump)[i++][1] = RREG32(addr); \ | 238 | (*dump)[i++][1] = RREG32(addr); \ |
| 239 | } while (0) | 239 | } while (0) |
| 240 | 240 | ||
| 241 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 241 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 242 | if (*dump == NULL) | 242 | if (*dump == NULL) |
| 243 | return -ENOMEM; | 243 | return -ENOMEM; |
| 244 | 244 | ||
| @@ -324,7 +324,7 @@ static int kgd_hqd_sdma_dump(struct amdgpu_device *adev, · 79 unmodified lines | |||
| 324 | #undef HQD_N_REGS | 324 | #undef HQD_N_REGS |
| 325 | #define HQD_N_REGS (19+4+2+3+7) | 325 | #define HQD_N_REGS (19+4+2+3+7) |
| 326 | 326 | ||
| 327 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 327 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 328 | if (*dump == NULL) | 328 | if (*dump == NULL) |
| 329 | return -ENOMEM; | 329 | return -ENOMEM; |
| 330 | 330 | ||
| @@ -363,7 +363,7 @@ int kgd_gfx_v9_hqd_dump(struct amdgpu_device *adev, · 362 unmodified lines | |||
| 363 | (*dump)[i++][1] = RREG32(addr); \ | 363 | (*dump)[i++][1] = RREG32(addr); \ |
| 364 | } while (0) | 364 | } while (0) |
| 365 | 365 | ||
| 366 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 366 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 367 | if (*dump == NULL) | 367 | if (*dump == NULL) |
| 368 | return -ENOMEM; | 368 | return -ENOMEM; |
| 369 | 369 | ||
| @@ -460,7 +460,7 @@ static int kgd_hqd_sdma_dump(struct amdgpu_device *adev, · 90 unmodified lines | |||
| 460 | #undef HQD_N_REGS | 460 | #undef HQD_N_REGS |
| 461 | #define HQD_N_REGS (19+6+7+10) | 461 | #define HQD_N_REGS (19+6+7+10) |
| 462 | 462 | ||
| 463 | *dump = kmalloc_objs(**dump, HQD_N_REGS, GFP_KERNEL); | 463 | *dump = kmalloc_objs(**dump, HQD_N_REGS); |
| 464 | if (*dump == NULL) | 464 | if (*dump == NULL) |
| 465 | return -ENOMEM; | 465 | return -ENOMEM; |
| 466 | 466 | ||
| @@ -540,7 +540,7 @@ static uint64_t get_pte_flags(struct amdgpu_device *adev, struct amdgpu_vm *vm, · 539 unmodified lines | |||
| 540 | */ | 540 | */ |
| 541 | static struct sg_table *create_sg_table(uint64_t addr, uint32_t size) | 541 | static struct sg_table *create_sg_table(uint64_t addr, uint32_t size) |
| 542 | { | 542 | { |
| 543 | struct sg_table *sg = kmalloc_obj(*sg, GFP_KERNEL); | 543 | struct sg_table *sg = kmalloc_obj(*sg); |
| 544 | 544 | ||
| 545 | if (!sg) | 545 | if (!sg) |
| 546 | return NULL; | 546 | return NULL; |
| @@ -573,7 +573,7 @@ kfd_mem_dmamap_userptr(struct kgd_mem *mem, · 26 unmodified lines | |||
| 573 | if (WARN_ON(ttm->num_pages != src_ttm->num_pages)) | 573 | if (WARN_ON(ttm->num_pages != src_ttm->num_pages)) |
| 574 | return -EINVAL; | 574 | return -EINVAL; |
| 575 | 575 | ||
| 576 | ttm->sg = kmalloc_obj(*ttm->sg, GFP_KERNEL); | 576 | ttm->sg = kmalloc_obj(*ttm->sg); |
| 577 | if (unlikely(!ttm->sg)) | 577 | if (unlikely(!ttm->sg)) |
| 578 | return -ENOMEM; | 578 | return -ENOMEM; |
| 579 | 579 | ||
| @@ -1409,7 +1409,7 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info, · 829 unmodified lines | |||
| 1409 | 1409 | ||
| 1410 | process = container_of(process_info, struct kfd_process, kgd_process_info); | 1410 | process = container_of(process_info, struct kfd_process, kgd_process_info); |
| 1411 | if (!*process_info) { | 1411 | if (!*process_info) { |
| 1412 | info = kzalloc_obj(*info, GFP_KERNEL); | 1412 | info = kzalloc_obj(*info); |
| 1413 | if (!info) | 1413 | if (!info) |
| 1414 | return -ENOMEM; | 1414 | return -ENOMEM; |
| 1415 | 1415 | ||
| @@ -1773,7 +1773,7 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu( · 357 unmodified lines | |||
| 1773 | if (flags & KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED) | 1773 | if (flags & KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED) |
| 1774 | alloc_flags |= AMDGPU_GEM_CREATE_UNCACHED; | 1774 | alloc_flags |= AMDGPU_GEM_CREATE_UNCACHED; |
| 1775 | 1775 | ||
| 1776 | *mem = kzalloc_obj(struct kgd_mem, GFP_KERNEL); | 1776 | *mem = kzalloc_obj(struct kgd_mem); |
| 1777 | if (!*mem) { | 1777 | if (!*mem) { |
| 1778 | ret = -ENOMEM; | 1778 | ret = -ENOMEM; |
| 1779 | goto err; | 1779 | goto err; |
| @@ -2374,7 +2374,7 @@ static int import_obj_create(struct amdgpu_device *adev, · 594 unmodified lines | |||
| 2374 | /* Only VRAM and GTT BOs are supported */ | 2374 | /* Only VRAM and GTT BOs are supported */ |
| 2375 | return -EINVAL; | 2375 | return -EINVAL; |
| 2376 | 2376 | ||
| 2377 | *mem = kzalloc_obj(struct kgd_mem, GFP_KERNEL); | 2377 | *mem = kzalloc_obj(struct kgd_mem); |
| 2378 | if (!*mem) | 2378 | if (!*mem) |
| 2379 | return -ENOMEM; | 2379 | return -ENOMEM; |
| 2380 | 2380 | ||
| @@ -3129,7 +3129,7 @@ int amdgpu_amdkfd_add_gws_to_process(void *info, void *gws, struct kgd_mem **mem · 748 unmodified lines | |||
| 3129 | if (!info || !gws) | 3129 | if (!info || !gws) |
| 3130 | return -EINVAL; | 3130 | return -EINVAL; |
| 3131 | 3131 | ||
| 3132 | *mem = kzalloc_obj(struct kgd_mem, GFP_KERNEL); | 3132 | *mem = kzalloc_obj(struct kgd_mem); |
| 3133 | if (!*mem) | 3133 | if (!*mem) |
| 3134 | return -ENOMEM; | 3134 | return -ENOMEM; |
| 3135 | 3135 | ||
| @@ -1897,7 +1897,7 @@ void amdgpu_atombios_fini(struct amdgpu_device *adev) · 1896 unmodified lines | |||
| 1897 | int amdgpu_atombios_init(struct amdgpu_device *adev) | 1897 | int amdgpu_atombios_init(struct amdgpu_device *adev) |
| 1898 | { | 1898 | { |
| 1899 | struct card_info *atom_card_info = | 1899 | struct card_info *atom_card_info = |
| 1900 | kzalloc_obj(struct card_info, GFP_KERNEL); | 1900 | kzalloc_obj(struct card_info); |
| 1901 | 1901 | ||
| 1902 | if (!atom_card_info) | 1902 | if (!atom_card_info) |
| 1903 | return -ENOMEM; | 1903 | return -ENOMEM; |
| @@ -1652,7 +1652,7 @@ amdgpu_connector_add(struct amdgpu_device *adev, · 1651 unmodified lines | |||
| 1652 | } | 1652 | } |
| 1653 | } | 1653 | } |
| 1654 | 1654 | ||
| 1655 | amdgpu_connector = kzalloc_obj(struct amdgpu_connector, GFP_KERNEL); | 1655 | amdgpu_connector = kzalloc_obj(struct amdgpu_connector); |
| 1656 | if (!amdgpu_connector) | 1656 | if (!amdgpu_connector) |
| 1657 | return; | 1657 | return; |
| 1658 | 1658 | ||
| @@ -523,7 +523,7 @@ static int amdgpu_cs_p2_syncobj_out(struct amdgpu_cs_parser *p, · 522 unmodified lines | |||
| 523 | if (p->post_deps) | 523 | if (p->post_deps) |
| 524 | return -EINVAL; | 524 | return -EINVAL; |
| 525 | 525 | ||
| 526 | p->post_deps = kmalloc_objs(*p->post_deps, num_deps, GFP_KERNEL); | 526 | p->post_deps = kmalloc_objs(*p->post_deps, num_deps); |
| 527 | p->num_post_deps = 0; | 527 | p->num_post_deps = 0; |
| 528 | 528 | ||
| 529 | if (!p->post_deps) | 529 | if (!p->post_deps) |
| @@ -556,7 +556,7 @@ static int amdgpu_cs_p2_syncobj_timeline_signal(struct amdgpu_cs_parser *p, · 26 unmodified lines | |||
| 556 | if (p->post_deps) | 556 | if (p->post_deps) |
| 557 | return -EINVAL; | 557 | return -EINVAL; |
| 558 | 558 | ||
| 559 | p->post_deps = kmalloc_objs(*p->post_deps, num_deps, GFP_KERNEL); | 559 | p->post_deps = kmalloc_objs(*p->post_deps, num_deps); |
| 560 | p->num_post_deps = 0; | 560 | p->num_post_deps = 0; |
| 561 | 561 | ||
| 562 | if (!p->post_deps) | 562 | if (!p->post_deps) |
| @@ -1689,7 +1689,7 @@ static int amdgpu_cs_wait_any_fence(struct amdgpu_device *adev, · 1126 unmodified lines | |||
| 1689 | long r; | 1689 | long r; |
| 1690 | 1690 | ||
| 1691 | /* Prepare the fence array */ | 1691 | /* Prepare the fence array */ |
| 1692 | array = kzalloc_objs(struct dma_fence *, fence_count, GFP_KERNEL); | 1692 | array = kzalloc_objs(struct dma_fence *, fence_count); |
| 1693 | 1693 | ||
| 1694 | if (array == NULL) | 1694 | if (array == NULL) |
| 1695 | return -ENOMEM; | 1695 | return -ENOMEM; |
| @@ -482,7 +482,7 @@ static int amdgpu_ctx_alloc(struct amdgpu_device *adev, · 481 unmodified lines | |||
| 482 | struct amdgpu_ctx *ctx; | 482 | struct amdgpu_ctx *ctx; |
| 483 | int r; | 483 | int r; |
| 484 | 484 | ||
| 485 | ctx = kmalloc_obj(*ctx, GFP_KERNEL); | 485 | ctx = kmalloc_obj(*ctx); |
| 486 | if (!ctx) | 486 | if (!ctx) |
| 487 | return -ENOMEM; | 487 | return -ENOMEM; |
| 488 | 488 | ||
| @@ -206,7 +206,7 @@ static int amdgpu_debugfs_regs2_open(struct inode *inode, struct file *file) · 205 unmodified lines | |||
| 206 | { | 206 | { |
| 207 | struct amdgpu_debugfs_regs2_data *rd; | 207 | struct amdgpu_debugfs_regs2_data *rd; |
| 208 | 208 | ||
| 209 | rd = kzalloc_obj(*rd, GFP_KERNEL); | 209 | rd = kzalloc_obj(*rd); |
| 210 | if (!rd) | 210 | if (!rd) |
| 211 | return -ENOMEM; | 211 | return -ENOMEM; |
| 212 | rd->adev = file_inode(file)->i_private; | 212 | rd->adev = file_inode(file)->i_private; |
| @@ -371,7 +371,7 @@ static int amdgpu_debugfs_gprwave_open(struct inode *inode, struct file *file) · 158 unmodified lines | |||
| 371 | { | 371 | { |
| 372 | struct amdgpu_debugfs_gprwave_data *rd; | 372 | struct amdgpu_debugfs_gprwave_data *rd; |
| 373 | 373 | ||
| 374 | rd = kzalloc_obj(*rd, GFP_KERNEL); | 374 | rd = kzalloc_obj(*rd); |
| 375 | if (!rd) | 375 | if (!rd) |
| 376 | return -ENOMEM; | 376 | return -ENOMEM; |
| 377 | rd->adev = file_inode(file)->i_private; | 377 | rd->adev = file_inode(file)->i_private; |
| @@ -2596,7 +2596,7 @@ out: · 2595 unmodified lines | |||
| 2596 | static void amdgpu_uid_init(struct amdgpu_device *adev) | 2596 | static void amdgpu_uid_init(struct amdgpu_device *adev) |
| 2597 | { | 2597 | { |
| 2598 | /* Initialize the UID for the device */ | 2598 | /* Initialize the UID for the device */ |
| 2599 | adev->uid_info = kzalloc_obj(struct amdgpu_uid, GFP_KERNEL); | 2599 | adev->uid_info = kzalloc_obj(struct amdgpu_uid); |
| 2600 | if (!adev->uid_info) { | 2600 | if (!adev->uid_info) { |
| 2601 | dev_warn(adev->dev, "Failed to allocate memory for UID\n"); | 2601 | dev_warn(adev->dev, "Failed to allocate memory for UID\n"); |
| 2602 | return; | 2602 | return; |
| @@ -1149,7 +1149,7 @@ static int amdgpu_discovery_sysfs_ips(struct amdgpu_device *adev, · 1148 unmodified lines | |||
| 1149 | * block if not yet registered. | 1149 | * block if not yet registered. |
| 1150 | */ | 1150 | */ |
| 1151 | if (!ip_hw_id) { | 1151 | if (!ip_hw_id) { |
| 1152 | ip_hw_id = kzalloc_obj(*ip_hw_id, GFP_KERNEL); | 1152 | ip_hw_id = kzalloc_obj(*ip_hw_id); |
| 1153 | if (!ip_hw_id) | 1153 | if (!ip_hw_id) |
| 1154 | return -ENOMEM; | 1154 | return -ENOMEM; |
| 1155 | ip_hw_id->hw_id = ii; | 1155 | ip_hw_id->hw_id = ii; |
| @@ -1255,7 +1255,7 @@ static int amdgpu_discovery_sysfs_recurse(struct amdgpu_device *adev) · 99 unmodified lines | |||
| 1255 | * amdgpu_discovery_reg_base_init(). | 1255 | * amdgpu_discovery_reg_base_init(). |
| 1256 | */ | 1256 | */ |
| 1257 | 1257 | ||
| 1258 | ip_die_entry = kzalloc_obj(*ip_die_entry, GFP_KERNEL); | 1258 | ip_die_entry = kzalloc_obj(*ip_die_entry); |
| 1259 | if (!ip_die_entry) | 1259 | if (!ip_die_entry) |
| 1260 | return -ENOMEM; | 1260 | return -ENOMEM; |
| 1261 | 1261 | ||
| @@ -1287,7 +1287,7 @@ static int amdgpu_discovery_sysfs_init(struct amdgpu_device *adev) · 25 unmodified lines | |||
| 1287 | if (!discovery_bin) | 1287 | if (!discovery_bin) |
| 1288 | return -EINVAL; | 1288 | return -EINVAL; |
| 1289 | 1289 | ||
| 1290 | ip_top = kzalloc_obj(*ip_top, GFP_KERNEL); | 1290 | ip_top = kzalloc_obj(*ip_top); |
| 1291 | if (!ip_top) | 1291 | if (!ip_top) |
| 1292 | return -ENOMEM; | 1292 | return -ENOMEM; |
| 1293 | 1293 | ||
| @@ -204,7 +204,7 @@ int amdgpu_display_crtc_page_flip_target(struct drm_crtc *crtc, · 203 unmodified lines | |||
| 204 | u64 tiling_flags; | 204 | u64 tiling_flags; |
| 205 | int i, r; | 205 | int i, r; |
| 206 | 206 | ||
| 207 | work = kzalloc_obj(*work, GFP_KERNEL); | 207 | work = kzalloc_obj(*work); |
| 208 | if (work == NULL) | 208 | if (work == NULL) |
| 209 | return -ENOMEM; | 209 | return -ENOMEM; |
| 210 | 210 | ||
| @@ -1323,7 +1323,7 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev, · 1112 unmodified lines | |||
| 1323 | return ERR_PTR(-EINVAL); | 1323 | return ERR_PTR(-EINVAL); |
| 1324 | } | 1324 | } |
| 1325 | 1325 | ||
| 1326 | amdgpu_fb = kzalloc_obj(*amdgpu_fb, GFP_KERNEL); | 1326 | amdgpu_fb = kzalloc_obj(*amdgpu_fb); |
| 1327 | if (amdgpu_fb == NULL) { | 1327 | if (amdgpu_fb == NULL) { |
| 1328 | drm_gem_object_put(obj); | 1328 | drm_gem_object_put(obj); |
| 1329 | return ERR_PTR(-ENOMEM); | 1329 | return ERR_PTR(-ENOMEM); |
| @@ -161,7 +161,7 @@ amdgpu_eviction_fence_create(struct amdgpu_eviction_fence_mgr *evf_mgr) · 160 unmodified lines | |||
| 161 | { | 161 | { |
| 162 | struct amdgpu_eviction_fence *ev_fence; | 162 | struct amdgpu_eviction_fence *ev_fence; |
| 163 | 163 | ||
| 164 | ev_fence = kzalloc_obj(*ev_fence, GFP_KERNEL); | 164 | ev_fence = kzalloc_obj(*ev_fence); |
| 165 | if (!ev_fence) | 165 | if (!ev_fence) |
| 166 | return NULL; | 166 | return NULL; |
| 167 | 167 | ||
| @@ -130,7 +130,7 @@ int amdgpu_fru_get_product_info(struct amdgpu_device *adev) · 129 unmodified lines | |||
| 130 | return 0; | 130 | return 0; |
| 131 | 131 | ||
| 132 | if (!adev->fru_info) { | 132 | if (!adev->fru_info) { |
| 133 | adev->fru_info = kzalloc_obj(*adev->fru_info, GFP_KERNEL); | 133 | adev->fru_info = kzalloc_obj(*adev->fru_info); |
| 134 | if (!adev->fru_info) | 134 | if (!adev->fru_info) |
| 135 | return -ENOMEM; | 135 | return -ENOMEM; |
| 136 | } | 136 | } |
| @@ -153,7 +153,7 @@ int amdgpu_gart_table_ram_alloc(struct amdgpu_device *adev) · 152 unmodified lines | |||
| 153 | 153 | ||
| 154 | dev_info(adev->dev, "%s dma_addr:%pad\n", __func__, &dma_addr); | 154 | dev_info(adev->dev, "%s dma_addr:%pad\n", __func__, &dma_addr); |
| 155 | /* Create SG table */ | 155 | /* Create SG table */ |
| 156 | sg = kmalloc_obj(*sg, GFP_KERNEL); | 156 | sg = kmalloc_obj(*sg); |
| 157 | if (!sg) { | 157 | if (!sg) { |
| 158 | ret = -ENOMEM; | 158 | ret = -ENOMEM; |
| 159 | goto error; | 159 | goto error; |
| @@ -1183,7 +1183,7 @@ int amdgpu_gem_list_handles_ioctl(struct drm_device *dev, void *data, · 1182 unmodified lines | |||
| 1183 | return 0; | 1183 | return 0; |
| 1184 | } | 1184 | } |
| 1185 | 1185 | ||
| 1186 | bo_entries = kvzalloc_objs(*bo_entries, num_bos, GFP_KERNEL); | 1186 | bo_entries = kvzalloc_objs(*bo_entries, num_bos); |
| 1187 | if (!bo_entries) | 1187 | if (!bo_entries) |
| 1188 | return -ENOMEM; | 1188 | return -ENOMEM; |
| 1189 | 1189 | ||
| @@ -265,7 +265,7 @@ struct amdgpu_hmm_range *amdgpu_hmm_range_alloc(struct amdgpu_bo *bo) · 264 unmodified lines | |||
| 265 | { | 265 | { |
| 266 | struct amdgpu_hmm_range *range; | 266 | struct amdgpu_hmm_range *range; |
| 267 | 267 | ||
| 268 | range = kzalloc_obj(*range, GFP_KERNEL); | 268 | range = kzalloc_obj(*range); |
| 269 | if (!range) | 269 | if (!range) |
| 270 | return NULL; | 270 | return NULL; |
| 271 | 271 | ||
| @@ -168,7 +168,7 @@ struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, · 167 unmodified lines | |||
| 168 | if (rec->mm_i2c && (amdgpu_hw_i2c == 0)) | 168 | if (rec->mm_i2c && (amdgpu_hw_i2c == 0)) |
| 169 | return NULL; | 169 | return NULL; |
| 170 | 170 | ||
| 171 | i2c = kzalloc_obj(struct amdgpu_i2c_chan, GFP_KERNEL); | 171 | i2c = kzalloc_obj(struct amdgpu_i2c_chan); |
| 172 | if (i2c == NULL) | 172 | if (i2c == NULL) |
| 173 | return NULL; | 173 | return NULL; |
| 174 | 174 | ||
| @@ -119,7 +119,7 @@ void amdgpu_pasid_free_delayed(struct dma_resv *resv, · 118 unmodified lines | |||
| 119 | return; | 119 | return; |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | cb = kmalloc_obj(*cb, GFP_KERNEL); | 122 | cb = kmalloc_obj(*cb); |
| 123 | if (!cb) { | 123 | if (!cb) { |
| 124 | /* Last resort when we are OOM */ | 124 | /* Last resort when we are OOM */ |
| 125 | dma_fence_wait(fence, false); | 125 | dma_fence_wait(fence, false); |
| @@ -448,7 +448,7 @@ int amdgpu_irq_add_id(struct amdgpu_device *adev, · 447 unmodified lines | |||
| 448 | if (source->num_types && !source->enabled_types) { | 448 | if (source->num_types && !source->enabled_types) { |
| 449 | atomic_t *types; | 449 | atomic_t *types; |
| 450 | 450 | ||
| 451 | types = kzalloc_objs(atomic_t, source->num_types, GFP_KERNEL); | 451 | types = kzalloc_objs(atomic_t, source->num_types); |
| 452 | if (!types) | 452 | if (!types) |
| 453 | return -ENOMEM; | 453 | return -ENOMEM; |
| 454 | 454 | ||
| @@ -202,14 +202,14 @@ int amdgpu_job_alloc(struct amdgpu_device *adev, struct amdgpu_vm *vm, · 201 unmodified lines | |||
| 202 | if (!*job) | 202 | if (!*job) |
| 203 | return -ENOMEM; | 203 | return -ENOMEM; |
| 204 | 204 | ||
| 205 | af = kzalloc_obj(struct amdgpu_fence, GFP_KERNEL); | 205 | af = kzalloc_obj(struct amdgpu_fence); |
| 206 | if (!af) { | 206 | if (!af) { |
| 207 | r = -ENOMEM; | 207 | r = -ENOMEM; |
| 208 | goto err_job; | 208 | goto err_job; |
| 209 | } | 209 | } |
| 210 | (*job)->hw_fence = af; | 210 | (*job)->hw_fence = af; |
| 211 | 211 | ||
| 212 | af = kzalloc_obj(struct amdgpu_fence, GFP_KERNEL); | 212 | af = kzalloc_obj(struct amdgpu_fence); |
| 213 | if (!af) { | 213 | if (!af) { |
| 214 | r = -ENOMEM; | 214 | r = -ENOMEM; |
| 215 | goto err_fence; | 215 | goto err_fence; |
| @@ -942,7 +942,7 @@ out: · 941 unmodified lines | |||
| 942 | uint64_t vm_size; | 942 | uint64_t vm_size; |
| 943 | uint32_t pcie_gen_mask, pcie_width_mask; | 943 | uint32_t pcie_gen_mask, pcie_width_mask; |
| 944 | 944 | ||
| 945 | dev_info = kzalloc_obj(*dev_info, GFP_KERNEL); | 945 | dev_info = kzalloc_obj(*dev_info); |
| 946 | if (!dev_info) | 946 | if (!dev_info) |
| 947 | return -ENOMEM; | 947 | return -ENOMEM; |
| 948 | 948 | ||
| @@ -1329,7 +1329,7 @@ out: · 380 unmodified lines | |||
| 1329 | return -EINVAL; | 1329 | return -EINVAL; |
| 1330 | } | 1330 | } |
| 1331 | 1331 | ||
| 1332 | caps = kzalloc_obj(*caps, GFP_KERNEL); | 1332 | caps = kzalloc_obj(*caps); |
| 1333 | if (!caps) | 1333 | if (!caps) |
| 1334 | return -ENOMEM; | 1334 | return -ENOMEM; |
| 1335 | 1335 | ||
| @@ -169,7 +169,7 @@ static int amdgpu_mca_bank_set_add_entry(struct mca_bank_set *mca_set, struct mc · 168 unmodified lines | |||
| 169 | if (!entry) | 169 | if (!entry) |
| 170 | return -EINVAL; | 170 | return -EINVAL; |
| 171 | 171 | ||
| 172 | node = kvzalloc_obj(*node, GFP_KERNEL); | 172 | node = kvzalloc_obj(*node); |
| 173 | if (!node) | 173 | if (!node) |
| 174 | return -ENOMEM; | 174 | return -ENOMEM; |
| 175 | 175 | ||
| @@ -446,7 +446,7 @@ static int amdgpu_pmu_alloc_pmu_attrs( · 445 unmodified lines | |||
| 446 | struct amdgpu_pmu_event_attribute **evt_attr, | 446 | struct amdgpu_pmu_event_attribute **evt_attr, |
| 447 | struct amdgpu_pmu_config *config) | 447 | struct amdgpu_pmu_config *config) |
| 448 | { | 448 | { |
| 449 | *fmt_attr = kzalloc_objs(**fmt_attr, config->num_formats, GFP_KERNEL); | 449 | *fmt_attr = kzalloc_objs(**fmt_attr, config->num_formats); |
| 450 | 450 | ||
| 451 | if (!(*fmt_attr)) | 451 | if (!(*fmt_attr)) |
| 452 | return -ENOMEM; | 452 | return -ENOMEM; |
| @@ -458,7 +458,7 @@ static int amdgpu_pmu_alloc_pmu_attrs( · 5 unmodified lines | |||
| 458 | if (!fmt_attr_group->attrs) | 458 | if (!fmt_attr_group->attrs) |
| 459 | goto err_fmt_attr_grp; | 459 | goto err_fmt_attr_grp; |
| 460 | 460 | ||
| 461 | *evt_attr = kzalloc_objs(**evt_attr, config->num_events, GFP_KERNEL); | 461 | *evt_attr = kzalloc_objs(**evt_attr, config->num_events); |
| 462 | 462 | ||
| 463 | if (!(*evt_attr)) | 463 | if (!(*evt_attr)) |
| 464 | goto err_evt_attr; | 464 | goto err_evt_attr; |
| @@ -599,7 +599,7 @@ static struct amdgpu_pmu_entry *create_pmu_entry(struct amdgpu_device *adev, · 134 unmodified lines | |||
| 599 | { | 599 | { |
| 600 | struct amdgpu_pmu_entry *pmu_entry; | 600 | struct amdgpu_pmu_entry *pmu_entry; |
| 601 | 601 | ||
| 602 | pmu_entry = kzalloc_obj(struct amdgpu_pmu_entry, GFP_KERNEL); | 602 | pmu_entry = kzalloc_obj(struct amdgpu_pmu_entry); |
| 603 | 603 | ||
| 604 | if (!pmu_entry) | 604 | if (!pmu_entry) |
| 605 | return pmu_entry; | 605 | return pmu_entry; |
| @@ -61,7 +61,7 @@ static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, · 60 unmodified lines | |||
| 61 | const struct ttm_place *place, | 61 | const struct ttm_place *place, |
| 62 | struct ttm_resource **res) | 62 | struct ttm_resource **res) |
| 63 | { | 63 | { |
| 64 | *res = kzalloc_obj(**res, GFP_KERNEL); | 64 | *res = kzalloc_obj(**res); |
| 65 | if (!*res) | 65 | if (!*res) |
| 66 | return -ENOMEM; | 66 | return -ENOMEM; |
| 67 | 67 | ||
| @@ -457,7 +457,7 @@ static int psp_sw_init(struct amdgpu_ip_block *ip_block) · 456 unmodified lines | |||
| 457 | struct psp_memory_training_context *mem_training_ctx = &psp->mem_train_ctx; | 457 | struct psp_memory_training_context *mem_training_ctx = &psp->mem_train_ctx; |
| 458 | struct psp_runtime_scpm_entry scpm_entry; | 458 | struct psp_runtime_scpm_entry scpm_entry; |
| 459 | 459 | ||
| 460 | psp->cmd = kzalloc_obj(struct psp_gfx_cmd_resp, GFP_KERNEL); | 460 | psp->cmd = kzalloc_obj(struct psp_gfx_cmd_resp); |
| 461 | if (!psp->cmd) { | 461 | if (!psp->cmd) { |
| 462 | dev_err(adev->dev, "Failed to allocate memory to command buffer!\n"); | 462 | dev_err(adev->dev, "Failed to allocate memory to command buffer!\n"); |
| 463 | return -ENOMEM; | 463 | return -ENOMEM; |
| @@ -4384,7 +4384,7 @@ static int psp_read_spirom_debugfs_open(struct inode *inode, struct file *filp) · 3920 unmodified lines | |||
| 4384 | return -EBUSY; | 4384 | return -EBUSY; |
| 4385 | } | 4385 | } |
| 4386 | 4386 | ||
| 4387 | bo_triplet = kzalloc_obj(struct spirom_bo, GFP_KERNEL); | 4387 | bo_triplet = kzalloc_obj(struct spirom_bo); |
| 4388 | if (!bo_triplet) { | 4388 | if (!bo_triplet) { |
| 4389 | mutex_unlock(&adev->psp.mutex); | 4389 | mutex_unlock(&adev->psp.mutex); |
| 4390 | return -ENOMEM; | 4390 | return -ENOMEM; |
| @@ -891,7 +891,7 @@ int amdgpu_ras_feature_enable(struct amdgpu_device *adev, · 890 unmodified lines | |||
| 891 | if (head->block == AMDGPU_RAS_BLOCK__GFX && | 891 | if (head->block == AMDGPU_RAS_BLOCK__GFX && |
| 892 | !amdgpu_sriov_vf(adev) && | 892 | !amdgpu_sriov_vf(adev) && |
| 893 | !amdgpu_ras_intr_triggered()) { | 893 | !amdgpu_ras_intr_triggered()) { |
| 894 | info = kzalloc_obj(union ta_ras_cmd_input, GFP_KERNEL); | 894 | info = kzalloc_obj(union ta_ras_cmd_input); |
| 895 | if (!info) | 895 | if (!info) |
| 896 | return -ENOMEM; | 896 | return -ENOMEM; |
| 897 | 897 | ||
| @@ -1904,7 +1904,7 @@ static ssize_t amdgpu_ras_sysfs_badpages_read(struct file *f, · 1006 unmodified lines | |||
| 1904 | memset(buf, 0, count); | 1904 | memset(buf, 0, count); |
| 1905 | 1905 | ||
| 1906 | bps_count = end - start; | 1906 | bps_count = end - start; |
| 1907 | bps = kmalloc_objs(*bps, bps_count, GFP_KERNEL); | 1907 | bps = kmalloc_objs(*bps, bps_count); |
| 1908 | if (!bps) | 1908 | if (!bps) |
| 1909 | return 0; | 1909 | return 0; |
| 1910 | 1910 | ||
| @@ -2811,7 +2811,7 @@ static int amdgpu_uniras_badpages_read(struct amdgpu_device *adev, · 900 unmodified lines | |||
| 2811 | if (!bps || !count) | 2811 | if (!bps || !count) |
| 2812 | return -EINVAL; | 2812 | return -EINVAL; |
| 2813 | 2813 | ||
| 2814 | output = kmalloc_obj(*output, GFP_KERNEL); | 2814 | output = kmalloc_obj(*output); |
| 2815 | if (!output) | 2815 | if (!output) |
| 2816 | return -ENOMEM; | 2816 | return -ENOMEM; |
| 2817 | 2817 | ||
| @@ -2991,7 +2991,7 @@ static int amdgpu_ras_realloc_eh_data_space(struct amdgpu_device *adev, · 173 unmodified lines | |||
| 2991 | unsigned int old_space = data->count + data->space_left; | 2991 | unsigned int old_space = data->count + data->space_left; |
| 2992 | unsigned int new_space = old_space + pages; | 2992 | unsigned int new_space = old_space + pages; |
| 2993 | unsigned int align_space = ALIGN(new_space, 512); | 2993 | unsigned int align_space = ALIGN(new_space, 512); |
| 2994 | void *bps = kmalloc_objs(*data->bps, align_space, GFP_KERNEL); | 2994 | void *bps = kmalloc_objs(*data->bps, align_space); |
| 2995 | 2995 | ||
| 2996 | if (!bps) { | 2996 | if (!bps) { |
| 2997 | return -ENOMEM; | 2997 | return -ENOMEM; |
| @@ -3375,7 +3375,7 @@ static int amdgpu_ras_load_bad_pages(struct amdgpu_device *adev) · 377 unmodified lines | |||
| 3375 | if (control->ras_num_recs == 0 || amdgpu_bad_page_threshold == 0) | 3375 | if (control->ras_num_recs == 0 || amdgpu_bad_page_threshold == 0) |
| 3376 | return 0; | 3376 | return 0; |
| 3377 | 3377 | ||
| 3378 | bps = kzalloc_objs(*bps, control->ras_num_recs, GFP_KERNEL); | 3378 | bps = kzalloc_objs(*bps, control->ras_num_recs); |
| 3379 | if (!bps) | 3379 | if (!bps) |
| 3380 | return -ENOMEM; | 3380 | return -ENOMEM; |
| 3381 | 3381 | ||
| @@ -3863,7 +3863,7 @@ int amdgpu_ras_recovery_init(struct amdgpu_device *adev, bool init_bp_info) · 481 unmodified lines | |||
| 3863 | return 0; | 3863 | return 0; |
| 3864 | 3864 | ||
| 3865 | data = &con->eh_data; | 3865 | data = &con->eh_data; |
| 3866 | *data = kzalloc_obj(**data, GFP_KERNEL); | 3866 | *data = kzalloc_obj(**data); |
| 3867 | if (!*data) { | 3867 | if (!*data) { |
| 3868 | ret = -ENOMEM; | 3868 | ret = -ENOMEM; |
| 3869 | goto out; | 3869 | goto out; |
| @@ -4499,7 +4499,7 @@ int amdgpu_ras_block_late_init(struct amdgpu_device *adev, · 629 unmodified lines | |||
| 4499 | 4499 | ||
| 4500 | /* Those are the cached values at init. | 4500 | /* Those are the cached values at init. |
| 4501 | */ | 4501 | */ |
| 4502 | query_info = kzalloc_obj(*query_info, GFP_KERNEL); | 4502 | query_info = kzalloc_obj(*query_info); |
| 4503 | if (!query_info) | 4503 | if (!query_info) |
| 4504 | return -ENOMEM; | 4504 | return -ENOMEM; |
| 4505 | memcpy(&query_info->head, ras_block, sizeof(struct ras_common_if)); | 4505 | memcpy(&query_info->head, ras_block, sizeof(struct ras_common_if)); |
| @@ -5188,7 +5188,7 @@ int amdgpu_ras_register_ras_block(struct amdgpu_device *adev, · 682 unmodified lines | |||
| 5188 | if (!adev || !ras_block_obj) | 5188 | if (!adev || !ras_block_obj) |
| 5189 | return -EINVAL; | 5189 | return -EINVAL; |
| 5190 | 5190 | ||
| 5191 | ras_node = kzalloc_obj(*ras_node, GFP_KERNEL); | 5191 | ras_node = kzalloc_obj(*ras_node); |
| 5192 | if (!ras_node) | 5192 | if (!ras_node) |
| 5193 | return -ENOMEM; | 5193 | return -ENOMEM; |
| 5194 | 5194 | ||
| @@ -5389,7 +5389,7 @@ static struct ras_err_node *amdgpu_ras_error_node_new(void) · 194 unmodified lines | |||
| 5389 | { | 5389 | { |
| 5390 | struct ras_err_node *err_node; | 5390 | struct ras_err_node *err_node; |
| 5391 | 5391 | ||
| 5392 | err_node = kvzalloc_obj(*err_node, GFP_KERNEL); | 5392 | err_node = kvzalloc_obj(*err_node); |
| 5393 | if (!err_node) | 5393 | if (!err_node) |
| 5394 | return NULL; | 5394 | return NULL; |
| 5395 | 5395 | ||
| @@ -5682,7 +5682,7 @@ int amdgpu_ras_add_critical_region(struct amdgpu_device *adev, · 286 unmodified lines | |||
| 5682 | 5682 | ||
| 5683 | /* Record new critical amdgpu bo */ | 5683 | /* Record new critical amdgpu bo */ |
| 5684 | list_for_each_entry(block, &vres->blocks, link) { | 5684 | list_for_each_entry(block, &vres->blocks, link) { |
| 5685 | region = kzalloc_obj(*region, GFP_KERNEL); | 5685 | region = kzalloc_obj(*region); |
| 5686 | if (!region) { | 5686 | if (!region) { |
| 5687 | ret = -ENOMEM; | 5687 | ret = -ENOMEM; |
| 5688 | goto out; | 5688 | goto out; |
| @@ -276,7 +276,7 @@ struct amdgpu_reset_domain *amdgpu_reset_create_reset_domain(enum amdgpu_reset_d · 275 unmodified lines | |||
| 276 | { | 276 | { |
| 277 | struct amdgpu_reset_domain *reset_domain; | 277 | struct amdgpu_reset_domain *reset_domain; |
| 278 | 278 | ||
| 279 | reset_domain = kvzalloc_obj(struct amdgpu_reset_domain, GFP_KERNEL); | 279 | reset_domain = kvzalloc_obj(struct amdgpu_reset_domain); |
| 280 | if (!reset_domain) { | 280 | if (!reset_domain) { |
| 281 | DRM_ERROR("Failed to allocate amdgpu_reset_domain!"); | 281 | DRM_ERROR("Failed to allocate amdgpu_reset_domain!"); |
| 282 | return NULL; | 282 | return NULL; |
| @@ -507,13 +507,13 @@ static ssize_t amdgpu_ras_cper_debugfs_read(struct file *f, char __user *buf, · 506 unmodified lines | |||
| 507 | const uint8_t ring_header_size = 12; | 507 | const uint8_t ring_header_size = 12; |
| 508 | struct amdgpu_ring *ring = file_inode(f)->i_private; | 508 | struct amdgpu_ring *ring = file_inode(f)->i_private; |
| 509 | struct ras_cmd_cper_snapshot_req *snapshot_req __free(kfree) = | 509 | struct ras_cmd_cper_snapshot_req *snapshot_req __free(kfree) = |
| 510 | kzalloc_obj(struct ras_cmd_cper_snapshot_req, GFP_KERNEL); | 510 | kzalloc_obj(struct ras_cmd_cper_snapshot_req); |
| 511 | struct ras_cmd_cper_snapshot_rsp *snapshot_rsp __free(kfree) = | 511 | struct ras_cmd_cper_snapshot_rsp *snapshot_rsp __free(kfree) = |
| 512 | kzalloc_obj(struct ras_cmd_cper_snapshot_rsp, GFP_KERNEL); | 512 | kzalloc_obj(struct ras_cmd_cper_snapshot_rsp); |
| 513 | struct ras_cmd_cper_record_req *record_req __free(kfree) = | 513 | struct ras_cmd_cper_record_req *record_req __free(kfree) = |
| 514 | kzalloc_obj(struct ras_cmd_cper_record_req, GFP_KERNEL); | 514 | kzalloc_obj(struct ras_cmd_cper_record_req); |
| 515 | struct ras_cmd_cper_record_rsp *record_rsp __free(kfree) = | 515 | struct ras_cmd_cper_record_rsp *record_rsp __free(kfree) = |
| 516 | kzalloc_obj(struct ras_cmd_cper_record_rsp, GFP_KERNEL); | 516 | kzalloc_obj(struct ras_cmd_cper_record_rsp); |
| 517 | uint8_t *ring_header __free(kfree) = | 517 | uint8_t *ring_header __free(kfree) = |
| 518 | kzalloc(ring_header_size, GFP_KERNEL); | 518 | kzalloc(ring_header_size, GFP_KERNEL); |
| 519 | uint32_t total_cper_num; | 519 | uint32_t total_cper_num; |
| @@ -1122,7 +1122,7 @@ int amdgpu_ttm_mmio_remap_alloc_sgt(struct amdgpu_device *adev, · 1121 unmodified lines | |||
| 1122 | phys = adev->rmmio_remap.bus_addr + cur.start; | 1122 | phys = adev->rmmio_remap.bus_addr + cur.start; |
| 1123 | 1123 | ||
| 1124 | /* Build a single-entry sg_table mapped as I/O (no struct page backing). */ | 1124 | /* Build a single-entry sg_table mapped as I/O (no struct page backing). */ |
| 1125 | *sgt = kzalloc_obj(**sgt, GFP_KERNEL); | 1125 | *sgt = kzalloc_obj(**sgt); |
| 1126 | if (!*sgt) | 1126 | if (!*sgt) |
| 1127 | return -ENOMEM; | 1127 | return -ENOMEM; |
| 1128 | r = sg_alloc_table(*sgt, 1, GFP_KERNEL); | 1128 | r = sg_alloc_table(*sgt, 1, GFP_KERNEL); |
| @@ -1172,7 +1172,7 @@ static struct ttm_tt *amdgpu_ttm_tt_create(struct ttm_buffer_object *bo, · 43 unmodified lines | |||
| 1172 | struct amdgpu_ttm_tt *gtt; | 1172 | struct amdgpu_ttm_tt *gtt; |
| 1173 | enum ttm_caching caching; | 1173 | enum ttm_caching caching; |
| 1174 | 1174 | ||
| 1175 | gtt = kzalloc_obj(struct amdgpu_ttm_tt, GFP_KERNEL); | 1175 | gtt = kzalloc_obj(struct amdgpu_ttm_tt); |
| 1176 | if (!gtt) | 1176 | if (!gtt) |
| 1177 | return NULL; | 1177 | return NULL; |
| 1178 | 1178 | ||
| @@ -1213,7 +1213,7 @@ static int amdgpu_ttm_tt_populate(struct ttm_device *bdev, · 34 unmodified lines | |||
| 1213 | 1213 | ||
| 1214 | /* user pages are bound by amdgpu_ttm_tt_pin_userptr() */ | 1214 | /* user pages are bound by amdgpu_ttm_tt_pin_userptr() */ |
| 1215 | if (gtt->userptr) { | 1215 | if (gtt->userptr) { |
| 1216 | ttm->sg = kzalloc_obj(struct sg_table, GFP_KERNEL); | 1216 | ttm->sg = kzalloc_obj(struct sg_table); |
| 1217 | if (!ttm->sg) | 1217 | if (!ttm->sg) |
| 1218 | return -ENOMEM; | 1218 | return -ENOMEM; |
| 1219 | return 0; | 1219 | return 0; |
| @@ -217,7 +217,7 @@ static int amdgpu_userq_buffer_va_list_add(struct amdgpu_usermode_queue *queue, · 216 unmodified lines | |||
| 217 | struct amdgpu_userq_va_cursor *va_cursor; | 217 | struct amdgpu_userq_va_cursor *va_cursor; |
| 218 | struct userq_va_list; | 218 | struct userq_va_list; |
| 219 | 219 | ||
| 220 | va_cursor = kzalloc_obj(*va_cursor, GFP_KERNEL); | 220 | va_cursor = kzalloc_obj(*va_cursor); |
| 221 | if (!va_cursor) | 221 | if (!va_cursor) |
| 222 | return -ENOMEM; | 222 | return -ENOMEM; |
| 223 | 223 | ||
| @@ -781,7 +781,7 @@ amdgpu_userq_create(struct drm_file *filp, union drm_amdgpu_userq *args) · 557 unmodified lines | |||
| 781 | goto unlock; | 781 | goto unlock; |
| 782 | } | 782 | } |
| 783 | 783 | ||
| 784 | queue = kzalloc_obj(struct amdgpu_usermode_queue, GFP_KERNEL); | 784 | queue = kzalloc_obj(struct amdgpu_usermode_queue); |
| 785 | if (!queue) { | 785 | if (!queue) { |
| 786 | drm_file_err(uq_mgr->file, "Failed to allocate memory for queue\n"); | 786 | drm_file_err(uq_mgr->file, "Failed to allocate memory for queue\n"); |
| 787 | r = -ENOMEM; | 787 | r = -ENOMEM; |
| @@ -82,7 +82,7 @@ int amdgpu_userq_fence_driver_alloc(struct amdgpu_device *adev, · 81 unmodified lines | |||
| 82 | unsigned long flags; | 82 | unsigned long flags; |
| 83 | int r; | 83 | int r; |
| 84 | 84 | ||
| 85 | fence_drv = kzalloc_obj(*fence_drv, GFP_KERNEL); | 85 | fence_drv = kzalloc_obj(*fence_drv); |
| 86 | if (!fence_drv) | 86 | if (!fence_drv) |
| 87 | return -ENOMEM; | 87 | return -ENOMEM; |
| 88 | 88 | ||
| @@ -294,15 +294,15 @@ static int amdgpu_virt_init_ras_err_handler_data(struct amdgpu_device *adev) · 293 unmodified lines | |||
| 294 | void *bps = NULL; | 294 | void *bps = NULL; |
| 295 | struct amdgpu_bo **bps_bo = NULL; | 295 | struct amdgpu_bo **bps_bo = NULL; |
| 296 | 296 | ||
| 297 | *data = kmalloc_obj(struct amdgpu_virt_ras_err_handler_data, GFP_KERNEL); | 297 | *data = kmalloc_obj(struct amdgpu_virt_ras_err_handler_data); |
| 298 | if (!*data) | 298 | if (!*data) |
| 299 | goto data_failure; | 299 | goto data_failure; |
| 300 | 300 | ||
| 301 | bps = kmalloc_objs(*(*data)->bps, align_space, GFP_KERNEL); | 301 | bps = kmalloc_objs(*(*data)->bps, align_space); |
| 302 | if (!bps) | 302 | if (!bps) |
| 303 | goto bps_failure; | 303 | goto bps_failure; |
| 304 | 304 | ||
| 305 | bps_bo = kmalloc_objs(*(*data)->bps_bo, align_space, GFP_KERNEL); | 305 | bps_bo = kmalloc_objs(*(*data)->bps_bo, align_space); |
| 306 | if (!bps_bo) | 306 | if (!bps_bo) |
| 307 | goto bps_bo_failure; | 307 | goto bps_bo_failure; |
| 308 | 308 | ||
| @@ -411,7 +411,7 @@ static struct drm_plane *amdgpu_vkms_plane_init(struct drm_device *dev, · 410 unmodified lines | |||
| 411 | struct drm_plane *plane; | 411 | struct drm_plane *plane; |
| 412 | int ret; | 412 | int ret; |
| 413 | 413 | ||
| 414 | plane = kzalloc_obj(*plane, GFP_KERNEL); | 414 | plane = kzalloc_obj(*plane); |
| 415 | if (!plane) | 415 | if (!plane) |
| 416 | return ERR_PTR(-ENOMEM); | 416 | return ERR_PTR(-ENOMEM); |
| 417 | 417 | ||
| @@ -1118,7 +1118,7 @@ int amdgpu_vm_update_range(struct amdgpu_device *adev, struct amdgpu_vm *vm, · 1117 unmodified lines | |||
| 1118 | if (!drm_dev_enter(adev_to_drm(adev), &idx)) | 1118 | if (!drm_dev_enter(adev_to_drm(adev), &idx)) |
| 1119 | return -ENODEV; | 1119 | return -ENODEV; |
| 1120 | 1120 | ||
| 1121 | tlb_cb = kmalloc_obj(*tlb_cb, GFP_KERNEL); | 1121 | tlb_cb = kmalloc_obj(*tlb_cb); |
| 1122 | if (!tlb_cb) { | 1122 | if (!tlb_cb) { |
| 1123 | drm_dev_exit(idx); | 1123 | drm_dev_exit(idx); |
| 1124 | return -ENOMEM; | 1124 | return -ENOMEM; |
| @@ -1471,7 +1471,7 @@ static void amdgpu_vm_add_prt_cb(struct amdgpu_device *adev, · 346 unmodified lines | |||
| 1471 | if (!adev->gmc.gmc_funcs->set_prt) | 1471 | if (!adev->gmc.gmc_funcs->set_prt) |
| 1472 | return; | 1472 | return; |
| 1473 | 1473 | ||
| 1474 | cb = kmalloc_obj(struct amdgpu_prt_cb, GFP_KERNEL); | 1474 | cb = kmalloc_obj(struct amdgpu_prt_cb); |
| 1475 | if (!cb) { | 1475 | if (!cb) { |
| 1476 | /* Last resort when we are OOM */ | 1476 | /* Last resort when we are OOM */ |
| 1477 | if (fence) | 1477 | if (fence) |
| @@ -1737,7 +1737,7 @@ struct amdgpu_bo_va *amdgpu_vm_bo_add(struct amdgpu_device *adev, · 259 unmodified lines | |||
| 1737 | 1737 | ||
| 1738 | amdgpu_vm_assert_locked(vm); | 1738 | amdgpu_vm_assert_locked(vm); |
| 1739 | 1739 | ||
| 1740 | bo_va = kzalloc_obj(struct amdgpu_bo_va, GFP_KERNEL); | 1740 | bo_va = kzalloc_obj(struct amdgpu_bo_va); |
| 1741 | if (bo_va == NULL) { | 1741 | if (bo_va == NULL) { |
| 1742 | return NULL; | 1742 | return NULL; |
| 1743 | } | 1743 | } |
| @@ -1866,7 +1866,7 @@ int amdgpu_vm_bo_map(struct amdgpu_device *adev, · 122 unmodified lines | |||
| 1866 | return -EINVAL; | 1866 | return -EINVAL; |
| 1867 | } | 1867 | } |
| 1868 | 1868 | ||
| 1869 | mapping = kmalloc_obj(*mapping, GFP_KERNEL); | 1869 | mapping = kmalloc_obj(*mapping); |
| 1870 | if (!mapping) | 1870 | if (!mapping) |
| 1871 | return -ENOMEM; | 1871 | return -ENOMEM; |
| 1872 | 1872 | ||
| @@ -1913,7 +1913,7 @@ int amdgpu_vm_bo_replace_map(struct amdgpu_device *adev, · 40 unmodified lines | |||
| 1913 | return r; | 1913 | return r; |
| 1914 | 1914 | ||
| 1915 | /* Allocate all the needed memory */ | 1915 | /* Allocate all the needed memory */ |
| 1916 | mapping = kmalloc_obj(*mapping, GFP_KERNEL); | 1916 | mapping = kmalloc_obj(*mapping); |
| 1917 | if (!mapping) | 1917 | if (!mapping) |
| 1918 | return -ENOMEM; | 1918 | return -ENOMEM; |
| 1919 | 1919 | ||
| @@ -2033,12 +2033,12 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev, · 113 unmodified lines | |||
| 2033 | eaddr = saddr + (size - 1) / AMDGPU_GPU_PAGE_SIZE; | 2033 | eaddr = saddr + (size - 1) / AMDGPU_GPU_PAGE_SIZE; |
| 2034 | 2034 | ||
| 2035 | /* Allocate all the needed memory */ | 2035 | /* Allocate all the needed memory */ |
| 2036 | before = kzalloc_obj(*before, GFP_KERNEL); | 2036 | before = kzalloc_obj(*before); |
| 2037 | if (!before) | 2037 | if (!before) |
| 2038 | return -ENOMEM; | 2038 | return -ENOMEM; |
| 2039 | INIT_LIST_HEAD(&before->list); | 2039 | INIT_LIST_HEAD(&before->list); |
| 2040 | 2040 | ||
| 2041 | after = kzalloc_obj(*after, GFP_KERNEL); | 2041 | after = kzalloc_obj(*after); |
| 2042 | if (!after) { | 2042 | if (!after) { |
| 2043 | kfree(before); | 2043 | kfree(before); |
| 2044 | return -ENOMEM; | 2044 | return -ENOMEM; |
| @@ -2533,7 +2533,7 @@ amdgpu_vm_get_task_info_pasid(struct amdgpu_device *adev, u32 pasid) · 488 unmodified lines | |||
| 2533 | 2533 | ||
| 2534 | static int amdgpu_vm_create_task_info(struct amdgpu_vm *vm) | 2534 | static int amdgpu_vm_create_task_info(struct amdgpu_vm *vm) |
| 2535 | { | 2535 | { |
| 2536 | vm->task_info = kzalloc_obj(struct amdgpu_task_info, GFP_KERNEL); | 2536 | vm->task_info = kzalloc_obj(struct amdgpu_task_info); |
| 2537 | if (!vm->task_info) | 2537 | if (!vm->task_info) |
| 2538 | return -ENOMEM; | 2538 | return -ENOMEM; |
| 2539 | 2539 | ||
| @@ -80,7 +80,7 @@ void amdgpu_vm_tlb_fence_create(struct amdgpu_device *adev, struct amdgpu_vm *vm · 79 unmodified lines | |||
| 80 | { | 80 | { |
| 81 | struct amdgpu_tlb_fence *f; | 81 | struct amdgpu_tlb_fence *f; |
| 82 | 82 | ||
| 83 | f = kmalloc_obj(*f, GFP_KERNEL); | 83 | f = kmalloc_obj(*f); |
| 84 | if (!f) { | 84 | if (!f) { |
| 85 | /* | 85 | /* |
| 86 | * We can't fail since the PDEs and PTEs are already updated, so | 86 | * We can't fail since the PDEs and PTEs are already updated, so |
| @@ -340,7 +340,7 @@ int amdgpu_vram_mgr_reserve_range(struct amdgpu_vram_mgr *mgr, · 339 unmodified lines | |||
| 340 | { | 340 | { |
| 341 | struct amdgpu_vram_reservation *rsv; | 341 | struct amdgpu_vram_reservation *rsv; |
| 342 | 342 | ||
| 343 | rsv = kzalloc_obj(*rsv, GFP_KERNEL); | 343 | rsv = kzalloc_obj(*rsv); |
| 344 | if (!rsv) | 344 | if (!rsv) |
| 345 | return -ENOMEM; | 345 | return -ENOMEM; |
| 346 | 346 | ||
| @@ -478,7 +478,7 @@ static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man, · 131 unmodified lines | |||
| 478 | tbo->page_alignment); | 478 | tbo->page_alignment); |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | vres = kzalloc_obj(*vres, GFP_KERNEL); | 481 | vres = kzalloc_obj(*vres); |
| 482 | if (!vres) | 482 | if (!vres) |
| 483 | return -ENOMEM; | 483 | return -ENOMEM; |
| 484 | 484 | ||
| @@ -684,7 +684,7 @@ int amdgpu_vram_mgr_alloc_sgt(struct amdgpu_device *adev, · 199 unmodified lines | |||
| 684 | int num_entries = 0; | 684 | int num_entries = 0; |
| 685 | int i, r; | 685 | int i, r; |
| 686 | 686 | ||
| 687 | *sgt = kmalloc_obj(**sgt, GFP_KERNEL); | 687 | *sgt = kmalloc_obj(**sgt); |
| 688 | if (!*sgt) | 688 | if (!*sgt) |
| 689 | return -ENOMEM; | 689 | return -ENOMEM; |
| 690 | 690 | ||
| @@ -334,7 +334,7 @@ int amdgpu_xcp_mgr_init(struct amdgpu_device *adev, int init_mode, · 333 unmodified lines | |||
| 334 | if (!xcp_funcs || !xcp_funcs->get_ip_details) | 334 | if (!xcp_funcs || !xcp_funcs->get_ip_details) |
| 335 | return -EINVAL; | 335 | return -EINVAL; |
| 336 | 336 | ||
| 337 | xcp_mgr = kzalloc_obj(*xcp_mgr, GFP_KERNEL); | 337 | xcp_mgr = kzalloc_obj(*xcp_mgr); |
| 338 | 338 | ||
| 339 | if (!xcp_mgr) | 339 | if (!xcp_mgr) |
| 340 | return -ENOMEM; | 340 | return -ENOMEM; |
| @@ -907,7 +907,7 @@ static void amdgpu_xcp_cfg_sysfs_init(struct amdgpu_device *adev) · 566 unmodified lines | |||
| 907 | if (!adev->xcp_mgr) | 907 | if (!adev->xcp_mgr) |
| 908 | return; | 908 | return; |
| 909 | 909 | ||
| 910 | xcp_cfg = kzalloc_obj(*xcp_cfg, GFP_KERNEL); | 910 | xcp_cfg = kzalloc_obj(*xcp_cfg); |
| 911 | if (!xcp_cfg) | 911 | if (!xcp_cfg) |
| 912 | return; | 912 | return; |
| 913 | xcp_cfg->xcp_mgr = adev->xcp_mgr; | 913 | xcp_cfg->xcp_mgr = adev->xcp_mgr; |
| @@ -690,7 +690,7 @@ struct amdgpu_hive_info *amdgpu_get_xgmi_hive(struct amdgpu_device *adev) · 689 unmodified lines | |||
| 690 | goto pro_end; | 690 | goto pro_end; |
| 691 | } | 691 | } |
| 692 | 692 | ||
| 693 | hive = kzalloc_obj(*hive, GFP_KERNEL); | 693 | hive = kzalloc_obj(*hive); |
| 694 | if (!hive) { | 694 | if (!hive) { |
| 695 | dev_err(adev->dev, "XGMI: allocation failed\n"); | 695 | dev_err(adev->dev, "XGMI: allocation failed\n"); |
| 696 | ret = -ENOMEM; | 696 | ret = -ENOMEM; |
| @@ -1524,7 +1524,7 @@ struct atom_context *amdgpu_atom_parse(struct card_info *card, void *bios) · 1523 unmodified lines | |||
| 1524 | { | 1524 | { |
| 1525 | int base; | 1525 | int base; |
| 1526 | struct atom_context *ctx = | 1526 | struct atom_context *ctx = |
| 1527 | kzalloc_obj(struct atom_context, GFP_KERNEL); | 1527 | kzalloc_obj(struct atom_context); |
| 1528 | struct _ATOM_ROM_HEADER *atom_rom_header; | 1528 | struct _ATOM_ROM_HEADER *atom_rom_header; |
| 1529 | struct _ATOM_MASTER_DATA_TABLE *master_table; | 1529 | struct _ATOM_MASTER_DATA_TABLE *master_table; |
| 1530 | struct _ATOM_FIRMWARE_INFO *atom_fw_info; | 1530 | struct _ATOM_FIRMWARE_INFO *atom_fw_info; |
| @@ -191,7 +191,7 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode · 190 unmodified lines | |||
| 191 | goto register_acpi_backlight; | 191 | goto register_acpi_backlight; |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | pdata = kmalloc_obj(struct amdgpu_backlight_privdata, GFP_KERNEL); | 194 | pdata = kmalloc_obj(struct amdgpu_backlight_privdata); |
| 195 | if (!pdata) { | 195 | if (!pdata) { |
| 196 | DRM_ERROR("Memory allocation failed\n"); | 196 | DRM_ERROR("Memory allocation failed\n"); |
| 197 | goto error; | 197 | goto error; |
| @@ -1980,7 +1980,7 @@ amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder *encoder) · 1782 unmodified lines | |||
| 1980 | lvds_info = | 1980 | lvds_info = |
| 1981 | (union lvds_info *)(mode_info->atom_context->bios + data_offset); | 1981 | (union lvds_info *)(mode_info->atom_context->bios + data_offset); |
| 1982 | lvds = | 1982 | lvds = |
| 1983 | kzalloc_obj(struct amdgpu_encoder_atom_dig, GFP_KERNEL); | 1983 | kzalloc_obj(struct amdgpu_encoder_atom_dig); |
| 1984 | 1984 | ||
| 1985 | if (!lvds) | 1985 | if (!lvds) |
| 1986 | return NULL; | 1986 | return NULL; |
| @@ -3517,7 +3517,7 @@ static void dce_v10_0_encoder_add(struct amdgpu_device *adev, · 3516 unmodified lines | |||
| 3517 | } | 3517 | } |
| 3518 | 3518 | ||
| 3519 | /* add a new one */ | 3519 | /* add a new one */ |
| 3520 | amdgpu_encoder = kzalloc_obj(struct amdgpu_encoder, GFP_KERNEL); | 3520 | amdgpu_encoder = kzalloc_obj(struct amdgpu_encoder); |
| 3521 | if (!amdgpu_encoder) | 3521 | if (!amdgpu_encoder) |
| 3522 | return; | 3522 | return; |
| 3523 | 3523 | ||
| @@ -3414,7 +3414,7 @@ static void dce_v6_0_encoder_add(struct amdgpu_device *adev, · 3413 unmodified lines | |||
| 3414 | } | 3414 | } |
| 3415 | 3415 | ||
| 3416 | /* add a new one */ | 3416 | /* add a new one */ |
| 3417 | amdgpu_encoder = kzalloc_obj(struct amdgpu_encoder, GFP_KERNEL); | 3417 | amdgpu_encoder = kzalloc_obj(struct amdgpu_encoder); |
| 3418 | if (!amdgpu_encoder) | 3418 | if (!amdgpu_encoder) |
| 3419 | return; | 3419 | return; |
| 3420 | 3420 | ||
| @@ -3425,7 +3425,7 @@ static void dce_v8_0_encoder_add(struct amdgpu_device *adev, · 3424 unmodified lines | |||
| 3425 | } | 3425 | } |
| 3426 | 3426 | ||
| 3427 | /* add a new one */ | 3427 | /* add a new one */ |
| 3428 | amdgpu_encoder = kzalloc_obj(struct amdgpu_encoder, GFP_KERNEL); | 3428 | amdgpu_encoder = kzalloc_obj(struct amdgpu_encoder); |
| 3429 | if (!amdgpu_encoder) | 3429 | if (!amdgpu_encoder) |
| 3430 | return; | 3430 | return; |
| 3431 | 3431 | ||
| @@ -50,7 +50,7 @@ static int isp_v4_1_0_hw_init(struct amdgpu_isp *isp) · 49 unmodified lines | |||
| 50 | 50 | ||
| 51 | isp_base = adev->rmmio_base; | 51 | isp_base = adev->rmmio_base; |
| 52 | 52 | ||
| 53 | isp->isp_cell = kzalloc_objs(struct mfd_cell, 3, GFP_KERNEL); | 53 | isp->isp_cell = kzalloc_objs(struct mfd_cell, 3); |
| 54 | if (!isp->isp_cell) { | 54 | if (!isp->isp_cell) { |
| 55 | r = -ENOMEM; | 55 | r = -ENOMEM; |
| 56 | drm_err(&adev->ddev, | 56 | drm_err(&adev->ddev, |
| @@ -59,7 +59,7 @@ static int isp_v4_1_0_hw_init(struct amdgpu_isp *isp) · 2 unmodified lines | |||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | num_res = MAX_ISP410_MEM_RES + MAX_ISP410_INT_SRC; | 61 | num_res = MAX_ISP410_MEM_RES + MAX_ISP410_INT_SRC; |
| 62 | isp->isp_res = kzalloc_objs(struct resource, num_res, GFP_KERNEL); | 62 | isp->isp_res = kzalloc_objs(struct resource, num_res); |
| 63 | if (!isp->isp_res) { | 63 | if (!isp->isp_res) { |
| 64 | r = -ENOMEM; | 64 | r = -ENOMEM; |
| 65 | drm_err(&adev->ddev, | 65 | drm_err(&adev->ddev, |
| @@ -67,7 +67,7 @@ static int isp_v4_1_0_hw_init(struct amdgpu_isp *isp) · 1 unmodified line | |||
| 67 | goto failure; | 67 | goto failure; |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | isp->isp_pdata = kzalloc_obj(*isp->isp_pdata, GFP_KERNEL); | 70 | isp->isp_pdata = kzalloc_obj(*isp->isp_pdata); |
| 71 | if (!isp->isp_pdata) { | 71 | if (!isp->isp_pdata) { |
| 72 | r = -ENOMEM; | 72 | r = -ENOMEM; |
| 73 | drm_err(&adev->ddev, | 73 | drm_err(&adev->ddev, |
| @@ -106,7 +106,7 @@ static int isp_v4_1_0_hw_init(struct amdgpu_isp *isp) · 32 unmodified lines | |||
| 106 | isp->isp_cell[0].pdata_size = sizeof(struct isp_platform_data); | 106 | isp->isp_cell[0].pdata_size = sizeof(struct isp_platform_data); |
| 107 | 107 | ||
| 108 | /* initialize isp i2c platform data */ | 108 | /* initialize isp i2c platform data */ |
| 109 | isp->isp_i2c_res = kzalloc_objs(struct resource, 1, GFP_KERNEL); | 109 | isp->isp_i2c_res = kzalloc_objs(struct resource, 1); |
| 110 | if (!isp->isp_i2c_res) { | 110 | if (!isp->isp_i2c_res) { |
| 111 | r = -ENOMEM; | 111 | r = -ENOMEM; |
| 112 | drm_err(&adev->ddev, | 112 | drm_err(&adev->ddev, |
| @@ -126,7 +126,7 @@ static int isp_v4_1_0_hw_init(struct amdgpu_isp *isp) · 13 unmodified lines | |||
| 126 | isp->isp_cell[1].pdata_size = sizeof(struct isp_platform_data); | 126 | isp->isp_cell[1].pdata_size = sizeof(struct isp_platform_data); |
| 127 | 127 | ||
| 128 | /* initialize isp gpiochip platform data */ | 128 | /* initialize isp gpiochip platform data */ |
| 129 | isp->isp_gpio_res = kzalloc_objs(struct resource, 1, GFP_KERNEL); | 129 | isp->isp_gpio_res = kzalloc_objs(struct resource, 1); |
| 130 | if (!isp->isp_gpio_res) { | 130 | if (!isp->isp_gpio_res) { |
| 131 | r = -ENOMEM; | 131 | r = -ENOMEM; |
| 132 | drm_err(&adev->ddev, | 132 | drm_err(&adev->ddev, |
| @@ -259,7 +259,7 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp) · 258 unmodified lines | |||
| 259 | return -EINVAL; | 259 | return -EINVAL; |
| 260 | } | 260 | } |
| 261 | 261 | ||
| 262 | isp->isp_cell = kzalloc_objs(struct mfd_cell, 3, GFP_KERNEL); | 262 | isp->isp_cell = kzalloc_objs(struct mfd_cell, 3); |
| 263 | if (!isp->isp_cell) { | 263 | if (!isp->isp_cell) { |
| 264 | r = -ENOMEM; | 264 | r = -ENOMEM; |
| 265 | drm_err(&adev->ddev, "isp mfd cell alloc failed (%d)\n", r); | 265 | drm_err(&adev->ddev, "isp mfd cell alloc failed (%d)\n", r); |
| @@ -268,14 +268,14 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp) · 2 unmodified lines | |||
| 268 | 268 | ||
| 269 | num_res = MAX_ISP411_MEM_RES + MAX_ISP411_INT_SRC; | 269 | num_res = MAX_ISP411_MEM_RES + MAX_ISP411_INT_SRC; |
| 270 | 270 | ||
| 271 | isp->isp_res = kzalloc_objs(struct resource, num_res, GFP_KERNEL); | 271 | isp->isp_res = kzalloc_objs(struct resource, num_res); |
| 272 | if (!isp->isp_res) { | 272 | if (!isp->isp_res) { |
| 273 | r = -ENOMEM; | 273 | r = -ENOMEM; |
| 274 | drm_err(&adev->ddev, "isp mfd resource alloc failed (%d)\n", r); | 274 | drm_err(&adev->ddev, "isp mfd resource alloc failed (%d)\n", r); |
| 275 | goto failure; | 275 | goto failure; |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | isp->isp_pdata = kzalloc_obj(*isp->isp_pdata, GFP_KERNEL); | 278 | isp->isp_pdata = kzalloc_obj(*isp->isp_pdata); |
| 279 | if (!isp->isp_pdata) { | 279 | if (!isp->isp_pdata) { |
| 280 | r = -ENOMEM; | 280 | r = -ENOMEM; |
| 281 | drm_err(&adev->ddev, "isp platform data alloc failed (%d)\n", r); | 281 | drm_err(&adev->ddev, "isp platform data alloc failed (%d)\n", r); |
| @@ -317,7 +317,7 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp) · 35 unmodified lines | |||
| 317 | isp->isp_cell[0].pdata_size = sizeof(struct isp_platform_data); | 317 | isp->isp_cell[0].pdata_size = sizeof(struct isp_platform_data); |
| 318 | 318 | ||
| 319 | /* initialize isp i2c platform data */ | 319 | /* initialize isp i2c platform data */ |
| 320 | isp->isp_i2c_res = kzalloc_objs(struct resource, 1, GFP_KERNEL); | 320 | isp->isp_i2c_res = kzalloc_objs(struct resource, 1); |
| 321 | if (!isp->isp_i2c_res) { | 321 | if (!isp->isp_i2c_res) { |
| 322 | r = -ENOMEM; | 322 | r = -ENOMEM; |
| 323 | drm_err(&adev->ddev, "isp mfd res alloc failed (%d)\n", r); | 323 | drm_err(&adev->ddev, "isp mfd res alloc failed (%d)\n", r); |
| @@ -336,7 +336,7 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp) · 12 unmodified lines | |||
| 336 | isp->isp_cell[1].pdata_size = sizeof(struct isp_platform_data); | 336 | isp->isp_cell[1].pdata_size = sizeof(struct isp_platform_data); |
| 337 | 337 | ||
| 338 | /* initialize isp gpiochip platform data */ | 338 | /* initialize isp gpiochip platform data */ |
| 339 | isp->isp_gpio_res = kzalloc_objs(struct resource, 1, GFP_KERNEL); | 339 | isp->isp_gpio_res = kzalloc_objs(struct resource, 1); |
| 340 | if (!isp->isp_gpio_res) { | 340 | if (!isp->isp_gpio_res) { |
| 341 | r = -ENOMEM; | 341 | r = -ENOMEM; |
| 342 | drm_err(&adev->ddev, "isp gpio resource alloc failed (%d)\n", r); | 342 | drm_err(&adev->ddev, "isp gpio resource alloc failed (%d)\n", r); |
| @@ -283,7 +283,7 @@ static int mes_userq_mqd_create(struct amdgpu_usermode_queue *queue, · 282 unmodified lines | |||
| 283 | int r; | 283 | int r; |
| 284 | 284 | ||
| 285 | /* Structure to initialize MQD for userqueue using generic MQD init function */ | 285 | /* Structure to initialize MQD for userqueue using generic MQD init function */ |
| 286 | userq_props = kzalloc_obj(struct amdgpu_mqd_prop, GFP_KERNEL); | 286 | userq_props = kzalloc_obj(struct amdgpu_mqd_prop); |
| 287 | if (!userq_props) { | 287 | if (!userq_props) { |
| 288 | DRM_ERROR("Failed to allocate memory for userq_props\n"); | 288 | DRM_ERROR("Failed to allocate memory for userq_props\n"); |
| 289 | return -ENOMEM; | 289 | return -ENOMEM; |
| @@ -273,7 +273,7 @@ int sienna_cichlid_reset_init(struct amdgpu_device *adev) · 272 unmodified lines | |||
| 273 | { | 273 | { |
| 274 | struct amdgpu_reset_control *reset_ctl; | 274 | struct amdgpu_reset_control *reset_ctl; |
| 275 | 275 | ||
| 276 | reset_ctl = kzalloc_obj(*reset_ctl, GFP_KERNEL); | 276 | reset_ctl = kzalloc_obj(*reset_ctl); |
| 277 | if (!reset_ctl) | 277 | if (!reset_ctl) |
| 278 | return -ENOMEM; | 278 | return -ENOMEM; |
| 279 | 279 | ||
| @@ -270,7 +270,7 @@ int smu_v13_0_10_reset_init(struct amdgpu_device *adev) · 269 unmodified lines | |||
| 270 | { | 270 | { |
| 271 | struct amdgpu_reset_control *reset_ctl; | 271 | struct amdgpu_reset_control *reset_ctl; |
| 272 | 272 | ||
| 273 | reset_ctl = kzalloc_obj(*reset_ctl, GFP_KERNEL); | 273 | reset_ctl = kzalloc_obj(*reset_ctl); |
| 274 | if (!reset_ctl) | 274 | if (!reset_ctl) |
| 275 | return -ENOMEM; | 275 | return -ENOMEM; |
| 276 | 276 | ||
| @@ -567,7 +567,7 @@ static int umc_v12_0_update_ecc_status(struct amdgpu_device *adev, · 566 unmodified lines | |||
| 567 | if (ret) | 567 | if (ret) |
| 568 | return ret; | 568 | return ret; |
| 569 | 569 | ||
| 570 | ecc_err = kzalloc_obj(*ecc_err, GFP_KERNEL); | 570 | ecc_err = kzalloc_obj(*ecc_err); |
| 571 | if (!ecc_err) | 571 | if (!ecc_err) |
| 572 | return -ENOMEM; | 572 | return -ENOMEM; |
| 573 | 573 | ||
| @@ -2468,7 +2468,7 @@ static int criu_restore_bos(struct kfd_process *p, · 2467 unmodified lines | |||
| 2468 | /* Prevent MMU notifications until stage-4 IOCTL (CRIU_RESUME) is received */ | 2468 | /* Prevent MMU notifications until stage-4 IOCTL (CRIU_RESUME) is received */ |
| 2469 | amdgpu_amdkfd_block_mmu_notifications(p->kgd_process_info); | 2469 | amdgpu_amdkfd_block_mmu_notifications(p->kgd_process_info); |
| 2470 | 2470 | ||
| 2471 | bo_buckets = kvmalloc_objs(*bo_buckets, args->num_bos, GFP_KERNEL); | 2471 | bo_buckets = kvmalloc_objs(*bo_buckets, args->num_bos); |
| 2472 | if (!bo_buckets) | 2472 | if (!bo_buckets) |
| 2473 | return -ENOMEM; | 2473 | return -ENOMEM; |
| 2474 | 2474 | ||
| @@ -2486,7 +2486,7 @@ static int criu_restore_bos(struct kfd_process *p, · 11 unmodified lines | |||
| 2486 | goto exit; | 2486 | goto exit; |
| 2487 | } | 2487 | } |
| 2488 | 2488 | ||
| 2489 | bo_privs = kvmalloc_objs(*bo_privs, args->num_bos, GFP_KERNEL); | 2489 | bo_privs = kvmalloc_objs(*bo_privs, args->num_bos); |
| 2490 | if (!bo_privs) { | 2490 | if (!bo_privs) { |
| 2491 | ret = -ENOMEM; | 2491 | ret = -ENOMEM; |
| 2492 | goto exit; | 2492 | goto exit; |
| @@ -146,7 +146,7 @@ void kfd_debugfs_add_process(struct kfd_process *p) · 145 unmodified lines | |||
| 146 | char name[MAX_DEBUGFS_FILENAME_LEN]; | 146 | char name[MAX_DEBUGFS_FILENAME_LEN]; |
| 147 | struct debugfs_proc_entry *entry; | 147 | struct debugfs_proc_entry *entry; |
| 148 | 148 | ||
| 149 | entry = kzalloc_obj(*entry, GFP_KERNEL); | 149 | entry = kzalloc_obj(*entry); |
| 150 | if (!entry) | 150 | if (!entry) |
| 151 | return; | 151 | return; |
| 152 | 152 | ||
| @@ -478,7 +478,7 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf) · 477 unmodified lines | |||
| 478 | return NULL; | 478 | return NULL; |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | kfd = kzalloc_obj(*kfd, GFP_KERNEL); | 481 | kfd = kzalloc_obj(*kfd); |
| 482 | if (!kfd) | 482 | if (!kfd) |
| 483 | return NULL; | 483 | return NULL; |
| 484 | 484 | ||
| @@ -864,7 +864,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd, · 379 unmodified lines | |||
| 864 | 864 | ||
| 865 | /* Allocate the KFD nodes */ | 865 | /* Allocate the KFD nodes */ |
| 866 | for (i = 0, xcp_idx = 0; i < kfd->num_nodes; i++) { | 866 | for (i = 0, xcp_idx = 0; i < kfd->num_nodes; i++) { |
| 867 | node = kzalloc_obj(struct kfd_node, GFP_KERNEL); | 867 | node = kzalloc_obj(struct kfd_node); |
| 868 | if (!node) | 868 | if (!node) |
| 869 | goto node_alloc_error; | 869 | goto node_alloc_error; |
| 870 | 870 | ||
| @@ -1328,7 +1328,7 @@ int kfd_gtt_sa_allocate(struct kfd_node *node, unsigned int size, · 457 unmodified lines | |||
| 1328 | if (size > kfd->gtt_sa_num_of_chunks * kfd->gtt_sa_chunk_size) | 1328 | if (size > kfd->gtt_sa_num_of_chunks * kfd->gtt_sa_chunk_size) |
| 1329 | return -ENOMEM; | 1329 | return -ENOMEM; |
| 1330 | 1330 | ||
| 1331 | *mem_obj = kzalloc_obj(struct kfd_mem_obj, GFP_KERNEL); | 1331 | *mem_obj = kzalloc_obj(struct kfd_mem_obj); |
| 1332 | if (!(*mem_obj)) | 1332 | if (!(*mem_obj)) |
| 1333 | return -ENOMEM; | 1333 | return -ENOMEM; |
| 1334 | 1334 | ||
| @@ -1401,7 +1401,7 @@ static int register_process(struct device_queue_manager *dqm, · 1400 unmodified lines | |||
| 1401 | uint64_t pd_base; | 1401 | uint64_t pd_base; |
| 1402 | int retval; | 1402 | int retval; |
| 1403 | 1403 | ||
| 1404 | n = kzalloc_obj(*n, GFP_KERNEL); | 1404 | n = kzalloc_obj(*n); |
| 1405 | if (!n) | 1405 | if (!n) |
| 1406 | return -ENOMEM; | 1406 | return -ENOMEM; |
| 1407 | 1407 | ||
| @@ -2921,7 +2921,7 @@ struct device_queue_manager *device_queue_manager_init(struct kfd_node *dev) · 1513 unmodified lines | |||
| 2921 | 2921 | ||
| 2922 | pr_debug("Loading device queue manager\n"); | 2922 | pr_debug("Loading device queue manager\n"); |
| 2923 | 2923 | ||
| 2924 | dqm = kzalloc_obj(*dqm, GFP_KERNEL); | 2924 | dqm = kzalloc_obj(*dqm); |
| 2925 | if (!dqm) | 2925 | if (!dqm) |
| 2926 | return NULL; | 2926 | return NULL; |
| 2927 | 2927 | ||
| @@ -67,7 +67,7 @@ static struct kfd_signal_page *allocate_signal_page(struct kfd_process *p) · 66 unmodified lines | |||
| 67 | void *backing_store; | 67 | void *backing_store; |
| 68 | struct kfd_signal_page *page; | 68 | struct kfd_signal_page *page; |
| 69 | 69 | ||
| 70 | page = kzalloc_obj(*page, GFP_KERNEL); | 70 | page = kzalloc_obj(*page); |
| 71 | if (!page) | 71 | if (!page) |
| 72 | return NULL; | 72 | return NULL; |
| 73 | 73 | ||
| @@ -337,7 +337,7 @@ static int kfd_event_page_set(struct kfd_process *p, void *kernel_address, · 263 unmodified lines | |||
| 337 | return -EINVAL; | 337 | return -EINVAL; |
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | page = kzalloc_obj(*page, GFP_KERNEL); | 340 | page = kzalloc_obj(*page); |
| 341 | if (!page) | 341 | if (!page) |
| 342 | return -ENOMEM; | 342 | return -ENOMEM; |
| 343 | 343 | ||
| @@ -405,7 +405,7 @@ int kfd_event_create(struct file *devkfd, struct kfd_process *p, · 61 unmodified lines | |||
| 405 | uint64_t *event_page_offset, uint32_t *event_slot_index) | 405 | uint64_t *event_page_offset, uint32_t *event_slot_index) |
| 406 | { | 406 | { |
| 407 | int ret = 0; | 407 | int ret = 0; |
| 408 | struct kfd_event *ev = kzalloc_obj(*ev, GFP_KERNEL); | 408 | struct kfd_event *ev = kzalloc_obj(*ev); |
| 409 | 409 | ||
| 410 | if (!ev) | 410 | if (!ev) |
| 411 | return -ENOMEM; | 411 | return -ENOMEM; |
| @@ -458,11 +458,11 @@ int kfd_criu_restore_event(struct file *devkfd, · 46 unmodified lines | |||
| 458 | struct kfd_event *ev = NULL; | 458 | struct kfd_event *ev = NULL; |
| 459 | int ret = 0; | 459 | int ret = 0; |
| 460 | 460 | ||
| 461 | ev_priv = kmalloc_obj(*ev_priv, GFP_KERNEL); | 461 | ev_priv = kmalloc_obj(*ev_priv); |
| 462 | if (!ev_priv) | 462 | if (!ev_priv) |
| 463 | return -ENOMEM; | 463 | return -ENOMEM; |
| 464 | 464 | ||
| 465 | ev = kzalloc_obj(*ev, GFP_KERNEL); | 465 | ev = kzalloc_obj(*ev); |
| 466 | if (!ev) { | 466 | if (!ev) { |
| 467 | ret = -ENOMEM; | 467 | ret = -ENOMEM; |
| 468 | goto exit; | 468 | goto exit; |
| @@ -309,7 +309,7 @@ struct kernel_queue *kernel_queue_init(struct kfd_node *dev, · 308 unmodified lines | |||
| 309 | { | 309 | { |
| 310 | struct kernel_queue *kq; | 310 | struct kernel_queue *kq; |
| 311 | 311 | ||
| 312 | kq = kzalloc_obj(*kq, GFP_KERNEL); | 312 | kq = kzalloc_obj(*kq); |
| 313 | if (!kq) | 313 | if (!kq) |
| 314 | return NULL; | 314 | return NULL; |
| 315 | 315 | ||
| @@ -51,7 +51,7 @@ struct kfd_mem_obj *allocate_hiq_mqd(struct mqd_manager *mm, struct queue_proper · 50 unmodified lines | |||
| 51 | struct kfd_mem_obj *mqd_mem_obj; | 51 | struct kfd_mem_obj *mqd_mem_obj; |
| 52 | struct kfd_node *dev = mm->dev; | 52 | struct kfd_node *dev = mm->dev; |
| 53 | 53 | ||
| 54 | mqd_mem_obj = kzalloc_obj(struct kfd_mem_obj, GFP_KERNEL); | 54 | mqd_mem_obj = kzalloc_obj(struct kfd_mem_obj); |
| 55 | if (!mqd_mem_obj) | 55 | if (!mqd_mem_obj) |
| 56 | return NULL; | 56 | return NULL; |
| 57 | 57 | ||
| @@ -69,7 +69,7 @@ struct kfd_mem_obj *allocate_sdma_mqd(struct mqd_manager *mm, · 11 unmodified lines | |||
| 69 | struct kfd_node *dev = mm->dev; | 69 | struct kfd_node *dev = mm->dev; |
| 70 | uint64_t offset; | 70 | uint64_t offset; |
| 71 | 71 | ||
| 72 | mqd_mem_obj = kzalloc_obj(struct kfd_mem_obj, GFP_KERNEL); | 72 | mqd_mem_obj = kzalloc_obj(struct kfd_mem_obj); |
| 73 | if (!mqd_mem_obj) | 73 | if (!mqd_mem_obj) |
| 74 | return NULL; | 74 | return NULL; |
| 75 | 75 | ||
| @@ -389,7 +389,7 @@ struct mqd_manager *mqd_manager_init_cik(enum KFD_MQD_TYPE type, · 388 unmodified lines | |||
| 389 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 389 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 390 | return NULL; | 390 | return NULL; |
| 391 | 391 | ||
| 392 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 392 | mqd = kzalloc_obj(*mqd); |
| 393 | if (!mqd) | 393 | if (!mqd) |
| 394 | return NULL; | 394 | return NULL; |
| 395 | 395 | ||
| @@ -451,7 +451,7 @@ struct mqd_manager *mqd_manager_init_v10(enum KFD_MQD_TYPE type, · 450 unmodified lines | |||
| 451 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 451 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 452 | return NULL; | 452 | return NULL; |
| 453 | 453 | ||
| 454 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 454 | mqd = kzalloc_obj(*mqd); |
| 455 | if (!mqd) | 455 | if (!mqd) |
| 456 | return NULL; | 456 | return NULL; |
| 457 | 457 | ||
| @@ -465,7 +465,7 @@ struct mqd_manager *mqd_manager_init_v11(enum KFD_MQD_TYPE type, · 464 unmodified lines | |||
| 465 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 465 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 466 | return NULL; | 466 | return NULL; |
| 467 | 467 | ||
| 468 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 468 | mqd = kzalloc_obj(*mqd); |
| 469 | if (!mqd) | 469 | if (!mqd) |
| 470 | return NULL; | 470 | return NULL; |
| 471 | 471 | ||
| @@ -385,7 +385,7 @@ struct mqd_manager *mqd_manager_init_v12(enum KFD_MQD_TYPE type, · 384 unmodified lines | |||
| 385 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 385 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 386 | return NULL; | 386 | return NULL; |
| 387 | 387 | ||
| 388 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 388 | mqd = kzalloc_obj(*mqd); |
| 389 | if (!mqd) | 389 | if (!mqd) |
| 390 | return NULL; | 390 | return NULL; |
| 391 | 391 | ||
| @@ -646,7 +646,7 @@ struct mqd_manager *mqd_manager_init_v12_1(enum KFD_MQD_TYPE type, · 645 unmodified lines | |||
| 646 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 646 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 647 | return NULL; | 647 | return NULL; |
| 648 | 648 | ||
| 649 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 649 | mqd = kzalloc_obj(*mqd); |
| 650 | if (!mqd) | 650 | if (!mqd) |
| 651 | return NULL; | 651 | return NULL; |
| 652 | 652 | ||
| @@ -147,7 +147,7 @@ static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, · 146 unmodified lines | |||
| 147 | * amdgpu memory functions to do so. | 147 | * amdgpu memory functions to do so. |
| 148 | */ | 148 | */ |
| 149 | if (node->kfd->cwsr_enabled && (q->type == KFD_QUEUE_TYPE_COMPUTE)) { | 149 | if (node->kfd->cwsr_enabled && (q->type == KFD_QUEUE_TYPE_COMPUTE)) { |
| 150 | mqd_mem_obj = kzalloc_obj(struct kfd_mem_obj, GFP_KERNEL); | 150 | mqd_mem_obj = kzalloc_obj(struct kfd_mem_obj); |
| 151 | if (!mqd_mem_obj) | 151 | if (!mqd_mem_obj) |
| 152 | return NULL; | 152 | return NULL; |
| 153 | retval = amdgpu_amdkfd_alloc_kernel_mem(node->adev, | 153 | retval = amdgpu_amdkfd_alloc_kernel_mem(node->adev, |
| @@ -960,7 +960,7 @@ struct mqd_manager *mqd_manager_init_v9(enum KFD_MQD_TYPE type, · 806 unmodified lines | |||
| 960 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 960 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 961 | return NULL; | 961 | return NULL; |
| 962 | 962 | ||
| 963 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 963 | mqd = kzalloc_obj(*mqd); |
| 964 | if (!mqd) | 964 | if (!mqd) |
| 965 | return NULL; | 965 | return NULL; |
| 966 | 966 | ||
| @@ -446,7 +446,7 @@ struct mqd_manager *mqd_manager_init_vi(enum KFD_MQD_TYPE type, · 445 unmodified lines | |||
| 446 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) | 446 | if (WARN_ON(type >= KFD_MQD_TYPE_MAX)) |
| 447 | return NULL; | 447 | return NULL; |
| 448 | 448 | ||
| 449 | mqd = kzalloc_obj(*mqd, GFP_KERNEL); | 449 | mqd = kzalloc_obj(*mqd); |
| 450 | if (!mqd) | 450 | if (!mqd) |
| 451 | return NULL; | 451 | return NULL; |
| 452 | 452 | ||
| @@ -91,7 +91,7 @@ · 90 unmodified lines | |||
| 91 | 91 | ||
| 92 | /* Macro for allocating structures */ | 92 | /* Macro for allocating structures */ |
| 93 | #define kfd_alloc_struct(ptr_to_struct) \ | 93 | #define kfd_alloc_struct(ptr_to_struct) \ |
| 94 | ((typeof(ptr_to_struct)) kzalloc_obj(*ptr_to_struct, GFP_KERNEL)) | 94 | ((typeof(ptr_to_struct)) kzalloc_obj(*ptr_to_struct)) |
| 95 | 95 | ||
| 96 | #define KFD_MAX_NUM_OF_PROCESSES 512 | 96 | #define KFD_MAX_NUM_OF_PROCESSES 512 |
| 97 | #define KFD_MAX_NUM_OF_QUEUES_PER_PROCESS 1024 | 97 | #define KFD_MAX_NUM_OF_QUEUES_PER_PROCESS 1024 |
| @@ -153,7 +153,7 @@ static void kfd_sdma_activity_worker(struct work_struct *work) · 152 unmodified lines | |||
| 153 | (q->properties.type != KFD_QUEUE_TYPE_SDMA_XGMI)) | 153 | (q->properties.type != KFD_QUEUE_TYPE_SDMA_XGMI)) |
| 154 | continue; | 154 | continue; |
| 155 | 155 | ||
| 156 | sdma_q = kzalloc_obj(struct temp_sdma_queue_list, GFP_KERNEL); | 156 | sdma_q = kzalloc_obj(struct temp_sdma_queue_list); |
| 157 | if (!sdma_q) { | 157 | if (!sdma_q) { |
| 158 | dqm_unlock(dqm); | 158 | dqm_unlock(dqm); |
| 159 | goto cleanup; | 159 | goto cleanup; |
| @@ -1593,7 +1593,7 @@ struct kfd_process *create_process(const struct task_struct *thread, bool primar · 1433 unmodified lines | |||
| 1593 | struct mmu_notifier *mn; | 1593 | struct mmu_notifier *mn; |
| 1594 | int err = -ENOMEM; | 1594 | int err = -ENOMEM; |
| 1595 | 1595 | ||
| 1596 | process = kzalloc_obj(*process, GFP_KERNEL); | 1596 | process = kzalloc_obj(*process); |
| 1597 | if (!process) | 1597 | if (!process) |
| 1598 | goto err_alloc_process; | 1598 | goto err_alloc_process; |
| 1599 | 1599 | ||
| @@ -1709,7 +1709,7 @@ struct kfd_process_device *kfd_create_process_device_data(struct kfd_node *dev, · 109 unmodified lines | |||
| 1709 | 1709 | ||
| 1710 | if (WARN_ON_ONCE(p->n_pdds >= MAX_GPU_INSTANCE)) | 1710 | if (WARN_ON_ONCE(p->n_pdds >= MAX_GPU_INSTANCE)) |
| 1711 | return NULL; | 1711 | return NULL; |
| 1712 | pdd = kzalloc_obj(*pdd, GFP_KERNEL); | 1712 | pdd = kzalloc_obj(*pdd); |
| 1713 | if (!pdd) | 1713 | if (!pdd) |
| 1714 | return NULL; | 1714 | return NULL; |
| 1715 | 1715 | ||
| @@ -383,7 +383,7 @@ int pqm_create_queue(struct process_queue_manager *pqm, · 382 unmodified lines | |||
| 383 | memset(pdd->proc_ctx_cpu_ptr, 0, AMDGPU_MES_PROC_CTX_SIZE); | 383 | memset(pdd->proc_ctx_cpu_ptr, 0, AMDGPU_MES_PROC_CTX_SIZE); |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | pqn = kzalloc_obj(*pqn, GFP_KERNEL); | 386 | pqn = kzalloc_obj(*pqn); |
| 387 | if (!pqn) { | 387 | if (!pqn) { |
| 388 | retval = -ENOMEM; | 388 | retval = -ENOMEM; |
| 389 | goto err_allocate_pqn; | 389 | goto err_allocate_pqn; |
| @@ -991,7 +991,7 @@ int kfd_criu_restore_queue(struct kfd_process *p, · 601 unmodified lines | |||
| 991 | if (*priv_data_offset + sizeof(*q_data) > max_priv_data_size) | 991 | if (*priv_data_offset + sizeof(*q_data) > max_priv_data_size) |
| 992 | return -EINVAL; | 992 | return -EINVAL; |
| 993 | 993 | ||
| 994 | q_data = kmalloc_obj(*q_data, GFP_KERNEL); | 994 | q_data = kmalloc_obj(*q_data); |
| 995 | if (!q_data) | 995 | if (!q_data) |
| 996 | return -ENOMEM; | 996 | return -ENOMEM; |
| 997 | 997 | ||
| @@ -70,7 +70,7 @@ int init_queue(struct queue **q, const struct queue_properties *properties) · 69 unmodified lines | |||
| 70 | { | 70 | { |
| 71 | struct queue *tmp_q; | 71 | struct queue *tmp_q; |
| 72 | 72 | ||
| 73 | tmp_q = kzalloc_obj(*tmp_q, GFP_KERNEL); | 73 | tmp_q = kzalloc_obj(*tmp_q); |
| 74 | if (!tmp_q) | 74 | if (!tmp_q) |
| 75 | return -ENOMEM; | 75 | return -ENOMEM; |
| 76 | 76 | ||
| @@ -370,7 +370,7 @@ int kfd_smi_event_open(struct kfd_node *dev, uint32_t *fd) · 369 unmodified lines | |||
| 370 | struct kfd_smi_client *client; | 370 | struct kfd_smi_client *client; |
| 371 | int ret; | 371 | int ret; |
| 372 | 372 | ||
| 373 | client = kzalloc_obj(struct kfd_smi_client, GFP_KERNEL); | 373 | client = kzalloc_obj(struct kfd_smi_client); |
| 374 | if (!client) | 374 | if (!client) |
| 375 | return -ENOMEM; | 375 | return -ENOMEM; |
| 376 | INIT_LIST_HEAD(&client->list); | 376 | INIT_LIST_HEAD(&client->list); |
| @@ -168,7 +168,7 @@ svm_range_dma_map_dev(struct amdgpu_device *adev, struct svm_range *prange, · 167 unmodified lines | |||
| 168 | int i, r; | 168 | int i, r; |
| 169 | 169 | ||
| 170 | if (!addr) { | 170 | if (!addr) { |
| 171 | addr = kvzalloc_objs(*addr, prange->npages, GFP_KERNEL); | 171 | addr = kvzalloc_objs(*addr, prange->npages); |
| 172 | if (!addr) | 172 | if (!addr) |
| 173 | return -ENOMEM; | 173 | return -ENOMEM; |
| 174 | prange->dma_addr[gpuidx] = addr; | 174 | prange->dma_addr[gpuidx] = addr; |
| @@ -329,7 +329,7 @@ svm_range *svm_range_new(struct svm_range_list *svms, uint64_t start, · 154 unmodified lines | |||
| 329 | struct svm_range *prange; | 329 | struct svm_range *prange; |
| 330 | struct kfd_process *p; | 330 | struct kfd_process *p; |
| 331 | 331 | ||
| 332 | prange = kzalloc_obj(*prange, GFP_KERNEL); | 332 | prange = kzalloc_obj(*prange); |
| 333 | if (!prange) | 333 | if (!prange) |
| 334 | return NULL; | 334 | return NULL; |
| 335 | 335 | ||
| @@ -539,7 +539,7 @@ static struct svm_range_bo *svm_range_bo_new(void) · 203 unmodified lines | |||
| 539 | { | 539 | { |
| 540 | struct svm_range_bo *svm_bo; | 540 | struct svm_range_bo *svm_bo; |
| 541 | 541 | ||
| 542 | svm_bo = kzalloc_obj(*svm_bo, GFP_KERNEL); | 542 | svm_bo = kzalloc_obj(*svm_bo); |
| 543 | if (!svm_bo) | 543 | if (!svm_bo) |
| 544 | return NULL; | 544 | return NULL; |
| 545 | 545 | ||
| @@ -1674,7 +1674,7 @@ static int svm_range_validate_and_map(struct mm_struct *mm, · 1128 unmodified lines | |||
| 1674 | int32_t idx; | 1674 | int32_t idx; |
| 1675 | int r = 0; | 1675 | int r = 0; |
| 1676 | 1676 | ||
| 1677 | ctx = kzalloc_obj(struct svm_validate_context, GFP_KERNEL); | 1677 | ctx = kzalloc_obj(struct svm_validate_context); |
| 1678 | if (!ctx) | 1678 | if (!ctx) |
| 1679 | return -ENOMEM; | 1679 | return -ENOMEM; |
| 1680 | ctx->process = container_of(prange->svms, struct kfd_process, svms); | 1680 | ctx->process = container_of(prange->svms, struct kfd_process, svms); |
| @@ -711,7 +711,7 @@ static int kfd_build_sysfs_node_entry(struct kfd_topology_device *dev, · 710 unmodified lines | |||
| 711 | 711 | ||
| 712 | i = 0; | 712 | i = 0; |
| 713 | list_for_each_entry(mem, &dev->mem_props, list) { | 713 | list_for_each_entry(mem, &dev->mem_props, list) { |
| 714 | mem->kobj = kzalloc_obj(struct kobject, GFP_KERNEL); | 714 | mem->kobj = kzalloc_obj(struct kobject); |
| 715 | if (!mem->kobj) | 715 | if (!mem->kobj) |
| 716 | return -ENOMEM; | 716 | return -ENOMEM; |
| 717 | ret = kobject_init_and_add(mem->kobj, &mem_type, | 717 | ret = kobject_init_and_add(mem->kobj, &mem_type, |
| @@ -732,7 +732,7 @@ static int kfd_build_sysfs_node_entry(struct kfd_topology_device *dev, · 14 unmodified lines | |||
| 732 | 732 | ||
| 733 | i = 0; | 733 | i = 0; |
| 734 | list_for_each_entry(cache, &dev->cache_props, list) { | 734 | list_for_each_entry(cache, &dev->cache_props, list) { |
| 735 | cache->kobj = kzalloc_obj(struct kobject, GFP_KERNEL); | 735 | cache->kobj = kzalloc_obj(struct kobject); |
| 736 | if (!cache->kobj) | 736 | if (!cache->kobj) |
| 737 | return -ENOMEM; | 737 | return -ENOMEM; |
| 738 | ret = kobject_init_and_add(cache->kobj, &cache_type, | 738 | ret = kobject_init_and_add(cache->kobj, &cache_type, |
| @@ -753,7 +753,7 @@ static int kfd_build_sysfs_node_entry(struct kfd_topology_device *dev, · 14 unmodified lines | |||
| 753 | 753 | ||
| 754 | i = 0; | 754 | i = 0; |
| 755 | list_for_each_entry(iolink, &dev->io_link_props, list) { | 755 | list_for_each_entry(iolink, &dev->io_link_props, list) { |
| 756 | iolink->kobj = kzalloc_obj(struct kobject, GFP_KERNEL); | 756 | iolink->kobj = kzalloc_obj(struct kobject); |
| 757 | if (!iolink->kobj) | 757 | if (!iolink->kobj) |
| 758 | return -ENOMEM; | 758 | return -ENOMEM; |
| 759 | ret = kobject_init_and_add(iolink->kobj, &iolink_type, | 759 | ret = kobject_init_and_add(iolink->kobj, &iolink_type, |
| @@ -774,7 +774,7 @@ static int kfd_build_sysfs_node_entry(struct kfd_topology_device *dev, · 14 unmodified lines | |||
| 774 | 774 | ||
| 775 | i = 0; | 775 | i = 0; |
| 776 | list_for_each_entry(p2plink, &dev->p2p_link_props, list) { | 776 | list_for_each_entry(p2plink, &dev->p2p_link_props, list) { |
| 777 | p2plink->kobj = kzalloc_obj(struct kobject, GFP_KERNEL); | 777 | p2plink->kobj = kzalloc_obj(struct kobject); |
| 778 | if (!p2plink->kobj) | 778 | if (!p2plink->kobj) |
| 779 | return -ENOMEM; | 779 | return -ENOMEM; |
| 780 | ret = kobject_init_and_add(p2plink->kobj, &iolink_type, | 780 | ret = kobject_init_and_add(p2plink->kobj, &iolink_type, |
| @@ -1381,7 +1381,7 @@ static int kfd_build_p2p_node_entry(struct kfd_topology_device *dev, · 600 unmodified lines | |||
| 1381 | { | 1381 | { |
| 1382 | int ret; | 1382 | int ret; |
| 1383 | 1383 | ||
| 1384 | p2plink->kobj = kzalloc_obj(struct kobject, GFP_KERNEL); | 1384 | p2plink->kobj = kzalloc_obj(struct kobject); |
| 1385 | if (!p2plink->kobj) | 1385 | if (!p2plink->kobj) |
| 1386 | return -ENOMEM; | 1386 | return -ENOMEM; |
| 1387 | 1387 | ||
| @@ -1724,7 +1724,7 @@ dm_allocate_gpu_mem( · 1723 unmodified lines | |||
| 1724 | AMDGPU_GEM_DOMAIN_GTT : AMDGPU_GEM_DOMAIN_VRAM; | 1724 | AMDGPU_GEM_DOMAIN_GTT : AMDGPU_GEM_DOMAIN_VRAM; |
| 1725 | int ret; | 1725 | int ret; |
| 1726 | 1726 | ||
| 1727 | da = kzalloc_obj(struct dal_allocation, GFP_KERNEL); | 1727 | da = kzalloc_obj(struct dal_allocation); |
| 1728 | if (!da) | 1728 | if (!da) |
| 1729 | return NULL; | 1729 | return NULL; |
| 1730 | 1730 | ||
| @@ -2526,7 +2526,7 @@ static int dm_dmub_sw_init(struct amdgpu_device *adev) · 795 unmodified lines | |||
| 2526 | } | 2526 | } |
| 2527 | 2527 | ||
| 2528 | 2528 | ||
| 2529 | adev->dm.dmub_srv = kzalloc_obj(*adev->dm.dmub_srv, GFP_KERNEL); | 2529 | adev->dm.dmub_srv = kzalloc_obj(*adev->dm.dmub_srv); |
| 2530 | dmub_srv = adev->dm.dmub_srv; | 2530 | dmub_srv = adev->dm.dmub_srv; |
| 2531 | 2531 | ||
| 2532 | if (!dmub_srv) { | 2532 | if (!dmub_srv) { |
| @@ -2607,7 +2607,7 @@ static int dm_dmub_sw_init(struct amdgpu_device *adev) · 74 unmodified lines | |||
| 2607 | memory_params.region_info = ®ion_info; | 2607 | memory_params.region_info = ®ion_info; |
| 2608 | memory_params.window_memory_type = window_memory_type; | 2608 | memory_params.window_memory_type = window_memory_type; |
| 2609 | 2609 | ||
| 2610 | adev->dm.dmub_fb_info = kzalloc_obj(*adev->dm.dmub_fb_info, GFP_KERNEL); | 2610 | adev->dm.dmub_fb_info = kzalloc_obj(*adev->dm.dmub_fb_info); |
| 2611 | fb_info = adev->dm.dmub_fb_info; | 2611 | fb_info = adev->dm.dmub_fb_info; |
| 2612 | 2612 | ||
| 2613 | if (!fb_info) { | 2613 | if (!fb_info) { |
| @@ -3363,7 +3363,7 @@ static void dm_gpureset_commit_state(struct dc_state *dc_state, · 749 unmodified lines | |||
| 3363 | } *bundle __free(kfree); | 3363 | } *bundle __free(kfree); |
| 3364 | int k, m; | 3364 | int k, m; |
| 3365 | 3365 | ||
| 3366 | bundle = kzalloc_obj(*bundle, GFP_KERNEL); | 3366 | bundle = kzalloc_obj(*bundle); |
| 3367 | 3367 | ||
| 3368 | if (!bundle) { | 3368 | if (!bundle) { |
| 3369 | drm_err(dm->ddev, "Failed to allocate update bundle\n"); | 3369 | drm_err(dm->ddev, "Failed to allocate update bundle\n"); |
| @@ -3931,7 +3931,7 @@ void amdgpu_dm_update_connector_after_detect( · 561 unmodified lines | |||
| 3931 | 3931 | ||
| 3932 | if (!aconnector->timing_requested) { | 3932 | if (!aconnector->timing_requested) { |
| 3933 | aconnector->timing_requested = | 3933 | aconnector->timing_requested = |
| 3934 | kzalloc_obj(struct dc_crtc_timing, GFP_KERNEL); | 3934 | kzalloc_obj(struct dc_crtc_timing); |
| 3935 | if (!aconnector->timing_requested) | 3935 | if (!aconnector->timing_requested) |
| 3936 | drm_err(dev, | 3936 | drm_err(dev, |
| 3937 | "failed to create aconnector->requested_timing\n"); | 3937 | "failed to create aconnector->requested_timing\n"); |
| @@ -4882,7 +4882,7 @@ dm_atomic_duplicate_state(struct drm_private_obj *obj) · 944 unmodified lines | |||
| 4882 | { | 4882 | { |
| 4883 | struct dm_atomic_state *old_state, *new_state; | 4883 | struct dm_atomic_state *old_state, *new_state; |
| 4884 | 4884 | ||
| 4885 | new_state = kzalloc_obj(*new_state, GFP_KERNEL); | 4885 | new_state = kzalloc_obj(*new_state); |
| 4886 | if (!new_state) | 4886 | if (!new_state) |
| 4887 | return NULL; | 4887 | return NULL; |
| 4888 | 4888 | ||
| @@ -4939,7 +4939,7 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) · 50 unmodified lines | |||
| 4939 | /* indicates support for immediate flip */ | 4939 | /* indicates support for immediate flip */ |
| 4940 | adev_to_drm(adev)->mode_config.async_page_flip = true; | 4940 | adev_to_drm(adev)->mode_config.async_page_flip = true; |
| 4941 | 4941 | ||
| 4942 | state = kzalloc_obj(*state, GFP_KERNEL); | 4942 | state = kzalloc_obj(*state); |
| 4943 | if (!state) | 4943 | if (!state) |
| 4944 | return -ENOMEM; | 4944 | return -ENOMEM; |
| 4945 | 4945 | ||
| @@ -5367,7 +5367,7 @@ static int initialize_plane(struct amdgpu_display_manager *dm, · 421 unmodified lines | |||
| 5367 | unsigned long possible_crtcs; | 5367 | unsigned long possible_crtcs; |
| 5368 | int ret = 0; | 5368 | int ret = 0; |
| 5369 | 5369 | ||
| 5370 | plane = kzalloc_obj(struct drm_plane, GFP_KERNEL); | 5370 | plane = kzalloc_obj(struct drm_plane); |
| 5371 | if (!plane) { | 5371 | if (!plane) { |
| 5372 | drm_err(adev_to_drm(dm->adev), "KMS: Failed to allocate plane\n"); | 5372 | drm_err(adev_to_drm(dm->adev), "KMS: Failed to allocate plane\n"); |
| 5373 | return -ENOMEM; | 5373 | return -ENOMEM; |
| @@ -5626,11 +5626,11 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev) · 252 unmodified lines | |||
| 5626 | continue; | 5626 | continue; |
| 5627 | } | 5627 | } |
| 5628 | 5628 | ||
| 5629 | aconnector = kzalloc_obj(*aconnector, GFP_KERNEL); | 5629 | aconnector = kzalloc_obj(*aconnector); |
| 5630 | if (!aconnector) | 5630 | if (!aconnector) |
| 5631 | goto fail; | 5631 | goto fail; |
| 5632 | 5632 | ||
| 5633 | aencoder = kzalloc_obj(*aencoder, GFP_KERNEL); | 5633 | aencoder = kzalloc_obj(*aencoder); |
| 5634 | if (!aencoder) | 5634 | if (!aencoder) |
| 5635 | goto fail; | 5635 | goto fail; |
| 5636 | 5636 | ||
| @@ -7824,7 +7824,7 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector) · 2187 unmodified lines | |||
| 7824 | 7824 | ||
| 7825 | kfree(state); | 7825 | kfree(state); |
| 7826 | 7826 | ||
| 7827 | state = kzalloc_obj(*state, GFP_KERNEL); | 7827 | state = kzalloc_obj(*state); |
| 7828 | 7828 | ||
| 7829 | if (state) { | 7829 | if (state) { |
| 7830 | state->scaling = RMX_OFF; | 7830 | state->scaling = RMX_OFF; |
| @@ -9099,7 +9099,7 @@ static int amdgpu_dm_i2c_xfer(struct i2c_adapter *i2c_adap, · 1268 unmodified lines | |||
| 9099 | if (!ddc_service->ddc_pin) | 9099 | if (!ddc_service->ddc_pin) |
| 9100 | return result; | 9100 | return result; |
| 9101 | 9101 | ||
| 9102 | cmd.payloads = kzalloc_objs(struct i2c_payload, num, GFP_KERNEL); | 9102 | cmd.payloads = kzalloc_objs(struct i2c_payload, num); |
| 9103 | 9103 | ||
| 9104 | if (!cmd.payloads) | 9104 | if (!cmd.payloads) |
| 9105 | return result; | 9105 | return result; |
| @@ -9148,7 +9148,7 @@ create_i2c(struct ddc_service *ddc_service, bool oem) · 42 unmodified lines | |||
| 9148 | struct amdgpu_device *adev = ddc_service->ctx->driver_context; | 9148 | struct amdgpu_device *adev = ddc_service->ctx->driver_context; |
| 9149 | struct amdgpu_i2c_adapter *i2c; | 9149 | struct amdgpu_i2c_adapter *i2c; |
| 9150 | 9150 | ||
| 9151 | i2c = kzalloc_obj(struct amdgpu_i2c_adapter, GFP_KERNEL); | 9151 | i2c = kzalloc_obj(struct amdgpu_i2c_adapter); |
| 9152 | if (!i2c) | 9152 | if (!i2c) |
| 9153 | return NULL; | 9153 | return NULL; |
| 9154 | i2c->base.owner = THIS_MODULE; | 9154 | i2c->base.owner = THIS_MODULE; |
| @@ -9949,7 +9949,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state, · 794 unmodified lines | |||
| 9949 | struct dc_stream_update stream_update; | 9949 | struct dc_stream_update stream_update; |
| 9950 | } *bundle; | 9950 | } *bundle; |
| 9951 | 9951 | ||
| 9952 | bundle = kzalloc_obj(*bundle, GFP_KERNEL); | 9952 | bundle = kzalloc_obj(*bundle); |
| 9953 | 9953 | ||
| 9954 | if (!bundle) { | 9954 | if (!bundle) { |
| 9955 | drm_err(dev, "Failed to allocate update bundle\n"); | 9955 | drm_err(dev, "Failed to allocate update bundle\n"); |
| @@ -10624,7 +10624,7 @@ static void dm_set_writeback(struct amdgpu_display_manager *dm, · 668 unmodified lines | |||
| 10624 | struct amdgpu_framebuffer *afb; | 10624 | struct amdgpu_framebuffer *afb; |
| 10625 | int i = 0; | 10625 | int i = 0; |
| 10626 | 10626 | ||
| 10627 | wb_info = kzalloc_obj(*wb_info, GFP_KERNEL); | 10627 | wb_info = kzalloc_obj(*wb_info); |
| 10628 | if (!wb_info) { | 10628 | if (!wb_info) { |
| 10629 | drm_err(adev_to_drm(adev), "Failed to allocate wb_info\n"); | 10629 | drm_err(adev_to_drm(adev), "Failed to allocate wb_info\n"); |
| 10630 | return; | 10630 | return; |
| @@ -1227,7 +1227,7 @@ int amdgpu_dm_check_crtc_color_mgmt(struct dm_crtc_state *crtc, · 1226 unmodified lines | |||
| 1227 | crtc->cm_is_degamma_srgb = false; | 1227 | crtc->cm_is_degamma_srgb = false; |
| 1228 | 1228 | ||
| 1229 | if (check_only) { | 1229 | if (check_only) { |
| 1230 | out_tf = kvzalloc_obj(*out_tf, GFP_KERNEL); | 1230 | out_tf = kvzalloc_obj(*out_tf); |
| 1231 | if (!out_tf) | 1231 | if (!out_tf) |
| 1232 | return -ENOMEM; | 1232 | return -ENOMEM; |
| 1233 | } else { | 1233 | } else { |
| @@ -66,7 +66,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 65 unmodified lines | |||
| 66 | memset(ops, 0, sizeof(ops)); | 66 | memset(ops, 0, sizeof(ops)); |
| 67 | 67 | ||
| 68 | /* 1D curve - DEGAM TF */ | 68 | /* 1D curve - DEGAM TF */ |
| 69 | ops[i] = kzalloc_obj(*ops[0], GFP_KERNEL); | 69 | ops[i] = kzalloc_obj(*ops[0]); |
| 70 | if (!ops[i]) { | 70 | if (!ops[i]) { |
| 71 | ret = -ENOMEM; | 71 | ret = -ENOMEM; |
| 72 | goto cleanup; | 72 | goto cleanup; |
| @@ -83,7 +83,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 10 unmodified lines | |||
| 83 | i++; | 83 | i++; |
| 84 | 84 | ||
| 85 | /* Multiplier */ | 85 | /* Multiplier */ |
| 86 | ops[i] = kzalloc_obj(struct drm_colorop, GFP_KERNEL); | 86 | ops[i] = kzalloc_obj(struct drm_colorop); |
| 87 | if (!ops[i]) { | 87 | if (!ops[i]) { |
| 88 | ret = -ENOMEM; | 88 | ret = -ENOMEM; |
| 89 | goto cleanup; | 89 | goto cleanup; |
| @@ -98,7 +98,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 8 unmodified lines | |||
| 98 | i++; | 98 | i++; |
| 99 | 99 | ||
| 100 | /* 3x4 matrix */ | 100 | /* 3x4 matrix */ |
| 101 | ops[i] = kzalloc_obj(struct drm_colorop, GFP_KERNEL); | 101 | ops[i] = kzalloc_obj(struct drm_colorop); |
| 102 | if (!ops[i]) { | 102 | if (!ops[i]) { |
| 103 | ret = -ENOMEM; | 103 | ret = -ENOMEM; |
| 104 | goto cleanup; | 104 | goto cleanup; |
| @@ -114,7 +114,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 9 unmodified lines | |||
| 114 | 114 | ||
| 115 | if (adev->dm.dc->caps.color.dpp.hw_3d_lut) { | 115 | if (adev->dm.dc->caps.color.dpp.hw_3d_lut) { |
| 116 | /* 1D curve - SHAPER TF */ | 116 | /* 1D curve - SHAPER TF */ |
| 117 | ops[i] = kzalloc_obj(*ops[0], GFP_KERNEL); | 117 | ops[i] = kzalloc_obj(*ops[0]); |
| 118 | if (!ops[i]) { | 118 | if (!ops[i]) { |
| 119 | ret = -ENOMEM; | 119 | ret = -ENOMEM; |
| 120 | goto cleanup; | 120 | goto cleanup; |
| @@ -131,7 +131,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 10 unmodified lines | |||
| 131 | i++; | 131 | i++; |
| 132 | 132 | ||
| 133 | /* 1D LUT - SHAPER LUT */ | 133 | /* 1D LUT - SHAPER LUT */ |
| 134 | ops[i] = kzalloc_obj(*ops[0], GFP_KERNEL); | 134 | ops[i] = kzalloc_obj(*ops[0]); |
| 135 | if (!ops[i]) { | 135 | if (!ops[i]) { |
| 136 | ret = -ENOMEM; | 136 | ret = -ENOMEM; |
| 137 | goto cleanup; | 137 | goto cleanup; |
| @@ -148,7 +148,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 10 unmodified lines | |||
| 148 | i++; | 148 | i++; |
| 149 | 149 | ||
| 150 | /* 3D LUT */ | 150 | /* 3D LUT */ |
| 151 | ops[i] = kzalloc_obj(*ops[0], GFP_KERNEL); | 151 | ops[i] = kzalloc_obj(*ops[0]); |
| 152 | if (!ops[i]) { | 152 | if (!ops[i]) { |
| 153 | ret = -ENOMEM; | 153 | ret = -ENOMEM; |
| 154 | goto cleanup; | 154 | goto cleanup; |
| @@ -166,7 +166,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 11 unmodified lines | |||
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | /* 1D curve - BLND TF */ | 168 | /* 1D curve - BLND TF */ |
| 169 | ops[i] = kzalloc_obj(*ops[0], GFP_KERNEL); | 169 | ops[i] = kzalloc_obj(*ops[0]); |
| 170 | if (!ops[i]) { | 170 | if (!ops[i]) { |
| 171 | ret = -ENOMEM; | 171 | ret = -ENOMEM; |
| 172 | goto cleanup; | 172 | goto cleanup; |
| @@ -183,7 +183,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr · 10 unmodified lines | |||
| 183 | i++; | 183 | i++; |
| 184 | 184 | ||
| 185 | /* 1D LUT - BLND LUT */ | 185 | /* 1D LUT - BLND LUT */ |
| 186 | ops[i] = kzalloc_obj(struct drm_colorop, GFP_KERNEL); | 186 | ops[i] = kzalloc_obj(struct drm_colorop); |
| 187 | if (!ops[i]) { | 187 | if (!ops[i]) { |
| 188 | ret = -ENOMEM; | 188 | ret = -ENOMEM; |
| 189 | goto cleanup; | 189 | goto cleanup; |
| @@ -231,7 +231,7 @@ struct idle_workqueue *idle_create_workqueue(struct amdgpu_device *adev) · 230 unmodified lines | |||
| 231 | { | 231 | { |
| 232 | struct idle_workqueue *idle_work; | 232 | struct idle_workqueue *idle_work; |
| 233 | 233 | ||
| 234 | idle_work = kzalloc_obj(*idle_work, GFP_KERNEL); | 234 | idle_work = kzalloc_obj(*idle_work); |
| 235 | if (ZERO_OR_NULL_PTR(idle_work)) | 235 | if (ZERO_OR_NULL_PTR(idle_work)) |
| 236 | return NULL; | 236 | return NULL; |
| 237 | 237 | ||
| @@ -447,7 +447,7 @@ static struct drm_crtc_state *amdgpu_dm_crtc_duplicate_state(struct drm_crtc *cr · 209 unmodified lines | |||
| 447 | if (WARN_ON(!crtc->state)) | 447 | if (WARN_ON(!crtc->state)) |
| 448 | return NULL; | 448 | return NULL; |
| 449 | 449 | ||
| 450 | state = kzalloc_obj(*state, GFP_KERNEL); | 450 | state = kzalloc_obj(*state); |
| 451 | if (!state) | 451 | if (!state) |
| 452 | return NULL; | 452 | return NULL; |
| 453 | 453 | ||
| @@ -487,7 +487,7 @@ static void amdgpu_dm_crtc_reset_state(struct drm_crtc *crtc) · 33 unmodified lines | |||
| 487 | if (crtc->state) | 487 | if (crtc->state) |
| 488 | amdgpu_dm_crtc_destroy_state(crtc, crtc->state); | 488 | amdgpu_dm_crtc_destroy_state(crtc, crtc->state); |
| 489 | 489 | ||
| 490 | state = kzalloc_obj(*state, GFP_KERNEL); | 490 | state = kzalloc_obj(*state); |
| 491 | if (WARN_ON(!state)) | 491 | if (WARN_ON(!state)) |
| 492 | return; | 492 | return; |
| 493 | 493 | ||
| @@ -728,14 +728,14 @@ int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, · 234 unmodified lines | |||
| 728 | bool has_degamma; | 728 | bool has_degamma; |
| 729 | int res = -ENOMEM; | 729 | int res = -ENOMEM; |
| 730 | 730 | ||
| 731 | cursor_plane = kzalloc_obj(*cursor_plane, GFP_KERNEL); | 731 | cursor_plane = kzalloc_obj(*cursor_plane); |
| 732 | if (!cursor_plane) | 732 | if (!cursor_plane) |
| 733 | goto fail; | 733 | goto fail; |
| 734 | 734 | ||
| 735 | cursor_plane->type = DRM_PLANE_TYPE_CURSOR; | 735 | cursor_plane->type = DRM_PLANE_TYPE_CURSOR; |
| 736 | res = amdgpu_dm_plane_init(dm, cursor_plane, 0, NULL); | 736 | res = amdgpu_dm_plane_init(dm, cursor_plane, 0, NULL); |
| 737 | 737 | ||
| 738 | acrtc = kzalloc_obj(struct amdgpu_crtc, GFP_KERNEL); | 738 | acrtc = kzalloc_obj(struct amdgpu_crtc); |
| 739 | if (!acrtc) | 739 | if (!acrtc) |
| 740 | goto fail; | 740 | goto fail; |
| 741 | 741 | ||
| @@ -4301,7 +4301,7 @@ static ssize_t dcc_en_bits_read( · 4300 unmodified lines | |||
| 4301 | int *dcc_en_bits; | 4301 | int *dcc_en_bits; |
| 4302 | int i, r; | 4302 | int i, r; |
| 4303 | 4303 | ||
| 4304 | dcc_en_bits = kzalloc_objs(int, num_pipes, GFP_KERNEL); | 4304 | dcc_en_bits = kzalloc_objs(int, num_pipes); |
| 4305 | if (!dcc_en_bits) | 4305 | if (!dcc_en_bits) |
| 4306 | return -ENOMEM; | 4306 | return -ENOMEM; |
| 4307 | 4307 | ||
| @@ -746,7 +746,7 @@ struct hdcp_workqueue *hdcp_create_workqueue(struct amdgpu_device *adev, · 745 unmodified lines | |||
| 746 | struct hdcp_workqueue *hdcp_work; | 746 | struct hdcp_workqueue *hdcp_work; |
| 747 | int i = 0; | 747 | int i = 0; |
| 748 | 748 | ||
| 749 | hdcp_work = kzalloc_objs(*hdcp_work, max_caps, GFP_KERNEL); | 749 | hdcp_work = kzalloc_objs(*hdcp_work, max_caps); |
| 750 | if (ZERO_OR_NULL_PTR(hdcp_work)) | 750 | if (ZERO_OR_NULL_PTR(hdcp_work)) |
| 751 | return NULL; | 751 | return NULL; |
| 752 | 752 | ||
| @@ -617,7 +617,7 @@ bool dm_helpers_submit_i2c( · 616 unmodified lines | |||
| 617 | return false; | 617 | return false; |
| 618 | } | 618 | } |
| 619 | 619 | ||
| 620 | msgs = kzalloc_objs(struct i2c_msg, num, GFP_KERNEL); | 620 | msgs = kzalloc_objs(struct i2c_msg, num); |
| 621 | 621 | ||
| 622 | if (!msgs) | 622 | if (!msgs) |
| 623 | return false; | 623 | return false; |
| @@ -313,7 +313,7 @@ void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev, · 312 unmodified lines | |||
| 313 | if (false == validate_irq_registration_params(int_params, ih)) | 313 | if (false == validate_irq_registration_params(int_params, ih)) |
| 314 | return DAL_INVALID_IRQ_HANDLER_IDX; | 314 | return DAL_INVALID_IRQ_HANDLER_IDX; |
| 315 | 315 | ||
| 316 | handler_data = kzalloc_obj(*handler_data, GFP_KERNEL); | 316 | handler_data = kzalloc_obj(*handler_data); |
| 317 | if (!handler_data) { | 317 | if (!handler_data) { |
| 318 | DRM_ERROR("DM_IRQ: failed to allocate irq handler!\n"); | 318 | DRM_ERROR("DM_IRQ: failed to allocate irq handler!\n"); |
| 319 | return DAL_INVALID_IRQ_HANDLER_IDX; | 319 | return DAL_INVALID_IRQ_HANDLER_IDX; |
| @@ -640,7 +640,7 @@ dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr, · 639 unmodified lines | |||
| 640 | struct drm_connector *connector; | 640 | struct drm_connector *connector; |
| 641 | int i; | 641 | int i; |
| 642 | 642 | ||
| 643 | aconnector = kzalloc_obj(*aconnector, GFP_KERNEL); | 643 | aconnector = kzalloc_obj(*aconnector); |
| 644 | if (!aconnector) | 644 | if (!aconnector) |
| 645 | return NULL; | 645 | return NULL; |
| 646 | 646 | ||
| @@ -1470,7 +1470,7 @@ static void amdgpu_dm_plane_drm_plane_reset(struct drm_plane *plane) · 1469 unmodified lines | |||
| 1470 | if (plane->state) | 1470 | if (plane->state) |
| 1471 | plane->funcs->atomic_destroy_state(plane, plane->state); | 1471 | plane->funcs->atomic_destroy_state(plane, plane->state); |
| 1472 | 1472 | ||
| 1473 | amdgpu_state = kzalloc_obj(*amdgpu_state, GFP_KERNEL); | 1473 | amdgpu_state = kzalloc_obj(*amdgpu_state); |
| 1474 | WARN_ON(amdgpu_state == NULL); | 1474 | WARN_ON(amdgpu_state == NULL); |
| 1475 | 1475 | ||
| 1476 | if (!amdgpu_state) | 1476 | if (!amdgpu_state) |
| @@ -1488,7 +1488,7 @@ static struct drm_plane_state *amdgpu_dm_plane_drm_plane_duplicate_state(struct · 11 unmodified lines | |||
| 1488 | struct dm_plane_state *dm_plane_state, *old_dm_plane_state; | 1488 | struct dm_plane_state *dm_plane_state, *old_dm_plane_state; |
| 1489 | 1489 | ||
| 1490 | old_dm_plane_state = to_dm_plane_state(plane->state); | 1490 | old_dm_plane_state = to_dm_plane_state(plane->state); |
| 1491 | dm_plane_state = kzalloc_obj(*dm_plane_state, GFP_KERNEL); | 1491 | dm_plane_state = kzalloc_obj(*dm_plane_state); |
| 1492 | if (!dm_plane_state) | 1492 | if (!dm_plane_state) |
| 1493 | return NULL; | 1493 | return NULL; |
| 1494 | 1494 | ||
| @@ -120,11 +120,11 @@ static void calculate_bandwidth( · 119 unmodified lines | |||
| 120 | int32_t number_of_displays_enabled_with_margin = 0; | 120 | int32_t number_of_displays_enabled_with_margin = 0; |
| 121 | int32_t number_of_aligned_displays_with_no_margin = 0; | 121 | int32_t number_of_aligned_displays_with_no_margin = 0; |
| 122 | 122 | ||
| 123 | yclk = kzalloc_objs(*yclk, 3, GFP_KERNEL); | 123 | yclk = kzalloc_objs(*yclk, 3); |
| 124 | if (!yclk) | 124 | if (!yclk) |
| 125 | return; | 125 | return; |
| 126 | 126 | ||
| 127 | sclk = kzalloc_objs(*sclk, 8, GFP_KERNEL); | 127 | sclk = kzalloc_objs(*sclk, 8); |
| 128 | if (!sclk) | 128 | if (!sclk) |
| 129 | goto free_yclk; | 129 | goto free_yclk; |
| 130 | 130 | ||
| @@ -2051,11 +2051,11 @@ void bw_calcs_init(struct bw_calcs_dceip *bw_dceip, · 1920 unmodified lines | |||
| 2051 | 2051 | ||
| 2052 | enum bw_calcs_version version = bw_calcs_version_from_asic_id(asic_id); | 2052 | enum bw_calcs_version version = bw_calcs_version_from_asic_id(asic_id); |
| 2053 | 2053 | ||
| 2054 | dceip = kzalloc_obj(*dceip, GFP_KERNEL); | 2054 | dceip = kzalloc_obj(*dceip); |
| 2055 | if (!dceip) | 2055 | if (!dceip) |
| 2056 | return; | 2056 | return; |
| 2057 | 2057 | ||
| 2058 | vbios = kzalloc_obj(*vbios, GFP_KERNEL); | 2058 | vbios = kzalloc_obj(*vbios); |
| 2059 | if (!vbios) { | 2059 | if (!vbios) { |
| 2060 | kfree(dceip); | 2060 | kfree(dceip); |
| 2061 | return; | 2061 | return; |
| @@ -94,7 +94,7 @@ struct vector *dal_vector_presized_create( · 93 unmodified lines | |||
| 94 | void *initial_value, | 94 | void *initial_value, |
| 95 | uint32_t struct_size) | 95 | uint32_t struct_size) |
| 96 | { | 96 | { |
| 97 | struct vector *vector = kzalloc_obj(struct vector, GFP_KERNEL); | 97 | struct vector *vector = kzalloc_obj(struct vector); |
| 98 | 98 | ||
| 99 | if (vector == NULL) | 99 | if (vector == NULL) |
| 100 | return NULL; | 100 | return NULL; |
| @@ -113,7 +113,7 @@ struct vector *dal_vector_create( · 12 unmodified lines | |||
| 113 | uint32_t capacity, | 113 | uint32_t capacity, |
| 114 | uint32_t struct_size) | 114 | uint32_t struct_size) |
| 115 | { | 115 | { |
| 116 | struct vector *vector = kzalloc_obj(struct vector, GFP_KERNEL); | 116 | struct vector *vector = kzalloc_obj(struct vector); |
| 117 | 117 | ||
| 118 | if (vector == NULL) | 118 | if (vector == NULL) |
| 119 | return NULL; | 119 | return NULL; |
| @@ -98,7 +98,7 @@ struct dc_bios *bios_parser_create( · 97 unmodified lines | |||
| 98 | { | 98 | { |
| 99 | struct bios_parser *bp; | 99 | struct bios_parser *bp; |
| 100 | 100 | ||
| 101 | bp = kzalloc_obj(struct bios_parser, GFP_KERNEL); | 101 | bp = kzalloc_obj(struct bios_parser); |
| 102 | if (!bp) | 102 | if (!bp) |
| 103 | return NULL; | 103 | return NULL; |
| 104 | 104 | ||
| @@ -2667,7 +2667,7 @@ static struct integrated_info *bios_parser_create_integrated_info( · 2562 unmodified lines | |||
| 2667 | struct bios_parser *bp = BP_FROM_DCB(dcb); | 2667 | struct bios_parser *bp = BP_FROM_DCB(dcb); |
| 2668 | struct integrated_info *info; | 2668 | struct integrated_info *info; |
| 2669 | 2669 | ||
| 2670 | info = kzalloc_obj(struct integrated_info, GFP_KERNEL); | 2670 | info = kzalloc_obj(struct integrated_info); |
| 2671 | 2671 | ||
| 2672 | if (info == NULL) { | 2672 | if (info == NULL) { |
| 2673 | ASSERT_CRITICAL(0); | 2673 | ASSERT_CRITICAL(0); |
| @@ -3207,7 +3207,7 @@ static struct integrated_info *bios_parser_create_integrated_info( · 3206 unmodified lines | |||
| 3207 | struct bios_parser *bp = BP_FROM_DCB(dcb); | 3207 | struct bios_parser *bp = BP_FROM_DCB(dcb); |
| 3208 | struct integrated_info *info; | 3208 | struct integrated_info *info; |
| 3209 | 3209 | ||
| 3210 | info = kzalloc_obj(struct integrated_info, GFP_KERNEL); | 3210 | info = kzalloc_obj(struct integrated_info); |
| 3211 | 3211 | ||
| 3212 | if (info == NULL) { | 3212 | if (info == NULL) { |
| 3213 | ASSERT_CRITICAL(0); | 3213 | ASSERT_CRITICAL(0); |
| @@ -3793,7 +3793,7 @@ struct dc_bios *firmware_parser_create( · 579 unmodified lines | |||
| 3793 | { | 3793 | { |
| 3794 | struct bios_parser *bp; | 3794 | struct bios_parser *bp; |
| 3795 | 3795 | ||
| 3796 | bp = kzalloc_obj(struct bios_parser, GFP_KERNEL); | 3796 | bp = kzalloc_obj(struct bios_parser); |
| 3797 | if (!bp) | 3797 | if (!bp) |
| 3798 | return NULL; | 3798 | return NULL; |
| 3799 | 3799 | ||
| @@ -284,7 +284,7 @@ static bool create_links( · 283 unmodified lines | |||
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | for (i = 0; i < num_virtual_links; i++) { | 286 | for (i = 0; i < num_virtual_links; i++) { |
| 287 | struct dc_link *link = kzalloc_obj(*link, GFP_KERNEL); | 287 | struct dc_link *link = kzalloc_obj(*link); |
| 288 | struct encoder_init_data enc_init = {0}; | 288 | struct encoder_init_data enc_init = {0}; |
| 289 | 289 | ||
| 290 | if (link == NULL) { | 290 | if (link == NULL) { |
| @@ -304,7 +304,7 @@ static bool create_links( · 13 unmodified lines | |||
| 304 | link->link_id.enum_id = ENUM_ID_1; | 304 | link->link_id.enum_id = ENUM_ID_1; |
| 305 | link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED; | 305 | link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED; |
| 306 | link->replay_settings.config.replay_version = DC_REPLAY_VERSION_UNSUPPORTED; | 306 | link->replay_settings.config.replay_version = DC_REPLAY_VERSION_UNSUPPORTED; |
| 307 | link->link_enc = kzalloc_obj(*link->link_enc, GFP_KERNEL); | 307 | link->link_enc = kzalloc_obj(*link->link_enc); |
| 308 | 308 | ||
| 309 | if (!link->link_enc) { | 309 | if (!link->link_enc) { |
| 310 | BREAK_TO_DEBUGGER(); | 310 | BREAK_TO_DEBUGGER(); |
| @@ -409,7 +409,7 @@ static void destroy_link_encoders(struct dc *dc) · 98 unmodified lines | |||
| 409 | 409 | ||
| 410 | static struct dc_perf_trace *dc_perf_trace_create(void) | 410 | static struct dc_perf_trace *dc_perf_trace_create(void) |
| 411 | { | 411 | { |
| 412 | return kzalloc_obj(struct dc_perf_trace, GFP_KERNEL); | 412 | return kzalloc_obj(struct dc_perf_trace); |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | static void dc_perf_trace_destroy(struct dc_perf_trace **perf_trace) | 415 | static void dc_perf_trace_destroy(struct dc_perf_trace **perf_trace) |
| @@ -1005,7 +1005,7 @@ static bool dc_construct_ctx(struct dc *dc, · 589 unmodified lines | |||
| 1005 | { | 1005 | { |
| 1006 | struct dc_context *dc_ctx; | 1006 | struct dc_context *dc_ctx; |
| 1007 | 1007 | ||
| 1008 | dc_ctx = kzalloc_obj(*dc_ctx, GFP_KERNEL); | 1008 | dc_ctx = kzalloc_obj(*dc_ctx); |
| 1009 | if (!dc_ctx) | 1009 | if (!dc_ctx) |
| 1010 | return false; | 1010 | return false; |
| 1011 | 1011 | ||
| @@ -1023,7 +1023,7 @@ static bool dc_construct_ctx(struct dc *dc, · 11 unmodified lines | |||
| 1023 | dc_ctx->clk_reg_offsets = init_params->clk_reg_offsets; | 1023 | dc_ctx->clk_reg_offsets = init_params->clk_reg_offsets; |
| 1024 | 1024 | ||
| 1025 | /* Create logger */ | 1025 | /* Create logger */ |
| 1026 | dc_ctx->logger = kmalloc_obj(*dc_ctx->logger, GFP_KERNEL); | 1026 | dc_ctx->logger = kmalloc_obj(*dc_ctx->logger); |
| 1027 | 1027 | ||
| 1028 | if (!dc_ctx->logger) { | 1028 | if (!dc_ctx->logger) { |
| 1029 | kfree(dc_ctx); | 1029 | kfree(dc_ctx); |
| @@ -1063,7 +1063,7 @@ static bool dc_construct(struct dc *dc, · 33 unmodified lines | |||
| 1063 | dc->config = init_params->flags; | 1063 | dc->config = init_params->flags; |
| 1064 | 1064 | ||
| 1065 | // Allocate memory for the vm_helper | 1065 | // Allocate memory for the vm_helper |
| 1066 | dc->vm_helper = kzalloc_obj(struct vm_helper, GFP_KERNEL); | 1066 | dc->vm_helper = kzalloc_obj(struct vm_helper); |
| 1067 | if (!dc->vm_helper) { | 1067 | if (!dc->vm_helper) { |
| 1068 | dm_error("%s: failed to create dc->vm_helper\n", __func__); | 1068 | dm_error("%s: failed to create dc->vm_helper\n", __func__); |
| 1069 | goto fail; | 1069 | goto fail; |
| @@ -1071,7 +1071,7 @@ static bool dc_construct(struct dc *dc, · 1 unmodified line | |||
| 1071 | 1071 | ||
| 1072 | memcpy(&dc->bb_overrides, &init_params->bb_overrides, sizeof(dc->bb_overrides)); | 1072 | memcpy(&dc->bb_overrides, &init_params->bb_overrides, sizeof(dc->bb_overrides)); |
| 1073 | 1073 | ||
| 1074 | dc_dceip = kzalloc_obj(*dc_dceip, GFP_KERNEL); | 1074 | dc_dceip = kzalloc_obj(*dc_dceip); |
| 1075 | if (!dc_dceip) { | 1075 | if (!dc_dceip) { |
| 1076 | dm_error("%s: failed to create dceip\n", __func__); | 1076 | dm_error("%s: failed to create dceip\n", __func__); |
| 1077 | goto fail; | 1077 | goto fail; |
| @@ -1079,14 +1079,14 @@ static bool dc_construct(struct dc *dc, · 1 unmodified line | |||
| 1079 | 1079 | ||
| 1080 | dc->bw_dceip = dc_dceip; | 1080 | dc->bw_dceip = dc_dceip; |
| 1081 | 1081 | ||
| 1082 | dc_vbios = kzalloc_obj(*dc_vbios, GFP_KERNEL); | 1082 | dc_vbios = kzalloc_obj(*dc_vbios); |
| 1083 | if (!dc_vbios) { | 1083 | if (!dc_vbios) { |
| 1084 | dm_error("%s: failed to create vbios\n", __func__); | 1084 | dm_error("%s: failed to create vbios\n", __func__); |
| 1085 | goto fail; | 1085 | goto fail; |
| 1086 | } | 1086 | } |
| 1087 | 1087 | ||
| 1088 | dc->bw_vbios = dc_vbios; | 1088 | dc->bw_vbios = dc_vbios; |
| 1089 | dcn_soc = kzalloc_obj(*dcn_soc, GFP_KERNEL); | 1089 | dcn_soc = kzalloc_obj(*dcn_soc); |
| 1090 | if (!dcn_soc) { | 1090 | if (!dcn_soc) { |
| 1091 | dm_error("%s: failed to create dcn_soc\n", __func__); | 1091 | dm_error("%s: failed to create dcn_soc\n", __func__); |
| 1092 | goto fail; | 1092 | goto fail; |
| @@ -1094,7 +1094,7 @@ static bool dc_construct(struct dc *dc, · 1 unmodified line | |||
| 1094 | 1094 | ||
| 1095 | dc->dcn_soc = dcn_soc; | 1095 | dc->dcn_soc = dcn_soc; |
| 1096 | 1096 | ||
| 1097 | dcn_ip = kzalloc_obj(*dcn_ip, GFP_KERNEL); | 1097 | dcn_ip = kzalloc_obj(*dcn_ip); |
| 1098 | if (!dcn_ip) { | 1098 | if (!dcn_ip) { |
| 1099 | dm_error("%s: failed to create dcn_ip\n", __func__); | 1099 | dm_error("%s: failed to create dcn_ip\n", __func__); |
| 1100 | goto fail; | 1100 | goto fail; |
| @@ -1496,7 +1496,7 @@ static void disable_vbios_mode_if_required( · 395 unmodified lines | |||
| 1496 | 1496 | ||
| 1497 | struct dc *dc_create(const struct dc_init_data *init_params) | 1497 | struct dc *dc_create(const struct dc_init_data *init_params) |
| 1498 | { | 1498 | { |
| 1499 | struct dc *dc = kzalloc_obj(*dc, GFP_KERNEL); | 1499 | struct dc *dc = kzalloc_obj(*dc); |
| 1500 | unsigned int full_pipe_count; | 1500 | unsigned int full_pipe_count; |
| 1501 | 1501 | ||
| 1502 | if (!dc) | 1502 | if (!dc) |
| @@ -76,7 +76,7 @@ void dc_sink_release(struct dc_sink *sink) · 75 unmodified lines | |||
| 76 | 76 | ||
| 77 | struct dc_sink *dc_sink_create(const struct dc_sink_init_data *init_params) | 77 | struct dc_sink *dc_sink_create(const struct dc_sink_init_data *init_params) |
| 78 | { | 78 | { |
| 79 | struct dc_sink *sink = kzalloc_obj(*sink, GFP_KERNEL); | 79 | struct dc_sink *sink = kzalloc_obj(*sink); |
| 80 | 80 | ||
| 81 | if (NULL == sink) | 81 | if (NULL == sink) |
| 82 | goto alloc_fail; | 82 | goto alloc_fail; |
| @@ -195,7 +195,7 @@ struct dc_state *dc_state_create(struct dc *dc, struct dc_state_create_params *p · 194 unmodified lines | |||
| 195 | { | 195 | { |
| 196 | struct dc_state *state; | 196 | struct dc_state *state; |
| 197 | 197 | ||
| 198 | state = kvzalloc_obj(struct dc_state, GFP_KERNEL); | 198 | state = kvzalloc_obj(struct dc_state); |
| 199 | 199 | ||
| 200 | if (!state) | 200 | if (!state) |
| 201 | return NULL; | 201 | return NULL; |
| @@ -251,7 +251,7 @@ struct dc_state *dc_state_create_copy(struct dc_state *src_state) · 49 unmodified lines | |||
| 251 | { | 251 | { |
| 252 | struct dc_state *new_state; | 252 | struct dc_state *new_state; |
| 253 | 253 | ||
| 254 | new_state = kvmalloc_obj(struct dc_state, GFP_KERNEL); | 254 | new_state = kvmalloc_obj(struct dc_state); |
| 255 | if (!new_state) | 255 | if (!new_state) |
| 256 | return NULL; | 256 | return NULL; |
| 257 | 257 | ||
| @@ -170,7 +170,7 @@ struct dc_stream_state *dc_create_stream_for_sink( · 169 unmodified lines | |||
| 170 | if (sink == NULL) | 170 | if (sink == NULL) |
| 171 | goto fail; | 171 | goto fail; |
| 172 | 172 | ||
| 173 | stream = kzalloc_obj(struct dc_stream_state, GFP_KERNEL); | 173 | stream = kzalloc_obj(struct dc_stream_state); |
| 174 | if (stream == NULL) | 174 | if (stream == NULL) |
| 175 | goto fail; | 175 | goto fail; |
| 176 | 176 | ||
| @@ -195,7 +195,7 @@ void dc_gamma_release(struct dc_gamma **gamma) · 194 unmodified lines | |||
| 195 | 195 | ||
| 196 | struct dc_gamma *dc_create_gamma(void) | 196 | struct dc_gamma *dc_create_gamma(void) |
| 197 | { | 197 | { |
| 198 | struct dc_gamma *gamma = kvzalloc_obj(*gamma, GFP_KERNEL); | 198 | struct dc_gamma *gamma = kvzalloc_obj(*gamma); |
| 199 | 199 | ||
| 200 | if (gamma == NULL) | 200 | if (gamma == NULL) |
| 201 | goto alloc_fail; | 201 | goto alloc_fail; |
| @@ -225,7 +225,7 @@ void dc_transfer_func_release(struct dc_transfer_func *tf) · 23 unmodified lines | |||
| 225 | 225 | ||
| 226 | struct dc_transfer_func *dc_create_transfer_func(void) | 226 | struct dc_transfer_func *dc_create_transfer_func(void) |
| 227 | { | 227 | { |
| 228 | struct dc_transfer_func *tf = kvzalloc_obj(*tf, GFP_KERNEL); | 228 | struct dc_transfer_func *tf = kvzalloc_obj(*tf); |
| 229 | 229 | ||
| 230 | if (tf == NULL) | 230 | if (tf == NULL) |
| 231 | goto alloc_fail; | 231 | goto alloc_fail; |
| @@ -247,7 +247,7 @@ static void dc_3dlut_func_free(struct kref *kref) · 15 unmodified lines | |||
| 247 | 247 | ||
| 248 | struct dc_3dlut *dc_create_3dlut_func(void) | 248 | struct dc_3dlut *dc_create_3dlut_func(void) |
| 249 | { | 249 | { |
| 250 | struct dc_3dlut *lut = kvzalloc_obj(*lut, GFP_KERNEL); | 250 | struct dc_3dlut *lut = kvzalloc_obj(*lut); |
| 251 | 251 | ||
| 252 | if (lut == NULL) | 252 | if (lut == NULL) |
| 253 | goto alloc_fail; | 253 | goto alloc_fail; |
| @@ -60,7 +60,7 @@ static void dc_dmub_srv_handle_failure(struct dc_dmub_srv *dc_dmub_srv) · 59 unmodified lines | |||
| 60 | struct dc_dmub_srv *dc_dmub_srv_create(struct dc *dc, struct dmub_srv *dmub) | 60 | struct dc_dmub_srv *dc_dmub_srv_create(struct dc *dc, struct dmub_srv *dmub) |
| 61 | { | 61 | { |
| 62 | struct dc_dmub_srv *dc_srv = | 62 | struct dc_dmub_srv *dc_srv = |
| 63 | kzalloc_obj(struct dc_dmub_srv, GFP_KERNEL); | 63 | kzalloc_obj(struct dc_dmub_srv); |
| 64 | 64 | ||
| 65 | if (dc_srv == NULL) { | 65 | if (dc_srv == NULL) { |
| 66 | BREAK_TO_DEBUGGER(); | 66 | BREAK_TO_DEBUGGER(); |
| @@ -200,7 +200,7 @@ struct dccg *dccg2_create( · 199 unmodified lines | |||
| 200 | const struct dccg_shift *dccg_shift, | 200 | const struct dccg_shift *dccg_shift, |
| 201 | const struct dccg_mask *dccg_mask) | 201 | const struct dccg_mask *dccg_mask) |
| 202 | { | 202 | { |
| 203 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 203 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 204 | struct dccg *base; | 204 | struct dccg *base; |
| 205 | 205 | ||
| 206 | if (dccg_dcn == NULL) { | 206 | if (dccg_dcn == NULL) { |
| @@ -70,7 +70,7 @@ struct dccg *dccg201_create( · 69 unmodified lines | |||
| 70 | const struct dccg_shift *dccg_shift, | 70 | const struct dccg_shift *dccg_shift, |
| 71 | const struct dccg_mask *dccg_mask) | 71 | const struct dccg_mask *dccg_mask) |
| 72 | { | 72 | { |
| 73 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 73 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 74 | struct dccg *base; | 74 | struct dccg *base; |
| 75 | 75 | ||
| 76 | if (dccg_dcn == NULL) { | 76 | if (dccg_dcn == NULL) { |
| @@ -116,7 +116,7 @@ struct dccg *dccg21_create( · 115 unmodified lines | |||
| 116 | const struct dccg_shift *dccg_shift, | 116 | const struct dccg_shift *dccg_shift, |
| 117 | const struct dccg_mask *dccg_mask) | 117 | const struct dccg_mask *dccg_mask) |
| 118 | { | 118 | { |
| 119 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 119 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 120 | struct dccg *base; | 120 | struct dccg *base; |
| 121 | 121 | ||
| 122 | if (dccg_dcn == NULL) { | 122 | if (dccg_dcn == NULL) { |
| @@ -62,7 +62,7 @@ struct dccg *dccg3_create( · 61 unmodified lines | |||
| 62 | const struct dccg_shift *dccg_shift, | 62 | const struct dccg_shift *dccg_shift, |
| 63 | const struct dccg_mask *dccg_mask) | 63 | const struct dccg_mask *dccg_mask) |
| 64 | { | 64 | { |
| 65 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 65 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 66 | struct dccg *base; | 66 | struct dccg *base; |
| 67 | 67 | ||
| 68 | if (dccg_dcn == NULL) { | 68 | if (dccg_dcn == NULL) { |
| @@ -87,7 +87,7 @@ struct dccg *dccg30_create( · 18 unmodified lines | |||
| 87 | const struct dccg_shift *dccg_shift, | 87 | const struct dccg_shift *dccg_shift, |
| 88 | const struct dccg_mask *dccg_mask) | 88 | const struct dccg_mask *dccg_mask) |
| 89 | { | 89 | { |
| 90 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 90 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 91 | struct dccg *base; | 91 | struct dccg *base; |
| 92 | 92 | ||
| 93 | if (dccg_dcn == NULL) { | 93 | if (dccg_dcn == NULL) { |
| @@ -61,7 +61,7 @@ struct dccg *dccg301_create( · 60 unmodified lines | |||
| 61 | const struct dccg_shift *dccg_shift, | 61 | const struct dccg_shift *dccg_shift, |
| 62 | const struct dccg_mask *dccg_mask) | 62 | const struct dccg_mask *dccg_mask) |
| 63 | { | 63 | { |
| 64 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 64 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 65 | struct dccg *base; | 65 | struct dccg *base; |
| 66 | 66 | ||
| 67 | if (dccg_dcn == NULL) { | 67 | if (dccg_dcn == NULL) { |
| @@ -863,7 +863,7 @@ struct dccg *dccg31_create( · 862 unmodified lines | |||
| 863 | const struct dccg_shift *dccg_shift, | 863 | const struct dccg_shift *dccg_shift, |
| 864 | const struct dccg_mask *dccg_mask) | 864 | const struct dccg_mask *dccg_mask) |
| 865 | { | 865 | { |
| 866 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 866 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 867 | struct dccg *base; | 867 | struct dccg *base; |
| 868 | 868 | ||
| 869 | if (dccg_dcn == NULL) { | 869 | if (dccg_dcn == NULL) { |
| @@ -392,7 +392,7 @@ struct dccg *dccg314_create( · 391 unmodified lines | |||
| 392 | const struct dccg_shift *dccg_shift, | 392 | const struct dccg_shift *dccg_shift, |
| 393 | const struct dccg_mask *dccg_mask) | 393 | const struct dccg_mask *dccg_mask) |
| 394 | { | 394 | { |
| 395 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 395 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 396 | struct dccg *base; | 396 | struct dccg *base; |
| 397 | 397 | ||
| 398 | if (dccg_dcn == NULL) { | 398 | if (dccg_dcn == NULL) { |
| @@ -360,7 +360,7 @@ struct dccg *dccg32_create( · 359 unmodified lines | |||
| 360 | const struct dccg_shift *dccg_shift, | 360 | const struct dccg_shift *dccg_shift, |
| 361 | const struct dccg_mask *dccg_mask) | 361 | const struct dccg_mask *dccg_mask) |
| 362 | { | 362 | { |
| 363 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 363 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 364 | struct dccg *base; | 364 | struct dccg *base; |
| 365 | 365 | ||
| 366 | if (dccg_dcn == NULL) { | 366 | if (dccg_dcn == NULL) { |
| @@ -2461,7 +2461,7 @@ struct dccg *dccg35_create( · 2460 unmodified lines | |||
| 2461 | const struct dccg_shift *dccg_shift, | 2461 | const struct dccg_shift *dccg_shift, |
| 2462 | const struct dccg_mask *dccg_mask) | 2462 | const struct dccg_mask *dccg_mask) |
| 2463 | { | 2463 | { |
| 2464 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 2464 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 2465 | struct dccg *base; | 2465 | struct dccg *base; |
| 2466 | 2466 | ||
| 2467 | if (dccg_dcn == NULL) { | 2467 | if (dccg_dcn == NULL) { |
| @@ -892,7 +892,7 @@ struct dccg *dccg401_create( · 891 unmodified lines | |||
| 892 | const struct dccg_shift *dccg_shift, | 892 | const struct dccg_shift *dccg_shift, |
| 893 | const struct dccg_mask *dccg_mask) | 893 | const struct dccg_mask *dccg_mask) |
| 894 | { | 894 | { |
| 895 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn, GFP_KERNEL); | 895 | struct dcn_dccg *dccg_dcn = kzalloc_obj(*dccg_dcn); |
| 896 | struct dccg *base; | 896 | struct dccg *base; |
| 897 | 897 | ||
| 898 | if (dccg_dcn == NULL) { | 898 | if (dccg_dcn == NULL) { |
| @@ -283,7 +283,7 @@ struct abm *dce_abm_create( · 282 unmodified lines | |||
| 283 | const struct dce_abm_shift *abm_shift, | 283 | const struct dce_abm_shift *abm_shift, |
| 284 | const struct dce_abm_mask *abm_mask) | 284 | const struct dce_abm_mask *abm_mask) |
| 285 | { | 285 | { |
| 286 | struct dce_abm *abm_dce = kzalloc_obj(*abm_dce, GFP_KERNEL); | 286 | struct dce_abm *abm_dce = kzalloc_obj(*abm_dce); |
| 287 | 287 | ||
| 288 | if (abm_dce == NULL) { | 288 | if (abm_dce == NULL) { |
| 289 | BREAK_TO_DEBUGGER(); | 289 | BREAK_TO_DEBUGGER(); |
| @@ -1331,7 +1331,7 @@ struct audio *dce_audio_create( · 1330 unmodified lines | |||
| 1331 | const struct dce_audio_mask *masks | 1331 | const struct dce_audio_mask *masks |
| 1332 | ) | 1332 | ) |
| 1333 | { | 1333 | { |
| 1334 | struct dce_audio *audio = kzalloc_obj(*audio, GFP_KERNEL); | 1334 | struct dce_audio *audio = kzalloc_obj(*audio); |
| 1335 | 1335 | ||
| 1336 | if (audio == NULL) { | 1336 | if (audio == NULL) { |
| 1337 | ASSERT_CRITICAL(audio); | 1337 | ASSERT_CRITICAL(audio); |
| @@ -1357,7 +1357,7 @@ struct audio *dce60_audio_create( · 19 unmodified lines | |||
| 1357 | const struct dce_audio_mask *masks | 1357 | const struct dce_audio_mask *masks |
| 1358 | ) | 1358 | ) |
| 1359 | { | 1359 | { |
| 1360 | struct dce_audio *audio = kzalloc_obj(*audio, GFP_KERNEL); | 1360 | struct dce_audio *audio = kzalloc_obj(*audio); |
| 1361 | 1361 | ||
| 1362 | if (audio == NULL) { | 1362 | if (audio == NULL) { |
| 1363 | ASSERT_CRITICAL(audio); | 1363 | ASSERT_CRITICAL(audio); |
| @@ -848,7 +848,7 @@ struct clk_mgr *dce_clk_mgr_create( · 847 unmodified lines | |||
| 848 | const struct clk_mgr_shift *clk_shift, | 848 | const struct clk_mgr_shift *clk_shift, |
| 849 | const struct clk_mgr_mask *clk_mask) | 849 | const struct clk_mgr_mask *clk_mask) |
| 850 | { | 850 | { |
| 851 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce, GFP_KERNEL); | 851 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce); |
| 852 | 852 | ||
| 853 | if (clk_mgr_dce == NULL) { | 853 | if (clk_mgr_dce == NULL) { |
| 854 | BREAK_TO_DEBUGGER(); | 854 | BREAK_TO_DEBUGGER(); |
| @@ -871,7 +871,7 @@ struct clk_mgr *dce110_clk_mgr_create( · 16 unmodified lines | |||
| 871 | const struct clk_mgr_shift *clk_shift, | 871 | const struct clk_mgr_shift *clk_shift, |
| 872 | const struct clk_mgr_mask *clk_mask) | 872 | const struct clk_mgr_mask *clk_mask) |
| 873 | { | 873 | { |
| 874 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce, GFP_KERNEL); | 874 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce); |
| 875 | 875 | ||
| 876 | if (clk_mgr_dce == NULL) { | 876 | if (clk_mgr_dce == NULL) { |
| 877 | BREAK_TO_DEBUGGER(); | 877 | BREAK_TO_DEBUGGER(); |
| @@ -896,7 +896,7 @@ struct clk_mgr *dce112_clk_mgr_create( · 18 unmodified lines | |||
| 896 | const struct clk_mgr_shift *clk_shift, | 896 | const struct clk_mgr_shift *clk_shift, |
| 897 | const struct clk_mgr_mask *clk_mask) | 897 | const struct clk_mgr_mask *clk_mask) |
| 898 | { | 898 | { |
| 899 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce, GFP_KERNEL); | 899 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce); |
| 900 | 900 | ||
| 901 | if (clk_mgr_dce == NULL) { | 901 | if (clk_mgr_dce == NULL) { |
| 902 | BREAK_TO_DEBUGGER(); | 902 | BREAK_TO_DEBUGGER(); |
| @@ -917,7 +917,7 @@ struct clk_mgr *dce112_clk_mgr_create( · 14 unmodified lines | |||
| 917 | 917 | ||
| 918 | struct clk_mgr *dce120_clk_mgr_create(struct dc_context *ctx) | 918 | struct clk_mgr *dce120_clk_mgr_create(struct dc_context *ctx) |
| 919 | { | 919 | { |
| 920 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce, GFP_KERNEL); | 920 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce); |
| 921 | 921 | ||
| 922 | if (clk_mgr_dce == NULL) { | 922 | if (clk_mgr_dce == NULL) { |
| 923 | BREAK_TO_DEBUGGER(); | 923 | BREAK_TO_DEBUGGER(); |
| @@ -939,7 +939,7 @@ struct clk_mgr *dce120_clk_mgr_create(struct dc_context *ctx) · 15 unmodified lines | |||
| 939 | 939 | ||
| 940 | struct clk_mgr *dce121_clk_mgr_create(struct dc_context *ctx) | 940 | struct clk_mgr *dce121_clk_mgr_create(struct dc_context *ctx) |
| 941 | { | 941 | { |
| 942 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce, GFP_KERNEL); | 942 | struct dce_clk_mgr *clk_mgr_dce = kzalloc_obj(*clk_mgr_dce); |
| 943 | 943 | ||
| 944 | if (clk_mgr_dce == NULL) { | 944 | if (clk_mgr_dce == NULL) { |
| 945 | BREAK_TO_DEBUGGER(); | 945 | BREAK_TO_DEBUGGER(); |
| @@ -1105,7 +1105,7 @@ struct dmcu *dce_dmcu_create( · 1104 unmodified lines | |||
| 1105 | const struct dce_dmcu_shift *dmcu_shift, | 1105 | const struct dce_dmcu_shift *dmcu_shift, |
| 1106 | const struct dce_dmcu_mask *dmcu_mask) | 1106 | const struct dce_dmcu_mask *dmcu_mask) |
| 1107 | { | 1107 | { |
| 1108 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce, GFP_KERNEL); | 1108 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce); |
| 1109 | 1109 | ||
| 1110 | if (dmcu_dce == NULL) { | 1110 | if (dmcu_dce == NULL) { |
| 1111 | BREAK_TO_DEBUGGER(); | 1111 | BREAK_TO_DEBUGGER(); |
| @@ -1126,7 +1126,7 @@ struct dmcu *dcn10_dmcu_create( · 14 unmodified lines | |||
| 1126 | const struct dce_dmcu_shift *dmcu_shift, | 1126 | const struct dce_dmcu_shift *dmcu_shift, |
| 1127 | const struct dce_dmcu_mask *dmcu_mask) | 1127 | const struct dce_dmcu_mask *dmcu_mask) |
| 1128 | { | 1128 | { |
| 1129 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce, GFP_KERNEL); | 1129 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce); |
| 1130 | 1130 | ||
| 1131 | if (dmcu_dce == NULL) { | 1131 | if (dmcu_dce == NULL) { |
| 1132 | BREAK_TO_DEBUGGER(); | 1132 | BREAK_TO_DEBUGGER(); |
| @@ -1147,7 +1147,7 @@ struct dmcu *dcn20_dmcu_create( · 14 unmodified lines | |||
| 1147 | const struct dce_dmcu_shift *dmcu_shift, | 1147 | const struct dce_dmcu_shift *dmcu_shift, |
| 1148 | const struct dce_dmcu_mask *dmcu_mask) | 1148 | const struct dce_dmcu_mask *dmcu_mask) |
| 1149 | { | 1149 | { |
| 1150 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce, GFP_KERNEL); | 1150 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce); |
| 1151 | 1151 | ||
| 1152 | if (dmcu_dce == NULL) { | 1152 | if (dmcu_dce == NULL) { |
| 1153 | BREAK_TO_DEBUGGER(); | 1153 | BREAK_TO_DEBUGGER(); |
| @@ -1168,7 +1168,7 @@ struct dmcu *dcn21_dmcu_create( · 14 unmodified lines | |||
| 1168 | const struct dce_dmcu_shift *dmcu_shift, | 1168 | const struct dce_dmcu_shift *dmcu_shift, |
| 1169 | const struct dce_dmcu_mask *dmcu_mask) | 1169 | const struct dce_dmcu_mask *dmcu_mask) |
| 1170 | { | 1170 | { |
| 1171 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce, GFP_KERNEL); | 1171 | struct dce_dmcu *dmcu_dce = kzalloc_obj(*dmcu_dce); |
| 1172 | 1172 | ||
| 1173 | if (dmcu_dce == NULL) { | 1173 | if (dmcu_dce == NULL) { |
| 1174 | BREAK_TO_DEBUGGER(); | 1174 | BREAK_TO_DEBUGGER(); |
| @@ -222,7 +222,7 @@ struct abm *dmub_abm_create( · 221 unmodified lines | |||
| 222 | const struct dce_abm_mask *abm_mask) | 222 | const struct dce_abm_mask *abm_mask) |
| 223 | { | 223 | { |
| 224 | if (ctx->dc->caps.dmcub_support) { | 224 | if (ctx->dc->caps.dmcub_support) { |
| 225 | struct dce_abm *abm_dce = kzalloc_obj(*abm_dce, GFP_KERNEL); | 225 | struct dce_abm *abm_dce = kzalloc_obj(*abm_dce); |
| 226 | 226 | ||
| 227 | if (abm_dce == NULL) { | 227 | if (abm_dce == NULL) { |
| 228 | BREAK_TO_DEBUGGER(); | 228 | BREAK_TO_DEBUGGER(); |
| @@ -488,7 +488,7 @@ static void dmub_psr_construct(struct dmub_psr *psr, struct dc_context *ctx) · 487 unmodified lines | |||
| 488 | */ | 488 | */ |
| 489 | struct dmub_psr *dmub_psr_create(struct dc_context *ctx) | 489 | struct dmub_psr *dmub_psr_create(struct dc_context *ctx) |
| 490 | { | 490 | { |
| 491 | struct dmub_psr *psr = kzalloc_obj(struct dmub_psr, GFP_KERNEL); | 491 | struct dmub_psr *psr = kzalloc_obj(struct dmub_psr); |
| 492 | 492 | ||
| 493 | if (psr == NULL) { | 493 | if (psr == NULL) { |
| 494 | BREAK_TO_DEBUGGER(); | 494 | BREAK_TO_DEBUGGER(); |
| @@ -438,7 +438,7 @@ static void dmub_replay_construct(struct dmub_replay *replay, struct dc_context · 437 unmodified lines | |||
| 438 | */ | 438 | */ |
| 439 | struct dmub_replay *dmub_replay_create(struct dc_context *ctx) | 439 | struct dmub_replay *dmub_replay_create(struct dc_context *ctx) |
| 440 | { | 440 | { |
| 441 | struct dmub_replay *replay = kzalloc_obj(struct dmub_replay, GFP_KERNEL); | 441 | struct dmub_replay *replay = kzalloc_obj(struct dmub_replay); |
| 442 | 442 | ||
| 443 | if (replay == NULL) { | 443 | if (replay == NULL) { |
| 444 | BREAK_TO_DEBUGGER(); | 444 | BREAK_TO_DEBUGGER(); |
| @@ -394,7 +394,7 @@ void dce110_compressor_set_fbc_invalidation_triggers( · 393 unmodified lines | |||
| 394 | struct compressor *dce110_compressor_create(struct dc_context *ctx) | 394 | struct compressor *dce110_compressor_create(struct dc_context *ctx) |
| 395 | { | 395 | { |
| 396 | struct dce110_compressor *cp110 = | 396 | struct dce110_compressor *cp110 = |
| 397 | kzalloc_obj(struct dce110_compressor, GFP_KERNEL); | 397 | kzalloc_obj(struct dce110_compressor); |
| 398 | 398 | ||
| 399 | if (!cp110) | 399 | if (!cp110) |
| 400 | return NULL; | 400 | return NULL; |
| @@ -831,7 +831,7 @@ void dce112_compressor_construct(struct dce112_compressor *compressor, · 830 unmodified lines | |||
| 831 | struct compressor *dce112_compressor_create(struct dc_context *ctx) | 831 | struct compressor *dce112_compressor_create(struct dc_context *ctx) |
| 832 | { | 832 | { |
| 833 | struct dce112_compressor *cp110 = | 833 | struct dce112_compressor *cp110 = |
| 834 | kzalloc_obj(struct dce112_compressor, GFP_KERNEL); | 834 | kzalloc_obj(struct dce112_compressor); |
| 835 | 835 | ||
| 836 | if (!cp110) | 836 | if (!cp110) |
| 837 | return NULL; | 837 | return NULL; |
| @@ -159,7 +159,7 @@ bool virtual_stream_encoder_construct( · 158 unmodified lines | |||
| 159 | struct stream_encoder *virtual_stream_encoder_create( | 159 | struct stream_encoder *virtual_stream_encoder_create( |
| 160 | struct dc_context *ctx, struct dc_bios *bp) | 160 | struct dc_context *ctx, struct dc_bios *bp) |
| 161 | { | 161 | { |
| 162 | struct stream_encoder *enc = kzalloc_obj(*enc, GFP_KERNEL); | 162 | struct stream_encoder *enc = kzalloc_obj(*enc); |
| 163 | 163 | ||
| 164 | if (!enc) | 164 | if (!enc) |
| 165 | return NULL; | 165 | return NULL; |
| @@ -280,7 +280,7 @@ bool dwb3_ogam_set_input_transfer_func( · 279 unmodified lines | |||
| 280 | if (in_transfer_func_dwb_ogam == NULL) | 280 | if (in_transfer_func_dwb_ogam == NULL) |
| 281 | return result; | 281 | return result; |
| 282 | 282 | ||
| 283 | dwb_ogam_lut = kzalloc_obj(*dwb_ogam_lut, GFP_KERNEL); | 283 | dwb_ogam_lut = kzalloc_obj(*dwb_ogam_lut); |
| 284 | 284 | ||
| 285 | if (dwb_ogam_lut) { | 285 | if (dwb_ogam_lut) { |
| 286 | cm_helper_translate_curve_to_hw_format(dwbc->ctx, | 286 | cm_helper_translate_curve_to_hw_format(dwbc->ctx, |
| @@ -270,7 +270,7 @@ struct gpio *dal_gpio_create( · 269 unmodified lines | |||
| 270 | uint32_t en, | 270 | uint32_t en, |
| 271 | enum gpio_pin_output_state output_state) | 271 | enum gpio_pin_output_state output_state) |
| 272 | { | 272 | { |
| 273 | struct gpio *gpio = kzalloc_obj(struct gpio, GFP_KERNEL); | 273 | struct gpio *gpio = kzalloc_obj(struct gpio); |
| 274 | 274 | ||
| 275 | if (!gpio) { | 275 | if (!gpio) { |
| 276 | ASSERT_CRITICAL(false); | 276 | ASSERT_CRITICAL(false); |
| @@ -58,7 +58,7 @@ struct gpio_service *dal_gpio_service_create( · 57 unmodified lines | |||
| 58 | struct gpio_service *service; | 58 | struct gpio_service *service; |
| 59 | int32_t index_of_id; | 59 | int32_t index_of_id; |
| 60 | 60 | ||
| 61 | service = kzalloc_obj(struct gpio_service, GFP_KERNEL); | 61 | service = kzalloc_obj(struct gpio_service); |
| 62 | 62 | ||
| 63 | if (!service) { | 63 | if (!service) { |
| 64 | BREAK_TO_DEBUGGER(); | 64 | BREAK_TO_DEBUGGER(); |
| @@ -498,7 +498,7 @@ struct ddc *dal_gpio_create_ddc( · 433 unmodified lines | |||
| 498 | if (!service->translate.funcs->offset_to_id(offset, mask, &id, &en)) | 498 | if (!service->translate.funcs->offset_to_id(offset, mask, &id, &en)) |
| 499 | return NULL; | 499 | return NULL; |
| 500 | 500 | ||
| 501 | ddc = kzalloc_obj(struct ddc, GFP_KERNEL); | 501 | ddc = kzalloc_obj(struct ddc); |
| 502 | 502 | ||
| 503 | if (!ddc) { | 503 | if (!ddc) { |
| 504 | BREAK_TO_DEBUGGER(); | 504 | BREAK_TO_DEBUGGER(); |
| @@ -233,7 +233,7 @@ void dal_hw_ddc_init( · 232 unmodified lines | |||
| 233 | *hw_ddc = NULL; | 233 | *hw_ddc = NULL; |
| 234 | } | 234 | } |
| 235 | 235 | ||
| 236 | *hw_ddc = kzalloc_obj(struct hw_ddc, GFP_KERNEL); | 236 | *hw_ddc = kzalloc_obj(struct hw_ddc); |
| 237 | if (!*hw_ddc) { | 237 | if (!*hw_ddc) { |
| 238 | ASSERT_CRITICAL(false); | 238 | ASSERT_CRITICAL(false); |
| 239 | return; | 239 | return; |
| @@ -111,7 +111,7 @@ void dal_hw_generic_init( · 110 unmodified lines | |||
| 111 | *hw_generic = NULL; | 111 | *hw_generic = NULL; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | *hw_generic = kzalloc_obj(struct hw_generic, GFP_KERNEL); | 114 | *hw_generic = kzalloc_obj(struct hw_generic); |
| 115 | if (!*hw_generic) { | 115 | if (!*hw_generic) { |
| 116 | ASSERT_CRITICAL(false); | 116 | ASSERT_CRITICAL(false); |
1 more lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 108 lines aren’t shown here.
This diff is large: its 119 lines aren’t shown here.
This diff is large: its 108 lines aren’t shown here.
This diff is large: its 117 lines aren’t shown here.
This diff is large: its 135 lines aren’t shown here.
This diff is large: its 135 lines aren’t shown here.
This diff is large: its 135 lines aren’t shown here.
This diff is large: its 144 lines aren’t shown here.
This diff is large: its 117 lines aren’t shown here.
This diff is large: its 144 lines aren’t shown here.
This diff is large: its 144 lines aren’t shown here.
This diff is large: its 144 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 180 lines aren’t shown here.
This diff is large: its 180 lines aren’t shown here.
This diff is large: its 171 lines aren’t shown here.
This diff is large: its 171 lines aren’t shown here.
This diff is large: its 162 lines aren’t shown here.
This diff is large: its 153 lines aren’t shown here.
This diff is large: its 171 lines aren’t shown here.
This diff is large: its 171 lines aren’t shown here.
This diff is large: its 171 lines aren’t shown here.
This diff is large: its 162 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 144 lines aren’t shown here.
This diff is large: its 62 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 33 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
This diff is large: its 19 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 26 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 84 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 33 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 43 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 48 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 71 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 33 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 130 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 74 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 111 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 69 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 85 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 102 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 82 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 33 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 53 lines aren’t shown here.
This diff is large: its 86 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 76 lines aren’t shown here.
This diff is large: its 85 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 26 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 56 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 47 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 59 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 43 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 53 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 7 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 130 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 33 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 75 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 49 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 52 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 46 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 43 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 123 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 140 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 117 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 42 lines aren’t shown here.
This diff is large: its 35 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 30 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 78 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 126 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 138 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 61 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 65 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 106 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 117 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 154 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 144 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 71 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 33 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 127 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 137 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 43 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 132 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 30 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 360 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 114 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 315 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 56 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 459 lines aren’t shown here.
This diff is large: its 225 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 87 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 74 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 71 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 131 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 26 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 30 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 71 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 188 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 28 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 162 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 153 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 117 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 17 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 48 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 153 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 120 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 96 lines aren’t shown here.
This diff is large: its 43 lines aren’t shown here.
This diff is large: its 62 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 126 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 38 lines aren’t shown here.
This diff is large: its 67 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 69 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 39 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 87 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 52 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 40 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 39 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 46 lines aren’t shown here.
This diff is large: its 50 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 81 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 38 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 68 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 77 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 29 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 132 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 121 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 108 lines aren’t shown here.
This diff is large: its 136 lines aren’t shown here.
This diff is large: its 126 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 59 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 51 lines aren’t shown here.
This diff is large: its 77 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 24 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 26 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 49 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 32 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 216 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 99 lines aren’t shown here.
This diff is large: its 108 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 56 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 49 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 42 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 34 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 20 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 43 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 61 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 61 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 22 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 162 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 195 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 108 lines aren’t shown here.
This diff is large: its 67 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 21 lines aren’t shown here.
This diff is large: its 14 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 31 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 39 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 59 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 23 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 72 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 76 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 25 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 30 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 13 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 16 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 11 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 15 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 90 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 95 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 63 lines aren’t shown here.
This diff is large: its 45 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 18 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 41 lines aren’t shown here.
This diff is large: its 27 lines aren’t shown here.
This diff is large: its 54 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 9 lines aren’t shown here.
This diff is large: its 36 lines aren’t shown here.