From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/xe/tests: avoid build warning on 32-bit targets Date: Thu, 05 Mar 2026 13:42:12 +1000 Message-ID: In-Reply-To: <20260304083741.725121-1-arnd@kernel.org> References: <20260304083741.725121-1-arnd@kernel.org> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: drm/xe/tests: avoid build warning on 32-bit targets Author: Arnd Bergmann Patches: 3 Reviewed: 2026-03-05T13:42:12.647626 --- This is a single-patch fix for a 32-bit build warning in the Xe KUnit tests. The problem is real: `TEST_VRAM` (0x37a800000, ~14.9 GiB) is assigned to a `resource_size_t` field (`usable_size`), which is only 32 bits wide on 32-bit targets, causing silent truncation and a `-Werror=overflow` build failure. However, the proposed fix of casting with `(resource_size_t)` is a band-aid that **silences the warning while making the tests silently broken on 32-bit**. The value truncates to ~1.9 GiB, which would change the semantics of multiple test cases that use `TEST_VRAM`. The author acknowledges this in the commit message and cover letter, essentially offering it as a bug report. --- Generated by Claude Code Patch Reviewer