When CONFIG_PNP is not defined, i915 will fail to compile with error bellow:
drivers/gpu/drm/i915/soc/intel_gmch.c:43:13: error: variable
‘mchbar_addr’ set but not used
Fix it by surrounding variable declaration and assignment with ifdef
Signed-off-by: Wang Jinchao
---
drivers/gpu/drm/i
On Thu, 10 Aug 2023, Wang Jinchao wrote:
> When CONFIG_PNP is not defined, i915 will fail to compile with error bellow:
> drivers/gpu/drm/i915/soc/intel_gmch.c:43:13: error: variable
> ‘mchbar_addr’ set but not used
> Fix it by surrounding variable declaration and assignment with ifdef
>
>