Arnd Bergmann
1f9bb94f12
drm/amdgpu: use %pad format string for dma_addr_t
...
DMA addresses can be shorter than u64, which results in a broken debug output:
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c: In function 'amdgpu_gart_table_ram_alloc':
drivers/gpu/drm/amd/amdgpu/amdgpu.h:41:22: error: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Werror=format=]
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c:146:9: note: in expansion of macro 'dev_info'
146 | dev_info(adev->dev, "%s dma_addr:%llx\n", __func__, dma_addr);
Use the special %pad format string and pass the DMA address by reference.
Fixes: c9a502e981 ("drm/amdgpu: Allocate GART table in RAM for AMD APU")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-06-09 10:50:55 -04:00
..
2023-04-08 10:44:23 +03:00
2023-01-22 08:37:23 +01:00
2023-03-24 13:45:58 -07:00
2023-01-27 13:45:52 +01:00
2023-02-24 12:47:33 -08:00
2023-03-16 16:54:38 +09:00
2023-03-21 20:19:28 -07:00
2023-03-05 11:19:16 -08:00
2023-01-27 13:45:52 +01:00
2023-03-20 20:01:25 -06:00
2023-03-23 13:09:38 -07:00
2023-03-14 11:43:51 +08:00
2023-03-12 23:28:10 +02:00
2023-03-06 14:41:20 -08:00
2023-02-21 09:45:13 -08:00
2023-01-22 08:37:23 +01:00
2023-03-03 10:30:58 -08:00
2023-03-07 14:04:13 +01:00
2023-03-05 11:32:30 -08:00
2023-02-25 09:19:23 -08:00
2023-02-25 09:19:23 -08:00
2023-02-24 17:18:54 -08:00
2023-03-29 15:45:38 +02:00
2023-02-21 08:10:03 -08:00
2023-01-27 13:45:52 +01:00
2023-02-04 13:05:42 +00:00
2023-02-24 12:58:55 -08:00
2023-03-24 15:38:13 -07:00
2023-02-24 12:58:55 -08:00
2023-01-27 13:45:38 +01:00
2023-03-07 14:15:10 +01:00
2023-06-09 10:50:55 -04:00
2023-01-27 13:45:52 +01:00
2023-03-09 10:17:23 -08:00
2023-02-24 12:58:55 -08:00
2023-02-24 12:58:55 -08:00
2023-03-21 19:14:55 -07:00
2023-02-24 12:58:55 -08:00
2023-03-16 21:15:43 +01:00
2023-02-28 16:05:01 -08:00
2023-02-21 12:13:58 -08:00
2023-02-24 12:47:33 -08:00
2023-02-24 15:11:03 -08:00
2023-02-27 10:04:49 -08:00
2023-03-13 21:13:48 +02:00
2023-02-27 10:04:49 -08:00
2023-02-24 12:58:55 -08:00
2023-02-25 11:30:21 -08:00
2023-02-23 15:09:31 -08:00
2023-02-25 11:00:06 -08:00
2023-02-23 14:47:13 -06:00
2023-01-27 13:45:52 +01:00
2023-03-24 14:20:48 -07:00
2023-03-18 11:07:15 -07:00
2023-03-13 21:13:49 +02:00
2023-02-27 09:47:26 -08:00
2023-02-27 14:05:08 -08:00
2023-03-24 20:22:03 +01:00
2023-03-09 15:33:51 +01:00
2023-01-19 17:16:05 +01:00
2023-03-11 09:24:05 -08:00
2023-03-23 16:03:33 -07:00
2023-03-15 00:28:23 -07:00
2023-02-25 11:48:02 -08:00
2023-03-22 09:17:52 +01:00
2023-03-10 10:55:49 +01:00
2023-02-24 13:40:13 -08:00
2023-02-16 13:48:53 +01:00
2023-02-24 12:47:33 -08:00
2023-03-13 09:15:11 +01:00
2023-02-24 12:58:55 -08:00
2023-03-03 09:32:51 -08:00
2023-02-27 10:04:49 -08:00
2023-02-27 10:04:49 -08:00
2023-03-24 09:05:25 -07:00
2023-03-12 23:28:04 +01:00
2023-03-03 10:30:58 -08:00
2023-01-19 16:04:35 +01:00
2023-02-20 14:56:51 +01:00
2023-02-22 21:23:48 -08:00
2023-02-20 12:26:35 +01:00
2023-01-27 13:45:52 +01:00
2023-03-02 09:21:25 -08:00
2023-02-27 10:04:49 -08:00
2023-02-26 12:10:28 -08:00
2023-03-03 09:15:50 -08:00
2023-03-03 14:41:50 -08:00
2023-02-09 16:51:39 -08:00
2023-03-24 08:27:13 -07:00
2023-03-01 09:44:22 -08:00
2023-01-27 13:45:52 +01:00
2023-03-06 20:13:06 -08:00
2023-02-24 17:29:52 -08:00
2023-03-02 09:25:38 -08:00
2023-01-27 13:45:52 +01:00
2023-01-27 13:45:52 +01:00
2023-04-06 15:02:17 +02:00
2023-03-06 16:50:42 -05:00
2023-03-17 15:30:31 +01:00
2023-03-24 17:11:27 +01:00
2023-03-20 19:00:58 +02:00
2023-03-24 09:44:43 -07:00
2023-03-09 21:09:28 -05:00
2023-02-23 17:09:35 -08:00
2023-03-23 19:13:16 +01:00
2023-03-13 02:29:12 -04:00
2023-03-13 12:50:59 -06:00
2023-03-13 02:29:11 -04:00
2023-04-04 14:55:58 +02:00
2023-03-13 13:29:27 +01:00
2023-02-25 11:48:02 -08:00
2023-03-09 21:58:57 +01:00
2023-03-02 11:12:01 -08:00
2023-03-17 10:45:49 -07:00
2023-01-27 13:45:52 +01:00
2023-02-26 11:53:25 -08:00