kernel_samsung_a53x/drivers/gpu/drm/i915
Andy Shevchenko 0bb1e0a912 drm/i915/fence: Mark debug_fence_free() with __maybe_unused
[ Upstream commit f99999536128b14b5d765a9982763b5134efdd79 ]

When debug_fence_free() is unused
(CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS=n), it prevents kernel builds
with clang, `make W=1` and CONFIG_WERROR=y:

.../i915_sw_fence.c:118:20: error: unused function 'debug_fence_free' [-Werror,-Wunused-function]
  118 | static inline void debug_fence_free(struct i915_sw_fence *fence)
      |                    ^~~~~~~~~~~~~~~~

Fix this by marking debug_fence_free() with __maybe_unused.

See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
inline functions for W=1 build").

Fixes: fc1584059d6c ("drm/i915: Integrate i915_sw_fence with debugobjects")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240829155950.1141978-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
(cherry picked from commit 8be4dce5ea6f2368cc25edc71989c4690fa66964)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:08 +01:00
..
display drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern 2024-11-18 12:12:06 +01:00
gem drm/i915/gem: Fix Virtual Memory mapping boundaries calculation 2024-11-23 23:20:31 +01:00
gt drm/i915/gt: Fix potential UAF by revoke of fence registers 2024-11-19 14:19:34 +01:00
gvt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selftests Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_active.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_active.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_active_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_buddy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_buddy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_cmd_parser.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_debugfs_params.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_debugfs_params.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_fixed.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gem_evict.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gem_gtt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gem_gtt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_getparam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_globals.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_globals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gpu_error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_gpu_error.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_ioc32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_ioc32.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_memcpy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_memcpy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_mitigations.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_mitigations.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_mm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_params.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_params.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_perf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_perf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_perf_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_pmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_pmu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_priolist_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_pvinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_query.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_query.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_request.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_request.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_scatterlist.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_scatterlist.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_scheduler.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_scheduler.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_scheduler_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_selftest.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_suspend.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_suspend.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_sw_fence.c drm/i915/fence: Mark debug_fence_free() with __maybe_unused 2024-11-23 23:21:08 +01:00
i915_sw_fence.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_sw_fence_work.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_sw_fence_work.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_switcheroo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_switcheroo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_syncmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_syncmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_trace_points.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_user_extensions.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_user_extensions.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_utils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_vgpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_vgpu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_vma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_vma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i915_vma_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_device_info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_device_info.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_dram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_dram.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_gvt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_gvt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_memory_region.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_memory_region.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pch.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_region_lmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_region_lmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_runtime_pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_runtime_pm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_sideband.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_sideband.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_uncore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_uncore.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_wakeref.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_wakeref.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_wopcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_wopcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.debug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.profile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.unstable Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vlv_suspend.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vlv_suspend.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00