✓ CI.checkpatch: success for drm/xe: Fix total initialization in xe_ggtt_print_holes()
Patchwork
patchwork at emeril.freedesktop.org
Sat Aug 24 03:53:33 UTC 2024
== Series Details ==
Series: drm/xe: Fix total initialization in xe_ggtt_print_holes()
URL : https://patchwork.freedesktop.org/series/137740/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
9fe5037901cabbcdf27a6fe0dfb047ca1474d363
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 324565aace0e11945133434ba20e08dc61fa509a
Author: Nathan Chancellor <nathan at kernel.org>
Date: Fri Aug 23 20:47:13 2024 -0700
drm/xe: Fix total initialization in xe_ggtt_print_holes()
Clang warns (or errors with CONFIG_DRM_WERROR or CONFIG_WERROR):
drivers/gpu/drm/xe/xe_ggtt.c:810:3: error: variable 'total' is uninitialized when used here [-Werror,-Wuninitialized]
810 | total += hole_size;
| ^~~~~
drivers/gpu/drm/xe/xe_ggtt.c:798:11: note: initialize the variable 'total' to silence this warning
798 | u64 total;
| ^
| = 0
1 error generated.
Move the zero initialization of total from
xe_gt_sriov_pf_config_print_available_ggtt() to xe_ggtt_print_holes() to
resolve the warning.
Fixes: 136367290ea5 ("drm/xe: Introduce xe_ggtt_print_holes")
Signed-off-by: Nathan Chancellor <nathan at kernel.org>
+ /mt/dim checkpatch 411a047925bb7e169a075a2ddfb63ba96f26a8c8 drm-intel
324565aace0e drm/xe: Fix total initialization in xe_ggtt_print_holes()
More information about the Intel-xe
mailing list