diff options
Diffstat (limited to 'drivers/gpu/drm/drm_info.c')
-rw-r--r-- | drivers/gpu/drm/drm_info.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_info.c b/drivers/gpu/drm/drm_info.c index 812aaac4438a..ab1162da70f8 100644 --- a/drivers/gpu/drm/drm_info.c +++ b/drivers/gpu/drm/drm_info.c | |||
@@ -272,17 +272,18 @@ int drm_vma_info(struct seq_file *m, void *data) | |||
272 | #endif | 272 | #endif |
273 | 273 | ||
274 | mutex_lock(&dev->struct_mutex); | 274 | mutex_lock(&dev->struct_mutex); |
275 | seq_printf(m, "vma use count: %d, high_memory = %p, 0x%08llx\n", | 275 | seq_printf(m, "vma use count: %d, high_memory = %pK, 0x%pK\n", |
276 | atomic_read(&dev->vma_count), | 276 | atomic_read(&dev->vma_count), |
277 | high_memory, (u64)virt_to_phys(high_memory)); | 277 | high_memory, (void *)virt_to_phys(high_memory)); |
278 | 278 | ||
279 | list_for_each_entry(pt, &dev->vmalist, head) { | 279 | list_for_each_entry(pt, &dev->vmalist, head) { |
280 | vma = pt->vma; | 280 | vma = pt->vma; |
281 | if (!vma) | 281 | if (!vma) |
282 | continue; | 282 | continue; |
283 | seq_printf(m, | 283 | seq_printf(m, |
284 | "\n%5d 0x%08lx-0x%08lx %c%c%c%c%c%c 0x%08lx000", | 284 | "\n%5d 0x%pK-0x%pK %c%c%c%c%c%c 0x%08lx000", |
285 | pt->pid, vma->vm_start, vma->vm_end, | 285 | pt->pid, |
286 | (void *)vma->vm_start, (void *)vma->vm_end, | ||
286 | vma->vm_flags & VM_READ ? 'r' : '-', | 287 | vma->vm_flags & VM_READ ? 'r' : '-', |
287 | vma->vm_flags & VM_WRITE ? 'w' : '-', | 288 | vma->vm_flags & VM_WRITE ? 'w' : '-', |
288 | vma->vm_flags & VM_EXEC ? 'x' : '-', | 289 | vma->vm_flags & VM_EXEC ? 'x' : '-', |