From: Cai Huoqing <caihuoqing@baidu.com>
To: <yuq825@gmail.com>, <airlied@linux.ie>, <daniel@ffwll.ch>
Cc: <dri-devel@lists.freedesktop.org>, <lima@lists.freedesktop.org>,
"Cai Huoqing" <caihuoqing@baidu.com>
Subject: [PATCH] drm/lima: Remove unused lima_vm_print()
Date: Fri, 20 Aug 2021 10:19:11 +0800 [thread overview]
Message-ID: <20210820021911.95-1-caihuoqing@baidu.com> (raw)
lima_vm_print() isn't used, so remove it
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
drivers/gpu/drm/lima/lima_vm.c | 29 -----------------------------
drivers/gpu/drm/lima/lima_vm.h | 1 -
2 files changed, 30 deletions(-)
diff --git a/drivers/gpu/drm/lima/lima_vm.c b/drivers/gpu/drm/lima/lima_vm.c
index 2b2739adc7f5..b3426c5c987f 100644
--- a/drivers/gpu/drm/lima/lima_vm.c
+++ b/drivers/gpu/drm/lima/lima_vm.c
@@ -251,35 +251,6 @@ void lima_vm_release(struct kref *kref)
kfree(vm);
}
-void lima_vm_print(struct lima_vm *vm)
-{
- int i, j, k;
- u32 *pd, *pt;
-
- if (!vm->pd.cpu)
- return;
-
- pd = vm->pd.cpu;
- for (i = 0; i < LIMA_VM_NUM_BT; i++) {
- if (!vm->bts[i].cpu)
- continue;
-
- pt = vm->bts[i].cpu;
- for (j = 0; j < LIMA_VM_NUM_PT_PER_BT; j++) {
- int idx = (i << LIMA_VM_NUM_PT_PER_BT_SHIFT) + j;
-
- printk(KERN_INFO "lima vm pd %03x:%08x\n", idx, pd[idx]);
-
- for (k = 0; k < LIMA_PAGE_ENT_NUM; k++) {
- u32 pte = *pt++;
-
- if (pte)
- printk(KERN_INFO " pt %03x:%08x\n", k, pte);
- }
- }
- }
-}
-
int lima_vm_map_bo(struct lima_vm *vm, struct lima_bo *bo, int pageoff)
{
struct lima_bo_va *bo_va;
diff --git a/drivers/gpu/drm/lima/lima_vm.h b/drivers/gpu/drm/lima/lima_vm.h
index 3a7c74822d8b..291ec9a0a1c4 100644
--- a/drivers/gpu/drm/lima/lima_vm.h
+++ b/drivers/gpu/drm/lima/lima_vm.h
@@ -58,7 +58,6 @@ static inline void lima_vm_put(struct lima_vm *vm)
kref_put(&vm->refcount, lima_vm_release);
}
-void lima_vm_print(struct lima_vm *vm);
int lima_vm_map_bo(struct lima_vm *vm, struct lima_bo *bo, int pageoff);
#endif
--
2.25.1
next reply other threads:[~2021-08-20 2:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-20 2:19 Cai Huoqing [this message]
2021-08-23 1:05 ` [PATCH] drm/lima: Remove unused lima_vm_print() Qiang Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210820021911.95-1-caihuoqing@baidu.com \
--to=caihuoqing@baidu.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=lima@lists.freedesktop.org \
--cc=yuq825@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.