diff options
author | YueHaibing <yuehaibing@huawei.com> | 2022-05-06 11:26:52 +0800 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-05-19 12:10:46 +0300 |
commit | 43ab20c599f4dc4c3972a8386ef4ca3943b5f9cd (patch) | |
tree | bd9e757de28c1d7b13690fd0f633d288f76ba40a /drivers/gpu/drm/drm_buddy.c | |
parent | f83493f7d34da258310ecd3d07f0cc78f884c954 (diff) |
drm/i915/gt: Fix build error without CONFIG_PM
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c: In function ‘act_freq_mhz_show’:
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:276:20: error: implicit declaration of function ‘sysfs_gt_attribute_r_max_func’ [-Werror=implicit-function-declaration]
276 | u32 actual_freq = sysfs_gt_attribute_r_max_func(dev, attr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Move sysfs_gt_attribute_* macros out of #ifdef block to fix this.
Fixes: 56a709cf7746 ("drm/i915/gt: Create per-tile RPS sysfs interfaces")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220506032652.1856-1-yuehaibing@huawei.com
(cherry picked from commit 09708b6d82ef473de91c49d90f35e38b0db463f5)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/drm_buddy.c')
0 files changed, 0 insertions, 0 deletions