Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2E1E1EBA14 for ; Mon, 23 Feb 2026 19:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771875514; cv=none; b=ljXNp7fW3yuB9X1lrlBeQU87Nk3eJ1Y9Hh5d/ou8mhgdScpP7HDNjVSXSgtjv/xH2rzctFVrjB+951xncY+bN5sbBJrHA+JWSouxrJnw7ERkQd9JZGedfvMhXTfLIkuUvjH2MQYw9NAw5l+PsafdFqn6B363U1CmVh9lqkwZmvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771875514; c=relaxed/simple; bh=0liSLOp6O8LEmoBc+kVOuEi4d/b1OtVGMfSEM2HKyxs=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=b4UHuGUCCs3iTHWTd7p+GrKEjRvtKR6Ga3M/lRJh051SSVsMBXHhRLPqfGycyaFnszZNl7aZhVKihwzI36lZ4eZ4jWXJyugPzcsAPHS/2ZbQcEQn/Jz7NwyA8nRL8gqFLPDbcJ1+pvIn/xLk5bacXHAbxPBk4TpirFx5/ofDvoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ll3WpHA+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ll3WpHA+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0928EC116C6; Mon, 23 Feb 2026 19:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771875514; bh=0liSLOp6O8LEmoBc+kVOuEi4d/b1OtVGMfSEM2HKyxs=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=ll3WpHA+az0TrUwt/tb1x5lQmtK9ncSnpChC5MZjsXQ1ggTuESy1eQmoDyR0pOXm6 vhyU67p+3MoLkCwZ+WwmbZuA6ELVBoctCPaUGF2+6xUSTQB9jRt+Dr6fruq14aru2n G2thhx7MAaHvePD6HZLUM65tYXq9NHV75TzOolmLq8au0owD98yyQPdO2CSMkSVU35 4ROW/8YBXCBfA+90Hc0Vlyb1kIcsEUrk5KkHg3dj83sGhh5PZueC5l6jydDyYF9ufH tH2Fzv9MDN9bF1gJbPRDH7o8llBD52knx7vKxbblV130ux8CxX32I6jhymj6Dk3Lpp z3CPjIoRVGZIQ== Message-ID: <2536c3e7-18d2-47cb-88c6-36f94c61c1c6@kernel.org> Date: Mon, 23 Feb 2026 20:38:29 +0100 Precedence: bulk X-Mailing-List: kvm-ppc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Linux PPC] 7.0-rc1: e500_mmu.c:923:26: error: assignment to 'struct tlbe_priv *' from incompatible pointer type 'struct tlbe_ref *' From: "Christophe Leroy (CS GROUP)" To: Christian Zigotzky , Shrikanth Hegde , linuxppc-dev , "kvm-ppc@vger.kernel.org" , Madhavan Srinivasan , Kees Cook Cc: "R.T.Dickinson" , hypexed@yahoo.com.au, mad skateman , Christian Zigotzky References: <185d7a42-f7b4-44e1-a129-f5989d211c74@linux.ibm.com> <40154f6a-39da-959d-e039-5ab9ff62db3c@xenosoft.de> <709b864f-9daa-4a48-b3d6-39baedce63b2@linux.ibm.com> <843b7c60-23f1-47d0-b4e8-2147c3e40c23@linux.ibm.com> <2a27e6fc-7eb4-41a5-ba88-58f6a22625b5@xenosoft.de> <1d79ec6f-ce7f-4432-80e0-a54fa1668642@linux.ibm.com> <2cbd1e19-ac99-29c3-ab89-3c58a9863e5a@xenosoft.de> <2d2d4735-04e0-46a0-93c6-654507fe2ae1@kernel.org> Content-Language: fr-FR In-Reply-To: <2d2d4735-04e0-46a0-93c6-654507fe2ae1@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 23/02/2026 à 19:07, Christophe Leroy (CS GROUP) a écrit : > +Kees > > Hello, > > Le 23/02/2026 à 17:48, Christian Zigotzky a écrit : >> Hello, >> >> Compiling issue for e5500 machines for the RC1 of kernel 7.0: >> >> arch/powerpc/kvm/e500_mmu.c: In function 'kvmppc_e500_tlb_init': >> arch/powerpc/kvm/e500_mmu.c:923:26: error: assignment to 'struct >> tlbe_priv *' from incompatible pointer type 'struct tlbe_ref *' [- >> Werror=incompatible-pointer-types] >>    923 |  vcpu_e500->gtlb_priv[0] = kzalloc_objs(struct tlbe_ref, >>        |                          ^ >> arch/powerpc/kvm/e500_mmu.c:928:26: error: assignment to 'struct >> tlbe_priv *' from incompatible pointer type 'struct tlbe_ref *' [- >> Werror=incompatible-pointer-types] >>    928 |  vcpu_e500->gtlb_priv[1] = kzalloc_objs(struct tlbe_ref, >> >> Temporary solution: # CONFIG_VIRTUALIZATION is not set >> >> Please solve this issue. >> > > Must be one of: > > 189f164e573e Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses > bf4afc53b77a Convert 'alloc_obj' family to use the new default > GFP_KERNEL argument > 69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar > types > Can you try following change: diff --git a/arch/powerpc/kvm/e500_mmu.c b/arch/powerpc/kvm/e500_mmu.c index 48580c85f23b..75ed1496ead5 100644 --- a/arch/powerpc/kvm/e500_mmu.c +++ b/arch/powerpc/kvm/e500_mmu.c @@ -920,12 +920,12 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500) vcpu_e500->gtlb_offset[0] = 0; vcpu_e500->gtlb_offset[1] = KVM_E500_TLB0_SIZE; - vcpu_e500->gtlb_priv[0] = kzalloc_objs(struct tlbe_ref, + vcpu_e500->gtlb_priv[0] = kzalloc_objs(struct tlbe_priv, vcpu_e500->gtlb_params[0].entries); if (!vcpu_e500->gtlb_priv[0]) goto free_vcpu; - vcpu_e500->gtlb_priv[1] = kzalloc_objs(struct tlbe_ref, + vcpu_e500->gtlb_priv[1] = kzalloc_objs(struct tlbe_priv, vcpu_e500->gtlb_params[1].entries); if (!vcpu_e500->gtlb_priv[1]) goto free_vcpu; --- Christophe