From nobody Wed Dec 17 23:29:24 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E822C04A94 for ; Tue, 15 Aug 2023 18:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239189AbjHOShg (ORCPT ); Tue, 15 Aug 2023 14:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239160AbjHOSg7 (ORCPT ); Tue, 15 Aug 2023 14:36:59 -0400 Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4824510D8 for ; Tue, 15 Aug 2023 11:36:58 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4RQKk04wSLz9sdR; Tue, 15 Aug 2023 20:36:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lnEPxfjuCVQ0; Tue, 15 Aug 2023 20:36:56 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4RQKk03vcdz9sdQ; Tue, 15 Aug 2023 20:36:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 82CB38B76C; Tue, 15 Aug 2023 20:36:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 4tgKdROCRcLb; Tue, 15 Aug 2023 20:36:56 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.233.223]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 505408B763; Tue, 15 Aug 2023 20:36:56 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 37FIakoU133313 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 15 Aug 2023 20:36:46 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 37FIaktO133304; Tue, 15 Aug 2023 20:36:46 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Michal Simek Cc: Christophe Leroy , linux-kernel@vger.kernel.org Subject: [PATCH] microblaze: Remove zalloc_maybe_bootmem() Date: Tue, 15 Aug 2023 20:36:27 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1692124586; l=1541; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=nY4Jl+US5Rsly3AwDkSiNto1Vzq4wFwjUuGe4NrB1vA=; b=gk3E0oWoI9aVnO//MKppzfgJwaGnHOhVGazs0KALjoKr7yko21btVks8zTdQG25f4s626/MNF CEFBupqEq+NACzzdtgqOrRNvRGeWA2PJNEurybP3m4J+OQwnw3kqSA7 X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- arch/microblaze/include/asm/setup.h | 2 -- arch/microblaze/mm/init.c | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/arch/microblaze/include/asm/setup.h b/arch/microblaze/include/= asm/setup.h index 3657f5e78a3d..bf2600f75959 100644 --- a/arch/microblaze/include/asm/setup.h +++ b/arch/microblaze/include/asm/setup.h @@ -25,7 +25,5 @@ void machine_shutdown(void); void machine_halt(void); void machine_power_off(void); =20 -extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask); - # endif /* __ASSEMBLY__ */ #endif /* _ASM_MICROBLAZE_SETUP_H */ diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 353fabdfcbc5..3827dc76edd8 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -270,22 +270,6 @@ asmlinkage void __init mmu_init(void) memblock_dump_all(); } =20 -void * __ref zalloc_maybe_bootmem(size_t size, gfp_t mask) -{ - void *p; - - if (mem_init_done) { - p =3D kzalloc(size, mask); - } else { - p =3D memblock_alloc(size, SMP_CACHE_BYTES); - if (!p) - panic("%s: Failed to allocate %zu bytes\n", - __func__, size); - } - - return p; -} - static const pgprot_t protection_map[16] =3D { [VM_NONE] =3D PAGE_NONE, [VM_READ] =3D PAGE_READONLY_X, --=20 2.41.0