drm/tests/drm_buddy: fix 32b build
authorMatthew Auld <matthew.auld@intel.com>
Thu, 15 Feb 2024 17:44:32 +0000 (17:44 +0000)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Feb 2024 09:56:02 +0000 (10:56 +0100)
commit335126937753844d36036984e96a8f343538a778
treed2451a597da9c5db25a1fa912e822468a6d1103f
parentbd915ae73a2d78559b376ad2caf5e4ef51de2455
drm/tests/drm_buddy: fix 32b build

Doesn't seem to compile on 32b, presumably due to u64 mod/division.
Simplest is to just switch over to u32 here. Also make print modifiers
consistent with that.

Fixes: a64056bb5a32 ("drm/tests/drm_buddy: add alloc_contiguous test")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Maxime Ripard <mripard@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240215174431.285069-7-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/tests/drm_buddy_test.c