]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: drop guc_communication_enabled
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 23 Aug 2021 16:31:37 +0000 (09:31 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 31 Aug 2021 19:46:36 +0000 (12:46 -0700)
commit5db1856781e45c9610f7652a19cc656b984235e7
treeb768839fde373a434705a89079dfeba3978fe20e
parentf123efebe4361b9b16975fcc3dbc0a6331fa6a14
drm/i915/guc: drop guc_communication_enabled

The function is only used from within GEM_BUG_ON(), which is causing
warnings with Wunneeded-internal-declaration in some builds. Since the
function is a simple wrapper around a CT function, we can just call the
CT function directly instead.

Fixes: 1fb12c587152 ("drm/i915/guc: skip disabling CTBs before sanitizing the GuC")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210823163137.19770-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc.c