From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: accel/habanalabs: kzalloc + kcalloc to kzalloc_flex Date: Wed, 11 Mar 2026 12:54:50 +1000 Message-ID: In-Reply-To: <20260311004459.32567-1-rosenp@gmail.com> References: <20260311004459.32567-1-rosenp@gmail.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Overall Series Review Subject: accel/habanalabs: kzalloc + kcalloc to kzalloc_flex Author: Rosen Penev Patches: 1 Reviewed: 2026-03-11T12:54:50.765966 --- This is a single-patch series that converts the `jobs_in_queue_cnt` member = of `struct hl_cs` from a separately allocated pointer to a flexible array m= ember (FAM), using the `kzalloc_flex()` API. The conversion is straightforw= ard and correct in principle =E2=80=94 it removes a separate `kcalloc` allo= cation and its corresponding `kfree`, simplifying the code and reducing the= number of allocations. The patch is **generally correct** but has a few issues worth noting. --- Generated by Claude Code Patch Reviewer