2013-09-09 10:02:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-26 01:39:49 -08:00
|
|
|
|
|
|
|
|
|
2019-06-30 08:19:16 +02:00
|
|
|
|
|
|
|
|
|
2025-10-29 12:39:45 +02:00
|
|
|
|
2013-09-09 10:02:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-30 18:16:21 -08:00
|
|
|
|
|
|
|
|
|
2019-03-20 09:36:12 +01:00
|
|
|
|
2022-01-26 01:39:49 -08:00
|
|
|
|
2019-03-20 09:36:12 +01:00
|
|
|
|
|
|
|
|
|
2020-11-30 18:16:21 -08:00
|
|
|
|
2019-03-20 09:36:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-23 17:32:07 -07:00
|
|
|
|
2019-03-20 09:36:12 +01:00
|
|
|
|
|
|
|
|
|
2020-11-30 18:16:21 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-09-21 16:20:16 -07:00
|
|
|
|
2020-11-30 18:16:21 -08:00
|
|
|
|
|
|
|
|
|
2020-09-23 17:32:04 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-03-20 09:36:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-09 10:02:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
drm/virtio: use %llu format string form atomic64_t
The virtgpu driver prints the last_seq variable using the %ld or
%lu format string, which does not work correctly on all architectures
and causes this compiler warning on ARM:
drivers/gpu/drm/virtio/virtgpu_fence.c: In function 'virtio_timeline_value_str':
drivers/gpu/drm/virtio/virtgpu_fence.c:64:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=]
snprintf(str, size, "%lu", atomic64_read(&fence->drv->last_seq));
^
drivers/gpu/drm/virtio/virtgpu_debugfs.c: In function 'virtio_gpu_debugfs_irq_info':
drivers/gpu/drm/virtio/virtgpu_debugfs.c:37:16: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=]
seq_printf(m, "fence %ld %lld\n",
^
In order to avoid the warnings, this changes the format strings to %llu
and adds a cast to u64, which makes it work the same way everywhere.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-10-07 12:41:21 +02:00
|
|
|
|
2020-11-18 17:08:09 -08:00
|
|
|
|
|
|
|
|
|
2013-09-09 10:02:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-23 17:32:07 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-09 10:02:56 +10:00
|
|
|
|
2019-03-20 09:36:12 +01:00
|
|
|
|
|
|
|
|
|
2020-09-23 17:32:07 -07:00
|
|
|
|
2013-09-09 10:02:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-10 16:31:21 +03:00
|
|
|
|
2013-09-09 10:02:56 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|