From mboxrd@z Thu Jan 1 00:00:00 1970 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 C9CE124503F; Sun, 8 Mar 2026 16:00:00 +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=1772985600; cv=none; b=On2bdCoqcDKp11+Hmyy0N0u8JZAUvqyWalZHhxDC3YJEoybOQEydtoGY+FHq2ixNiNcePMK2e2/+SYzeTQJllQO+Jnz6RcPG5ojTonbUFO4Q27ELEq3SEcHLF942hPmxl/F0xnElY5nhdZrIKQZTd6wtEVyQyK8xnAtZRYKROh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772985600; c=relaxed/simple; bh=Xhy6/uTGx35tiRoa+USFQkDbiY2tVV5MuJSrDtO1gps=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PxNtW2oX1FOZVZ/aMJ0mNdTc6Qb02hfg0kuMcUf4gGs0rjW7V3eu/mRglqZzxO7R163GlY9OpSQFDJ5PKx1DZWOqd04kgd4sKhaUOGrfN75HqQIvcPOPwk3jePODSy42Svx38fuwE2z/ACJuvhNkjRZZljqh7Nc/FlEMNthVDVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mo5MklGg; 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="mo5MklGg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E41AC116C6; Sun, 8 Mar 2026 15:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772985600; bh=Xhy6/uTGx35tiRoa+USFQkDbiY2tVV5MuJSrDtO1gps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mo5MklGgxhwqpszlskVCpKBuvU8RP8Kl7iuyaxV2TosUpdMeBtLct4YScyTX0ZNqn nHrDG7BUfuqyoBfoU6RC/TcFdkT+mbzcMbjc8tXp6daqUysGJNsmSZ3XiIH/JF8fEl 3eplWOQO5JmJuNk+tNMW78p/OmlLzzIEG4WkUew9uFdqoUSwT2xD+Fo7R940i/1h2y fO4IhUGcKi3YTjDvSPceYm7HGNygBuEufJ4bQVJOlPgu7vLh/GdnyXrwa6RXC1ih2p i9fKYMJPb9e228VVmx3CI4o2Q+eKYHlTzLeopSMLP+L8CIWD83cB7zwePSadH8tqyG qzf/Afqjp28xg== Date: Sun, 8 Mar 2026 17:59:55 +0200 From: Leon Romanovsky To: Rosen Penev Cc: linux-rdma@vger.kernel.org, Dennis Dalessandro , linux-hardening@vger.kernel.org, gustavoars@kernel.org, Jason Gunthorpe , open list Subject: Re: [PATCH] IB/hfi1: kzalloc to kzalloc_flex Message-ID: <20260308155955.GQ12611@unreal> References: <20260308031957.90900-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260308031957.90900-1-rosenp@gmail.com> On Sat, Mar 07, 2026 at 07:19:56PM -0800, Rosen Penev wrote: > Combine kzalloc and kcalloc with a flexible array member. Avoids having > to free separately. > > Signed-off-by: Rosen Penev > --- > drivers/infiniband/hw/hfi1/user_exp_rcv.c | 10 +--------- > drivers/infiniband/hw/hfi1/user_exp_rcv.h | 2 +- > 2 files changed, 2 insertions(+), 10 deletions(-) This patch needs to be rebased to latest rdma-next, due to the conflict with already merged 94ff7c59cdfd ("RDMA: Complete k[z|m|c]alloc-to-k[z|m]alloc_obj conversion"). Thanks