]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Fix use of static in macro mismatch
authorAndi Shyti <andi.shyti@linux.intel.com>
Tue, 10 May 2022 14:04:47 +0000 (16:04 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Wed, 18 May 2022 13:44:45 +0000 (15:44 +0200)
commit14fae7c3fdb57375727dfedfa69b3ddc364f14bc
tree205be79cb4faacd9ed4570401ff2b2be34e87c31
parent509c6010ffb7785b6f506ef1a30003cd572fcfa0
drm/i915/gt: Fix use of static in macro mismatch

The INTEL_GT_RPS_SYSFS_ATTR was creating to different structures
but. When called with the "static" keyword this is affecting only
the first structure, while the second is created as non static.

Move the static keyword inside the macros to affect both the
structures.

Reported-by: Jani Nikula <jani.nikula@linux.intel.com>
Fixes: baa281355e321 ("drm/i915/gt: Create per-tile RPS sysfs interfaces")
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220510140447.80200-1-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c