]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Use ARRAY_SIZE in guc_waklv_init()
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 12 Sep 2025 22:05:34 +0000 (15:05 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 15 Sep 2025 14:50:53 +0000 (07:50 -0700)
commit19baa830fbb60d712137dfbdf97a538f7057d100
tree149895b22350f32f08652cd598ca7bb4de243ac7
parent75cc23ffe5b422bc3cbd5cf0956b8b86e4b0e162
drm/xe: Use ARRAY_SIZE in guc_waklv_init()

Prefer using ARRAY_SIZE where needed and just passing 1 instead of
calculating the size of one element.

Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202508130158.eogeBZQT-lkp@intel.com/
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://lore.kernel.org/r/20250912-guc-ads-array-size-v1-1-a6555392a1f8@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_guc_ads.c