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 AC6092F1FDB for ; Thu, 26 Feb 2026 07:19:17 +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=1772090357; cv=none; b=ZVY2HP5Yov0V+nrhCVNOKblg0o6Ek55lpOqq5RLWooBxCUxpXxc7FdRVu7FgqEHv/QR7KdxUj4o3QdrH/1gN4aJa0TkXiyFwcz8jRTumkLjwB4rn2DAKnT62Rc6Po45Vfv0RIKmagjFK4gazajUSxaYpZmxVMEnPq6y+OM2U4x8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772090357; c=relaxed/simple; bh=HMg+i1WylRKqTTveRXRGiiACBPovax14TDQ9mtRJ8vA=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=NOkg438y48xGD/jy0/wWrj+1f9cvo0TZkwXjtUIx6aold/bGzG7/Cat/ziMPQykaY5wt/hjwBbJpJjFP+zkY4r4hiZIpmZ9Hj5sMs6SoysoHFHTuU5WJyHMiy0jvFFhp1DEvAWxDj+wagtiHKJeRAV0f6JfFC894LkE6AO0PU/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZNb1bNdy; 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="ZNb1bNdy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3EBDC2BC87; Thu, 26 Feb 2026 07:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772090357; bh=HMg+i1WylRKqTTveRXRGiiACBPovax14TDQ9mtRJ8vA=; h=Date:From:To:Subject:From; b=ZNb1bNdytJmLKx1e1mXb4qxPWy8uB4+rocXA0MXGbxCVgcPYab9r7jXHJvF2vLjju ZvTE7QH1HDnpvd5OAxm0zXb9fGys0k7TY+BRZdncXJhJHnpZSc+eTKKGPGZkmpnMT0 fwpiGXJY3/6jX8s0mDb2VfUofcCoIaLTVGkQTO2ijtX1XHK8mSIxwLgDewtf3vBqPn i7a0TESHptw6ssEQQbyzkPQlWGuAUy/ZWuOw5j0QMUd+Q9b2CN15i1f9i9ovxxt+8C P9wMv8zszogWn2oeWmohEEvpcU6ghrjLaVp+AeuXz1bMEsm8c1MAV+2ZM/UVtA20ue AYz8Es8/opz0w== Date: Thu, 26 Feb 2026 09:19:13 +0200 From: Leon Romanovsky To: RDMA mailing list , Jason Gunthorpe Subject: New memory allocation API Message-ID: <20260226071913.GD12611@unreal> 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 Hi, Please be aware that v7.0-rc1 has two commits: bf4afc53b77a ("Convert 'alloc_obj' family to use the new default GFP_KERNEL argument") 69050f8d6d07 ("treewide: Replace kmalloc with kmalloc_obj for non-scalar types") Which changes old and well known kmalloc*() calls to kmalloc_obj(): Single allocations: kmalloc(sizeof(TYPE), ...) are replaced with: kmalloc_obj(TYPE, ...) Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...) are replaced with: kmalloc_objs(TYPE, COUNT, ...) Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...) are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...) (where TYPE may also be *VAR) The resulting allocations no longer return "void *", instead returning "TYPE *". Thanks