diff options
| author | Lyude Paul <[email protected]> | 2020-05-21 16:46:47 -0400 |
|---|---|---|
| committer | Sam Ravnborg <[email protected]> | 2020-05-23 08:41:14 +0200 |
| commit | 9d81fe1791180f5debde243b6e08b700e73cb94e (patch) | |
| tree | 8c6a8c0b7bb77dd91e9c0d5608970f67f602865b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
| parent | 38d6fd406aaa30a1381074b083776cd280479e22 (diff) | |
drm/vblank: Fix -Wformat compile warnings on some arches
On some architectures like ppc64le and aarch64, compiling with
-Wformat=1 will throw the following warnings:
In file included from drivers/gpu/drm/drm_vblank.c:33:
drivers/gpu/drm/drm_vblank.c: In function 'drm_update_vblank_count':
drivers/gpu/drm/drm_vblank.c:273:16: warning: format '%llu' expects
argument of type 'long long unsigned int', but argument 4 has type
'long int' [-Wformat=]
DRM_DEBUG_VBL("updating vblank count on crtc %u:"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drm/drm_print.h:407:22: note: in definition of macro
'DRM_DEBUG_VBL'
drm_dbg(DRM_UT_VBL, fmt, ##__VA_ARGS__)
^~~
drivers/gpu/drm/drm_vblank.c:274:22: note: format string is defined here
" current=%llu, diff=%u, hw=%u hw_last=%u\n",
~~~^
%lu
So, fix that with a typecast.
Signed-off-by: Lyude Paul <[email protected]>
Co-developed-by: Dave Airlie <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
[fixed too long line]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions