Skip to content

Commit 7ac2d25

Browse files
committed
drm/i915/gem: Delete unused code
Unused as of commit 9e0f946 ("drm/i915/gem: Async GPU relocations only"), but left behind. >> drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:933:21: error: unused function 'unmask_page' [-Werror,-Wunused-function] static inline void *unmask_page(unsigned long p) ^ >> drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:938:28: error: unused function 'unmask_flags' [-Werror,-Wunused-function] static inline unsigned int unmask_flags(unsigned long p) ^ >> drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:945:33: error: unused function 'cache_to_ggtt' [-Werror,-Wunused-function] static inline struct i915_ggtt *cache_to_ggtt(struct reloc_cache *cache) Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200605200357.13069-1-chris@chris-wilson.co.uk
1 parent 84d24cb commit 7ac2d25

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -930,25 +930,6 @@ static void reloc_cache_init(struct reloc_cache *cache,
930930
cache->target = NULL;
931931
}
932932

933-
static inline void *unmask_page(unsigned long p)
934-
{
935-
return (void *)(uintptr_t)(p & PAGE_MASK);
936-
}
937-
938-
static inline unsigned int unmask_flags(unsigned long p)
939-
{
940-
return p & ~PAGE_MASK;
941-
}
942-
943-
#define KMAP 0x4 /* after CLFLUSH_FLAGS */
944-
945-
static inline struct i915_ggtt *cache_to_ggtt(struct reloc_cache *cache)
946-
{
947-
struct drm_i915_private *i915 =
948-
container_of(cache, struct i915_execbuffer, reloc_cache)->i915;
949-
return &i915->ggtt;
950-
}
951-
952933
#define RELOC_TAIL 4
953934

954935
static int reloc_gpu_chain(struct reloc_cache *cache)

0 commit comments

Comments
 (0)