drm/i915/gt: Remove unused function 'dword_in_page'
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jan 2021 16:34:53 +0000 (16:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jan 2021 18:29:06 +0000 (18:29 +0000)
>> drivers/gpu/drm/i915/gt/intel_lrc.c:17:28: error: unused function 'dword_in_page' [-Werror,-Wunused-function]
   static inline unsigned int dword_in_page(void *addr)

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210109163455.28466-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c

index 7956cda..a0fc78c 100644 (file)
 #include "intel_ring.h"
 #include "shmem_utils.h"
 
-static inline unsigned int dword_in_page(void *addr)
-{
-       return offset_in_page(addr) / sizeof(u32);
-}
-
 static void set_offsets(u32 *regs,
                        const u8 *data,
                        const struct intel_engine_cs *engine,