From: Chris Wilson Date: Sat, 9 Jan 2021 16:34:53 +0000 (+0000) Subject: drm/i915/gt: Remove unused function 'dword_in_page' X-Git-Tag: v5.12-rc1~132^2~16^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a42f4dd2bf6c525131cabe73bd01dcbe4041a825;p=thirdparty%2Fkernel%2Flinux.git drm/i915/gt: Remove unused function 'dword_in_page' >> 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 Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Link: https://patchwork.freedesktop.org/patch/msgid/20210109163455.28466-1-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index 7956cdaf6b5f8..a0fc78c89b610 100644 --- a/drivers/gpu/drm/i915/gt/intel_lrc.c +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c @@ -14,11 +14,6 @@ #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,