]> Git Repo - linux.git/commitdiff
drm/i915/gvt: Remove the unused function get_pt_type()
authorJiapeng Chong <[email protected]>
Mon, 26 Sep 2022 06:40:43 +0000 (14:40 +0800)
committerZhenyu Wang <[email protected]>
Thu, 17 Nov 2022 06:07:09 +0000 (14:07 +0800)
The function get_pt_type is defined in the gtt.c file, but not
called elsewhere, so delete this unused function.

drivers/gpu/drm/i915/gvt/gtt.c:285:19: warning: unused function 'get_pt_type'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2277
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Zhenyu Wang <[email protected]>
drivers/gpu/drm/i915/gvt/gtt.c

index 54d446e59e653cd2d959704f4ce4db78642d3952..51e5e8fb505bccac4627139f10ff4565f93f11f4 100644 (file)
@@ -282,11 +282,6 @@ static inline int get_next_pt_type(int type)
        return gtt_type_table[type].next_pt_type;
 }
 
-static inline int get_pt_type(int type)
-{
-       return gtt_type_table[type].pt_type;
-}
-
 static inline int get_entry_type(int type)
 {
        return gtt_type_table[type].entry_type;
This page took 0.058955 seconds and 4 git commands to generate.