[PATCH v2 2/2] drm/i915/gem: Use the correct format specifier for resource_size_t

Lucas De Marchi lucas.demarchi at intel.com
Thu Jun 27 13:27:30 UTC 2024


On Mon, Jun 17, 2024 at 08:42:43PM GMT, Andi Shyti wrote:
>Commit 05da7d9f717b ("drm/i915/gem: Downgrade stolen lmem setup
>warning") adds a debug message where the "lmem_size" and
>"dsm_base" variables are printed using the %lli identifier.
>
>However, these variables are defined as resource_size_t, which
>are unsigned long for 32-bit machines and unsigned long long for
>64-bit machines.
>
>The documentation (core-api/printk-formats.rst) recommends using
>the %pa specifier for printing addresses and sizes of resources.
>
>Replace %lli with %pa.
>
>This patch also mutes the following sparse warning when compiling
>with:

s/sparse//

I will do that while applying, thanks.

Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi


More information about the dri-devel mailing list