From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796295722; b=AJfGtwiSgSWqjepFkhlxF5BLlquRA9JRqO7kgiwjPEmem0qM87lUA9eqfs0sGyUhCvl5 wN4Cy8EjxcBXYbKpulddMRk7dk4I6Zell5QkMg7xU3qaNEwQi506Y+co8KnzpGcSc8pns 8NqcypYu/EF9OC77et5r9fE7qqSltGsb20NL7YK3RdzkDWtyUhQ7ZGJBw293Wlw4Zou/E a6h1MuellNMhWSpYk0FrUb/OvyIlPOzuAdpCBAzmI4HAz6KT9xyKM1MLHgzKfaP4HxUfR 2Phtg2PBHDIC/J987GWkRwcmiLSz1/juE1oxAEygYZKmBChs2KHwHUPvEZfAetmBhpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796295722; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=KqSQwjEK+qQfWhq+7w7aDuKrnyHHZvR8EhU1PtEfHug=; b=pZ+SYqrX5z+bQtHBspXoGdJTnSILff5KxYQuYvqrxxYVUo22O/7WSYjGo007HHiooHwl N2iPbhSMoMsvJsHPkXUCA2sX1IZsill6s+ygmjkjhq/5tORxNNnm9qDxtULXpcrbEf9FN 7qSAqrDqtxr6TBJtEmM7c+/XMIisTo+wmLPt7sA5OulpuKqkuY6KGCP/XVx88Zj6txHNA k+X59FIX1QFTIbEmWpwpOzYa9yRVMSmgfWouHC5Bf9IYE4c4SyQcfWBUzT9ZPkOzDmLxH Zw/7ZVeCgX9L2qC5qSVunSNoJAZBCm0bnBy2Z1EYejgU7Ph3g9un4v1dqK77Uc8T0iw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iEyB+qsJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C6A9606A322 for ; Thu, 3 Dec 2026 11:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iEyB+qsJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11E2B1F00893; Thu, 3 Dec 2026 11:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796295722; bh=KqSQwjEK+qQfWhq+7w7aDuKrnyHHZvR8EhU1PtEfHug=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iEyB+qsJK14pbtW5yg0dpKjIOmdmIYnsgrvUf2QIB0oys718IHltGAactZayCaE1O o1fqgagbW4DYANgyef1ZD/VMFxztr7HrVhc0eFCE1ld7+yocnkae/iMy/h/fyWI3hp 3oxOaJuBXYYiIE9jHnl5YfMw7v33W0YzyQR6QZcHGuDrAKf0/ktvsnl+ia2fzZi2wZ lFYjFUb3ZgopVq/ku9s6L4hRN1x2MK99NSZXGbwwxucYKz/if2ViAi+JxrzxMsdxo5 3k+pnsWpSsB2zs8xu0KRsCO5/nZjHtXyRkVTYOK5dsElZSkxESZ3LpG5XYezT8TH0z vdQx8U8N/GKdA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 04/17] s390/vmem: Use generic page table allocators for vmem page tables Reply-To: sashiko-reviews@lists.linux.dev To: "Heiko Carstens" Cc: linux-s390@vger.kernel.org, "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" In-Reply-To: <20261203103345.1206548-5-hca@linux.ibm.com> References: <20261203103345.1206548-1-hca@linux.ibm.com> <20261203103345.1206548-5-hca@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:02:01 +0000 X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] s390/vmem: missing __ref on vmem_pte_free() calling memblock_free() -- commit eb7d1e0bc98d30f332834afa2eecf8dd1866e8b9 Author: Heiko Carstens s390/vmem: Use generic page table allocators for vmem page tables This commit switches vmem CRST and PTE allocations to the generic page table allocators once slab is available, and updates vmem_crst_free() and vmem_pte_free() to handle both early memblock and generic page table allocations. > diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c > index 66071085f5a30..0436b81d9bc5a 100644 > --- a/arch/s390/mm/vmem.c > +++ b/arch/s390/mm/vmem.c [ ... ] > @@ -79,9 +96,12 @@ pte_t __ref *vmem_pte_alloc(void) > return pte; > } > =20 > -static void vmem_pte_free(unsigned long *table) > +void vmem_pte_free(unsigned long *table) > { > - page_table_free(&init_mm, table); > + if (slab_is_available()) > + page_table_free(&init_mm, table); > + else > + memblock_free(table, PAGE_SIZE); > } [Severity: Medium] Does vmem_pte_free() need a __ref annotation like vmem_crst_alloc() and vmem_pte_alloc()? memblock_free() is marked __init_memblock, which expands to __init when CONFIG_MEMORY_HOTPLUG is disabled (s390 does not select CONFIG_ARCH_KEEP_MEMBLOCK). Without __ref, modpost reports a .text to .init.text section mismatch, breaking builds with CONFIG_WERROR=3Dy. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203103345.1206= 548-1-hca@linux.ibm.com?part=3D4