]> 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)
committerJani Nikula <jani.nikula@intel.com>
Tue, 14 Sep 2021 07:56:49 +0000 (10:56 +0300)
commit415406380c29694e12b164f05e467659381feca5
tree4d750d9f1cde70c895d9f9a5fe53c4dd2609bbd5
parentc8dead5751b81dfa6b10449b740ed1062ff670c5
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
(cherry picked from commit 5db1856781e45c9610f7652a19cc656b984235e7)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gt/uc/intel_uc.c