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

microblaze: Remove zalloc_maybe_bootmem()

Last user of zalloc_maybe_bootmem() was removed by
commit 4308e3c9e1ea ("microblaze/PCI: Remove unused allocation & free
of PCI host bridge structure")

Remove it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/bfb1601cac24d7ef8e741c83f9301e4a5a87a0b5.1692124505.git.christophe.leroy@csgroup.eu
Signed-off-by: Michal Simek <michal.simek@amd.com>

authored by

Christophe Leroy and committed by
Michal Simek
b48edb86 0e9a2a22

-18
-2
arch/microblaze/include/asm/setup.h
··· 25 25 void machine_halt(void); 26 26 void machine_power_off(void); 27 27 28 - extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask); 29 - 30 28 # endif /* __ASSEMBLY__ */ 31 29 #endif /* _ASM_MICROBLAZE_SETUP_H */
-16
arch/microblaze/mm/init.c
··· 270 270 memblock_dump_all(); 271 271 } 272 272 273 - void * __ref zalloc_maybe_bootmem(size_t size, gfp_t mask) 274 - { 275 - void *p; 276 - 277 - if (mem_init_done) { 278 - p = kzalloc(size, mask); 279 - } else { 280 - p = memblock_alloc(size, SMP_CACHE_BYTES); 281 - if (!p) 282 - panic("%s: Failed to allocate %zu bytes\n", 283 - __func__, size); 284 - } 285 - 286 - return p; 287 - } 288 - 289 273 static const pgprot_t protection_map[16] = { 290 274 [VM_NONE] = PAGE_NONE, 291 275 [VM_READ] = PAGE_READONLY_X,